scheduler

package
v0.0.0-...-bfbcaf2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the scheduler type in the database.
	Label = "scheduler"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldNameInWorker holds the string denoting the name_in_worker field in the database.
	FieldNameInWorker = "name_in_worker"
	// FieldIsActive holds the string denoting the is_active field in the database.
	FieldIsActive = "is_active"
	// FieldIsDefault holds the string denoting the is_default field in the database.
	FieldIsDefault = "is_default"
	// FieldIsHidden holds the string denoting the is_hidden field in the database.
	FieldIsHidden = "is_hidden"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// EdgeGenerations holds the string denoting the generations edge name in mutations.
	EdgeGenerations = "generations"
	// EdgeGenerationModels holds the string denoting the generation_models edge name in mutations.
	EdgeGenerationModels = "generation_models"
	// Table holds the table name of the scheduler in the database.
	Table = "schedulers"
	// GenerationsTable is the table that holds the generations relation/edge.
	GenerationsTable = "generations"
	// GenerationsInverseTable is the table name for the Generation entity.
	// It exists in this package in order to avoid circular dependency with the "generation" package.
	GenerationsInverseTable = "generations"
	// GenerationsColumn is the table column denoting the generations relation/edge.
	GenerationsColumn = "scheduler_id"
	// GenerationModelsTable is the table that holds the generation_models relation/edge. The primary key declared below.
	GenerationModelsTable = "generation_model_compatible_schedulers"
	// GenerationModelsInverseTable is the table name for the GenerationModel entity.
	// It exists in this package in order to avoid circular dependency with the "generationmodel" package.
	GenerationModelsInverseTable = "generation_models"
)

Variables

View Source
var (
	// DefaultIsActive holds the default value on creation for the "is_active" field.
	DefaultIsActive bool
	// DefaultIsDefault holds the default value on creation for the "is_default" field.
	DefaultIsDefault bool
	// DefaultIsHidden holds the default value on creation for the "is_hidden" field.
	DefaultIsHidden bool
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for scheduler fields.

View Source
var (
	// GenerationModelsPrimaryKey and GenerationModelsColumn2 are the table columns denoting the
	// primary key for the generation_models relation (M2M).
	GenerationModelsPrimaryKey = []string{"generation_model_id", "scheduler_id"}
)

Functions

func And

func And(predicates ...predicate.Scheduler) predicate.Scheduler

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Scheduler

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Scheduler

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Scheduler

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Scheduler

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Scheduler

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Scheduler

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Scheduler

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

func CreatedAtNotIn

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

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

func HasGenerationModels

func HasGenerationModels() predicate.Scheduler

HasGenerationModels applies the HasEdge predicate on the "generation_models" edge.

func HasGenerationModelsWith

func HasGenerationModelsWith(preds ...predicate.GenerationModel) predicate.Scheduler

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

func HasGenerations

func HasGenerations() predicate.Scheduler

HasGenerations applies the HasEdge predicate on the "generations" edge.

func HasGenerationsWith

func HasGenerationsWith(preds ...predicate.Generation) predicate.Scheduler

HasGenerationsWith applies the HasEdge predicate on the "generations" 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.Scheduler

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Scheduler

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Scheduler

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Scheduler

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Scheduler

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Scheduler

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsActive

func IsActive(v bool) predicate.Scheduler

IsActive applies equality check predicate on the "is_active" field. It's identical to IsActiveEQ.

func IsActiveEQ

func IsActiveEQ(v bool) predicate.Scheduler

IsActiveEQ applies the EQ predicate on the "is_active" field.

func IsActiveNEQ

func IsActiveNEQ(v bool) predicate.Scheduler

IsActiveNEQ applies the NEQ predicate on the "is_active" field.

func IsDefault

func IsDefault(v bool) predicate.Scheduler

IsDefault applies equality check predicate on the "is_default" field. It's identical to IsDefaultEQ.

func IsDefaultEQ

func IsDefaultEQ(v bool) predicate.Scheduler

IsDefaultEQ applies the EQ predicate on the "is_default" field.

func IsDefaultNEQ

func IsDefaultNEQ(v bool) predicate.Scheduler

IsDefaultNEQ applies the NEQ predicate on the "is_default" field.

func IsHidden

func IsHidden(v bool) predicate.Scheduler

IsHidden applies equality check predicate on the "is_hidden" field. It's identical to IsHiddenEQ.

func IsHiddenEQ

func IsHiddenEQ(v bool) predicate.Scheduler

IsHiddenEQ applies the EQ predicate on the "is_hidden" field.

func IsHiddenNEQ

func IsHiddenNEQ(v bool) predicate.Scheduler

IsHiddenNEQ applies the NEQ predicate on the "is_hidden" field.

func NameInWorker

func NameInWorker(v string) predicate.Scheduler

NameInWorker applies equality check predicate on the "name_in_worker" field. It's identical to NameInWorkerEQ.

func NameInWorkerContains

func NameInWorkerContains(v string) predicate.Scheduler

NameInWorkerContains applies the Contains predicate on the "name_in_worker" field.

func NameInWorkerContainsFold

func NameInWorkerContainsFold(v string) predicate.Scheduler

NameInWorkerContainsFold applies the ContainsFold predicate on the "name_in_worker" field.

func NameInWorkerEQ

func NameInWorkerEQ(v string) predicate.Scheduler

NameInWorkerEQ applies the EQ predicate on the "name_in_worker" field.

func NameInWorkerEqualFold

func NameInWorkerEqualFold(v string) predicate.Scheduler

NameInWorkerEqualFold applies the EqualFold predicate on the "name_in_worker" field.

func NameInWorkerGT

func NameInWorkerGT(v string) predicate.Scheduler

NameInWorkerGT applies the GT predicate on the "name_in_worker" field.

func NameInWorkerGTE

func NameInWorkerGTE(v string) predicate.Scheduler

NameInWorkerGTE applies the GTE predicate on the "name_in_worker" field.

func NameInWorkerHasPrefix

func NameInWorkerHasPrefix(v string) predicate.Scheduler

NameInWorkerHasPrefix applies the HasPrefix predicate on the "name_in_worker" field.

func NameInWorkerHasSuffix

func NameInWorkerHasSuffix(v string) predicate.Scheduler

NameInWorkerHasSuffix applies the HasSuffix predicate on the "name_in_worker" field.

func NameInWorkerIn

func NameInWorkerIn(vs ...string) predicate.Scheduler

NameInWorkerIn applies the In predicate on the "name_in_worker" field.

func NameInWorkerLT

func NameInWorkerLT(v string) predicate.Scheduler

NameInWorkerLT applies the LT predicate on the "name_in_worker" field.

func NameInWorkerLTE

func NameInWorkerLTE(v string) predicate.Scheduler

NameInWorkerLTE applies the LTE predicate on the "name_in_worker" field.

func NameInWorkerNEQ

func NameInWorkerNEQ(v string) predicate.Scheduler

NameInWorkerNEQ applies the NEQ predicate on the "name_in_worker" field.

func NameInWorkerNotIn

func NameInWorkerNotIn(vs ...string) predicate.Scheduler

NameInWorkerNotIn applies the NotIn predicate on the "name_in_worker" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Scheduler) predicate.Scheduler

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Scheduler

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Scheduler

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Scheduler

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Scheduler

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Scheduler

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Scheduler

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Scheduler

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Scheduler

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Scheduler

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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