Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Referrer) predicate.Referrer
- func AnnotationsIsNil() predicate.Referrer
- func AnnotationsNotNil() predicate.Referrer
- func CreatedAt(v time.Time) predicate.Referrer
- func CreatedAtEQ(v time.Time) predicate.Referrer
- func CreatedAtGT(v time.Time) predicate.Referrer
- func CreatedAtGTE(v time.Time) predicate.Referrer
- func CreatedAtIn(vs ...time.Time) predicate.Referrer
- func CreatedAtLT(v time.Time) predicate.Referrer
- func CreatedAtLTE(v time.Time) predicate.Referrer
- func CreatedAtNEQ(v time.Time) predicate.Referrer
- func CreatedAtNotIn(vs ...time.Time) predicate.Referrer
- func Digest(v string) predicate.Referrer
- func DigestContains(v string) predicate.Referrer
- func DigestContainsFold(v string) predicate.Referrer
- func DigestEQ(v string) predicate.Referrer
- func DigestEqualFold(v string) predicate.Referrer
- func DigestGT(v string) predicate.Referrer
- func DigestGTE(v string) predicate.Referrer
- func DigestHasPrefix(v string) predicate.Referrer
- func DigestHasSuffix(v string) predicate.Referrer
- func DigestIn(vs ...string) predicate.Referrer
- func DigestLT(v string) predicate.Referrer
- func DigestLTE(v string) predicate.Referrer
- func DigestNEQ(v string) predicate.Referrer
- func DigestNotIn(vs ...string) predicate.Referrer
- func Downloadable(v bool) predicate.Referrer
- func DownloadableEQ(v bool) predicate.Referrer
- func DownloadableNEQ(v bool) predicate.Referrer
- func HasReferences() predicate.Referrer
- func HasReferencesWith(preds ...predicate.Referrer) predicate.Referrer
- func HasReferredBy() predicate.Referrer
- func HasReferredByWith(preds ...predicate.Referrer) predicate.Referrer
- func HasWorkflows() predicate.Referrer
- func HasWorkflowsWith(preds ...predicate.Workflow) predicate.Referrer
- func ID(id uuid.UUID) predicate.Referrer
- func IDEQ(id uuid.UUID) predicate.Referrer
- func IDGT(id uuid.UUID) predicate.Referrer
- func IDGTE(id uuid.UUID) predicate.Referrer
- func IDIn(ids ...uuid.UUID) predicate.Referrer
- func IDLT(id uuid.UUID) predicate.Referrer
- func IDLTE(id uuid.UUID) predicate.Referrer
- func IDNEQ(id uuid.UUID) predicate.Referrer
- func IDNotIn(ids ...uuid.UUID) predicate.Referrer
- func Kind(v string) predicate.Referrer
- func KindContains(v string) predicate.Referrer
- func KindContainsFold(v string) predicate.Referrer
- func KindEQ(v string) predicate.Referrer
- func KindEqualFold(v string) predicate.Referrer
- func KindGT(v string) predicate.Referrer
- func KindGTE(v string) predicate.Referrer
- func KindHasPrefix(v string) predicate.Referrer
- func KindHasSuffix(v string) predicate.Referrer
- func KindIn(vs ...string) predicate.Referrer
- func KindLT(v string) predicate.Referrer
- func KindLTE(v string) predicate.Referrer
- func KindNEQ(v string) predicate.Referrer
- func KindNotIn(vs ...string) predicate.Referrer
- func MetadataIsNil() predicate.Referrer
- func MetadataNotNil() predicate.Referrer
- func Not(p predicate.Referrer) predicate.Referrer
- func Or(predicates ...predicate.Referrer) predicate.Referrer
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDigest(opts ...sql.OrderTermOption) OrderOption
- func ByDownloadable(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKind(opts ...sql.OrderTermOption) OrderOption
- func ByReferences(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByReferencesCount(opts ...sql.OrderTermOption) OrderOption
- func ByReferredBy(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByReferredByCount(opts ...sql.OrderTermOption) OrderOption
- func ByWorkflows(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByWorkflowsCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the referrer type in the database. Label = "referrer" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldDigest holds the string denoting the digest field in the database. FieldDigest = "digest" // FieldKind holds the string denoting the kind field in the database. FieldKind = "kind" // FieldDownloadable holds the string denoting the downloadable field in the database. FieldDownloadable = "downloadable" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // FieldAnnotations holds the string denoting the annotations field in the database. FieldAnnotations = "annotations" // EdgeReferredBy holds the string denoting the referred_by edge name in mutations. EdgeReferredBy = "referred_by" // EdgeReferences holds the string denoting the references edge name in mutations. EdgeReferences = "references" // EdgeWorkflows holds the string denoting the workflows edge name in mutations. EdgeWorkflows = "workflows" // Table holds the table name of the referrer in the database. Table = "referrers" // ReferredByTable is the table that holds the referred_by relation/edge. The primary key declared below. ReferredByTable = "referrer_references" // ReferencesTable is the table that holds the references relation/edge. The primary key declared below. ReferencesTable = "referrer_references" // WorkflowsTable is the table that holds the workflows relation/edge. The primary key declared below. WorkflowsTable = "referrer_workflows" // WorkflowsInverseTable is the table name for the Workflow entity. // It exists in this package in order to avoid circular dependency with the "workflow" package. WorkflowsInverseTable = "workflows" )
Variables ¶
var ( // ReferredByPrimaryKey and ReferredByColumn2 are the table columns denoting the // primary key for the referred_by relation (M2M). ReferredByPrimaryKey = []string{"referrer_id", "referred_by_id"} // ReferencesPrimaryKey and ReferencesColumn2 are the table columns denoting the // primary key for the references relation (M2M). ReferencesPrimaryKey = []string{"referrer_id", "referred_by_id"} // WorkflowsPrimaryKey and WorkflowsColumn2 are the table columns denoting the // primary key for the workflows relation (M2M). WorkflowsPrimaryKey = []string{"referrer_id", "workflow_id"} )
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldDigest, FieldKind, FieldDownloadable, FieldCreatedAt, FieldMetadata, FieldAnnotations, }
Columns holds all SQL columns for referrer fields.
Functions ¶
func AnnotationsIsNil ¶
AnnotationsIsNil applies the IsNil predicate on the "annotations" field.
func AnnotationsNotNil ¶
AnnotationsNotNil applies the NotNil predicate on the "annotations" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Digest ¶
Digest applies equality check predicate on the "digest" field. It's identical to DigestEQ.
func DigestContains ¶
DigestContains applies the Contains predicate on the "digest" field.
func DigestContainsFold ¶
DigestContainsFold applies the ContainsFold predicate on the "digest" field.
func DigestEqualFold ¶
DigestEqualFold applies the EqualFold predicate on the "digest" field.
func DigestHasPrefix ¶
DigestHasPrefix applies the HasPrefix predicate on the "digest" field.
func DigestHasSuffix ¶
DigestHasSuffix applies the HasSuffix predicate on the "digest" field.
func DigestNotIn ¶
DigestNotIn applies the NotIn predicate on the "digest" field.
func Downloadable ¶
Downloadable applies equality check predicate on the "downloadable" field. It's identical to DownloadableEQ.
func DownloadableEQ ¶
DownloadableEQ applies the EQ predicate on the "downloadable" field.
func DownloadableNEQ ¶
DownloadableNEQ applies the NEQ predicate on the "downloadable" field.
func HasReferences ¶
HasReferences applies the HasEdge predicate on the "references" edge.
func HasReferencesWith ¶
HasReferencesWith applies the HasEdge predicate on the "references" edge with a given conditions (other predicates).
func HasReferredBy ¶
HasReferredBy applies the HasEdge predicate on the "referred_by" edge.
func HasReferredByWith ¶
HasReferredByWith applies the HasEdge predicate on the "referred_by" edge with a given conditions (other predicates).
func HasWorkflows ¶
HasWorkflows applies the HasEdge predicate on the "workflows" edge.
func HasWorkflowsWith ¶
HasWorkflowsWith applies the HasEdge predicate on the "workflows" edge with a given conditions (other predicates).
func KindContains ¶
KindContains applies the Contains predicate on the "kind" field.
func KindContainsFold ¶
KindContainsFold applies the ContainsFold predicate on the "kind" field.
func KindEqualFold ¶
KindEqualFold applies the EqualFold predicate on the "kind" field.
func KindHasPrefix ¶
KindHasPrefix applies the HasPrefix predicate on the "kind" field.
func KindHasSuffix ¶
KindHasSuffix applies the HasSuffix predicate on the "kind" field.
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" 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 Referrer queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDigest ¶
func ByDigest(opts ...sql.OrderTermOption) OrderOption
ByDigest orders the results by the digest field.
func ByDownloadable ¶
func ByDownloadable(opts ...sql.OrderTermOption) OrderOption
ByDownloadable orders the results by the downloadable field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKind ¶
func ByKind(opts ...sql.OrderTermOption) OrderOption
ByKind orders the results by the kind field.
func ByReferences ¶
func ByReferences(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByReferences orders the results by references terms.
func ByReferencesCount ¶
func ByReferencesCount(opts ...sql.OrderTermOption) OrderOption
ByReferencesCount orders the results by references count.
func ByReferredBy ¶
func ByReferredBy(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByReferredBy orders the results by referred_by terms.
func ByReferredByCount ¶
func ByReferredByCount(opts ...sql.OrderTermOption) OrderOption
ByReferredByCount orders the results by referred_by count.
func ByWorkflows ¶
func ByWorkflows(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByWorkflows orders the results by workflows terms.
func ByWorkflowsCount ¶
func ByWorkflowsCount(opts ...sql.OrderTermOption) OrderOption
ByWorkflowsCount orders the results by workflows count.