Help us shape the future of Go! Take the 2026 Go Developer Survey

automationversion

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

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
	// 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
)

Columns holds all SQL columns for automationversion fields.

Functions

func And

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

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

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

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

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

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Steps

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

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

StepsGT applies the GT predicate on the "steps" field.

func StepsGTE

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

StepsLT applies the LT predicate on the "steps" field.

func StepsLTE

StepsLTE applies the LTE predicate on the "steps" field.

func StepsNEQ

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

func ValidColumn(column string) bool

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

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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