workflow

package
v0.4.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 8 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"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldLabels holds the string denoting the labels field in the database.
	FieldLabels = "labels"
	// FieldAnnotations holds the string denoting the annotations field in the database.
	FieldAnnotations = "annotations"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldProjectID holds the string denoting the project_id field in the database.
	FieldProjectID = "project_id"
	// FieldEnvironmentID holds the string denoting the environment_id field in the database.
	FieldEnvironmentID = "environment_id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldParallelism holds the string denoting the parallelism field in the database.
	FieldParallelism = "parallelism"
	// FieldTimeout holds the string denoting the timeout field in the database.
	FieldTimeout = "timeout"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldVariables holds the string denoting the variables field in the database.
	FieldVariables = "variables"
	// EdgeProject holds the string denoting the project edge name in mutations.
	EdgeProject = "project"
	// EdgeStages holds the string denoting the stages edge name in mutations.
	EdgeStages = "stages"
	// EdgeExecutions holds the string denoting the executions edge name in mutations.
	EdgeExecutions = "executions"
	// Table holds the table name of the workflow in the database.
	Table = "workflows"
	// ProjectTable is the table that holds the project relation/edge.
	ProjectTable = "workflows"
	// ProjectInverseTable is the table name for the Project entity.
	// It exists in this package in order to avoid circular dependency with the "project" package.
	ProjectInverseTable = "projects"
	// ProjectColumn is the table column denoting the project relation/edge.
	ProjectColumn = "project_id"
	// StagesTable is the table that holds the stages relation/edge.
	StagesTable = "workflow_stages"
	// StagesInverseTable is the table name for the WorkflowStage entity.
	// It exists in this package in order to avoid circular dependency with the "workflowstage" package.
	StagesInverseTable = "workflow_stages"
	// StagesColumn is the table column denoting the stages relation/edge.
	StagesColumn = "workflow_id"
	// ExecutionsTable is the table that holds the executions relation/edge.
	ExecutionsTable = "workflow_executions"
	// ExecutionsInverseTable is the table name for the WorkflowExecution entity.
	// It exists in this package in order to avoid circular dependency with the "workflowexecution" package.
	ExecutionsInverseTable = "workflow_executions"
	// ExecutionsColumn is the table column denoting the executions relation/edge.
	ExecutionsColumn = "workflow_id"
)

Variables

View Source
var (
	Hooks        [1]ent.Hook
	Interceptors [1]ent.Interceptor
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultLabels holds the default value on creation for the "labels" field.
	DefaultLabels map[string]string
	// DefaultAnnotations holds the default value on creation for the "annotations" field.
	DefaultAnnotations map[string]string
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
	// ProjectIDValidator is a validator for the "project_id" field. It is called by the builders before save.
	ProjectIDValidator func(string) error
	// TypeValidator is a validator for the "type" field. It is called by the builders before save.
	TypeValidator func(string) error
	// DefaultParallelism holds the default value on creation for the "parallelism" field.
	DefaultParallelism int
	// ParallelismValidator is a validator for the "parallelism" field. It is called by the builders before save.
	ParallelismValidator func(int) error
	// DefaultTimeout holds the default value on creation for the "timeout" field.
	DefaultTimeout int
	// TimeoutValidator is a validator for the "timeout" field. It is called by the builders before save.
	TimeoutValidator func(int) error
	// DefaultVersion holds the default value on creation for the "version" field.
	DefaultVersion int
	// VersionValidator is a validator for the "version" field. It is called by the builders before save.
	VersionValidator func(int) error
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/seal-io/walrus/pkg/dao/model/runtime"

Columns holds all SQL columns for workflow fields.

Functions

func And

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

And groups predicates with the AND operator between them.

func AnnotationsIsNil

func AnnotationsIsNil() predicate.Workflow

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

func AnnotationsNotNil

func AnnotationsNotNil() predicate.Workflow

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

func CreateTime

func CreateTime(v time.Time) predicate.Workflow

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Workflow

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Workflow

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Workflow

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

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

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Workflow

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Workflow

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Workflow

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

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

CreateTimeNotIn applies the NotIn predicate on the "create_time" 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 EnvironmentID

func EnvironmentID(v object.ID) predicate.Workflow

EnvironmentID applies equality check predicate on the "environment_id" field. It's identical to EnvironmentIDEQ.

func EnvironmentIDContains

func EnvironmentIDContains(v object.ID) predicate.Workflow

EnvironmentIDContains applies the Contains predicate on the "environment_id" field.

func EnvironmentIDContainsFold

func EnvironmentIDContainsFold(v object.ID) predicate.Workflow

EnvironmentIDContainsFold applies the ContainsFold predicate on the "environment_id" field.

func EnvironmentIDEQ

func EnvironmentIDEQ(v object.ID) predicate.Workflow

EnvironmentIDEQ applies the EQ predicate on the "environment_id" field.

func EnvironmentIDEqualFold

func EnvironmentIDEqualFold(v object.ID) predicate.Workflow

EnvironmentIDEqualFold applies the EqualFold predicate on the "environment_id" field.

func EnvironmentIDGT

func EnvironmentIDGT(v object.ID) predicate.Workflow

EnvironmentIDGT applies the GT predicate on the "environment_id" field.

func EnvironmentIDGTE

func EnvironmentIDGTE(v object.ID) predicate.Workflow

EnvironmentIDGTE applies the GTE predicate on the "environment_id" field.

func EnvironmentIDHasPrefix

func EnvironmentIDHasPrefix(v object.ID) predicate.Workflow

EnvironmentIDHasPrefix applies the HasPrefix predicate on the "environment_id" field.

func EnvironmentIDHasSuffix

func EnvironmentIDHasSuffix(v object.ID) predicate.Workflow

EnvironmentIDHasSuffix applies the HasSuffix predicate on the "environment_id" field.

func EnvironmentIDIn

func EnvironmentIDIn(vs ...object.ID) predicate.Workflow

EnvironmentIDIn applies the In predicate on the "environment_id" field.

func EnvironmentIDIsNil

func EnvironmentIDIsNil() predicate.Workflow

EnvironmentIDIsNil applies the IsNil predicate on the "environment_id" field.

func EnvironmentIDLT

func EnvironmentIDLT(v object.ID) predicate.Workflow

EnvironmentIDLT applies the LT predicate on the "environment_id" field.

func EnvironmentIDLTE

func EnvironmentIDLTE(v object.ID) predicate.Workflow

EnvironmentIDLTE applies the LTE predicate on the "environment_id" field.

func EnvironmentIDNEQ

func EnvironmentIDNEQ(v object.ID) predicate.Workflow

EnvironmentIDNEQ applies the NEQ predicate on the "environment_id" field.

func EnvironmentIDNotIn

func EnvironmentIDNotIn(vs ...object.ID) predicate.Workflow

EnvironmentIDNotIn applies the NotIn predicate on the "environment_id" field.

func EnvironmentIDNotNil

func EnvironmentIDNotNil() predicate.Workflow

EnvironmentIDNotNil applies the NotNil predicate on the "environment_id" field.

func HasExecutions

func HasExecutions() predicate.Workflow

HasExecutions applies the HasEdge predicate on the "executions" edge.

func HasExecutionsWith

func HasExecutionsWith(preds ...predicate.WorkflowExecution) predicate.Workflow

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

func HasProject

func HasProject() predicate.Workflow

HasProject applies the HasEdge predicate on the "project" edge.

func HasProjectWith

func HasProjectWith(preds ...predicate.Project) predicate.Workflow

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

func HasStages

func HasStages() predicate.Workflow

HasStages applies the HasEdge predicate on the "stages" edge.

func HasStagesWith

func HasStagesWith(preds ...predicate.WorkflowStage) predicate.Workflow

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

func ID

func ID(id object.ID) predicate.Workflow

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id object.ID) predicate.Workflow

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id object.ID) predicate.Workflow

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id object.ID) predicate.Workflow

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...object.ID) predicate.Workflow

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id object.ID) predicate.Workflow

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id object.ID) predicate.Workflow

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id object.ID) predicate.Workflow

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...object.ID) predicate.Workflow

IDNotIn applies the NotIn predicate on the ID field.

func LabelsIsNil

func LabelsIsNil() predicate.Workflow

LabelsIsNil applies the IsNil predicate on the "labels" field.

func LabelsNotNil

func LabelsNotNil() predicate.Workflow

LabelsNotNil applies the NotNil predicate on the "labels" 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 Parallelism

func Parallelism(v int) predicate.Workflow

Parallelism applies equality check predicate on the "parallelism" field. It's identical to ParallelismEQ.

func ParallelismEQ

func ParallelismEQ(v int) predicate.Workflow

ParallelismEQ applies the EQ predicate on the "parallelism" field.

func ParallelismGT

func ParallelismGT(v int) predicate.Workflow

ParallelismGT applies the GT predicate on the "parallelism" field.

func ParallelismGTE

func ParallelismGTE(v int) predicate.Workflow

ParallelismGTE applies the GTE predicate on the "parallelism" field.

func ParallelismIn

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

ParallelismIn applies the In predicate on the "parallelism" field.

func ParallelismLT

func ParallelismLT(v int) predicate.Workflow

ParallelismLT applies the LT predicate on the "parallelism" field.

func ParallelismLTE

func ParallelismLTE(v int) predicate.Workflow

ParallelismLTE applies the LTE predicate on the "parallelism" field.

func ParallelismNEQ

func ParallelismNEQ(v int) predicate.Workflow

ParallelismNEQ applies the NEQ predicate on the "parallelism" field.

func ParallelismNotIn

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

ParallelismNotIn applies the NotIn predicate on the "parallelism" field.

func ProjectID

func ProjectID(v object.ID) predicate.Workflow

ProjectID applies equality check predicate on the "project_id" field. It's identical to ProjectIDEQ.

func ProjectIDContains

func ProjectIDContains(v object.ID) predicate.Workflow

ProjectIDContains applies the Contains predicate on the "project_id" field.

func ProjectIDContainsFold

func ProjectIDContainsFold(v object.ID) predicate.Workflow

ProjectIDContainsFold applies the ContainsFold predicate on the "project_id" field.

func ProjectIDEQ

func ProjectIDEQ(v object.ID) predicate.Workflow

ProjectIDEQ applies the EQ predicate on the "project_id" field.

func ProjectIDEqualFold

func ProjectIDEqualFold(v object.ID) predicate.Workflow

ProjectIDEqualFold applies the EqualFold predicate on the "project_id" field.

func ProjectIDGT

func ProjectIDGT(v object.ID) predicate.Workflow

ProjectIDGT applies the GT predicate on the "project_id" field.

func ProjectIDGTE

func ProjectIDGTE(v object.ID) predicate.Workflow

ProjectIDGTE applies the GTE predicate on the "project_id" field.

func ProjectIDHasPrefix

func ProjectIDHasPrefix(v object.ID) predicate.Workflow

ProjectIDHasPrefix applies the HasPrefix predicate on the "project_id" field.

func ProjectIDHasSuffix

func ProjectIDHasSuffix(v object.ID) predicate.Workflow

ProjectIDHasSuffix applies the HasSuffix predicate on the "project_id" field.

func ProjectIDIn

func ProjectIDIn(vs ...object.ID) predicate.Workflow

ProjectIDIn applies the In predicate on the "project_id" field.

func ProjectIDLT

func ProjectIDLT(v object.ID) predicate.Workflow

ProjectIDLT applies the LT predicate on the "project_id" field.

func ProjectIDLTE

func ProjectIDLTE(v object.ID) predicate.Workflow

ProjectIDLTE applies the LTE predicate on the "project_id" field.

func ProjectIDNEQ

func ProjectIDNEQ(v object.ID) predicate.Workflow

ProjectIDNEQ applies the NEQ predicate on the "project_id" field.

func ProjectIDNotIn

func ProjectIDNotIn(vs ...object.ID) predicate.Workflow

ProjectIDNotIn applies the NotIn predicate on the "project_id" field.

func Timeout

func Timeout(v int) predicate.Workflow

Timeout applies equality check predicate on the "timeout" field. It's identical to TimeoutEQ.

func TimeoutEQ

func TimeoutEQ(v int) predicate.Workflow

TimeoutEQ applies the EQ predicate on the "timeout" field.

func TimeoutGT

func TimeoutGT(v int) predicate.Workflow

TimeoutGT applies the GT predicate on the "timeout" field.

func TimeoutGTE

func TimeoutGTE(v int) predicate.Workflow

TimeoutGTE applies the GTE predicate on the "timeout" field.

func TimeoutIn

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

TimeoutIn applies the In predicate on the "timeout" field.

func TimeoutLT

func TimeoutLT(v int) predicate.Workflow

TimeoutLT applies the LT predicate on the "timeout" field.

func TimeoutLTE

func TimeoutLTE(v int) predicate.Workflow

TimeoutLTE applies the LTE predicate on the "timeout" field.

func TimeoutNEQ

func TimeoutNEQ(v int) predicate.Workflow

TimeoutNEQ applies the NEQ predicate on the "timeout" field.

func TimeoutNotIn

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

TimeoutNotIn applies the NotIn predicate on the "timeout" field.

func Type

func Type(v string) predicate.Workflow

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.Workflow

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.Workflow

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.Workflow

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.Workflow

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.Workflow

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.Workflow

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.Workflow

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.Workflow

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

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

TypeIn applies the In predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.Workflow

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.Workflow

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.Workflow

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

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

TypeNotIn applies the NotIn predicate on the "type" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Workflow

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Workflow

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Workflow

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Workflow

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

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

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Workflow

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Workflow

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Workflow

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

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

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func ValidColumn

func ValidColumn(column string) bool

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

func VariablesIsNil

func VariablesIsNil() predicate.Workflow

VariablesIsNil applies the IsNil predicate on the "variables" field.

func VariablesNotNil

func VariablesNotNil() predicate.Workflow

VariablesNotNil applies the NotNil predicate on the "variables" field.

func Version

func Version(v int) predicate.Workflow

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionEQ

func VersionEQ(v int) predicate.Workflow

VersionEQ applies the EQ predicate on the "version" field.

func VersionGT

func VersionGT(v int) predicate.Workflow

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v int) predicate.Workflow

VersionGTE applies the GTE predicate on the "version" field.

func VersionIn

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

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v int) predicate.Workflow

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v int) predicate.Workflow

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v int) predicate.Workflow

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

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

VersionNotIn applies the NotIn predicate on the "version" field.

func WithoutFields

func WithoutFields(ignores ...string) []string

WithoutFields returns the fields ignored the given list.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Workflow queries.

func ByCreateTime

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

ByCreateTime orders the results by the create_time field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByEnvironmentID

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

ByEnvironmentID orders the results by the environment_id field.

func ByExecutions

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

ByExecutions orders the results by executions terms.

func ByExecutionsCount

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

ByExecutionsCount orders the results by executions count.

func ByID

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

ByID orders the results by the id field.

func ByName

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

ByName orders the results by the name field.

func ByParallelism

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

ByParallelism orders the results by the parallelism field.

func ByProjectField

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

ByProjectField orders the results by project field.

func ByProjectID

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

ByProjectID orders the results by the project_id field.

func ByStages

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

ByStages orders the results by stages terms.

func ByStagesCount

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

ByStagesCount orders the results by stages count.

func ByTimeout

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

ByTimeout orders the results by the timeout field.

func ByType

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

ByType orders the results by the type field.

func ByUpdateTime

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

ByUpdateTime orders the results by the update_time field.

func ByVersion

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

ByVersion orders the results by the version field.

Jump to

Keyboard shortcuts

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