casmapping

package
v0.55.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for casmapping fields.

View Source
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 ID

ID filters vertices based on their ID field.

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

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

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL