Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.CASMapping) predicate.CASMapping
- func CreatedAt(v time.Time) predicate.CASMapping
- func CreatedAtEQ(v time.Time) predicate.CASMapping
- func CreatedAtGT(v time.Time) predicate.CASMapping
- func CreatedAtGTE(v time.Time) predicate.CASMapping
- func CreatedAtIn(vs ...time.Time) predicate.CASMapping
- func CreatedAtLT(v time.Time) predicate.CASMapping
- func CreatedAtLTE(v time.Time) predicate.CASMapping
- func CreatedAtNEQ(v time.Time) predicate.CASMapping
- func CreatedAtNotIn(vs ...time.Time) predicate.CASMapping
- func Digest(v string) predicate.CASMapping
- func DigestContains(v string) predicate.CASMapping
- func DigestContainsFold(v string) predicate.CASMapping
- func DigestEQ(v string) predicate.CASMapping
- func DigestEqualFold(v string) predicate.CASMapping
- func DigestGT(v string) predicate.CASMapping
- func DigestGTE(v string) predicate.CASMapping
- func DigestHasPrefix(v string) predicate.CASMapping
- func DigestHasSuffix(v string) predicate.CASMapping
- func DigestIn(vs ...string) predicate.CASMapping
- func DigestLT(v string) predicate.CASMapping
- func DigestLTE(v string) predicate.CASMapping
- func DigestNEQ(v string) predicate.CASMapping
- func DigestNotIn(vs ...string) predicate.CASMapping
- func HasCasBackend() predicate.CASMapping
- func HasCasBackendWith(preds ...predicate.CASBackend) predicate.CASMapping
- func HasOrganization() predicate.CASMapping
- func HasOrganizationWith(preds ...predicate.Organization) predicate.CASMapping
- func HasWorkflowRun() predicate.CASMapping
- func HasWorkflowRunWith(preds ...predicate.WorkflowRun) predicate.CASMapping
- func ID(id uuid.UUID) predicate.CASMapping
- func IDEQ(id uuid.UUID) predicate.CASMapping
- func IDGT(id uuid.UUID) predicate.CASMapping
- func IDGTE(id uuid.UUID) predicate.CASMapping
- func IDIn(ids ...uuid.UUID) predicate.CASMapping
- func IDLT(id uuid.UUID) predicate.CASMapping
- func IDLTE(id uuid.UUID) predicate.CASMapping
- func IDNEQ(id uuid.UUID) predicate.CASMapping
- func IDNotIn(ids ...uuid.UUID) predicate.CASMapping
- func Not(p predicate.CASMapping) predicate.CASMapping
- func Or(predicates ...predicate.CASMapping) predicate.CASMapping
- func ValidColumn(column string) bool
- type OrderOption
- func ByCasBackendField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDigest(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByWorkflowRunField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the casmapping type in the database. Label = "cas_mapping" // 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" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeCasBackend holds the string denoting the cas_backend edge name in mutations. EdgeCasBackend = "cas_backend" // EdgeWorkflowRun holds the string denoting the workflow_run edge name in mutations. EdgeWorkflowRun = "workflow_run" // EdgeOrganization holds the string denoting the organization edge name in mutations. EdgeOrganization = "organization" // Table holds the table name of the casmapping in the database. Table = "cas_mappings" // CasBackendTable is the table that holds the cas_backend relation/edge. CasBackendTable = "cas_mappings" // CasBackendInverseTable is the table name for the CASBackend entity. // It exists in this package in order to avoid circular dependency with the "casbackend" package. CasBackendInverseTable = "cas_backends" // CasBackendColumn is the table column denoting the cas_backend relation/edge. CasBackendColumn = "cas_mapping_cas_backend" // WorkflowRunTable is the table that holds the workflow_run relation/edge. WorkflowRunTable = "cas_mappings" // WorkflowRunInverseTable is the table name for the WorkflowRun entity. // It exists in this package in order to avoid circular dependency with the "workflowrun" package. WorkflowRunInverseTable = "workflow_runs" // WorkflowRunColumn is the table column denoting the workflow_run relation/edge. WorkflowRunColumn = "cas_mapping_workflow_run" // OrganizationTable is the table that holds the organization relation/edge. OrganizationTable = "cas_mappings" // OrganizationInverseTable is the table name for the Organization entity. // It exists in this package in order to avoid circular dependency with the "organization" package. OrganizationInverseTable = "organizations" // OrganizationColumn is the table column denoting the organization relation/edge. OrganizationColumn = "cas_mapping_organization" )
Variables ¶
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, FieldCreatedAt, }
Columns holds all SQL columns for casmapping fields.
var ForeignKeys = []string{
"cas_mapping_cas_backend",
"cas_mapping_workflow_run",
"cas_mapping_organization",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "cas_mappings" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.CASMapping) predicate.CASMapping
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.CASMapping
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.CASMapping
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.CASMapping
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.CASMapping
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.CASMapping
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.CASMapping
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.CASMapping
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.CASMapping
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.CASMapping
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Digest ¶
func Digest(v string) predicate.CASMapping
Digest applies equality check predicate on the "digest" field. It's identical to DigestEQ.
func DigestContains ¶
func DigestContains(v string) predicate.CASMapping
DigestContains applies the Contains predicate on the "digest" field.
func DigestContainsFold ¶
func DigestContainsFold(v string) predicate.CASMapping
DigestContainsFold applies the ContainsFold predicate on the "digest" field.
func DigestEQ ¶
func DigestEQ(v string) predicate.CASMapping
DigestEQ applies the EQ predicate on the "digest" field.
func DigestEqualFold ¶
func DigestEqualFold(v string) predicate.CASMapping
DigestEqualFold applies the EqualFold predicate on the "digest" field.
func DigestGT ¶
func DigestGT(v string) predicate.CASMapping
DigestGT applies the GT predicate on the "digest" field.
func DigestGTE ¶
func DigestGTE(v string) predicate.CASMapping
DigestGTE applies the GTE predicate on the "digest" field.
func DigestHasPrefix ¶
func DigestHasPrefix(v string) predicate.CASMapping
DigestHasPrefix applies the HasPrefix predicate on the "digest" field.
func DigestHasSuffix ¶
func DigestHasSuffix(v string) predicate.CASMapping
DigestHasSuffix applies the HasSuffix predicate on the "digest" field.
func DigestIn ¶
func DigestIn(vs ...string) predicate.CASMapping
DigestIn applies the In predicate on the "digest" field.
func DigestLT ¶
func DigestLT(v string) predicate.CASMapping
DigestLT applies the LT predicate on the "digest" field.
func DigestLTE ¶
func DigestLTE(v string) predicate.CASMapping
DigestLTE applies the LTE predicate on the "digest" field.
func DigestNEQ ¶
func DigestNEQ(v string) predicate.CASMapping
DigestNEQ applies the NEQ predicate on the "digest" field.
func DigestNotIn ¶
func DigestNotIn(vs ...string) predicate.CASMapping
DigestNotIn applies the NotIn predicate on the "digest" field.
func HasCasBackend ¶
func HasCasBackend() predicate.CASMapping
HasCasBackend applies the HasEdge predicate on the "cas_backend" edge.
func HasCasBackendWith ¶
func HasCasBackendWith(preds ...predicate.CASBackend) predicate.CASMapping
HasCasBackendWith applies the HasEdge predicate on the "cas_backend" edge with a given conditions (other predicates).
func HasOrganization ¶
func HasOrganization() predicate.CASMapping
HasOrganization applies the HasEdge predicate on the "organization" edge.
func HasOrganizationWith ¶
func HasOrganizationWith(preds ...predicate.Organization) predicate.CASMapping
HasOrganizationWith applies the HasEdge predicate on the "organization" edge with a given conditions (other predicates).
func HasWorkflowRun ¶
func HasWorkflowRun() predicate.CASMapping
HasWorkflowRun applies the HasEdge predicate on the "workflow_run" edge.
func HasWorkflowRunWith ¶
func HasWorkflowRunWith(preds ...predicate.WorkflowRun) predicate.CASMapping
HasWorkflowRunWith applies the HasEdge predicate on the "workflow_run" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.CASMapping
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.CASMapping
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.CASMapping
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.CASMapping
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.CASMapping
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.CASMapping
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.CASMapping
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.CASMapping
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.CASMapping) predicate.CASMapping
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.CASMapping) predicate.CASMapping
Or groups predicates with the OR operator between them.
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 CASMapping queries.
func ByCasBackendField ¶
func ByCasBackendField(field string, opts ...sql.OrderTermOption) OrderOption
ByCasBackendField orders the results by cas_backend field.
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 ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOrganizationField ¶
func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrganizationField orders the results by organization field.
func ByWorkflowRunField ¶
func ByWorkflowRunField(field string, opts ...sql.OrderTermOption) OrderOption
ByWorkflowRunField orders the results by workflow_run field.