process

package
v0.0.0-...-3e288c8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the process type in the database.
	Label = "process"
	// 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"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldToken holds the string denoting the token field in the database.
	FieldToken = "token"
	// FieldInstanceType holds the string denoting the instance_type field in the database.
	FieldInstanceType = "instance_type"
	// FieldAmiID holds the string denoting the ami_id field in the database.
	FieldAmiID = "ami_id"
	// FieldResourcePrefix holds the string denoting the resource_prefix field in the database.
	FieldResourcePrefix = "resource_prefix"
	// FieldTimeout holds the string denoting the timeout field in the database.
	FieldTimeout = "timeout"
	// FieldExpiration holds the string denoting the expiration field in the database.
	FieldExpiration = "expiration"
	// FieldState holds the string denoting the state field in the database.
	FieldState = "state"
	// EdgeStack holds the string denoting the stack edge name in mutations.
	EdgeStack = "stack"
	// EdgeCredentials holds the string denoting the credentials edge name in mutations.
	EdgeCredentials = "credentials"
	// EdgeTasks holds the string denoting the tasks edge name in mutations.
	EdgeTasks = "tasks"
	// Table holds the table name of the process in the database.
	Table = "processes"
	// StackTable is the table that holds the stack relation/edge.
	StackTable = "processes"
	// StackInverseTable is the table name for the Stack entity.
	// It exists in this package in order to avoid circular dependency with the "stack" package.
	StackInverseTable = "stacks"
	// StackColumn is the table column denoting the stack relation/edge.
	StackColumn = "process_stack"
	// CredentialsTable is the table that holds the credentials relation/edge.
	CredentialsTable = "credentials"
	// CredentialsInverseTable is the table name for the Credential entity.
	// It exists in this package in order to avoid circular dependency with the "credential" package.
	CredentialsInverseTable = "credentials"
	// CredentialsColumn is the table column denoting the credentials relation/edge.
	CredentialsColumn = "process_credentials"
	// TasksTable is the table that holds the tasks relation/edge.
	TasksTable = "tasks"
	// TasksInverseTable is the table name for the Task entity.
	// It exists in this package in order to avoid circular dependency with the "task" package.
	TasksInverseTable = "tasks"
	// TasksColumn is the table column denoting the tasks relation/edge.
	TasksColumn = "process_tasks"
)
View Source
const DefaultState = StatePENDING

StatePENDING is the default value of the State 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
	// TimeoutValidator is a validator for the "timeout" field. It is called by the builders before save.
	TimeoutValidator func(int) error
	// ExpirationValidator is a validator for the "expiration" field. It is called by the builders before save.
	ExpirationValidator func(int) error
)

Columns holds all SQL columns for process fields.

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

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

Functions

func AmiID

func AmiID(v string) predicate.Process

AmiID applies equality check predicate on the "ami_id" field. It's identical to AmiIDEQ.

func AmiIDContains

func AmiIDContains(v string) predicate.Process

AmiIDContains applies the Contains predicate on the "ami_id" field.

func AmiIDContainsFold

func AmiIDContainsFold(v string) predicate.Process

AmiIDContainsFold applies the ContainsFold predicate on the "ami_id" field.

func AmiIDEQ

func AmiIDEQ(v string) predicate.Process

AmiIDEQ applies the EQ predicate on the "ami_id" field.

func AmiIDEqualFold

func AmiIDEqualFold(v string) predicate.Process

AmiIDEqualFold applies the EqualFold predicate on the "ami_id" field.

func AmiIDGT

func AmiIDGT(v string) predicate.Process

AmiIDGT applies the GT predicate on the "ami_id" field.

func AmiIDGTE

func AmiIDGTE(v string) predicate.Process

AmiIDGTE applies the GTE predicate on the "ami_id" field.

func AmiIDHasPrefix

func AmiIDHasPrefix(v string) predicate.Process

AmiIDHasPrefix applies the HasPrefix predicate on the "ami_id" field.

func AmiIDHasSuffix

func AmiIDHasSuffix(v string) predicate.Process

AmiIDHasSuffix applies the HasSuffix predicate on the "ami_id" field.

func AmiIDIn

func AmiIDIn(vs ...string) predicate.Process

AmiIDIn applies the In predicate on the "ami_id" field.

func AmiIDLT

func AmiIDLT(v string) predicate.Process

AmiIDLT applies the LT predicate on the "ami_id" field.

func AmiIDLTE

func AmiIDLTE(v string) predicate.Process

AmiIDLTE applies the LTE predicate on the "ami_id" field.

func AmiIDNEQ

func AmiIDNEQ(v string) predicate.Process

AmiIDNEQ applies the NEQ predicate on the "ami_id" field.

func AmiIDNotIn

func AmiIDNotIn(vs ...string) predicate.Process

AmiIDNotIn applies the NotIn predicate on the "ami_id" field.

func And

func And(predicates ...predicate.Process) predicate.Process

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Process

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Process

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Process

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Process

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Process

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Process

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Process

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

func CreatedAtNotIn

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

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

func Expiration

func Expiration(v int) predicate.Process

Expiration applies equality check predicate on the "expiration" field. It's identical to ExpirationEQ.

func ExpirationEQ

func ExpirationEQ(v int) predicate.Process

ExpirationEQ applies the EQ predicate on the "expiration" field.

func ExpirationGT

func ExpirationGT(v int) predicate.Process

ExpirationGT applies the GT predicate on the "expiration" field.

func ExpirationGTE

func ExpirationGTE(v int) predicate.Process

ExpirationGTE applies the GTE predicate on the "expiration" field.

func ExpirationIn

func ExpirationIn(vs ...int) predicate.Process

ExpirationIn applies the In predicate on the "expiration" field.

func ExpirationLT

func ExpirationLT(v int) predicate.Process

ExpirationLT applies the LT predicate on the "expiration" field.

func ExpirationLTE

func ExpirationLTE(v int) predicate.Process

ExpirationLTE applies the LTE predicate on the "expiration" field.

func ExpirationNEQ

func ExpirationNEQ(v int) predicate.Process

ExpirationNEQ applies the NEQ predicate on the "expiration" field.

func ExpirationNotIn

func ExpirationNotIn(vs ...int) predicate.Process

ExpirationNotIn applies the NotIn predicate on the "expiration" field.

func HasCredentials

func HasCredentials() predicate.Process

HasCredentials applies the HasEdge predicate on the "credentials" edge.

func HasCredentialsWith

func HasCredentialsWith(preds ...predicate.Credential) predicate.Process

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

func HasStack

func HasStack() predicate.Process

HasStack applies the HasEdge predicate on the "stack" edge.

func HasStackWith

func HasStackWith(preds ...predicate.Stack) predicate.Process

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

func HasTasks

func HasTasks() predicate.Process

HasTasks applies the HasEdge predicate on the "tasks" edge.

func HasTasksWith

func HasTasksWith(preds ...predicate.Task) predicate.Process

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

func ID

func ID(id string) predicate.Process

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Process

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Process

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Process

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Process

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Process

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Process

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Process

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Process

IDNotIn applies the NotIn predicate on the ID field.

func InstanceType

func InstanceType(v string) predicate.Process

InstanceType applies equality check predicate on the "instance_type" field. It's identical to InstanceTypeEQ.

func InstanceTypeContains

func InstanceTypeContains(v string) predicate.Process

InstanceTypeContains applies the Contains predicate on the "instance_type" field.

func InstanceTypeContainsFold

func InstanceTypeContainsFold(v string) predicate.Process

InstanceTypeContainsFold applies the ContainsFold predicate on the "instance_type" field.

func InstanceTypeEQ

func InstanceTypeEQ(v string) predicate.Process

InstanceTypeEQ applies the EQ predicate on the "instance_type" field.

func InstanceTypeEqualFold

func InstanceTypeEqualFold(v string) predicate.Process

InstanceTypeEqualFold applies the EqualFold predicate on the "instance_type" field.

func InstanceTypeGT

func InstanceTypeGT(v string) predicate.Process

InstanceTypeGT applies the GT predicate on the "instance_type" field.

func InstanceTypeGTE

func InstanceTypeGTE(v string) predicate.Process

InstanceTypeGTE applies the GTE predicate on the "instance_type" field.

func InstanceTypeHasPrefix

func InstanceTypeHasPrefix(v string) predicate.Process

InstanceTypeHasPrefix applies the HasPrefix predicate on the "instance_type" field.

func InstanceTypeHasSuffix

func InstanceTypeHasSuffix(v string) predicate.Process

InstanceTypeHasSuffix applies the HasSuffix predicate on the "instance_type" field.

func InstanceTypeIn

func InstanceTypeIn(vs ...string) predicate.Process

InstanceTypeIn applies the In predicate on the "instance_type" field.

func InstanceTypeLT

func InstanceTypeLT(v string) predicate.Process

InstanceTypeLT applies the LT predicate on the "instance_type" field.

func InstanceTypeLTE

func InstanceTypeLTE(v string) predicate.Process

InstanceTypeLTE applies the LTE predicate on the "instance_type" field.

func InstanceTypeNEQ

func InstanceTypeNEQ(v string) predicate.Process

InstanceTypeNEQ applies the NEQ predicate on the "instance_type" field.

func InstanceTypeNotIn

func InstanceTypeNotIn(vs ...string) predicate.Process

InstanceTypeNotIn applies the NotIn predicate on the "instance_type" field.

func Name

func Name(v string) predicate.Process

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Process

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Process

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Process

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Process

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Process

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Process

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Process

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Process

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Process

NameIn applies the In predicate on the "name" field.

func NameIsNil

func NameIsNil() predicate.Process

NameIsNil applies the IsNil predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Process

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Process

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Process

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Process

NameNotIn applies the NotIn predicate on the "name" field.

func NameNotNil

func NameNotNil() predicate.Process

NameNotNil applies the NotNil predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Process) predicate.Process

Or groups predicates with the OR operator between them.

func ResourcePrefix

func ResourcePrefix(v string) predicate.Process

ResourcePrefix applies equality check predicate on the "resource_prefix" field. It's identical to ResourcePrefixEQ.

func ResourcePrefixContains

func ResourcePrefixContains(v string) predicate.Process

ResourcePrefixContains applies the Contains predicate on the "resource_prefix" field.

func ResourcePrefixContainsFold

func ResourcePrefixContainsFold(v string) predicate.Process

ResourcePrefixContainsFold applies the ContainsFold predicate on the "resource_prefix" field.

func ResourcePrefixEQ

func ResourcePrefixEQ(v string) predicate.Process

ResourcePrefixEQ applies the EQ predicate on the "resource_prefix" field.

func ResourcePrefixEqualFold

func ResourcePrefixEqualFold(v string) predicate.Process

ResourcePrefixEqualFold applies the EqualFold predicate on the "resource_prefix" field.

func ResourcePrefixGT

func ResourcePrefixGT(v string) predicate.Process

ResourcePrefixGT applies the GT predicate on the "resource_prefix" field.

func ResourcePrefixGTE

func ResourcePrefixGTE(v string) predicate.Process

ResourcePrefixGTE applies the GTE predicate on the "resource_prefix" field.

func ResourcePrefixHasPrefix

func ResourcePrefixHasPrefix(v string) predicate.Process

ResourcePrefixHasPrefix applies the HasPrefix predicate on the "resource_prefix" field.

func ResourcePrefixHasSuffix

func ResourcePrefixHasSuffix(v string) predicate.Process

ResourcePrefixHasSuffix applies the HasSuffix predicate on the "resource_prefix" field.

func ResourcePrefixIn

func ResourcePrefixIn(vs ...string) predicate.Process

ResourcePrefixIn applies the In predicate on the "resource_prefix" field.

func ResourcePrefixLT

func ResourcePrefixLT(v string) predicate.Process

ResourcePrefixLT applies the LT predicate on the "resource_prefix" field.

func ResourcePrefixLTE

func ResourcePrefixLTE(v string) predicate.Process

ResourcePrefixLTE applies the LTE predicate on the "resource_prefix" field.

func ResourcePrefixNEQ

func ResourcePrefixNEQ(v string) predicate.Process

ResourcePrefixNEQ applies the NEQ predicate on the "resource_prefix" field.

func ResourcePrefixNotIn

func ResourcePrefixNotIn(vs ...string) predicate.Process

ResourcePrefixNotIn applies the NotIn predicate on the "resource_prefix" field.

func StateEQ

func StateEQ(v State) predicate.Process

StateEQ applies the EQ predicate on the "state" field.

func StateIn

func StateIn(vs ...State) predicate.Process

StateIn applies the In predicate on the "state" field.

func StateNEQ

func StateNEQ(v State) predicate.Process

StateNEQ applies the NEQ predicate on the "state" field.

func StateNotIn

func StateNotIn(vs ...State) predicate.Process

StateNotIn applies the NotIn predicate on the "state" field.

func StateValidator

func StateValidator(s State) error

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

func Timeout

func Timeout(v int) predicate.Process

Timeout applies equality check predicate on the "timeout" field. It's identical to TimeoutEQ.

func TimeoutEQ

func TimeoutEQ(v int) predicate.Process

TimeoutEQ applies the EQ predicate on the "timeout" field.

func TimeoutGT

func TimeoutGT(v int) predicate.Process

TimeoutGT applies the GT predicate on the "timeout" field.

func TimeoutGTE

func TimeoutGTE(v int) predicate.Process

TimeoutGTE applies the GTE predicate on the "timeout" field.

func TimeoutIn

func TimeoutIn(vs ...int) predicate.Process

TimeoutIn applies the In predicate on the "timeout" field.

func TimeoutIsNil

func TimeoutIsNil() predicate.Process

TimeoutIsNil applies the IsNil predicate on the "timeout" field.

func TimeoutLT

func TimeoutLT(v int) predicate.Process

TimeoutLT applies the LT predicate on the "timeout" field.

func TimeoutLTE

func TimeoutLTE(v int) predicate.Process

TimeoutLTE applies the LTE predicate on the "timeout" field.

func TimeoutNEQ

func TimeoutNEQ(v int) predicate.Process

TimeoutNEQ applies the NEQ predicate on the "timeout" field.

func TimeoutNotIn

func TimeoutNotIn(vs ...int) predicate.Process

TimeoutNotIn applies the NotIn predicate on the "timeout" field.

func TimeoutNotNil

func TimeoutNotNil() predicate.Process

TimeoutNotNil applies the NotNil predicate on the "timeout" field.

func Token

func Token(v string) predicate.Process

Token applies equality check predicate on the "token" field. It's identical to TokenEQ.

func TokenContains

func TokenContains(v string) predicate.Process

TokenContains applies the Contains predicate on the "token" field.

func TokenContainsFold

func TokenContainsFold(v string) predicate.Process

TokenContainsFold applies the ContainsFold predicate on the "token" field.

func TokenEQ

func TokenEQ(v string) predicate.Process

TokenEQ applies the EQ predicate on the "token" field.

func TokenEqualFold

func TokenEqualFold(v string) predicate.Process

TokenEqualFold applies the EqualFold predicate on the "token" field.

func TokenGT

func TokenGT(v string) predicate.Process

TokenGT applies the GT predicate on the "token" field.

func TokenGTE

func TokenGTE(v string) predicate.Process

TokenGTE applies the GTE predicate on the "token" field.

func TokenHasPrefix

func TokenHasPrefix(v string) predicate.Process

TokenHasPrefix applies the HasPrefix predicate on the "token" field.

func TokenHasSuffix

func TokenHasSuffix(v string) predicate.Process

TokenHasSuffix applies the HasSuffix predicate on the "token" field.

func TokenIn

func TokenIn(vs ...string) predicate.Process

TokenIn applies the In predicate on the "token" field.

func TokenLT

func TokenLT(v string) predicate.Process

TokenLT applies the LT predicate on the "token" field.

func TokenLTE

func TokenLTE(v string) predicate.Process

TokenLTE applies the LTE predicate on the "token" field.

func TokenNEQ

func TokenNEQ(v string) predicate.Process

TokenNEQ applies the NEQ predicate on the "token" field.

func TokenNotIn

func TokenNotIn(vs ...string) predicate.Process

TokenNotIn applies the NotIn predicate on the "token" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Process

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Process

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Process

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Process

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Process

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Process

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Process

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

func UpdatedAtNotIn

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

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 State

type State string

State defines the type for the "state" enum field.

const (
	StatePENDING      State = "PENDING"
	StatePROVISIONING State = "PROVISIONING"
	StateDEPLOYING    State = "DEPLOYING"
	StateRUNNING      State = "RUNNING"
	StateIDLE         State = "IDLE"
	StateSTOPPING     State = "STOPPING"
	StateEXIT_TIMEOUT State = "EXIT_TIMEOUT"
	StateEXIT_SUCCESS State = "EXIT_SUCCESS"
)

State values.

func (State) String

func (s State) String() string

Jump to

Keyboard shortcuts

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