providercommand

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the providercommand type in the database.
	Label = "provider_command"
	// 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"
	// FieldCommandType holds the string denoting the command_type field in the database.
	FieldCommandType = "command_type"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldArguments holds the string denoting the arguments field in the database.
	FieldArguments = "arguments"
	// FieldStartTime holds the string denoting the start_time field in the database.
	FieldStartTime = "start_time"
	// FieldEndTime holds the string denoting the end_time field in the database.
	FieldEndTime = "end_time"
	// FieldOutput holds the string denoting the output field in the database.
	FieldOutput = "output"
	// FieldError holds the string denoting the error field in the database.
	FieldError = "error"
	// EdgeProvider holds the string denoting the provider edge name in mutations.
	EdgeProvider = "provider"
	// EdgeDeployment holds the string denoting the deployment edge name in mutations.
	EdgeDeployment = "deployment"
	// Table holds the table name of the providercommand in the database.
	Table = "provider_commands"
	// ProviderTable is the table that holds the provider relation/edge.
	ProviderTable = "provider_commands"
	// ProviderInverseTable is the table name for the Provider entity.
	// It exists in this package in order to avoid circular dependency with the "provider" package.
	ProviderInverseTable = "providers"
	// ProviderColumn is the table column denoting the provider relation/edge.
	ProviderColumn = "provider_command_provider"
	// DeploymentTable is the table that holds the deployment relation/edge.
	DeploymentTable = "provider_commands"
	// DeploymentInverseTable is the table name for the Deployment entity.
	// It exists in this package in order to avoid circular dependency with the "deployment" package.
	DeploymentInverseTable = "deployments"
	// DeploymentColumn is the table column denoting the deployment relation/edge.
	DeploymentColumn = "provider_command_deployment"
)
View Source
const DefaultStatus = StatusQUEUED

StatusQUEUED is the default value of the Status enum.

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
	// DefaultOutput holds the default value on creation for the "output" field.
	DefaultOutput string
	// DefaultError holds the default value on creation for the "error" field.
	DefaultError string
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for providercommand fields.

View Source
var ForeignKeys = []string{
	"provider_command_provider",
	"provider_command_deployment",
}

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

Functions

func And

And groups predicates with the AND operator between them.

func ArgumentsIsNil

func ArgumentsIsNil() predicate.ProviderCommand

ArgumentsIsNil applies the IsNil predicate on the "arguments" field.

func ArgumentsNotNil

func ArgumentsNotNil() predicate.ProviderCommand

ArgumentsNotNil applies the NotNil predicate on the "arguments" field.

func CommandTypeEQ

func CommandTypeEQ(v CommandType) predicate.ProviderCommand

CommandTypeEQ applies the EQ predicate on the "command_type" field.

func CommandTypeIn

func CommandTypeIn(vs ...CommandType) predicate.ProviderCommand

CommandTypeIn applies the In predicate on the "command_type" field.

func CommandTypeNEQ

func CommandTypeNEQ(v CommandType) predicate.ProviderCommand

CommandTypeNEQ applies the NEQ predicate on the "command_type" field.

func CommandTypeNotIn

func CommandTypeNotIn(vs ...CommandType) predicate.ProviderCommand

CommandTypeNotIn applies the NotIn predicate on the "command_type" field.

func CommandTypeValidator

func CommandTypeValidator(ct CommandType) error

CommandTypeValidator is a validator for the "command_type" field enum values. It is called by the builders before save.

func CreatedAt

func CreatedAt(v time.Time) predicate.ProviderCommand

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ProviderCommand

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ProviderCommand

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ProviderCommand

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ProviderCommand

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ProviderCommand

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ProviderCommand

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

func CreatedAtNotIn

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

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

func EndTime

EndTime applies equality check predicate on the "end_time" field. It's identical to EndTimeEQ.

func EndTimeEQ

func EndTimeEQ(v time.Time) predicate.ProviderCommand

EndTimeEQ applies the EQ predicate on the "end_time" field.

func EndTimeGT

func EndTimeGT(v time.Time) predicate.ProviderCommand

EndTimeGT applies the GT predicate on the "end_time" field.

func EndTimeGTE

func EndTimeGTE(v time.Time) predicate.ProviderCommand

EndTimeGTE applies the GTE predicate on the "end_time" field.

func EndTimeIn

func EndTimeIn(vs ...time.Time) predicate.ProviderCommand

EndTimeIn applies the In predicate on the "end_time" field.

func EndTimeIsNil

func EndTimeIsNil() predicate.ProviderCommand

EndTimeIsNil applies the IsNil predicate on the "end_time" field.

func EndTimeLT

func EndTimeLT(v time.Time) predicate.ProviderCommand

EndTimeLT applies the LT predicate on the "end_time" field.

func EndTimeLTE

func EndTimeLTE(v time.Time) predicate.ProviderCommand

EndTimeLTE applies the LTE predicate on the "end_time" field.

func EndTimeNEQ

func EndTimeNEQ(v time.Time) predicate.ProviderCommand

EndTimeNEQ applies the NEQ predicate on the "end_time" field.

func EndTimeNotIn

func EndTimeNotIn(vs ...time.Time) predicate.ProviderCommand

EndTimeNotIn applies the NotIn predicate on the "end_time" field.

func EndTimeNotNil

func EndTimeNotNil() predicate.ProviderCommand

EndTimeNotNil applies the NotNil predicate on the "end_time" field.

func Error

Error applies equality check predicate on the "error" field. It's identical to ErrorEQ.

func ErrorContains

func ErrorContains(v string) predicate.ProviderCommand

ErrorContains applies the Contains predicate on the "error" field.

func ErrorContainsFold

func ErrorContainsFold(v string) predicate.ProviderCommand

ErrorContainsFold applies the ContainsFold predicate on the "error" field.

func ErrorEQ

func ErrorEQ(v string) predicate.ProviderCommand

ErrorEQ applies the EQ predicate on the "error" field.

func ErrorEqualFold

func ErrorEqualFold(v string) predicate.ProviderCommand

ErrorEqualFold applies the EqualFold predicate on the "error" field.

func ErrorGT

func ErrorGT(v string) predicate.ProviderCommand

ErrorGT applies the GT predicate on the "error" field.

func ErrorGTE

func ErrorGTE(v string) predicate.ProviderCommand

ErrorGTE applies the GTE predicate on the "error" field.

func ErrorHasPrefix

func ErrorHasPrefix(v string) predicate.ProviderCommand

ErrorHasPrefix applies the HasPrefix predicate on the "error" field.

func ErrorHasSuffix

func ErrorHasSuffix(v string) predicate.ProviderCommand

ErrorHasSuffix applies the HasSuffix predicate on the "error" field.

func ErrorIn

func ErrorIn(vs ...string) predicate.ProviderCommand

ErrorIn applies the In predicate on the "error" field.

func ErrorLT

func ErrorLT(v string) predicate.ProviderCommand

ErrorLT applies the LT predicate on the "error" field.

func ErrorLTE

func ErrorLTE(v string) predicate.ProviderCommand

ErrorLTE applies the LTE predicate on the "error" field.

func ErrorNEQ

func ErrorNEQ(v string) predicate.ProviderCommand

ErrorNEQ applies the NEQ predicate on the "error" field.

func ErrorNotIn

func ErrorNotIn(vs ...string) predicate.ProviderCommand

ErrorNotIn applies the NotIn predicate on the "error" field.

func HasDeployment

func HasDeployment() predicate.ProviderCommand

HasDeployment applies the HasEdge predicate on the "deployment" edge.

func HasDeploymentWith

func HasDeploymentWith(preds ...predicate.Deployment) predicate.ProviderCommand

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

func HasProvider

func HasProvider() predicate.ProviderCommand

HasProvider applies the HasEdge predicate on the "provider" edge.

func HasProviderWith

func HasProviderWith(preds ...predicate.Provider) predicate.ProviderCommand

HasProviderWith applies the HasEdge predicate on the "provider" 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 ...uuid.UUID) predicate.ProviderCommand

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 ...uuid.UUID) predicate.ProviderCommand

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 Output

Output applies equality check predicate on the "output" field. It's identical to OutputEQ.

func OutputContains

func OutputContains(v string) predicate.ProviderCommand

OutputContains applies the Contains predicate on the "output" field.

func OutputContainsFold

func OutputContainsFold(v string) predicate.ProviderCommand

OutputContainsFold applies the ContainsFold predicate on the "output" field.

func OutputEQ

func OutputEQ(v string) predicate.ProviderCommand

OutputEQ applies the EQ predicate on the "output" field.

func OutputEqualFold

func OutputEqualFold(v string) predicate.ProviderCommand

OutputEqualFold applies the EqualFold predicate on the "output" field.

func OutputGT

func OutputGT(v string) predicate.ProviderCommand

OutputGT applies the GT predicate on the "output" field.

func OutputGTE

func OutputGTE(v string) predicate.ProviderCommand

OutputGTE applies the GTE predicate on the "output" field.

func OutputHasPrefix

func OutputHasPrefix(v string) predicate.ProviderCommand

OutputHasPrefix applies the HasPrefix predicate on the "output" field.

func OutputHasSuffix

func OutputHasSuffix(v string) predicate.ProviderCommand

OutputHasSuffix applies the HasSuffix predicate on the "output" field.

func OutputIn

func OutputIn(vs ...string) predicate.ProviderCommand

OutputIn applies the In predicate on the "output" field.

func OutputLT

func OutputLT(v string) predicate.ProviderCommand

OutputLT applies the LT predicate on the "output" field.

func OutputLTE

func OutputLTE(v string) predicate.ProviderCommand

OutputLTE applies the LTE predicate on the "output" field.

func OutputNEQ

func OutputNEQ(v string) predicate.ProviderCommand

OutputNEQ applies the NEQ predicate on the "output" field.

func OutputNotIn

func OutputNotIn(vs ...string) predicate.ProviderCommand

OutputNotIn applies the NotIn predicate on the "output" field.

func StartTime

func StartTime(v time.Time) predicate.ProviderCommand

StartTime applies equality check predicate on the "start_time" field. It's identical to StartTimeEQ.

func StartTimeEQ

func StartTimeEQ(v time.Time) predicate.ProviderCommand

StartTimeEQ applies the EQ predicate on the "start_time" field.

func StartTimeGT

func StartTimeGT(v time.Time) predicate.ProviderCommand

StartTimeGT applies the GT predicate on the "start_time" field.

func StartTimeGTE

func StartTimeGTE(v time.Time) predicate.ProviderCommand

StartTimeGTE applies the GTE predicate on the "start_time" field.

func StartTimeIn

func StartTimeIn(vs ...time.Time) predicate.ProviderCommand

StartTimeIn applies the In predicate on the "start_time" field.

func StartTimeIsNil

func StartTimeIsNil() predicate.ProviderCommand

StartTimeIsNil applies the IsNil predicate on the "start_time" field.

func StartTimeLT

func StartTimeLT(v time.Time) predicate.ProviderCommand

StartTimeLT applies the LT predicate on the "start_time" field.

func StartTimeLTE

func StartTimeLTE(v time.Time) predicate.ProviderCommand

StartTimeLTE applies the LTE predicate on the "start_time" field.

func StartTimeNEQ

func StartTimeNEQ(v time.Time) predicate.ProviderCommand

StartTimeNEQ applies the NEQ predicate on the "start_time" field.

func StartTimeNotIn

func StartTimeNotIn(vs ...time.Time) predicate.ProviderCommand

StartTimeNotIn applies the NotIn predicate on the "start_time" field.

func StartTimeNotNil

func StartTimeNotNil() predicate.ProviderCommand

StartTimeNotNil applies the NotNil predicate on the "start_time" field.

func StatusEQ

func StatusEQ(v Status) predicate.ProviderCommand

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

func StatusIn

func StatusIn(vs ...Status) predicate.ProviderCommand

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

func StatusNEQ

func StatusNEQ(v Status) predicate.ProviderCommand

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

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.ProviderCommand

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

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.ProviderCommand

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.ProviderCommand

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ProviderCommand

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ProviderCommand

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ProviderCommand

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ProviderCommand

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ProviderCommand

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

func UpdatedAtNotIn

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

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

type CommandType

type CommandType string

CommandType defines the type for the "command_type" enum field.

const (
	CommandTypeCONFIGURE CommandType = "CONFIGURE"
	CommandTypeDEPLOY    CommandType = "DEPLOY"
	CommandTypeDESTROY   CommandType = "DESTROY"
	CommandTypeCONSOLE   CommandType = "CONSOLE"
)

CommandType values.

func (CommandType) String

func (ct CommandType) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the ProviderCommand queries.

func ByCommandType

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

ByCommandType orders the results by the command_type field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDeploymentField

func ByDeploymentField(field string, opts ...sql.OrderTermOption) OrderOption

ByDeploymentField orders the results by deployment field.

func ByEndTime

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

ByEndTime orders the results by the end_time field.

func ByError

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

ByError orders the results by the error field.

func ByID

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

ByID orders the results by the id field.

func ByOutput

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

ByOutput orders the results by the output field.

func ByProviderField

func ByProviderField(field string, opts ...sql.OrderTermOption) OrderOption

ByProviderField orders the results by provider field.

func ByStartTime

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

ByStartTime orders the results by the start_time field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusQUEUED     Status = "QUEUED"
	StatusFAILED     Status = "FAILED"
	StatusSUCCEEDED  Status = "SUCCEEDED"
	StatusINPROGRESS Status = "INPROGRESS"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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