Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Instance) predicate.Instance
- func As(v string) predicate.Instance
- func AsContains(v string) predicate.Instance
- func AsContainsFold(v string) predicate.Instance
- func AsEQ(v string) predicate.Instance
- func AsEqualFold(v string) predicate.Instance
- func AsGT(v string) predicate.Instance
- func AsGTE(v string) predicate.Instance
- func AsHasPrefix(v string) predicate.Instance
- func AsHasSuffix(v string) predicate.Instance
- func AsIn(vs ...string) predicate.Instance
- func AsLT(v string) predicate.Instance
- func AsLTE(v string) predicate.Instance
- func AsNEQ(v string) predicate.Instance
- func AsNotIn(vs ...string) predicate.Instance
- func CreatedAt(v time.Time) predicate.Instance
- func CreatedAtEQ(v time.Time) predicate.Instance
- func CreatedAtGT(v time.Time) predicate.Instance
- func CreatedAtGTE(v time.Time) predicate.Instance
- func CreatedAtIn(vs ...time.Time) predicate.Instance
- func CreatedAtLT(v time.Time) predicate.Instance
- func CreatedAtLTE(v time.Time) predicate.Instance
- func CreatedAtNEQ(v time.Time) predicate.Instance
- func CreatedAtNotIn(vs ...time.Time) predicate.Instance
- func EndAt(v time.Time) predicate.Instance
- func EndAtEQ(v time.Time) predicate.Instance
- func EndAtGT(v time.Time) predicate.Instance
- func EndAtGTE(v time.Time) predicate.Instance
- func EndAtIn(vs ...time.Time) predicate.Instance
- func EndAtIsNil() predicate.Instance
- func EndAtLT(v time.Time) predicate.Instance
- func EndAtLTE(v time.Time) predicate.Instance
- func EndAtNEQ(v time.Time) predicate.Instance
- func EndAtNotIn(vs ...time.Time) predicate.Instance
- func EndAtNotNil() predicate.Instance
- func ErrorCode(v string) predicate.Instance
- func ErrorCodeContains(v string) predicate.Instance
- func ErrorCodeContainsFold(v string) predicate.Instance
- func ErrorCodeEQ(v string) predicate.Instance
- func ErrorCodeEqualFold(v string) predicate.Instance
- func ErrorCodeGT(v string) predicate.Instance
- func ErrorCodeGTE(v string) predicate.Instance
- func ErrorCodeHasPrefix(v string) predicate.Instance
- func ErrorCodeHasSuffix(v string) predicate.Instance
- func ErrorCodeIn(vs ...string) predicate.Instance
- func ErrorCodeIsNil() predicate.Instance
- func ErrorCodeLT(v string) predicate.Instance
- func ErrorCodeLTE(v string) predicate.Instance
- func ErrorCodeNEQ(v string) predicate.Instance
- func ErrorCodeNotIn(vs ...string) predicate.Instance
- func ErrorCodeNotNil() predicate.Instance
- func ErrorMessage(v string) predicate.Instance
- func ErrorMessageContains(v string) predicate.Instance
- func ErrorMessageContainsFold(v string) predicate.Instance
- func ErrorMessageEQ(v string) predicate.Instance
- func ErrorMessageEqualFold(v string) predicate.Instance
- func ErrorMessageGT(v string) predicate.Instance
- func ErrorMessageGTE(v string) predicate.Instance
- func ErrorMessageHasPrefix(v string) predicate.Instance
- func ErrorMessageHasSuffix(v string) predicate.Instance
- func ErrorMessageIn(vs ...string) predicate.Instance
- func ErrorMessageIsNil() predicate.Instance
- func ErrorMessageLT(v string) predicate.Instance
- func ErrorMessageLTE(v string) predicate.Instance
- func ErrorMessageNEQ(v string) predicate.Instance
- func ErrorMessageNotIn(vs ...string) predicate.Instance
- func ErrorMessageNotNil() predicate.Instance
- func HasChildren() predicate.Instance
- func HasChildrenWith(preds ...predicate.InstanceRuntime) predicate.Instance
- func HasEventlisteners() predicate.Instance
- func HasEventlistenersWith(preds ...predicate.Events) predicate.Instance
- func HasLogs() predicate.Instance
- func HasLogsWith(preds ...predicate.LogMsg) predicate.Instance
- func HasNamespace() predicate.Instance
- func HasNamespaceWith(preds ...predicate.Namespace) predicate.Instance
- func HasRevision() predicate.Instance
- func HasRevisionWith(preds ...predicate.Revision) predicate.Instance
- func HasRuntime() predicate.Instance
- func HasRuntimeWith(preds ...predicate.InstanceRuntime) predicate.Instance
- func HasVars() predicate.Instance
- func HasVarsWith(preds ...predicate.VarRef) predicate.Instance
- func HasWorkflow() predicate.Instance
- func HasWorkflowWith(preds ...predicate.Workflow) predicate.Instance
- func ID(id uuid.UUID) predicate.Instance
- func IDEQ(id uuid.UUID) predicate.Instance
- func IDGT(id uuid.UUID) predicate.Instance
- func IDGTE(id uuid.UUID) predicate.Instance
- func IDIn(ids ...uuid.UUID) predicate.Instance
- func IDLT(id uuid.UUID) predicate.Instance
- func IDLTE(id uuid.UUID) predicate.Instance
- func IDNEQ(id uuid.UUID) predicate.Instance
- func IDNotIn(ids ...uuid.UUID) predicate.Instance
- func Not(p predicate.Instance) predicate.Instance
- func Or(predicates ...predicate.Instance) predicate.Instance
- func Status(v string) predicate.Instance
- func StatusContains(v string) predicate.Instance
- func StatusContainsFold(v string) predicate.Instance
- func StatusEQ(v string) predicate.Instance
- func StatusEqualFold(v string) predicate.Instance
- func StatusGT(v string) predicate.Instance
- func StatusGTE(v string) predicate.Instance
- func StatusHasPrefix(v string) predicate.Instance
- func StatusHasSuffix(v string) predicate.Instance
- func StatusIn(vs ...string) predicate.Instance
- func StatusLT(v string) predicate.Instance
- func StatusLTE(v string) predicate.Instance
- func StatusNEQ(v string) predicate.Instance
- func StatusNotIn(vs ...string) predicate.Instance
- func UpdatedAt(v time.Time) predicate.Instance
- func UpdatedAtEQ(v time.Time) predicate.Instance
- func UpdatedAtGT(v time.Time) predicate.Instance
- func UpdatedAtGTE(v time.Time) predicate.Instance
- func UpdatedAtIn(vs ...time.Time) predicate.Instance
- func UpdatedAtLT(v time.Time) predicate.Instance
- func UpdatedAtLTE(v time.Time) predicate.Instance
- func UpdatedAtNEQ(v time.Time) predicate.Instance
- func UpdatedAtNotIn(vs ...time.Time) predicate.Instance
- func ValidColumn(column string) bool
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldEndAt, FieldStatus, FieldAs, FieldErrorCode, FieldErrorMessage, }
Columns holds all SQL columns for instance fields.
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 AsContains ¶
AsContains applies the Contains predicate on the "as" field.
func AsContainsFold ¶
AsContainsFold applies the ContainsFold predicate on the "as" field.
func AsEqualFold ¶
AsEqualFold applies the EqualFold predicate on the "as" field.
func AsHasPrefix ¶
AsHasPrefix applies the HasPrefix predicate on the "as" field.
func AsHasSuffix ¶
AsHasSuffix applies the HasSuffix predicate on the "as" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func EndAt ¶
EndAt applies equality check predicate on the "end_at" field. It's identical to EndAtEQ.
func EndAtIsNil ¶
EndAtIsNil applies the IsNil predicate on the "end_at" field.
func EndAtNotIn ¶
EndAtNotIn applies the NotIn predicate on the "end_at" field.
func EndAtNotNil ¶
EndAtNotNil applies the NotNil predicate on the "end_at" field.
func ErrorCode ¶
ErrorCode applies equality check predicate on the "errorCode" field. It's identical to ErrorCodeEQ.
func ErrorCodeContains ¶
ErrorCodeContains applies the Contains predicate on the "errorCode" field.
func ErrorCodeContainsFold ¶
ErrorCodeContainsFold applies the ContainsFold predicate on the "errorCode" field.
func ErrorCodeEQ ¶
ErrorCodeEQ applies the EQ predicate on the "errorCode" field.
func ErrorCodeEqualFold ¶
ErrorCodeEqualFold applies the EqualFold predicate on the "errorCode" field.
func ErrorCodeGT ¶
ErrorCodeGT applies the GT predicate on the "errorCode" field.
func ErrorCodeGTE ¶
ErrorCodeGTE applies the GTE predicate on the "errorCode" field.
func ErrorCodeHasPrefix ¶
ErrorCodeHasPrefix applies the HasPrefix predicate on the "errorCode" field.
func ErrorCodeHasSuffix ¶
ErrorCodeHasSuffix applies the HasSuffix predicate on the "errorCode" field.
func ErrorCodeIn ¶
ErrorCodeIn applies the In predicate on the "errorCode" field.
func ErrorCodeIsNil ¶
ErrorCodeIsNil applies the IsNil predicate on the "errorCode" field.
func ErrorCodeLT ¶
ErrorCodeLT applies the LT predicate on the "errorCode" field.
func ErrorCodeLTE ¶
ErrorCodeLTE applies the LTE predicate on the "errorCode" field.
func ErrorCodeNEQ ¶
ErrorCodeNEQ applies the NEQ predicate on the "errorCode" field.
func ErrorCodeNotIn ¶
ErrorCodeNotIn applies the NotIn predicate on the "errorCode" field.
func ErrorCodeNotNil ¶
ErrorCodeNotNil applies the NotNil predicate on the "errorCode" field.
func ErrorMessage ¶
ErrorMessage applies equality check predicate on the "errorMessage" field. It's identical to ErrorMessageEQ.
func ErrorMessageContains ¶
ErrorMessageContains applies the Contains predicate on the "errorMessage" field.
func ErrorMessageContainsFold ¶
ErrorMessageContainsFold applies the ContainsFold predicate on the "errorMessage" field.
func ErrorMessageEQ ¶
ErrorMessageEQ applies the EQ predicate on the "errorMessage" field.
func ErrorMessageEqualFold ¶
ErrorMessageEqualFold applies the EqualFold predicate on the "errorMessage" field.
func ErrorMessageGT ¶
ErrorMessageGT applies the GT predicate on the "errorMessage" field.
func ErrorMessageGTE ¶
ErrorMessageGTE applies the GTE predicate on the "errorMessage" field.
func ErrorMessageHasPrefix ¶
ErrorMessageHasPrefix applies the HasPrefix predicate on the "errorMessage" field.
func ErrorMessageHasSuffix ¶
ErrorMessageHasSuffix applies the HasSuffix predicate on the "errorMessage" field.
func ErrorMessageIn ¶
ErrorMessageIn applies the In predicate on the "errorMessage" field.
func ErrorMessageIsNil ¶
ErrorMessageIsNil applies the IsNil predicate on the "errorMessage" field.
func ErrorMessageLT ¶
ErrorMessageLT applies the LT predicate on the "errorMessage" field.
func ErrorMessageLTE ¶
ErrorMessageLTE applies the LTE predicate on the "errorMessage" field.
func ErrorMessageNEQ ¶
ErrorMessageNEQ applies the NEQ predicate on the "errorMessage" field.
func ErrorMessageNotIn ¶
ErrorMessageNotIn applies the NotIn predicate on the "errorMessage" field.
func ErrorMessageNotNil ¶
ErrorMessageNotNil applies the NotNil predicate on the "errorMessage" field.
func HasChildren ¶
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 ¶
HasEventlisteners applies the HasEdge predicate on the "eventlisteners" edge.
func HasEventlistenersWith ¶
HasEventlistenersWith applies the HasEdge predicate on the "eventlisteners" edge with a given conditions (other predicates).
func HasLogsWith ¶
HasLogsWith applies the HasEdge predicate on the "logs" edge with a given conditions (other predicates).
func HasNamespace ¶
HasNamespace applies the HasEdge predicate on the "namespace" edge.
func HasNamespaceWith ¶
HasNamespaceWith applies the HasEdge predicate on the "namespace" edge with a given conditions (other predicates).
func HasRevision ¶
HasRevision applies the HasEdge predicate on the "revision" edge.
func HasRevisionWith ¶
HasRevisionWith applies the HasEdge predicate on the "revision" edge with a given conditions (other predicates).
func HasRuntime ¶
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 HasVarsWith ¶
HasVarsWith applies the HasEdge predicate on the "vars" edge with a given conditions (other predicates).
func HasWorkflow ¶
HasWorkflow applies the HasEdge predicate on the "workflow" edge.
func HasWorkflowWith ¶
HasWorkflowWith applies the HasEdge predicate on the "workflow" edge with a given conditions (other predicates).
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEqualFold ¶
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusHasPrefix ¶
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.