Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Project) predicate.Project
- func HasOwner() predicate.Project
- func HasOwnerWith(preds ...predicate.Organization) predicate.Project
- func HasPolicies() predicate.Project
- func HasPoliciesWith(preds ...predicate.ReleasePolicy) predicate.Project
- func HasRepos() predicate.Project
- func HasReposWith(preds ...predicate.Repo) predicate.Project
- func HasVulnerabilityReviews() predicate.Project
- func HasVulnerabilityReviewsWith(preds ...predicate.VulnerabilityReview) predicate.Project
- func ID(id int) predicate.Project
- func IDEQ(id int) predicate.Project
- func IDGT(id int) predicate.Project
- func IDGTE(id int) predicate.Project
- func IDIn(ids ...int) predicate.Project
- func IDLT(id int) predicate.Project
- func IDLTE(id int) predicate.Project
- func IDNEQ(id int) predicate.Project
- func IDNotIn(ids ...int) predicate.Project
- func Name(v string) predicate.Project
- func NameContains(v string) predicate.Project
- func NameContainsFold(v string) predicate.Project
- func NameEQ(v string) predicate.Project
- func NameEqualFold(v string) predicate.Project
- func NameGT(v string) predicate.Project
- func NameGTE(v string) predicate.Project
- func NameHasPrefix(v string) predicate.Project
- func NameHasSuffix(v string) predicate.Project
- func NameIn(vs ...string) predicate.Project
- func NameLT(v string) predicate.Project
- func NameLTE(v string) predicate.Project
- func NameNEQ(v string) predicate.Project
- func NameNotIn(vs ...string) predicate.Project
- func Not(p predicate.Project) predicate.Project
- func Or(predicates ...predicate.Project) predicate.Project
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the project type in the database. Label = "project" // 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" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeRepos holds the string denoting the repos edge name in mutations. EdgeRepos = "repos" // EdgeVulnerabilityReviews holds the string denoting the vulnerability_reviews edge name in mutations. EdgeVulnerabilityReviews = "vulnerability_reviews" // EdgePolicies holds the string denoting the policies edge name in mutations. EdgePolicies = "policies" // Table holds the table name of the project in the database. Table = "project" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "project" // 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 = "project_owner" // ReposTable is the table that holds the repos relation/edge. ReposTable = "repo" // 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" // ReposColumn is the table column denoting the repos relation/edge. ReposColumn = "repo_project" // VulnerabilityReviewsTable is the table that holds the vulnerability_reviews relation/edge. The primary key declared below. VulnerabilityReviewsTable = "vulnerability_review_projects" // VulnerabilityReviewsInverseTable is the table name for the VulnerabilityReview entity. // It exists in this package in order to avoid circular dependency with the "vulnerabilityreview" package. VulnerabilityReviewsInverseTable = "vulnerability_review" // PoliciesTable is the table that holds the policies relation/edge. The primary key declared below. PoliciesTable = "release_policy_projects" // PoliciesInverseTable is the table name for the ReleasePolicy entity. // It exists in this package in order to avoid circular dependency with the "releasepolicy" package. PoliciesInverseTable = "release_policy" )
Variables ¶
var ( // VulnerabilityReviewsPrimaryKey and VulnerabilityReviewsColumn2 are the table columns denoting the // primary key for the vulnerability_reviews relation (M2M). VulnerabilityReviewsPrimaryKey = []string{"vulnerability_review_id", "project_id"} // PoliciesPrimaryKey and PoliciesColumn2 are the table columns denoting the // primary key for the policies relation (M2M). PoliciesPrimaryKey = []string{"release_policy_id", "project_id"} )
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for project fields.
var ForeignKeys = []string{
"project_owner",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "project" table and are not defined as standalone fields in the schema.
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
Functions ¶
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.Organization) predicate.Project
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasPolicies ¶
HasPolicies applies the HasEdge predicate on the "policies" edge.
func HasPoliciesWith ¶
func HasPoliciesWith(preds ...predicate.ReleasePolicy) predicate.Project
HasPoliciesWith applies the HasEdge predicate on the "policies" edge with a given conditions (other predicates).
func HasReposWith ¶
HasReposWith applies the HasEdge predicate on the "repos" edge with a given conditions (other predicates).
func HasVulnerabilityReviews ¶
HasVulnerabilityReviews applies the HasEdge predicate on the "vulnerability_reviews" edge.
func HasVulnerabilityReviewsWith ¶
func HasVulnerabilityReviewsWith(preds ...predicate.VulnerabilityReview) predicate.Project
HasVulnerabilityReviewsWith applies the HasEdge predicate on the "vulnerability_reviews" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.