workflow

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the workflow type in the database.
	Label = "workflow"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldCreated holds the string denoting the created field in the database.
	FieldCreated = "created"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldActive holds the string denoting the active field in the database.
	FieldActive = "active"
	// FieldRevision holds the string denoting the revision field in the database.
	FieldRevision = "revision"
	// FieldWorkflow holds the string denoting the workflow field in the database.
	FieldWorkflow = "workflow"
	// FieldLogToEvents holds the string denoting the logtoevents field in the database.
	FieldLogToEvents = "log_to_events"
	// EdgeNamespace holds the string denoting the namespace edge name in mutations.
	EdgeNamespace = "namespace"
	// EdgeInstances holds the string denoting the instances edge name in mutations.
	EdgeInstances = "instances"
	// EdgeWfevents holds the string denoting the wfevents edge name in mutations.
	EdgeWfevents = "wfevents"
	// Table holds the table name of the workflow in the database.
	Table = "workflows"
	// NamespaceTable is the table that holds the namespace relation/edge.
	NamespaceTable = "workflows"
	// NamespaceInverseTable is the table name for the Namespace entity.
	// It exists in this package in order to avoid circular dependency with the "namespace" package.
	NamespaceInverseTable = "namespaces"
	// NamespaceColumn is the table column denoting the namespace relation/edge.
	NamespaceColumn = "namespace_workflows"
	// InstancesTable is the table that holds the instances relation/edge.
	InstancesTable = "workflow_instances"
	// InstancesInverseTable is the table name for the WorkflowInstance entity.
	// It exists in this package in order to avoid circular dependency with the "workflowinstance" package.
	InstancesInverseTable = "workflow_instances"
	// InstancesColumn is the table column denoting the instances relation/edge.
	InstancesColumn = "workflow_instances"
	// WfeventsTable is the table that holds the wfevents relation/edge.
	WfeventsTable = "workflow_events"
	// WfeventsInverseTable is the table name for the WorkflowEvents entity.
	// It exists in this package in order to avoid circular dependency with the "workflowevents" package.
	WfeventsInverseTable = "workflow_events"
	// WfeventsColumn is the table column denoting the wfevents relation/edge.
	WfeventsColumn = "workflow_wfevents"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultCreated holds the default value on creation for the "created" field.
	DefaultCreated func() time.Time
	// DefaultDescription holds the default value on creation for the "description" field.
	DefaultDescription string
	// DescriptionValidator is a validator for the "description" field. It is called by the builders before save.
	DescriptionValidator func(string) error
	// DefaultActive holds the default value on creation for the "active" field.
	DefaultActive bool
	// DefaultRevision holds the default value on creation for the "revision" field.
	DefaultRevision int
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for workflow fields.

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

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

Functions

func Active

func Active(v bool) predicate.Workflow

Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.

func ActiveEQ

func ActiveEQ(v bool) predicate.Workflow

ActiveEQ applies the EQ predicate on the "active" field.

func ActiveNEQ

func ActiveNEQ(v bool) predicate.Workflow

ActiveNEQ applies the NEQ predicate on the "active" field.

func And

func And(predicates ...predicate.Workflow) predicate.Workflow

And groups predicates with the AND operator between them.

func Created

func Created(v time.Time) predicate.Workflow

Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.

func CreatedEQ

func CreatedEQ(v time.Time) predicate.Workflow

CreatedEQ applies the EQ predicate on the "created" field.

func CreatedGT

func CreatedGT(v time.Time) predicate.Workflow

CreatedGT applies the GT predicate on the "created" field.

func CreatedGTE

func CreatedGTE(v time.Time) predicate.Workflow

CreatedGTE applies the GTE predicate on the "created" field.

func CreatedIn

func CreatedIn(vs ...time.Time) predicate.Workflow

CreatedIn applies the In predicate on the "created" field.

func CreatedLT

func CreatedLT(v time.Time) predicate.Workflow

CreatedLT applies the LT predicate on the "created" field.

func CreatedLTE

func CreatedLTE(v time.Time) predicate.Workflow

CreatedLTE applies the LTE predicate on the "created" field.

func CreatedNEQ

func CreatedNEQ(v time.Time) predicate.Workflow

CreatedNEQ applies the NEQ predicate on the "created" field.

func CreatedNotIn

func CreatedNotIn(vs ...time.Time) predicate.Workflow

CreatedNotIn applies the NotIn predicate on the "created" field.

func Description

func Description(v string) predicate.Workflow

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

func DescriptionContains

func DescriptionContains(v string) predicate.Workflow

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Workflow

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Workflow

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Workflow

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

func DescriptionGT

func DescriptionGT(v string) predicate.Workflow

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Workflow

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Workflow

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Workflow

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.Workflow

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

func DescriptionLT

func DescriptionLT(v string) predicate.Workflow

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Workflow

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Workflow

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.Workflow

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

func HasInstances

func HasInstances() predicate.Workflow

HasInstances applies the HasEdge predicate on the "instances" edge.

func HasInstancesWith

func HasInstancesWith(preds ...predicate.WorkflowInstance) predicate.Workflow

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

func HasNamespace

func HasNamespace() predicate.Workflow

HasNamespace applies the HasEdge predicate on the "namespace" edge.

func HasNamespaceWith

func HasNamespaceWith(preds ...predicate.Namespace) predicate.Workflow

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

func HasWfevents

func HasWfevents() predicate.Workflow

HasWfevents applies the HasEdge predicate on the "wfevents" edge.

func HasWfeventsWith

func HasWfeventsWith(preds ...predicate.WorkflowEvents) predicate.Workflow

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

func ID

func ID(id uuid.UUID) predicate.Workflow

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Workflow

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Workflow

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Workflow

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Workflow

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Workflow

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Workflow

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LogToEvents

func LogToEvents(v string) predicate.Workflow

LogToEvents applies equality check predicate on the "logToEvents" field. It's identical to LogToEventsEQ.

func LogToEventsContains

func LogToEventsContains(v string) predicate.Workflow

LogToEventsContains applies the Contains predicate on the "logToEvents" field.

func LogToEventsContainsFold

func LogToEventsContainsFold(v string) predicate.Workflow

LogToEventsContainsFold applies the ContainsFold predicate on the "logToEvents" field.

func LogToEventsEQ

func LogToEventsEQ(v string) predicate.Workflow

LogToEventsEQ applies the EQ predicate on the "logToEvents" field.

func LogToEventsEqualFold

func LogToEventsEqualFold(v string) predicate.Workflow

LogToEventsEqualFold applies the EqualFold predicate on the "logToEvents" field.

func LogToEventsGT

func LogToEventsGT(v string) predicate.Workflow

LogToEventsGT applies the GT predicate on the "logToEvents" field.

func LogToEventsGTE

func LogToEventsGTE(v string) predicate.Workflow

LogToEventsGTE applies the GTE predicate on the "logToEvents" field.

func LogToEventsHasPrefix

func LogToEventsHasPrefix(v string) predicate.Workflow

LogToEventsHasPrefix applies the HasPrefix predicate on the "logToEvents" field.

func LogToEventsHasSuffix

func LogToEventsHasSuffix(v string) predicate.Workflow

LogToEventsHasSuffix applies the HasSuffix predicate on the "logToEvents" field.

func LogToEventsIn

func LogToEventsIn(vs ...string) predicate.Workflow

LogToEventsIn applies the In predicate on the "logToEvents" field.

func LogToEventsIsNil

func LogToEventsIsNil() predicate.Workflow

LogToEventsIsNil applies the IsNil predicate on the "logToEvents" field.

func LogToEventsLT

func LogToEventsLT(v string) predicate.Workflow

LogToEventsLT applies the LT predicate on the "logToEvents" field.

func LogToEventsLTE

func LogToEventsLTE(v string) predicate.Workflow

LogToEventsLTE applies the LTE predicate on the "logToEvents" field.

func LogToEventsNEQ

func LogToEventsNEQ(v string) predicate.Workflow

LogToEventsNEQ applies the NEQ predicate on the "logToEvents" field.

func LogToEventsNotIn

func LogToEventsNotIn(vs ...string) predicate.Workflow

LogToEventsNotIn applies the NotIn predicate on the "logToEvents" field.

func LogToEventsNotNil

func LogToEventsNotNil() predicate.Workflow

LogToEventsNotNil applies the NotNil predicate on the "logToEvents" field.

func Name

func Name(v string) predicate.Workflow

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Workflow

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Workflow

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Workflow

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Workflow

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Workflow

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Workflow

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Workflow

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Workflow

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Workflow

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Workflow

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Workflow

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Workflow

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Workflow

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Workflow) predicate.Workflow

Or groups predicates with the OR operator between them.

func Revision

func Revision(v int) predicate.Workflow

Revision applies equality check predicate on the "revision" field. It's identical to RevisionEQ.

func RevisionEQ

func RevisionEQ(v int) predicate.Workflow

RevisionEQ applies the EQ predicate on the "revision" field.

func RevisionGT

func RevisionGT(v int) predicate.Workflow

RevisionGT applies the GT predicate on the "revision" field.

func RevisionGTE

func RevisionGTE(v int) predicate.Workflow

RevisionGTE applies the GTE predicate on the "revision" field.

func RevisionIn

func RevisionIn(vs ...int) predicate.Workflow

RevisionIn applies the In predicate on the "revision" field.

func RevisionLT

func RevisionLT(v int) predicate.Workflow

RevisionLT applies the LT predicate on the "revision" field.

func RevisionLTE

func RevisionLTE(v int) predicate.Workflow

RevisionLTE applies the LTE predicate on the "revision" field.

func RevisionNEQ

func RevisionNEQ(v int) predicate.Workflow

RevisionNEQ applies the NEQ predicate on the "revision" field.

func RevisionNotIn

func RevisionNotIn(vs ...int) predicate.Workflow

RevisionNotIn applies the NotIn predicate on the "revision" field.

func ValidColumn

func ValidColumn(column string) bool

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

func Workflow

func Workflow(v []byte) predicate.Workflow

Workflow applies equality check predicate on the "workflow" field. It's identical to WorkflowEQ.

func WorkflowEQ

func WorkflowEQ(v []byte) predicate.Workflow

WorkflowEQ applies the EQ predicate on the "workflow" field.

func WorkflowGT

func WorkflowGT(v []byte) predicate.Workflow

WorkflowGT applies the GT predicate on the "workflow" field.

func WorkflowGTE

func WorkflowGTE(v []byte) predicate.Workflow

WorkflowGTE applies the GTE predicate on the "workflow" field.

func WorkflowIn

func WorkflowIn(vs ...[]byte) predicate.Workflow

WorkflowIn applies the In predicate on the "workflow" field.

func WorkflowLT

func WorkflowLT(v []byte) predicate.Workflow

WorkflowLT applies the LT predicate on the "workflow" field.

func WorkflowLTE

func WorkflowLTE(v []byte) predicate.Workflow

WorkflowLTE applies the LTE predicate on the "workflow" field.

func WorkflowNEQ

func WorkflowNEQ(v []byte) predicate.Workflow

WorkflowNEQ applies the NEQ predicate on the "workflow" field.

func WorkflowNotIn

func WorkflowNotIn(vs ...[]byte) predicate.Workflow

WorkflowNotIn applies the NotIn predicate on the "workflow" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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