instance

package
Version: v0.5.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the instance type in the database.
	Label = "instance"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "oid"
	// 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"
	// FieldEndAt holds the string denoting the end_at field in the database.
	FieldEndAt = "end_at"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldAs holds the string denoting the as field in the database.
	FieldAs = "as"
	// FieldErrorCode holds the string denoting the errorcode field in the database.
	FieldErrorCode = "error_code"
	// FieldErrorMessage holds the string denoting the errormessage field in the database.
	FieldErrorMessage = "error_message"
	// EdgeNamespace holds the string denoting the namespace edge name in mutations.
	EdgeNamespace = "namespace"
	// EdgeWorkflow holds the string denoting the workflow edge name in mutations.
	EdgeWorkflow = "workflow"
	// EdgeRevision holds the string denoting the revision edge name in mutations.
	EdgeRevision = "revision"
	// EdgeLogs holds the string denoting the logs edge name in mutations.
	EdgeLogs = "logs"
	// EdgeVars holds the string denoting the vars edge name in mutations.
	EdgeVars = "vars"
	// EdgeRuntime holds the string denoting the runtime edge name in mutations.
	EdgeRuntime = "runtime"
	// EdgeChildren holds the string denoting the children edge name in mutations.
	EdgeChildren = "children"
	// EdgeEventlisteners holds the string denoting the eventlisteners edge name in mutations.
	EdgeEventlisteners = "eventlisteners"
	// Table holds the table name of the instance in the database.
	Table = "instances"
	// NamespaceTable is the table that holds the namespace relation/edge.
	NamespaceTable = "instances"
	// 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_instances"
	// WorkflowTable is the table that holds the workflow relation/edge.
	WorkflowTable = "instances"
	// WorkflowInverseTable is the table name for the Workflow entity.
	// It exists in this package in order to avoid circular dependency with the "workflow" package.
	WorkflowInverseTable = "workflows"
	// WorkflowColumn is the table column denoting the workflow relation/edge.
	WorkflowColumn = "workflow_instances"
	// RevisionTable is the table that holds the revision relation/edge.
	RevisionTable = "instances"
	// RevisionInverseTable is the table name for the Revision entity.
	// It exists in this package in order to avoid circular dependency with the "revision" package.
	RevisionInverseTable = "revisions"
	// RevisionColumn is the table column denoting the revision relation/edge.
	RevisionColumn = "revision_instances"
	// LogsTable is the table that holds the logs relation/edge.
	LogsTable = "log_msgs"
	// LogsInverseTable is the table name for the LogMsg entity.
	// It exists in this package in order to avoid circular dependency with the "logmsg" package.
	LogsInverseTable = "log_msgs"
	// LogsColumn is the table column denoting the logs relation/edge.
	LogsColumn = "instance_logs"
	// VarsTable is the table that holds the vars relation/edge.
	VarsTable = "var_refs"
	// VarsInverseTable is the table name for the VarRef entity.
	// It exists in this package in order to avoid circular dependency with the "varref" package.
	VarsInverseTable = "var_refs"
	// VarsColumn is the table column denoting the vars relation/edge.
	VarsColumn = "instance_vars"
	// RuntimeTable is the table that holds the runtime relation/edge.
	RuntimeTable = "instance_runtimes"
	// RuntimeInverseTable is the table name for the InstanceRuntime entity.
	// It exists in this package in order to avoid circular dependency with the "instanceruntime" package.
	RuntimeInverseTable = "instance_runtimes"
	// RuntimeColumn is the table column denoting the runtime relation/edge.
	RuntimeColumn = "instance_runtime"
	// ChildrenTable is the table that holds the children relation/edge.
	ChildrenTable = "instance_runtimes"
	// ChildrenInverseTable is the table name for the InstanceRuntime entity.
	// It exists in this package in order to avoid circular dependency with the "instanceruntime" package.
	ChildrenInverseTable = "instance_runtimes"
	// ChildrenColumn is the table column denoting the children relation/edge.
	ChildrenColumn = "instance_children"
	// EventlistenersTable is the table that holds the eventlisteners relation/edge.
	EventlistenersTable = "events"
	// EventlistenersInverseTable is the table name for the Events entity.
	// It exists in this package in order to avoid circular dependency with the "events" package.
	EventlistenersInverseTable = "events"
	// EventlistenersColumn is the table column denoting the eventlisteners relation/edge.
	EventlistenersColumn = "instance_eventlisteners"
)

Variables

View Source
var (
	// 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 instance fields.

View Source
var ForeignKeys = []string{
	"namespace_instances",
	"revision_instances",
	"workflow_instances",
}

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

Functions

func And

func And(predicates ...predicate.Instance) predicate.Instance

And groups predicates with the AND operator between them.

func As

As applies equality check predicate on the "as" field. It's identical to AsEQ.

func AsContains

func AsContains(v string) predicate.Instance

AsContains applies the Contains predicate on the "as" field.

func AsContainsFold

func AsContainsFold(v string) predicate.Instance

AsContainsFold applies the ContainsFold predicate on the "as" field.

func AsEQ

func AsEQ(v string) predicate.Instance

AsEQ applies the EQ predicate on the "as" field.

func AsEqualFold

func AsEqualFold(v string) predicate.Instance

AsEqualFold applies the EqualFold predicate on the "as" field.

func AsGT

func AsGT(v string) predicate.Instance

AsGT applies the GT predicate on the "as" field.

func AsGTE

func AsGTE(v string) predicate.Instance

AsGTE applies the GTE predicate on the "as" field.

func AsHasPrefix

func AsHasPrefix(v string) predicate.Instance

AsHasPrefix applies the HasPrefix predicate on the "as" field.

func AsHasSuffix

func AsHasSuffix(v string) predicate.Instance

AsHasSuffix applies the HasSuffix predicate on the "as" field.

func AsIn

func AsIn(vs ...string) predicate.Instance

AsIn applies the In predicate on the "as" field.

func AsLT

func AsLT(v string) predicate.Instance

AsLT applies the LT predicate on the "as" field.

func AsLTE

func AsLTE(v string) predicate.Instance

AsLTE applies the LTE predicate on the "as" field.

func AsNEQ

func AsNEQ(v string) predicate.Instance

AsNEQ applies the NEQ predicate on the "as" field.

func AsNotIn

func AsNotIn(vs ...string) predicate.Instance

AsNotIn applies the NotIn predicate on the "as" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Instance

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Instance

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Instance

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Instance

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Instance

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Instance

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Instance

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

func CreatedAtNotIn

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

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

func EndAt

func EndAt(v time.Time) predicate.Instance

EndAt applies equality check predicate on the "end_at" field. It's identical to EndAtEQ.

func EndAtEQ

func EndAtEQ(v time.Time) predicate.Instance

EndAtEQ applies the EQ predicate on the "end_at" field.

func EndAtGT

func EndAtGT(v time.Time) predicate.Instance

EndAtGT applies the GT predicate on the "end_at" field.

func EndAtGTE

func EndAtGTE(v time.Time) predicate.Instance

EndAtGTE applies the GTE predicate on the "end_at" field.

func EndAtIn

func EndAtIn(vs ...time.Time) predicate.Instance

EndAtIn applies the In predicate on the "end_at" field.

func EndAtIsNil

func EndAtIsNil() predicate.Instance

EndAtIsNil applies the IsNil predicate on the "end_at" field.

func EndAtLT

func EndAtLT(v time.Time) predicate.Instance

EndAtLT applies the LT predicate on the "end_at" field.

func EndAtLTE

func EndAtLTE(v time.Time) predicate.Instance

EndAtLTE applies the LTE predicate on the "end_at" field.

func EndAtNEQ

func EndAtNEQ(v time.Time) predicate.Instance

EndAtNEQ applies the NEQ predicate on the "end_at" field.

func EndAtNotIn

func EndAtNotIn(vs ...time.Time) predicate.Instance

EndAtNotIn applies the NotIn predicate on the "end_at" field.

func EndAtNotNil

func EndAtNotNil() predicate.Instance

EndAtNotNil applies the NotNil predicate on the "end_at" field.

func ErrorCode

func ErrorCode(v string) predicate.Instance

ErrorCode applies equality check predicate on the "errorCode" field. It's identical to ErrorCodeEQ.

func ErrorCodeContains

func ErrorCodeContains(v string) predicate.Instance

ErrorCodeContains applies the Contains predicate on the "errorCode" field.

func ErrorCodeContainsFold

func ErrorCodeContainsFold(v string) predicate.Instance

ErrorCodeContainsFold applies the ContainsFold predicate on the "errorCode" field.

func ErrorCodeEQ

func ErrorCodeEQ(v string) predicate.Instance

ErrorCodeEQ applies the EQ predicate on the "errorCode" field.

func ErrorCodeEqualFold

func ErrorCodeEqualFold(v string) predicate.Instance

ErrorCodeEqualFold applies the EqualFold predicate on the "errorCode" field.

func ErrorCodeGT

func ErrorCodeGT(v string) predicate.Instance

ErrorCodeGT applies the GT predicate on the "errorCode" field.

func ErrorCodeGTE

func ErrorCodeGTE(v string) predicate.Instance

ErrorCodeGTE applies the GTE predicate on the "errorCode" field.

func ErrorCodeHasPrefix

func ErrorCodeHasPrefix(v string) predicate.Instance

ErrorCodeHasPrefix applies the HasPrefix predicate on the "errorCode" field.

func ErrorCodeHasSuffix

func ErrorCodeHasSuffix(v string) predicate.Instance

ErrorCodeHasSuffix applies the HasSuffix predicate on the "errorCode" field.

func ErrorCodeIn

func ErrorCodeIn(vs ...string) predicate.Instance

ErrorCodeIn applies the In predicate on the "errorCode" field.

func ErrorCodeIsNil

func ErrorCodeIsNil() predicate.Instance

ErrorCodeIsNil applies the IsNil predicate on the "errorCode" field.

func ErrorCodeLT

func ErrorCodeLT(v string) predicate.Instance

ErrorCodeLT applies the LT predicate on the "errorCode" field.

func ErrorCodeLTE

func ErrorCodeLTE(v string) predicate.Instance

ErrorCodeLTE applies the LTE predicate on the "errorCode" field.

func ErrorCodeNEQ

func ErrorCodeNEQ(v string) predicate.Instance

ErrorCodeNEQ applies the NEQ predicate on the "errorCode" field.

func ErrorCodeNotIn

func ErrorCodeNotIn(vs ...string) predicate.Instance

ErrorCodeNotIn applies the NotIn predicate on the "errorCode" field.

func ErrorCodeNotNil

func ErrorCodeNotNil() predicate.Instance

ErrorCodeNotNil applies the NotNil predicate on the "errorCode" field.

func ErrorMessage

func ErrorMessage(v string) predicate.Instance

ErrorMessage applies equality check predicate on the "errorMessage" field. It's identical to ErrorMessageEQ.

func ErrorMessageContains

func ErrorMessageContains(v string) predicate.Instance

ErrorMessageContains applies the Contains predicate on the "errorMessage" field.

func ErrorMessageContainsFold

func ErrorMessageContainsFold(v string) predicate.Instance

ErrorMessageContainsFold applies the ContainsFold predicate on the "errorMessage" field.

func ErrorMessageEQ

func ErrorMessageEQ(v string) predicate.Instance

ErrorMessageEQ applies the EQ predicate on the "errorMessage" field.

func ErrorMessageEqualFold

func ErrorMessageEqualFold(v string) predicate.Instance

ErrorMessageEqualFold applies the EqualFold predicate on the "errorMessage" field.

func ErrorMessageGT

func ErrorMessageGT(v string) predicate.Instance

ErrorMessageGT applies the GT predicate on the "errorMessage" field.

func ErrorMessageGTE

func ErrorMessageGTE(v string) predicate.Instance

ErrorMessageGTE applies the GTE predicate on the "errorMessage" field.

func ErrorMessageHasPrefix

func ErrorMessageHasPrefix(v string) predicate.Instance

ErrorMessageHasPrefix applies the HasPrefix predicate on the "errorMessage" field.

func ErrorMessageHasSuffix

func ErrorMessageHasSuffix(v string) predicate.Instance

ErrorMessageHasSuffix applies the HasSuffix predicate on the "errorMessage" field.

func ErrorMessageIn

func ErrorMessageIn(vs ...string) predicate.Instance

ErrorMessageIn applies the In predicate on the "errorMessage" field.

func ErrorMessageIsNil

func ErrorMessageIsNil() predicate.Instance

ErrorMessageIsNil applies the IsNil predicate on the "errorMessage" field.

func ErrorMessageLT

func ErrorMessageLT(v string) predicate.Instance

ErrorMessageLT applies the LT predicate on the "errorMessage" field.

func ErrorMessageLTE

func ErrorMessageLTE(v string) predicate.Instance

ErrorMessageLTE applies the LTE predicate on the "errorMessage" field.

func ErrorMessageNEQ

func ErrorMessageNEQ(v string) predicate.Instance

ErrorMessageNEQ applies the NEQ predicate on the "errorMessage" field.

func ErrorMessageNotIn

func ErrorMessageNotIn(vs ...string) predicate.Instance

ErrorMessageNotIn applies the NotIn predicate on the "errorMessage" field.

func ErrorMessageNotNil

func ErrorMessageNotNil() predicate.Instance

ErrorMessageNotNil applies the NotNil predicate on the "errorMessage" field.

func HasChildren

func HasChildren() predicate.Instance

HasChildren applies the HasEdge predicate on the "children" edge.

func HasChildrenWith

func HasChildrenWith(preds ...predicate.InstanceRuntime) predicate.Instance

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

func HasEventlisteners

func HasEventlisteners() predicate.Instance

HasEventlisteners applies the HasEdge predicate on the "eventlisteners" edge.

func HasEventlistenersWith

func HasEventlistenersWith(preds ...predicate.Events) predicate.Instance

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

func HasLogs

func HasLogs() predicate.Instance

HasLogs applies the HasEdge predicate on the "logs" edge.

func HasLogsWith

func HasLogsWith(preds ...predicate.LogMsg) predicate.Instance

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

func HasNamespace

func HasNamespace() predicate.Instance

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

func HasNamespaceWith

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

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

func HasRevision

func HasRevision() predicate.Instance

HasRevision applies the HasEdge predicate on the "revision" edge.

func HasRevisionWith

func HasRevisionWith(preds ...predicate.Revision) predicate.Instance

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

func HasRuntime

func HasRuntime() predicate.Instance

HasRuntime applies the HasEdge predicate on the "runtime" edge.

func HasRuntimeWith

func HasRuntimeWith(preds ...predicate.InstanceRuntime) predicate.Instance

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

func HasVars

func HasVars() predicate.Instance

HasVars applies the HasEdge predicate on the "vars" edge.

func HasVarsWith

func HasVarsWith(preds ...predicate.VarRef) predicate.Instance

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

func HasWorkflow

func HasWorkflow() predicate.Instance

HasWorkflow applies the HasEdge predicate on the "workflow" edge.

func HasWorkflowWith

func HasWorkflowWith(preds ...predicate.Workflow) predicate.Instance

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

func ID

func ID(id uuid.UUID) predicate.Instance

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Instance

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Instance

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Instance

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Instance

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Instance

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Instance

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Instance) predicate.Instance

Or groups predicates with the OR operator between them.

func Status

func Status(v string) predicate.Instance

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.Instance

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.Instance

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.Instance

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold

func StatusEqualFold(v string) predicate.Instance

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.Instance

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.Instance

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.Instance

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.Instance

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...string) predicate.Instance

StatusIn applies the In predicate on the "status" field.

func StatusLT

func StatusLT(v string) predicate.Instance

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.Instance

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.Instance

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...string) predicate.Instance

StatusNotIn applies the NotIn predicate on the "status" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Instance

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Instance

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Instance

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Instance

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Instance

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Instance

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Instance

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

func UpdatedAtNotIn

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

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