referrer

package
v0.140.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

View Source
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"}
)
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 referrer fields.

Functions

func And

func And(predicates ...predicate.Referrer) predicate.Referrer

And groups predicates with the AND operator between them.

func AnnotationsIsNil

func AnnotationsIsNil() predicate.Referrer

AnnotationsIsNil applies the IsNil predicate on the "annotations" field.

func AnnotationsNotNil

func AnnotationsNotNil() predicate.Referrer

AnnotationsNotNil applies the NotNil predicate on the "annotations" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Referrer

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Referrer

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Referrer

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Referrer

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Referrer

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Referrer

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Referrer

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Referrer

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Referrer

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Digest

func Digest(v string) predicate.Referrer

Digest applies equality check predicate on the "digest" field. It's identical to DigestEQ.

func DigestContains

func DigestContains(v string) predicate.Referrer

DigestContains applies the Contains predicate on the "digest" field.

func DigestContainsFold

func DigestContainsFold(v string) predicate.Referrer

DigestContainsFold applies the ContainsFold predicate on the "digest" field.

func DigestEQ

func DigestEQ(v string) predicate.Referrer

DigestEQ applies the EQ predicate on the "digest" field.

func DigestEqualFold

func DigestEqualFold(v string) predicate.Referrer

DigestEqualFold applies the EqualFold predicate on the "digest" field.

func DigestGT

func DigestGT(v string) predicate.Referrer

DigestGT applies the GT predicate on the "digest" field.

func DigestGTE

func DigestGTE(v string) predicate.Referrer

DigestGTE applies the GTE predicate on the "digest" field.

func DigestHasPrefix

func DigestHasPrefix(v string) predicate.Referrer

DigestHasPrefix applies the HasPrefix predicate on the "digest" field.

func DigestHasSuffix

func DigestHasSuffix(v string) predicate.Referrer

DigestHasSuffix applies the HasSuffix predicate on the "digest" field.

func DigestIn

func DigestIn(vs ...string) predicate.Referrer

DigestIn applies the In predicate on the "digest" field.

func DigestLT

func DigestLT(v string) predicate.Referrer

DigestLT applies the LT predicate on the "digest" field.

func DigestLTE

func DigestLTE(v string) predicate.Referrer

DigestLTE applies the LTE predicate on the "digest" field.

func DigestNEQ

func DigestNEQ(v string) predicate.Referrer

DigestNEQ applies the NEQ predicate on the "digest" field.

func DigestNotIn

func DigestNotIn(vs ...string) predicate.Referrer

DigestNotIn applies the NotIn predicate on the "digest" field.

func Downloadable

func Downloadable(v bool) predicate.Referrer

Downloadable applies equality check predicate on the "downloadable" field. It's identical to DownloadableEQ.

func DownloadableEQ

func DownloadableEQ(v bool) predicate.Referrer

DownloadableEQ applies the EQ predicate on the "downloadable" field.

func DownloadableNEQ

func DownloadableNEQ(v bool) predicate.Referrer

DownloadableNEQ applies the NEQ predicate on the "downloadable" field.

func HasReferences

func HasReferences() predicate.Referrer

HasReferences applies the HasEdge predicate on the "references" edge.

func HasReferencesWith

func HasReferencesWith(preds ...predicate.Referrer) predicate.Referrer

HasReferencesWith applies the HasEdge predicate on the "references" edge with a given conditions (other predicates).

func HasReferredBy

func HasReferredBy() predicate.Referrer

HasReferredBy applies the HasEdge predicate on the "referred_by" edge.

func HasReferredByWith

func HasReferredByWith(preds ...predicate.Referrer) predicate.Referrer

HasReferredByWith applies the HasEdge predicate on the "referred_by" edge with a given conditions (other predicates).

func HasWorkflows

func HasWorkflows() predicate.Referrer

HasWorkflows applies the HasEdge predicate on the "workflows" edge.

func HasWorkflowsWith

func HasWorkflowsWith(preds ...predicate.Workflow) predicate.Referrer

HasWorkflowsWith applies the HasEdge predicate on the "workflows" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.Referrer

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Referrer

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Referrer

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Referrer

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Referrer

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Referrer

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Referrer

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Referrer

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Referrer

IDNotIn applies the NotIn predicate on the ID field.

func Kind

func Kind(v string) predicate.Referrer

Kind applies equality check predicate on the "kind" field. It's identical to KindEQ.

func KindContains

func KindContains(v string) predicate.Referrer

KindContains applies the Contains predicate on the "kind" field.

func KindContainsFold

func KindContainsFold(v string) predicate.Referrer

KindContainsFold applies the ContainsFold predicate on the "kind" field.

func KindEQ

func KindEQ(v string) predicate.Referrer

KindEQ applies the EQ predicate on the "kind" field.

func KindEqualFold

func KindEqualFold(v string) predicate.Referrer

KindEqualFold applies the EqualFold predicate on the "kind" field.

func KindGT

func KindGT(v string) predicate.Referrer

KindGT applies the GT predicate on the "kind" field.

func KindGTE

func KindGTE(v string) predicate.Referrer

KindGTE applies the GTE predicate on the "kind" field.

func KindHasPrefix

func KindHasPrefix(v string) predicate.Referrer

KindHasPrefix applies the HasPrefix predicate on the "kind" field.

func KindHasSuffix

func KindHasSuffix(v string) predicate.Referrer

KindHasSuffix applies the HasSuffix predicate on the "kind" field.

func KindIn

func KindIn(vs ...string) predicate.Referrer

KindIn applies the In predicate on the "kind" field.

func KindLT

func KindLT(v string) predicate.Referrer

KindLT applies the LT predicate on the "kind" field.

func KindLTE

func KindLTE(v string) predicate.Referrer

KindLTE applies the LTE predicate on the "kind" field.

func KindNEQ

func KindNEQ(v string) predicate.Referrer

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...string) predicate.Referrer

KindNotIn applies the NotIn predicate on the "kind" field.

func MetadataIsNil

func MetadataIsNil() predicate.Referrer

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.Referrer

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Referrer) predicate.Referrer

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 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.

Jump to

Keyboard shortcuts

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