casbackend

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the casbackend type in the database.
	Label = "cas_backend"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldLocation holds the string denoting the location field in the database.
	FieldLocation = "location"
	// FieldProvider holds the string denoting the provider field in the database.
	FieldProvider = "provider"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldSecretName holds the string denoting the secret_name field in the database.
	FieldSecretName = "secret_name"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldValidationStatus holds the string denoting the validation_status field in the database.
	FieldValidationStatus = "validation_status"
	// FieldValidatedAt holds the string denoting the validated_at field in the database.
	FieldValidatedAt = "validated_at"
	// FieldDefault holds the string denoting the default field in the database.
	FieldDefault = "default"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldFallback holds the string denoting the fallback field in the database.
	FieldFallback = "fallback"
	// EdgeOrganization holds the string denoting the organization edge name in mutations.
	EdgeOrganization = "organization"
	// EdgeWorkflowRun holds the string denoting the workflow_run edge name in mutations.
	EdgeWorkflowRun = "workflow_run"
	// Table holds the table name of the casbackend in the database.
	Table = "cas_backends"
	// OrganizationTable is the table that holds the organization relation/edge.
	OrganizationTable = "cas_backends"
	// 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 = "organization_cas_backends"
	// WorkflowRunTable is the table that holds the workflow_run relation/edge. The primary key declared below.
	WorkflowRunTable = "workflow_run_cas_backends"
	// 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"
)
View Source
const DefaultValidationStatus biz.CASBackendValidationStatus = "OK"

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultValidatedAt holds the default value on creation for the "validated_at" field.
	DefaultValidatedAt func() time.Time
	// DefaultDefault holds the default value on creation for the "default" field.
	DefaultDefault bool
	// DefaultFallback holds the default value on creation for the "fallback" field.
	DefaultFallback bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for casbackend fields.

View Source
var ForeignKeys = []string{
	"organization_cas_backends",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "cas_backends" table and are not defined as standalone fields in the schema.

View Source
var (
	// WorkflowRunPrimaryKey and WorkflowRunColumn2 are the table columns denoting the
	// primary key for the workflow_run relation (M2M).
	WorkflowRunPrimaryKey = []string{"workflow_run_id", "cas_backend_id"}
)

Functions

func And

func And(predicates ...predicate.CASBackend) predicate.CASBackend

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.CASBackend

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.CASBackend

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.CASBackend

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.CASBackend

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.CASBackend

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.CASBackend

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.CASBackend

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

func CreatedAtNotIn

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

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

func Default

func Default(v bool) predicate.CASBackend

Default applies equality check predicate on the "default" field. It's identical to DefaultEQ.

func DefaultEQ

func DefaultEQ(v bool) predicate.CASBackend

DefaultEQ applies the EQ predicate on the "default" field.

func DefaultNEQ

func DefaultNEQ(v bool) predicate.CASBackend

DefaultNEQ applies the NEQ predicate on the "default" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.CASBackend

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.CASBackend

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.CASBackend

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.CASBackend

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.CASBackend

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.CASBackend

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.CASBackend

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.CASBackend

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.CASBackend

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.CASBackend

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.CASBackend

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func Description

func Description(v string) predicate.CASBackend

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.CASBackend

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.CASBackend

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.CASBackend

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.CASBackend

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.CASBackend

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.CASBackend

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.CASBackend

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.CASBackend

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.CASBackend

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.CASBackend

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.CASBackend

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.CASBackend

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.CASBackend

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.CASBackend

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.CASBackend

DescriptionNotNil applies the NotNil predicate on the "description" field.

func Fallback

func Fallback(v bool) predicate.CASBackend

Fallback applies equality check predicate on the "fallback" field. It's identical to FallbackEQ.

func FallbackEQ

func FallbackEQ(v bool) predicate.CASBackend

FallbackEQ applies the EQ predicate on the "fallback" field.

func FallbackNEQ

func FallbackNEQ(v bool) predicate.CASBackend

FallbackNEQ applies the NEQ predicate on the "fallback" field.

func HasOrganization

func HasOrganization() predicate.CASBackend

HasOrganization applies the HasEdge predicate on the "organization" edge.

func HasOrganizationWith

func HasOrganizationWith(preds ...predicate.Organization) predicate.CASBackend

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

func HasWorkflowRun

func HasWorkflowRun() predicate.CASBackend

HasWorkflowRun applies the HasEdge predicate on the "workflow_run" edge.

func HasWorkflowRunWith

func HasWorkflowRunWith(preds ...predicate.WorkflowRun) predicate.CASBackend

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

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.CASBackend

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.CASBackend

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.CASBackend

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.CASBackend

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.CASBackend

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Location

func Location(v string) predicate.CASBackend

Location applies equality check predicate on the "location" field. It's identical to LocationEQ.

func LocationContains

func LocationContains(v string) predicate.CASBackend

LocationContains applies the Contains predicate on the "location" field.

func LocationContainsFold

func LocationContainsFold(v string) predicate.CASBackend

LocationContainsFold applies the ContainsFold predicate on the "location" field.

func LocationEQ

func LocationEQ(v string) predicate.CASBackend

LocationEQ applies the EQ predicate on the "location" field.

func LocationEqualFold

func LocationEqualFold(v string) predicate.CASBackend

LocationEqualFold applies the EqualFold predicate on the "location" field.

func LocationGT

func LocationGT(v string) predicate.CASBackend

LocationGT applies the GT predicate on the "location" field.

func LocationGTE

func LocationGTE(v string) predicate.CASBackend

LocationGTE applies the GTE predicate on the "location" field.

func LocationHasPrefix

func LocationHasPrefix(v string) predicate.CASBackend

LocationHasPrefix applies the HasPrefix predicate on the "location" field.

func LocationHasSuffix

func LocationHasSuffix(v string) predicate.CASBackend

LocationHasSuffix applies the HasSuffix predicate on the "location" field.

func LocationIn

func LocationIn(vs ...string) predicate.CASBackend

LocationIn applies the In predicate on the "location" field.

func LocationLT

func LocationLT(v string) predicate.CASBackend

LocationLT applies the LT predicate on the "location" field.

func LocationLTE

func LocationLTE(v string) predicate.CASBackend

LocationLTE applies the LTE predicate on the "location" field.

func LocationNEQ

func LocationNEQ(v string) predicate.CASBackend

LocationNEQ applies the NEQ predicate on the "location" field.

func LocationNotIn

func LocationNotIn(vs ...string) predicate.CASBackend

LocationNotIn applies the NotIn predicate on the "location" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.CASBackend) predicate.CASBackend

Or groups predicates with the OR operator between them.

func ProviderEQ

ProviderEQ applies the EQ predicate on the "provider" field.

func ProviderIn

func ProviderIn(vs ...biz.CASBackendProvider) predicate.CASBackend

ProviderIn applies the In predicate on the "provider" field.

func ProviderNEQ

ProviderNEQ applies the NEQ predicate on the "provider" field.

func ProviderNotIn

func ProviderNotIn(vs ...biz.CASBackendProvider) predicate.CASBackend

ProviderNotIn applies the NotIn predicate on the "provider" field.

func ProviderValidator

func ProviderValidator(pr biz.CASBackendProvider) error

ProviderValidator is a validator for the "provider" field enum values. It is called by the builders before save.

func SecretName

func SecretName(v string) predicate.CASBackend

SecretName applies equality check predicate on the "secret_name" field. It's identical to SecretNameEQ.

func SecretNameContains

func SecretNameContains(v string) predicate.CASBackend

SecretNameContains applies the Contains predicate on the "secret_name" field.

func SecretNameContainsFold

func SecretNameContainsFold(v string) predicate.CASBackend

SecretNameContainsFold applies the ContainsFold predicate on the "secret_name" field.

func SecretNameEQ

func SecretNameEQ(v string) predicate.CASBackend

SecretNameEQ applies the EQ predicate on the "secret_name" field.

func SecretNameEqualFold

func SecretNameEqualFold(v string) predicate.CASBackend

SecretNameEqualFold applies the EqualFold predicate on the "secret_name" field.

func SecretNameGT

func SecretNameGT(v string) predicate.CASBackend

SecretNameGT applies the GT predicate on the "secret_name" field.

func SecretNameGTE

func SecretNameGTE(v string) predicate.CASBackend

SecretNameGTE applies the GTE predicate on the "secret_name" field.

func SecretNameHasPrefix

func SecretNameHasPrefix(v string) predicate.CASBackend

SecretNameHasPrefix applies the HasPrefix predicate on the "secret_name" field.

func SecretNameHasSuffix

func SecretNameHasSuffix(v string) predicate.CASBackend

SecretNameHasSuffix applies the HasSuffix predicate on the "secret_name" field.

func SecretNameIn

func SecretNameIn(vs ...string) predicate.CASBackend

SecretNameIn applies the In predicate on the "secret_name" field.

func SecretNameLT

func SecretNameLT(v string) predicate.CASBackend

SecretNameLT applies the LT predicate on the "secret_name" field.

func SecretNameLTE

func SecretNameLTE(v string) predicate.CASBackend

SecretNameLTE applies the LTE predicate on the "secret_name" field.

func SecretNameNEQ

func SecretNameNEQ(v string) predicate.CASBackend

SecretNameNEQ applies the NEQ predicate on the "secret_name" field.

func SecretNameNotIn

func SecretNameNotIn(vs ...string) predicate.CASBackend

SecretNameNotIn applies the NotIn predicate on the "secret_name" field.

func ValidColumn

func ValidColumn(column string) bool

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

func ValidatedAt

func ValidatedAt(v time.Time) predicate.CASBackend

ValidatedAt applies equality check predicate on the "validated_at" field. It's identical to ValidatedAtEQ.

func ValidatedAtEQ

func ValidatedAtEQ(v time.Time) predicate.CASBackend

ValidatedAtEQ applies the EQ predicate on the "validated_at" field.

func ValidatedAtGT

func ValidatedAtGT(v time.Time) predicate.CASBackend

ValidatedAtGT applies the GT predicate on the "validated_at" field.

func ValidatedAtGTE

func ValidatedAtGTE(v time.Time) predicate.CASBackend

ValidatedAtGTE applies the GTE predicate on the "validated_at" field.

func ValidatedAtIn

func ValidatedAtIn(vs ...time.Time) predicate.CASBackend

ValidatedAtIn applies the In predicate on the "validated_at" field.

func ValidatedAtLT

func ValidatedAtLT(v time.Time) predicate.CASBackend

ValidatedAtLT applies the LT predicate on the "validated_at" field.

func ValidatedAtLTE

func ValidatedAtLTE(v time.Time) predicate.CASBackend

ValidatedAtLTE applies the LTE predicate on the "validated_at" field.

func ValidatedAtNEQ

func ValidatedAtNEQ(v time.Time) predicate.CASBackend

ValidatedAtNEQ applies the NEQ predicate on the "validated_at" field.

func ValidatedAtNotIn

func ValidatedAtNotIn(vs ...time.Time) predicate.CASBackend

ValidatedAtNotIn applies the NotIn predicate on the "validated_at" field.

func ValidationStatusEQ

func ValidationStatusEQ(v biz.CASBackendValidationStatus) predicate.CASBackend

ValidationStatusEQ applies the EQ predicate on the "validation_status" field.

func ValidationStatusIn

func ValidationStatusIn(vs ...biz.CASBackendValidationStatus) predicate.CASBackend

ValidationStatusIn applies the In predicate on the "validation_status" field.

func ValidationStatusNEQ

func ValidationStatusNEQ(v biz.CASBackendValidationStatus) predicate.CASBackend

ValidationStatusNEQ applies the NEQ predicate on the "validation_status" field.

func ValidationStatusNotIn

func ValidationStatusNotIn(vs ...biz.CASBackendValidationStatus) predicate.CASBackend

ValidationStatusNotIn applies the NotIn predicate on the "validation_status" field.

func ValidationStatusValidator

func ValidationStatusValidator(vs biz.CASBackendValidationStatus) error

ValidationStatusValidator is a validator for the "validation_status" field enum values. It is called by the builders before save.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the CASBackend queries.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDefault

func ByDefault(opts ...sql.OrderTermOption) OrderOption

ByDefault orders the results by the default field.

func ByDeletedAt

func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption

ByDeletedAt orders the results by the deleted_at field.

func ByDescription

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByFallback

func ByFallback(opts ...sql.OrderTermOption) OrderOption

ByFallback orders the results by the fallback field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByLocation

func ByLocation(opts ...sql.OrderTermOption) OrderOption

ByLocation orders the results by the location field.

func ByOrganizationField

func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption

ByOrganizationField orders the results by organization field.

func ByProvider

func ByProvider(opts ...sql.OrderTermOption) OrderOption

ByProvider orders the results by the provider field.

func BySecretName

func BySecretName(opts ...sql.OrderTermOption) OrderOption

BySecretName orders the results by the secret_name field.

func ByValidatedAt

func ByValidatedAt(opts ...sql.OrderTermOption) OrderOption

ByValidatedAt orders the results by the validated_at field.

func ByValidationStatus

func ByValidationStatus(opts ...sql.OrderTermOption) OrderOption

ByValidationStatus orders the results by the validation_status field.

func ByWorkflowRun

func ByWorkflowRun(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByWorkflowRun orders the results by workflow_run terms.

func ByWorkflowRunCount

func ByWorkflowRunCount(opts ...sql.OrderTermOption) OrderOption

ByWorkflowRunCount orders the results by workflow_run count.

Jump to

Keyboard shortcuts

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