Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ArtifactReference) predicate.ArtifactReference
- func HasArtifact() predicate.ArtifactReference
- func HasArtifactWith(preds ...predicate.Artifact) predicate.ArtifactReference
- func HasDeploymentPackageFk() predicate.ArtifactReference
- func HasDeploymentPackageFkWith(preds ...predicate.DeploymentPackage) predicate.ArtifactReference
- func ID(id uint64) predicate.ArtifactReference
- func IDEQ(id uint64) predicate.ArtifactReference
- func IDGT(id uint64) predicate.ArtifactReference
- func IDGTE(id uint64) predicate.ArtifactReference
- func IDIn(ids ...uint64) predicate.ArtifactReference
- func IDLT(id uint64) predicate.ArtifactReference
- func IDLTE(id uint64) predicate.ArtifactReference
- func IDNEQ(id uint64) predicate.ArtifactReference
- func IDNotIn(ids ...uint64) predicate.ArtifactReference
- func Not(p predicate.ArtifactReference) predicate.ArtifactReference
- func Or(predicates ...predicate.ArtifactReference) predicate.ArtifactReference
- func Purpose(v string) predicate.ArtifactReference
- func PurposeContains(v string) predicate.ArtifactReference
- func PurposeContainsFold(v string) predicate.ArtifactReference
- func PurposeEQ(v string) predicate.ArtifactReference
- func PurposeEqualFold(v string) predicate.ArtifactReference
- func PurposeGT(v string) predicate.ArtifactReference
- func PurposeGTE(v string) predicate.ArtifactReference
- func PurposeHasPrefix(v string) predicate.ArtifactReference
- func PurposeHasSuffix(v string) predicate.ArtifactReference
- func PurposeIn(vs ...string) predicate.ArtifactReference
- func PurposeLT(v string) predicate.ArtifactReference
- func PurposeLTE(v string) predicate.ArtifactReference
- func PurposeNEQ(v string) predicate.ArtifactReference
- func PurposeNotIn(vs ...string) predicate.ArtifactReference
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the artifactreference type in the database. Label = "artifact_reference" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPurpose holds the string denoting the purpose field in the database. FieldPurpose = "purpose" // EdgeArtifact holds the string denoting the artifact edge name in mutations. EdgeArtifact = "artifact" // EdgeDeploymentPackageFk holds the string denoting the deployment_package_fk edge name in mutations. EdgeDeploymentPackageFk = "deployment_package_fk" // Table holds the table name of the artifactreference in the database. Table = "artifact_references" // ArtifactTable is the table that holds the artifact relation/edge. ArtifactTable = "artifact_references" // ArtifactInverseTable is the table name for the Artifact entity. // It exists in this package in order to avoid circular dependency with the "artifact" package. ArtifactInverseTable = "artifacts" // ArtifactColumn is the table column denoting the artifact relation/edge. ArtifactColumn = "artifact_reference_artifact" // DeploymentPackageFkTable is the table that holds the deployment_package_fk relation/edge. DeploymentPackageFkTable = "artifact_references" // DeploymentPackageFkInverseTable is the table name for the DeploymentPackage entity. // It exists in this package in order to avoid circular dependency with the "deploymentpackage" package. DeploymentPackageFkInverseTable = "deployment_packages" // DeploymentPackageFkColumn is the table column denoting the deployment_package_fk relation/edge. DeploymentPackageFkColumn = "deployment_package_artifacts" )
Variables ¶
var Columns = []string{ FieldID, FieldPurpose, }
Columns holds all SQL columns for artifactreference fields.
var ForeignKeys = []string{
"artifact_reference_artifact",
"deployment_package_artifacts",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "artifact_references" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.ArtifactReference) predicate.ArtifactReference
And groups predicates with the AND operator between them.
func HasArtifact ¶
func HasArtifact() predicate.ArtifactReference
HasArtifact applies the HasEdge predicate on the "artifact" edge.
func HasArtifactWith ¶
func HasArtifactWith(preds ...predicate.Artifact) predicate.ArtifactReference
HasArtifactWith applies the HasEdge predicate on the "artifact" edge with a given conditions (other predicates).
func HasDeploymentPackageFk ¶
func HasDeploymentPackageFk() predicate.ArtifactReference
HasDeploymentPackageFk applies the HasEdge predicate on the "deployment_package_fk" edge.
func HasDeploymentPackageFkWith ¶
func HasDeploymentPackageFkWith(preds ...predicate.DeploymentPackage) predicate.ArtifactReference
HasDeploymentPackageFkWith applies the HasEdge predicate on the "deployment_package_fk" edge with a given conditions (other predicates).
func ID ¶
func ID(id uint64) predicate.ArtifactReference
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uint64) predicate.ArtifactReference
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uint64) predicate.ArtifactReference
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uint64) predicate.ArtifactReference
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uint64) predicate.ArtifactReference
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uint64) predicate.ArtifactReference
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uint64) predicate.ArtifactReference
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uint64) predicate.ArtifactReference
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uint64) predicate.ArtifactReference
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.ArtifactReference) predicate.ArtifactReference
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ArtifactReference) predicate.ArtifactReference
Or groups predicates with the OR operator between them.
func Purpose ¶
func Purpose(v string) predicate.ArtifactReference
Purpose applies equality check predicate on the "purpose" field. It's identical to PurposeEQ.
func PurposeContains ¶
func PurposeContains(v string) predicate.ArtifactReference
PurposeContains applies the Contains predicate on the "purpose" field.
func PurposeContainsFold ¶
func PurposeContainsFold(v string) predicate.ArtifactReference
PurposeContainsFold applies the ContainsFold predicate on the "purpose" field.
func PurposeEQ ¶
func PurposeEQ(v string) predicate.ArtifactReference
PurposeEQ applies the EQ predicate on the "purpose" field.
func PurposeEqualFold ¶
func PurposeEqualFold(v string) predicate.ArtifactReference
PurposeEqualFold applies the EqualFold predicate on the "purpose" field.
func PurposeGT ¶
func PurposeGT(v string) predicate.ArtifactReference
PurposeGT applies the GT predicate on the "purpose" field.
func PurposeGTE ¶
func PurposeGTE(v string) predicate.ArtifactReference
PurposeGTE applies the GTE predicate on the "purpose" field.
func PurposeHasPrefix ¶
func PurposeHasPrefix(v string) predicate.ArtifactReference
PurposeHasPrefix applies the HasPrefix predicate on the "purpose" field.
func PurposeHasSuffix ¶
func PurposeHasSuffix(v string) predicate.ArtifactReference
PurposeHasSuffix applies the HasSuffix predicate on the "purpose" field.
func PurposeIn ¶
func PurposeIn(vs ...string) predicate.ArtifactReference
PurposeIn applies the In predicate on the "purpose" field.
func PurposeLT ¶
func PurposeLT(v string) predicate.ArtifactReference
PurposeLT applies the LT predicate on the "purpose" field.
func PurposeLTE ¶
func PurposeLTE(v string) predicate.ArtifactReference
PurposeLTE applies the LTE predicate on the "purpose" field.
func PurposeNEQ ¶
func PurposeNEQ(v string) predicate.ArtifactReference
PurposeNEQ applies the NEQ predicate on the "purpose" field.
func PurposeNotIn ¶
func PurposeNotIn(vs ...string) predicate.ArtifactReference
PurposeNotIn applies the NotIn predicate on the "purpose" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the ArtifactReference queries.
func ByArtifactField ¶
func ByArtifactField(field string, opts ...sql.OrderTermOption) OrderOption
ByArtifactField orders the results by artifact field.
func ByDeploymentPackageFkField ¶
func ByDeploymentPackageFkField(field string, opts ...sql.OrderTermOption) OrderOption
ByDeploymentPackageFkField orders the results by deployment_package_fk field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPurpose ¶
func ByPurpose(opts ...sql.OrderTermOption) OrderOption
ByPurpose orders the results by the purpose field.