Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Repo) predicate.Repo
- func DefaultBranch(v string) predicate.Repo
- func DefaultBranchContains(v string) predicate.Repo
- func DefaultBranchContainsFold(v string) predicate.Repo
- func DefaultBranchEQ(v string) predicate.Repo
- func DefaultBranchEqualFold(v string) predicate.Repo
- func DefaultBranchGT(v string) predicate.Repo
- func DefaultBranchGTE(v string) predicate.Repo
- func DefaultBranchHasPrefix(v string) predicate.Repo
- func DefaultBranchHasSuffix(v string) predicate.Repo
- func DefaultBranchIn(vs ...string) predicate.Repo
- func DefaultBranchLT(v string) predicate.Repo
- func DefaultBranchLTE(v string) predicate.Repo
- func DefaultBranchNEQ(v string) predicate.Repo
- func DefaultBranchNotIn(vs ...string) predicate.Repo
- func HasCommits() predicate.Repo
- func HasCommitsWith(preds ...predicate.GitCommit) predicate.Repo
- func HasHead() predicate.Repo
- func HasHeadWith(preds ...predicate.Release) predicate.Repo
- func HasOwner() predicate.Repo
- func HasOwnerWith(preds ...predicate.Organization) predicate.Repo
- func HasPolicies() predicate.Repo
- func HasPoliciesWith(preds ...predicate.ReleasePolicy) predicate.Repo
- func HasProject() predicate.Repo
- func HasProjectWith(preds ...predicate.Project) predicate.Repo
- func HasVulnerabilityReviews() predicate.Repo
- func HasVulnerabilityReviewsWith(preds ...predicate.VulnerabilityReview) predicate.Repo
- func ID(id int) predicate.Repo
- func IDEQ(id int) predicate.Repo
- func IDGT(id int) predicate.Repo
- func IDGTE(id int) predicate.Repo
- func IDIn(ids ...int) predicate.Repo
- func IDLT(id int) predicate.Repo
- func IDLTE(id int) predicate.Repo
- func IDNEQ(id int) predicate.Repo
- func IDNotIn(ids ...int) predicate.Repo
- func Name(v string) predicate.Repo
- func NameContains(v string) predicate.Repo
- func NameContainsFold(v string) predicate.Repo
- func NameEQ(v string) predicate.Repo
- func NameEqualFold(v string) predicate.Repo
- func NameGT(v string) predicate.Repo
- func NameGTE(v string) predicate.Repo
- func NameHasPrefix(v string) predicate.Repo
- func NameHasSuffix(v string) predicate.Repo
- func NameIn(vs ...string) predicate.Repo
- func NameLT(v string) predicate.Repo
- func NameLTE(v string) predicate.Repo
- func NameNEQ(v string) predicate.Repo
- func NameNotIn(vs ...string) predicate.Repo
- func Not(p predicate.Repo) predicate.Repo
- func Or(predicates ...predicate.Repo) predicate.Repo
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the repo type in the database. Label = "repo" // 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" // FieldDefaultBranch holds the string denoting the default_branch field in the database. FieldDefaultBranch = "default_branch" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeProject holds the string denoting the project edge name in mutations. EdgeProject = "project" // EdgeHead holds the string denoting the head edge name in mutations. EdgeHead = "head" // EdgeCommits holds the string denoting the commits edge name in mutations. EdgeCommits = "commits" // 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 repo in the database. Table = "repo" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "repo" // 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 = "repo_owner" // ProjectTable is the table that holds the project relation/edge. ProjectTable = "repo" // ProjectInverseTable is the table name for the Project entity. // It exists in this package in order to avoid circular dependency with the "project" package. ProjectInverseTable = "project" // ProjectColumn is the table column denoting the project relation/edge. ProjectColumn = "repo_project" // HeadTable is the table that holds the head relation/edge. HeadTable = "release" // HeadInverseTable is the table name for the Release entity. // It exists in this package in order to avoid circular dependency with the "release" package. HeadInverseTable = "release" // HeadColumn is the table column denoting the head relation/edge. HeadColumn = "repo_head" // CommitsTable is the table that holds the commits relation/edge. CommitsTable = "commit" // CommitsInverseTable is the table name for the GitCommit entity. // It exists in this package in order to avoid circular dependency with the "gitcommit" package. CommitsInverseTable = "commit" // CommitsColumn is the table column denoting the commits relation/edge. CommitsColumn = "git_commit_repo" // VulnerabilityReviewsTable is the table that holds the vulnerability_reviews relation/edge. The primary key declared below. VulnerabilityReviewsTable = "vulnerability_review_repos" // 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_repos" // 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", "repo_id"} // PoliciesPrimaryKey and PoliciesColumn2 are the table columns denoting the // primary key for the policies relation (M2M). PoliciesPrimaryKey = []string{"release_policy_id", "repo_id"} )
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultDefaultBranch holds the default value on creation for the "default_branch" field. DefaultDefaultBranch string // DefaultBranchValidator is a validator for the "default_branch" field. It is called by the builders before save. DefaultBranchValidator func(string) error )
var Columns = []string{ FieldID, FieldName, FieldDefaultBranch, }
Columns holds all SQL columns for repo fields.
var ForeignKeys = []string{
"repo_owner",
"repo_project",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "repo" table and are not defined as standalone fields in the schema.
Functions ¶
func DefaultBranch ¶
DefaultBranch applies equality check predicate on the "default_branch" field. It's identical to DefaultBranchEQ.
func DefaultBranchContains ¶
DefaultBranchContains applies the Contains predicate on the "default_branch" field.
func DefaultBranchContainsFold ¶
DefaultBranchContainsFold applies the ContainsFold predicate on the "default_branch" field.
func DefaultBranchEQ ¶
DefaultBranchEQ applies the EQ predicate on the "default_branch" field.
func DefaultBranchEqualFold ¶
DefaultBranchEqualFold applies the EqualFold predicate on the "default_branch" field.
func DefaultBranchGT ¶
DefaultBranchGT applies the GT predicate on the "default_branch" field.
func DefaultBranchGTE ¶
DefaultBranchGTE applies the GTE predicate on the "default_branch" field.
func DefaultBranchHasPrefix ¶
DefaultBranchHasPrefix applies the HasPrefix predicate on the "default_branch" field.
func DefaultBranchHasSuffix ¶
DefaultBranchHasSuffix applies the HasSuffix predicate on the "default_branch" field.
func DefaultBranchIn ¶
DefaultBranchIn applies the In predicate on the "default_branch" field.
func DefaultBranchLT ¶
DefaultBranchLT applies the LT predicate on the "default_branch" field.
func DefaultBranchLTE ¶
DefaultBranchLTE applies the LTE predicate on the "default_branch" field.
func DefaultBranchNEQ ¶
DefaultBranchNEQ applies the NEQ predicate on the "default_branch" field.
func DefaultBranchNotIn ¶
DefaultBranchNotIn applies the NotIn predicate on the "default_branch" field.
func HasCommits ¶
HasCommits applies the HasEdge predicate on the "commits" edge.
func HasCommitsWith ¶
HasCommitsWith applies the HasEdge predicate on the "commits" edge with a given conditions (other predicates).
func HasHeadWith ¶
HasHeadWith applies the HasEdge predicate on the "head" edge with a given conditions (other predicates).
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.Organization) predicate.Repo
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.Repo
HasPoliciesWith applies the HasEdge predicate on the "policies" edge with a given conditions (other predicates).
func HasProject ¶
HasProject applies the HasEdge predicate on the "project" edge.
func HasProjectWith ¶
HasProjectWith applies the HasEdge predicate on the "project" 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.Repo
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.