releasepolicy

package
v0.0.0-...-aca7f8d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the releasepolicy type in the database.
	Label = "release_policy"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldModule holds the string denoting the module field in the database.
	FieldModule = "module"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeProjects holds the string denoting the projects edge name in mutations.
	EdgeProjects = "projects"
	// EdgeRepos holds the string denoting the repos edge name in mutations.
	EdgeRepos = "repos"
	// EdgeViolations holds the string denoting the violations edge name in mutations.
	EdgeViolations = "violations"
	// Table holds the table name of the releasepolicy in the database.
	Table = "release_policy"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "release_policy"
	// OwnerInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OwnerInverseTable = "organization"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "release_policy_owner"
	// ProjectsTable is the table that holds the projects relation/edge. The primary key declared below.
	ProjectsTable = "release_policy_projects"
	// ProjectsInverseTable is the table name for the Project entity.
	// It exists in this package in order to avoid circular dependency with the "project" package.
	ProjectsInverseTable = "project"
	// ReposTable is the table that holds the repos relation/edge. The primary key declared below.
	ReposTable = "release_policy_repos"
	// ReposInverseTable is the table name for the Repo entity.
	// It exists in this package in order to avoid circular dependency with the "repo" package.
	ReposInverseTable = "repo"
	// ViolationsTable is the table that holds the violations relation/edge.
	ViolationsTable = "release_policy_violation"
	// ViolationsInverseTable is the table name for the ReleasePolicyViolation entity.
	// It exists in this package in order to avoid circular dependency with the "releasepolicyviolation" package.
	ViolationsInverseTable = "release_policy_violation"
	// ViolationsColumn is the table column denoting the violations relation/edge.
	ViolationsColumn = "release_policy_violation_policy"
)

Variables

View Source
var (
	// ProjectsPrimaryKey and ProjectsColumn2 are the table columns denoting the
	// primary key for the projects relation (M2M).
	ProjectsPrimaryKey = []string{"release_policy_id", "project_id"}
	// ReposPrimaryKey and ReposColumn2 are the table columns denoting the
	// primary key for the repos relation (M2M).
	ReposPrimaryKey = []string{"release_policy_id", "repo_id"}
)
View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// ModuleValidator is a validator for the "module" field. It is called by the builders before save.
	ModuleValidator func(string) error
)

Columns holds all SQL columns for releasepolicy fields.

View Source
var ForeignKeys = []string{
	"release_policy_owner",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "release_policy" table and are not defined as standalone fields in the schema.

Functions

func And

And groups predicates with the AND operator between them.

func HasOwner

func HasOwner() predicate.ReleasePolicy

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Organization) predicate.ReleasePolicy

HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).

func HasProjects

func HasProjects() predicate.ReleasePolicy

HasProjects applies the HasEdge predicate on the "projects" edge.

func HasProjectsWith

func HasProjectsWith(preds ...predicate.Project) predicate.ReleasePolicy

HasProjectsWith applies the HasEdge predicate on the "projects" edge with a given conditions (other predicates).

func HasRepos

func HasRepos() predicate.ReleasePolicy

HasRepos applies the HasEdge predicate on the "repos" edge.

func HasReposWith

func HasReposWith(preds ...predicate.Repo) predicate.ReleasePolicy

HasReposWith applies the HasEdge predicate on the "repos" edge with a given conditions (other predicates).

func HasViolations

func HasViolations() predicate.ReleasePolicy

HasViolations applies the HasEdge predicate on the "violations" edge.

func HasViolationsWith

func HasViolationsWith(preds ...predicate.ReleasePolicyViolation) predicate.ReleasePolicy

HasViolationsWith applies the HasEdge predicate on the "violations" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.ReleasePolicy

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.ReleasePolicy

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.ReleasePolicy

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.ReleasePolicy

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.ReleasePolicy

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.ReleasePolicy

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.ReleasePolicy

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.ReleasePolicy

IDNotIn applies the NotIn predicate on the ID field.

func Module

func Module(v string) predicate.ReleasePolicy

Module applies equality check predicate on the "module" field. It's identical to ModuleEQ.

func ModuleContains

func ModuleContains(v string) predicate.ReleasePolicy

ModuleContains applies the Contains predicate on the "module" field.

func ModuleContainsFold

func ModuleContainsFold(v string) predicate.ReleasePolicy

ModuleContainsFold applies the ContainsFold predicate on the "module" field.

func ModuleEQ

func ModuleEQ(v string) predicate.ReleasePolicy

ModuleEQ applies the EQ predicate on the "module" field.

func ModuleEqualFold

func ModuleEqualFold(v string) predicate.ReleasePolicy

ModuleEqualFold applies the EqualFold predicate on the "module" field.

func ModuleGT

func ModuleGT(v string) predicate.ReleasePolicy

ModuleGT applies the GT predicate on the "module" field.

func ModuleGTE

func ModuleGTE(v string) predicate.ReleasePolicy

ModuleGTE applies the GTE predicate on the "module" field.

func ModuleHasPrefix

func ModuleHasPrefix(v string) predicate.ReleasePolicy

ModuleHasPrefix applies the HasPrefix predicate on the "module" field.

func ModuleHasSuffix

func ModuleHasSuffix(v string) predicate.ReleasePolicy

ModuleHasSuffix applies the HasSuffix predicate on the "module" field.

func ModuleIn

func ModuleIn(vs ...string) predicate.ReleasePolicy

ModuleIn applies the In predicate on the "module" field.

func ModuleLT

func ModuleLT(v string) predicate.ReleasePolicy

ModuleLT applies the LT predicate on the "module" field.

func ModuleLTE

func ModuleLTE(v string) predicate.ReleasePolicy

ModuleLTE applies the LTE predicate on the "module" field.

func ModuleNEQ

func ModuleNEQ(v string) predicate.ReleasePolicy

ModuleNEQ applies the NEQ predicate on the "module" field.

func ModuleNotIn

func ModuleNotIn(vs ...string) predicate.ReleasePolicy

ModuleNotIn applies the NotIn predicate on the "module" field.

func Name

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.ReleasePolicy

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.ReleasePolicy

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.ReleasePolicy

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.ReleasePolicy

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.ReleasePolicy

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.ReleasePolicy

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.ReleasePolicy

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.ReleasePolicy

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.ReleasePolicy

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.ReleasePolicy

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.ReleasePolicy

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.ReleasePolicy

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.ReleasePolicy

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL