Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.AutomationVersion) predicate.AutomationVersion
- func AutomationID(v int64) predicate.AutomationVersion
- func AutomationIDEQ(v int64) predicate.AutomationVersion
- func AutomationIDIn(vs ...int64) predicate.AutomationVersion
- func AutomationIDNEQ(v int64) predicate.AutomationVersion
- func AutomationIDNotIn(vs ...int64) predicate.AutomationVersion
- func CreatedAt(v time.Time) predicate.AutomationVersion
- func CreatedAtEQ(v time.Time) predicate.AutomationVersion
- func CreatedAtGT(v time.Time) predicate.AutomationVersion
- func CreatedAtGTE(v time.Time) predicate.AutomationVersion
- func CreatedAtIn(vs ...time.Time) predicate.AutomationVersion
- func CreatedAtLT(v time.Time) predicate.AutomationVersion
- func CreatedAtLTE(v time.Time) predicate.AutomationVersion
- func CreatedAtNEQ(v time.Time) predicate.AutomationVersion
- func CreatedAtNotIn(vs ...time.Time) predicate.AutomationVersion
- func HasAutomation() predicate.AutomationVersion
- func HasAutomationWith(preds ...predicate.Automation) predicate.AutomationVersion
- func HasRuns() predicate.AutomationVersion
- func HasRunsWith(preds ...predicate.AutomationRun) predicate.AutomationVersion
- func HasWorkspace() predicate.AutomationVersion
- func HasWorkspaceWith(preds ...predicate.Workspace) predicate.AutomationVersion
- func ID(id int64) predicate.AutomationVersion
- func IDEQ(id int64) predicate.AutomationVersion
- func IDGT(id int64) predicate.AutomationVersion
- func IDGTE(id int64) predicate.AutomationVersion
- func IDIn(ids ...int64) predicate.AutomationVersion
- func IDLT(id int64) predicate.AutomationVersion
- func IDLTE(id int64) predicate.AutomationVersion
- func IDNEQ(id int64) predicate.AutomationVersion
- func IDNotIn(ids ...int64) predicate.AutomationVersion
- func Not(p predicate.AutomationVersion) predicate.AutomationVersion
- func Or(predicates ...predicate.AutomationVersion) predicate.AutomationVersion
- func Steps(v string) predicate.AutomationVersion
- func StepsContains(v string) predicate.AutomationVersion
- func StepsContainsFold(v string) predicate.AutomationVersion
- func StepsEQ(v string) predicate.AutomationVersion
- func StepsEqualFold(v string) predicate.AutomationVersion
- func StepsGT(v string) predicate.AutomationVersion
- func StepsGTE(v string) predicate.AutomationVersion
- func StepsHasPrefix(v string) predicate.AutomationVersion
- func StepsHasSuffix(v string) predicate.AutomationVersion
- func StepsIn(vs ...string) predicate.AutomationVersion
- func StepsLT(v string) predicate.AutomationVersion
- func StepsLTE(v string) predicate.AutomationVersion
- func StepsNEQ(v string) predicate.AutomationVersion
- func StepsNotIn(vs ...string) predicate.AutomationVersion
- func UpdatedAt(v time.Time) predicate.AutomationVersion
- func UpdatedAtEQ(v time.Time) predicate.AutomationVersion
- func UpdatedAtGT(v time.Time) predicate.AutomationVersion
- func UpdatedAtGTE(v time.Time) predicate.AutomationVersion
- func UpdatedAtIn(vs ...time.Time) predicate.AutomationVersion
- func UpdatedAtLT(v time.Time) predicate.AutomationVersion
- func UpdatedAtLTE(v time.Time) predicate.AutomationVersion
- func UpdatedAtNEQ(v time.Time) predicate.AutomationVersion
- func UpdatedAtNotIn(vs ...time.Time) predicate.AutomationVersion
- func ValidColumn(column string) bool
- func Version(v int) predicate.AutomationVersion
- func VersionEQ(v int) predicate.AutomationVersion
- func VersionGT(v int) predicate.AutomationVersion
- func VersionGTE(v int) predicate.AutomationVersion
- func VersionIn(vs ...int) predicate.AutomationVersion
- func VersionLT(v int) predicate.AutomationVersion
- func VersionLTE(v int) predicate.AutomationVersion
- func VersionNEQ(v int) predicate.AutomationVersion
- func VersionNotIn(vs ...int) predicate.AutomationVersion
- func WorkspaceID(v int64) predicate.AutomationVersion
- func WorkspaceIDEQ(v int64) predicate.AutomationVersion
- func WorkspaceIDIn(vs ...int64) predicate.AutomationVersion
- func WorkspaceIDNEQ(v int64) predicate.AutomationVersion
- func WorkspaceIDNotIn(vs ...int64) predicate.AutomationVersion
- type OrderOption
- func ByAutomationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAutomationID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByRuns(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRunsCount(opts ...sql.OrderTermOption) OrderOption
- func BySteps(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
- func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByWorkspaceID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the automationversion type in the database. Label = "automation_version" // FieldID holds the string denoting the id field in the database. FieldID = "id" // 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" // FieldWorkspaceID holds the string denoting the workspace_id field in the database. FieldWorkspaceID = "workspace_id" // FieldAutomationID holds the string denoting the automation_id field in the database. FieldAutomationID = "automation_id" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldSteps holds the string denoting the steps field in the database. FieldSteps = "steps" // EdgeWorkspace holds the string denoting the workspace edge name in mutations. EdgeWorkspace = "workspace" // EdgeAutomation holds the string denoting the automation edge name in mutations. EdgeAutomation = "automation" // EdgeRuns holds the string denoting the runs edge name in mutations. EdgeRuns = "runs" // Table holds the table name of the automationversion in the database. Table = "automation_versions" // WorkspaceTable is the table that holds the workspace relation/edge. WorkspaceTable = "automation_versions" // WorkspaceInverseTable is the table name for the Workspace entity. // It exists in this package in order to avoid circular dependency with the "workspace" package. WorkspaceInverseTable = "workspaces" // WorkspaceColumn is the table column denoting the workspace relation/edge. WorkspaceColumn = "workspace_id" // AutomationTable is the table that holds the automation relation/edge. AutomationTable = "automation_versions" // AutomationInverseTable is the table name for the Automation entity. // It exists in this package in order to avoid circular dependency with the "automation" package. AutomationInverseTable = "automations" // AutomationColumn is the table column denoting the automation relation/edge. AutomationColumn = "automation_id" // RunsTable is the table that holds the runs relation/edge. RunsTable = "automation_runs" // RunsInverseTable is the table name for the AutomationRun entity. // It exists in this package in order to avoid circular dependency with the "automationrun" package. RunsInverseTable = "automation_runs" // RunsColumn is the table column denoting the runs relation/edge. RunsColumn = "version_id" )
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 // VersionValidator is a validator for the "version" field. It is called by the builders before save. VersionValidator func(int) error // DefaultSteps holds the default value on creation for the "steps" field. DefaultSteps string )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldWorkspaceID, FieldAutomationID, FieldVersion, FieldSteps, }
Columns holds all SQL columns for automationversion fields.
Functions ¶
func And ¶
func And(predicates ...predicate.AutomationVersion) predicate.AutomationVersion
And groups predicates with the AND operator between them.
func AutomationID ¶
func AutomationID(v int64) predicate.AutomationVersion
AutomationID applies equality check predicate on the "automation_id" field. It's identical to AutomationIDEQ.
func AutomationIDEQ ¶
func AutomationIDEQ(v int64) predicate.AutomationVersion
AutomationIDEQ applies the EQ predicate on the "automation_id" field.
func AutomationIDIn ¶
func AutomationIDIn(vs ...int64) predicate.AutomationVersion
AutomationIDIn applies the In predicate on the "automation_id" field.
func AutomationIDNEQ ¶
func AutomationIDNEQ(v int64) predicate.AutomationVersion
AutomationIDNEQ applies the NEQ predicate on the "automation_id" field.
func AutomationIDNotIn ¶
func AutomationIDNotIn(vs ...int64) predicate.AutomationVersion
AutomationIDNotIn applies the NotIn predicate on the "automation_id" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.AutomationVersion
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.AutomationVersion
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.AutomationVersion
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.AutomationVersion
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.AutomationVersion
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.AutomationVersion
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.AutomationVersion
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.AutomationVersion
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.AutomationVersion
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasAutomation ¶
func HasAutomation() predicate.AutomationVersion
HasAutomation applies the HasEdge predicate on the "automation" edge.
func HasAutomationWith ¶
func HasAutomationWith(preds ...predicate.Automation) predicate.AutomationVersion
HasAutomationWith applies the HasEdge predicate on the "automation" edge with a given conditions (other predicates).
func HasRuns ¶
func HasRuns() predicate.AutomationVersion
HasRuns applies the HasEdge predicate on the "runs" edge.
func HasRunsWith ¶
func HasRunsWith(preds ...predicate.AutomationRun) predicate.AutomationVersion
HasRunsWith applies the HasEdge predicate on the "runs" edge with a given conditions (other predicates).
func HasWorkspace ¶
func HasWorkspace() predicate.AutomationVersion
HasWorkspace applies the HasEdge predicate on the "workspace" edge.
func HasWorkspaceWith ¶
func HasWorkspaceWith(preds ...predicate.Workspace) predicate.AutomationVersion
HasWorkspaceWith applies the HasEdge predicate on the "workspace" edge with a given conditions (other predicates).
func ID ¶
func ID(id int64) predicate.AutomationVersion
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id int64) predicate.AutomationVersion
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int64) predicate.AutomationVersion
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int64) predicate.AutomationVersion
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int64) predicate.AutomationVersion
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int64) predicate.AutomationVersion
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.AutomationVersion
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.AutomationVersion
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int64) predicate.AutomationVersion
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.AutomationVersion) predicate.AutomationVersion
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.AutomationVersion) predicate.AutomationVersion
Or groups predicates with the OR operator between them.
func Steps ¶
func Steps(v string) predicate.AutomationVersion
Steps applies equality check predicate on the "steps" field. It's identical to StepsEQ.
func StepsContains ¶
func StepsContains(v string) predicate.AutomationVersion
StepsContains applies the Contains predicate on the "steps" field.
func StepsContainsFold ¶
func StepsContainsFold(v string) predicate.AutomationVersion
StepsContainsFold applies the ContainsFold predicate on the "steps" field.
func StepsEQ ¶
func StepsEQ(v string) predicate.AutomationVersion
StepsEQ applies the EQ predicate on the "steps" field.
func StepsEqualFold ¶
func StepsEqualFold(v string) predicate.AutomationVersion
StepsEqualFold applies the EqualFold predicate on the "steps" field.
func StepsGT ¶
func StepsGT(v string) predicate.AutomationVersion
StepsGT applies the GT predicate on the "steps" field.
func StepsGTE ¶
func StepsGTE(v string) predicate.AutomationVersion
StepsGTE applies the GTE predicate on the "steps" field.
func StepsHasPrefix ¶
func StepsHasPrefix(v string) predicate.AutomationVersion
StepsHasPrefix applies the HasPrefix predicate on the "steps" field.
func StepsHasSuffix ¶
func StepsHasSuffix(v string) predicate.AutomationVersion
StepsHasSuffix applies the HasSuffix predicate on the "steps" field.
func StepsIn ¶
func StepsIn(vs ...string) predicate.AutomationVersion
StepsIn applies the In predicate on the "steps" field.
func StepsLT ¶
func StepsLT(v string) predicate.AutomationVersion
StepsLT applies the LT predicate on the "steps" field.
func StepsLTE ¶
func StepsLTE(v string) predicate.AutomationVersion
StepsLTE applies the LTE predicate on the "steps" field.
func StepsNEQ ¶
func StepsNEQ(v string) predicate.AutomationVersion
StepsNEQ applies the NEQ predicate on the "steps" field.
func StepsNotIn ¶
func StepsNotIn(vs ...string) predicate.AutomationVersion
StepsNotIn applies the NotIn predicate on the "steps" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.AutomationVersion
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.AutomationVersion
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.AutomationVersion
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.AutomationVersion
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.AutomationVersion
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.AutomationVersion
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.AutomationVersion
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.AutomationVersion
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.AutomationVersion
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).
func Version ¶
func Version(v int) predicate.AutomationVersion
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionEQ ¶
func VersionEQ(v int) predicate.AutomationVersion
VersionEQ applies the EQ predicate on the "version" field.
func VersionGT ¶
func VersionGT(v int) predicate.AutomationVersion
VersionGT applies the GT predicate on the "version" field.
func VersionGTE ¶
func VersionGTE(v int) predicate.AutomationVersion
VersionGTE applies the GTE predicate on the "version" field.
func VersionIn ¶
func VersionIn(vs ...int) predicate.AutomationVersion
VersionIn applies the In predicate on the "version" field.
func VersionLT ¶
func VersionLT(v int) predicate.AutomationVersion
VersionLT applies the LT predicate on the "version" field.
func VersionLTE ¶
func VersionLTE(v int) predicate.AutomationVersion
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
func VersionNEQ(v int) predicate.AutomationVersion
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
func VersionNotIn(vs ...int) predicate.AutomationVersion
VersionNotIn applies the NotIn predicate on the "version" field.
func WorkspaceID ¶
func WorkspaceID(v int64) predicate.AutomationVersion
WorkspaceID applies equality check predicate on the "workspace_id" field. It's identical to WorkspaceIDEQ.
func WorkspaceIDEQ ¶
func WorkspaceIDEQ(v int64) predicate.AutomationVersion
WorkspaceIDEQ applies the EQ predicate on the "workspace_id" field.
func WorkspaceIDIn ¶
func WorkspaceIDIn(vs ...int64) predicate.AutomationVersion
WorkspaceIDIn applies the In predicate on the "workspace_id" field.
func WorkspaceIDNEQ ¶
func WorkspaceIDNEQ(v int64) predicate.AutomationVersion
WorkspaceIDNEQ applies the NEQ predicate on the "workspace_id" field.
func WorkspaceIDNotIn ¶
func WorkspaceIDNotIn(vs ...int64) predicate.AutomationVersion
WorkspaceIDNotIn applies the NotIn predicate on the "workspace_id" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the AutomationVersion queries.
func ByAutomationField ¶
func ByAutomationField(field string, opts ...sql.OrderTermOption) OrderOption
ByAutomationField orders the results by automation field.
func ByAutomationID ¶
func ByAutomationID(opts ...sql.OrderTermOption) OrderOption
ByAutomationID orders the results by the automation_id field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByRuns ¶
func ByRuns(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRuns orders the results by runs terms.
func ByRunsCount ¶
func ByRunsCount(opts ...sql.OrderTermOption) OrderOption
ByRunsCount orders the results by runs count.
func BySteps ¶
func BySteps(opts ...sql.OrderTermOption) OrderOption
BySteps orders the results by the steps field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByVersion ¶
func ByVersion(opts ...sql.OrderTermOption) OrderOption
ByVersion orders the results by the version field.
func ByWorkspaceField ¶
func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption
ByWorkspaceField orders the results by workspace field.
func ByWorkspaceID ¶
func ByWorkspaceID(opts ...sql.OrderTermOption) OrderOption
ByWorkspaceID orders the results by the workspace_id field.