workflowstate

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the workflowstate type in the database.
	Label = "workflow_state"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldMachineName holds the string denoting the machine_name field in the database.
	FieldMachineName = "machine_name"
	// FieldLabel holds the string denoting the label field in the database.
	FieldLabel = "label"
	// FieldPublished holds the string denoting the published field in the database.
	FieldPublished = "published"
	// FieldColor holds the string denoting the color field in the database.
	FieldColor = "color"
	// FieldInitial holds the string denoting the initial field in the database.
	FieldInitial = "initial"
	// FieldWeight holds the string denoting the weight field in the database.
	FieldWeight = "weight"
	// Table holds the table name of the workflowstate in the database.
	Table = "workflow_states"
)

Variables

View Source
var (
	// MachineNameValidator is a validator for the "machine_name" field. It is called by the builders before save.
	MachineNameValidator func(string) error
	// LabelValidator is a validator for the "label" field. It is called by the builders before save.
	LabelValidator func(string) error
	// DefaultPublished holds the default value on creation for the "published" field.
	DefaultPublished bool
	// DefaultColor holds the default value on creation for the "color" field.
	DefaultColor string
	// ColorValidator is a validator for the "color" field. It is called by the builders before save.
	ColorValidator func(string) error
	// DefaultInitial holds the default value on creation for the "initial" field.
	DefaultInitial bool
	// DefaultWeight holds the default value on creation for the "weight" field.
	DefaultWeight int
)

Columns holds all SQL columns for workflowstate fields.

Functions

func And

And groups predicates with the AND operator between them.

func Color

Color applies equality check predicate on the "color" field. It's identical to ColorEQ.

func ColorContains

func ColorContains(v string) predicate.WorkflowState

ColorContains applies the Contains predicate on the "color" field.

func ColorContainsFold

func ColorContainsFold(v string) predicate.WorkflowState

ColorContainsFold applies the ContainsFold predicate on the "color" field.

func ColorEQ

func ColorEQ(v string) predicate.WorkflowState

ColorEQ applies the EQ predicate on the "color" field.

func ColorEqualFold

func ColorEqualFold(v string) predicate.WorkflowState

ColorEqualFold applies the EqualFold predicate on the "color" field.

func ColorGT

func ColorGT(v string) predicate.WorkflowState

ColorGT applies the GT predicate on the "color" field.

func ColorGTE

func ColorGTE(v string) predicate.WorkflowState

ColorGTE applies the GTE predicate on the "color" field.

func ColorHasPrefix

func ColorHasPrefix(v string) predicate.WorkflowState

ColorHasPrefix applies the HasPrefix predicate on the "color" field.

func ColorHasSuffix

func ColorHasSuffix(v string) predicate.WorkflowState

ColorHasSuffix applies the HasSuffix predicate on the "color" field.

func ColorIn

func ColorIn(vs ...string) predicate.WorkflowState

ColorIn applies the In predicate on the "color" field.

func ColorLT

func ColorLT(v string) predicate.WorkflowState

ColorLT applies the LT predicate on the "color" field.

func ColorLTE

func ColorLTE(v string) predicate.WorkflowState

ColorLTE applies the LTE predicate on the "color" field.

func ColorNEQ

func ColorNEQ(v string) predicate.WorkflowState

ColorNEQ applies the NEQ predicate on the "color" field.

func ColorNotIn

func ColorNotIn(vs ...string) predicate.WorkflowState

ColorNotIn applies the NotIn predicate on the "color" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.WorkflowState

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.WorkflowState

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.WorkflowState

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.WorkflowState

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.WorkflowState

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.WorkflowState

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.WorkflowState

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.WorkflowState

IDNotIn applies the NotIn predicate on the ID field.

func Initial

func Initial(v bool) predicate.WorkflowState

Initial applies equality check predicate on the "initial" field. It's identical to InitialEQ.

func InitialEQ

func InitialEQ(v bool) predicate.WorkflowState

InitialEQ applies the EQ predicate on the "initial" field.

func InitialNEQ

func InitialNEQ(v bool) predicate.WorkflowState

InitialNEQ applies the NEQ predicate on the "initial" field.

func LabelContains

func LabelContains(v string) predicate.WorkflowState

LabelContains applies the Contains predicate on the "label" field.

func LabelContainsFold

func LabelContainsFold(v string) predicate.WorkflowState

LabelContainsFold applies the ContainsFold predicate on the "label" field.

func LabelEQ

func LabelEQ(v string) predicate.WorkflowState

LabelEQ applies the EQ predicate on the "label" field.

func LabelEqualFold

func LabelEqualFold(v string) predicate.WorkflowState

LabelEqualFold applies the EqualFold predicate on the "label" field.

func LabelGT

func LabelGT(v string) predicate.WorkflowState

LabelGT applies the GT predicate on the "label" field.

func LabelGTE

func LabelGTE(v string) predicate.WorkflowState

LabelGTE applies the GTE predicate on the "label" field.

func LabelHasPrefix

func LabelHasPrefix(v string) predicate.WorkflowState

LabelHasPrefix applies the HasPrefix predicate on the "label" field.

func LabelHasSuffix

func LabelHasSuffix(v string) predicate.WorkflowState

LabelHasSuffix applies the HasSuffix predicate on the "label" field.

func LabelIn

func LabelIn(vs ...string) predicate.WorkflowState

LabelIn applies the In predicate on the "label" field.

func LabelLT

func LabelLT(v string) predicate.WorkflowState

LabelLT applies the LT predicate on the "label" field.

func LabelLTE

func LabelLTE(v string) predicate.WorkflowState

LabelLTE applies the LTE predicate on the "label" field.

func LabelNEQ

func LabelNEQ(v string) predicate.WorkflowState

LabelNEQ applies the NEQ predicate on the "label" field.

func LabelNotIn

func LabelNotIn(vs ...string) predicate.WorkflowState

LabelNotIn applies the NotIn predicate on the "label" field.

func MachineName

func MachineName(v string) predicate.WorkflowState

MachineName applies equality check predicate on the "machine_name" field. It's identical to MachineNameEQ.

func MachineNameContains

func MachineNameContains(v string) predicate.WorkflowState

MachineNameContains applies the Contains predicate on the "machine_name" field.

func MachineNameContainsFold

func MachineNameContainsFold(v string) predicate.WorkflowState

MachineNameContainsFold applies the ContainsFold predicate on the "machine_name" field.

func MachineNameEQ

func MachineNameEQ(v string) predicate.WorkflowState

MachineNameEQ applies the EQ predicate on the "machine_name" field.

func MachineNameEqualFold

func MachineNameEqualFold(v string) predicate.WorkflowState

MachineNameEqualFold applies the EqualFold predicate on the "machine_name" field.

func MachineNameGT

func MachineNameGT(v string) predicate.WorkflowState

MachineNameGT applies the GT predicate on the "machine_name" field.

func MachineNameGTE

func MachineNameGTE(v string) predicate.WorkflowState

MachineNameGTE applies the GTE predicate on the "machine_name" field.

func MachineNameHasPrefix

func MachineNameHasPrefix(v string) predicate.WorkflowState

MachineNameHasPrefix applies the HasPrefix predicate on the "machine_name" field.

func MachineNameHasSuffix

func MachineNameHasSuffix(v string) predicate.WorkflowState

MachineNameHasSuffix applies the HasSuffix predicate on the "machine_name" field.

func MachineNameIn

func MachineNameIn(vs ...string) predicate.WorkflowState

MachineNameIn applies the In predicate on the "machine_name" field.

func MachineNameLT

func MachineNameLT(v string) predicate.WorkflowState

MachineNameLT applies the LT predicate on the "machine_name" field.

func MachineNameLTE

func MachineNameLTE(v string) predicate.WorkflowState

MachineNameLTE applies the LTE predicate on the "machine_name" field.

func MachineNameNEQ

func MachineNameNEQ(v string) predicate.WorkflowState

MachineNameNEQ applies the NEQ predicate on the "machine_name" field.

func MachineNameNotIn

func MachineNameNotIn(vs ...string) predicate.WorkflowState

MachineNameNotIn applies the NotIn predicate on the "machine_name" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Published

func Published(v bool) predicate.WorkflowState

Published applies equality check predicate on the "published" field. It's identical to PublishedEQ.

func PublishedEQ

func PublishedEQ(v bool) predicate.WorkflowState

PublishedEQ applies the EQ predicate on the "published" field.

func PublishedNEQ

func PublishedNEQ(v bool) predicate.WorkflowState

PublishedNEQ applies the NEQ predicate on the "published" field.

func ValidColumn

func ValidColumn(column string) bool

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

func Weight

func Weight(v int) predicate.WorkflowState

Weight applies equality check predicate on the "weight" field. It's identical to WeightEQ.

func WeightEQ

func WeightEQ(v int) predicate.WorkflowState

WeightEQ applies the EQ predicate on the "weight" field.

func WeightGT

func WeightGT(v int) predicate.WorkflowState

WeightGT applies the GT predicate on the "weight" field.

func WeightGTE

func WeightGTE(v int) predicate.WorkflowState

WeightGTE applies the GTE predicate on the "weight" field.

func WeightIn

func WeightIn(vs ...int) predicate.WorkflowState

WeightIn applies the In predicate on the "weight" field.

func WeightLT

func WeightLT(v int) predicate.WorkflowState

WeightLT applies the LT predicate on the "weight" field.

func WeightLTE

func WeightLTE(v int) predicate.WorkflowState

WeightLTE applies the LTE predicate on the "weight" field.

func WeightNEQ

func WeightNEQ(v int) predicate.WorkflowState

WeightNEQ applies the NEQ predicate on the "weight" field.

func WeightNotIn

func WeightNotIn(vs ...int) predicate.WorkflowState

WeightNotIn applies the NotIn predicate on the "weight" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the WorkflowState queries.

func ByColor

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

ByColor orders the results by the color field.

func ByID

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

ByID orders the results by the id field.

func ByInitial

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

ByInitial orders the results by the initial field.

func ByLabel

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

ByLabel orders the results by the label field.

func ByMachineName

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

ByMachineName orders the results by the machine_name field.

func ByPublished

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

ByPublished orders the results by the published field.

func ByWeight

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

ByWeight orders the results by the weight field.

Jump to

Keyboard shortcuts

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