Documentation ¶
Index ¶
- Constants
- Variables
- func AmiID(v string) predicate.Process
- func AmiIDContains(v string) predicate.Process
- func AmiIDContainsFold(v string) predicate.Process
- func AmiIDEQ(v string) predicate.Process
- func AmiIDEqualFold(v string) predicate.Process
- func AmiIDGT(v string) predicate.Process
- func AmiIDGTE(v string) predicate.Process
- func AmiIDHasPrefix(v string) predicate.Process
- func AmiIDHasSuffix(v string) predicate.Process
- func AmiIDIn(vs ...string) predicate.Process
- func AmiIDLT(v string) predicate.Process
- func AmiIDLTE(v string) predicate.Process
- func AmiIDNEQ(v string) predicate.Process
- func AmiIDNotIn(vs ...string) predicate.Process
- func And(predicates ...predicate.Process) predicate.Process
- func CreatedAt(v time.Time) predicate.Process
- func CreatedAtEQ(v time.Time) predicate.Process
- func CreatedAtGT(v time.Time) predicate.Process
- func CreatedAtGTE(v time.Time) predicate.Process
- func CreatedAtIn(vs ...time.Time) predicate.Process
- func CreatedAtLT(v time.Time) predicate.Process
- func CreatedAtLTE(v time.Time) predicate.Process
- func CreatedAtNEQ(v time.Time) predicate.Process
- func CreatedAtNotIn(vs ...time.Time) predicate.Process
- func Expiration(v int) predicate.Process
- func ExpirationEQ(v int) predicate.Process
- func ExpirationGT(v int) predicate.Process
- func ExpirationGTE(v int) predicate.Process
- func ExpirationIn(vs ...int) predicate.Process
- func ExpirationLT(v int) predicate.Process
- func ExpirationLTE(v int) predicate.Process
- func ExpirationNEQ(v int) predicate.Process
- func ExpirationNotIn(vs ...int) predicate.Process
- func HasCredentials() predicate.Process
- func HasCredentialsWith(preds ...predicate.Credential) predicate.Process
- func HasStack() predicate.Process
- func HasStackWith(preds ...predicate.Stack) predicate.Process
- func HasTasks() predicate.Process
- func HasTasksWith(preds ...predicate.Task) predicate.Process
- func ID(id string) predicate.Process
- func IDEQ(id string) predicate.Process
- func IDGT(id string) predicate.Process
- func IDGTE(id string) predicate.Process
- func IDIn(ids ...string) predicate.Process
- func IDLT(id string) predicate.Process
- func IDLTE(id string) predicate.Process
- func IDNEQ(id string) predicate.Process
- func IDNotIn(ids ...string) predicate.Process
- func InstanceType(v string) predicate.Process
- func InstanceTypeContains(v string) predicate.Process
- func InstanceTypeContainsFold(v string) predicate.Process
- func InstanceTypeEQ(v string) predicate.Process
- func InstanceTypeEqualFold(v string) predicate.Process
- func InstanceTypeGT(v string) predicate.Process
- func InstanceTypeGTE(v string) predicate.Process
- func InstanceTypeHasPrefix(v string) predicate.Process
- func InstanceTypeHasSuffix(v string) predicate.Process
- func InstanceTypeIn(vs ...string) predicate.Process
- func InstanceTypeLT(v string) predicate.Process
- func InstanceTypeLTE(v string) predicate.Process
- func InstanceTypeNEQ(v string) predicate.Process
- func InstanceTypeNotIn(vs ...string) predicate.Process
- func Name(v string) predicate.Process
- func NameContains(v string) predicate.Process
- func NameContainsFold(v string) predicate.Process
- func NameEQ(v string) predicate.Process
- func NameEqualFold(v string) predicate.Process
- func NameGT(v string) predicate.Process
- func NameGTE(v string) predicate.Process
- func NameHasPrefix(v string) predicate.Process
- func NameHasSuffix(v string) predicate.Process
- func NameIn(vs ...string) predicate.Process
- func NameIsNil() predicate.Process
- func NameLT(v string) predicate.Process
- func NameLTE(v string) predicate.Process
- func NameNEQ(v string) predicate.Process
- func NameNotIn(vs ...string) predicate.Process
- func NameNotNil() predicate.Process
- func Not(p predicate.Process) predicate.Process
- func Or(predicates ...predicate.Process) predicate.Process
- func ResourcePrefix(v string) predicate.Process
- func ResourcePrefixContains(v string) predicate.Process
- func ResourcePrefixContainsFold(v string) predicate.Process
- func ResourcePrefixEQ(v string) predicate.Process
- func ResourcePrefixEqualFold(v string) predicate.Process
- func ResourcePrefixGT(v string) predicate.Process
- func ResourcePrefixGTE(v string) predicate.Process
- func ResourcePrefixHasPrefix(v string) predicate.Process
- func ResourcePrefixHasSuffix(v string) predicate.Process
- func ResourcePrefixIn(vs ...string) predicate.Process
- func ResourcePrefixLT(v string) predicate.Process
- func ResourcePrefixLTE(v string) predicate.Process
- func ResourcePrefixNEQ(v string) predicate.Process
- func ResourcePrefixNotIn(vs ...string) predicate.Process
- func StateEQ(v State) predicate.Process
- func StateIn(vs ...State) predicate.Process
- func StateNEQ(v State) predicate.Process
- func StateNotIn(vs ...State) predicate.Process
- func StateValidator(s State) error
- func Timeout(v int) predicate.Process
- func TimeoutEQ(v int) predicate.Process
- func TimeoutGT(v int) predicate.Process
- func TimeoutGTE(v int) predicate.Process
- func TimeoutIn(vs ...int) predicate.Process
- func TimeoutIsNil() predicate.Process
- func TimeoutLT(v int) predicate.Process
- func TimeoutLTE(v int) predicate.Process
- func TimeoutNEQ(v int) predicate.Process
- func TimeoutNotIn(vs ...int) predicate.Process
- func TimeoutNotNil() predicate.Process
- func Token(v string) predicate.Process
- func TokenContains(v string) predicate.Process
- func TokenContainsFold(v string) predicate.Process
- func TokenEQ(v string) predicate.Process
- func TokenEqualFold(v string) predicate.Process
- func TokenGT(v string) predicate.Process
- func TokenGTE(v string) predicate.Process
- func TokenHasPrefix(v string) predicate.Process
- func TokenHasSuffix(v string) predicate.Process
- func TokenIn(vs ...string) predicate.Process
- func TokenLT(v string) predicate.Process
- func TokenLTE(v string) predicate.Process
- func TokenNEQ(v string) predicate.Process
- func TokenNotIn(vs ...string) predicate.Process
- func UpdatedAt(v time.Time) predicate.Process
- func UpdatedAtEQ(v time.Time) predicate.Process
- func UpdatedAtGT(v time.Time) predicate.Process
- func UpdatedAtGTE(v time.Time) predicate.Process
- func UpdatedAtIn(vs ...time.Time) predicate.Process
- func UpdatedAtLT(v time.Time) predicate.Process
- func UpdatedAtLTE(v time.Time) predicate.Process
- func UpdatedAtNEQ(v time.Time) predicate.Process
- func UpdatedAtNotIn(vs ...time.Time) predicate.Process
- func ValidColumn(column string) bool
- type State
Constants ¶
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" )
const DefaultState = StatePENDING
StatePENDING is the default value of the State enum.
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 // 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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldToken, FieldInstanceType, FieldAmiID, FieldResourcePrefix, FieldTimeout, FieldExpiration, FieldState, }
Columns holds all SQL columns for process fields.
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 ¶
AmiID applies equality check predicate on the "ami_id" field. It's identical to AmiIDEQ.
func AmiIDContains ¶
AmiIDContains applies the Contains predicate on the "ami_id" field.
func AmiIDContainsFold ¶
AmiIDContainsFold applies the ContainsFold predicate on the "ami_id" field.
func AmiIDEqualFold ¶
AmiIDEqualFold applies the EqualFold predicate on the "ami_id" field.
func AmiIDHasPrefix ¶
AmiIDHasPrefix applies the HasPrefix predicate on the "ami_id" field.
func AmiIDHasSuffix ¶
AmiIDHasSuffix applies the HasSuffix predicate on the "ami_id" field.
func AmiIDNotIn ¶
AmiIDNotIn applies the NotIn predicate on the "ami_id" 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 Expiration ¶
Expiration applies equality check predicate on the "expiration" field. It's identical to ExpirationEQ.
func ExpirationEQ ¶
ExpirationEQ applies the EQ predicate on the "expiration" field.
func ExpirationGT ¶
ExpirationGT applies the GT predicate on the "expiration" field.
func ExpirationGTE ¶
ExpirationGTE applies the GTE predicate on the "expiration" field.
func ExpirationIn ¶
ExpirationIn applies the In predicate on the "expiration" field.
func ExpirationLT ¶
ExpirationLT applies the LT predicate on the "expiration" field.
func ExpirationLTE ¶
ExpirationLTE applies the LTE predicate on the "expiration" field.
func ExpirationNEQ ¶
ExpirationNEQ applies the NEQ predicate on the "expiration" field.
func ExpirationNotIn ¶
ExpirationNotIn applies the NotIn predicate on the "expiration" field.
func HasCredentials ¶
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 HasStackWith ¶
HasStackWith applies the HasEdge predicate on the "stack" edge with a given conditions (other predicates).
func HasTasksWith ¶
HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).
func InstanceType ¶
InstanceType applies equality check predicate on the "instance_type" field. It's identical to InstanceTypeEQ.
func InstanceTypeContains ¶
InstanceTypeContains applies the Contains predicate on the "instance_type" field.
func InstanceTypeContainsFold ¶
InstanceTypeContainsFold applies the ContainsFold predicate on the "instance_type" field.
func InstanceTypeEQ ¶
InstanceTypeEQ applies the EQ predicate on the "instance_type" field.
func InstanceTypeEqualFold ¶
InstanceTypeEqualFold applies the EqualFold predicate on the "instance_type" field.
func InstanceTypeGT ¶
InstanceTypeGT applies the GT predicate on the "instance_type" field.
func InstanceTypeGTE ¶
InstanceTypeGTE applies the GTE predicate on the "instance_type" field.
func InstanceTypeHasPrefix ¶
InstanceTypeHasPrefix applies the HasPrefix predicate on the "instance_type" field.
func InstanceTypeHasSuffix ¶
InstanceTypeHasSuffix applies the HasSuffix predicate on the "instance_type" field.
func InstanceTypeIn ¶
InstanceTypeIn applies the In predicate on the "instance_type" field.
func InstanceTypeLT ¶
InstanceTypeLT applies the LT predicate on the "instance_type" field.
func InstanceTypeLTE ¶
InstanceTypeLTE applies the LTE predicate on the "instance_type" field.
func InstanceTypeNEQ ¶
InstanceTypeNEQ applies the NEQ predicate on the "instance_type" field.
func InstanceTypeNotIn ¶
InstanceTypeNotIn applies the NotIn predicate on the "instance_type" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameNotNil ¶
NameNotNil applies the NotNil predicate on the "name" field.
func ResourcePrefix ¶
ResourcePrefix applies equality check predicate on the "resource_prefix" field. It's identical to ResourcePrefixEQ.
func ResourcePrefixContains ¶
ResourcePrefixContains applies the Contains predicate on the "resource_prefix" field.
func ResourcePrefixContainsFold ¶
ResourcePrefixContainsFold applies the ContainsFold predicate on the "resource_prefix" field.
func ResourcePrefixEQ ¶
ResourcePrefixEQ applies the EQ predicate on the "resource_prefix" field.
func ResourcePrefixEqualFold ¶
ResourcePrefixEqualFold applies the EqualFold predicate on the "resource_prefix" field.
func ResourcePrefixGT ¶
ResourcePrefixGT applies the GT predicate on the "resource_prefix" field.
func ResourcePrefixGTE ¶
ResourcePrefixGTE applies the GTE predicate on the "resource_prefix" field.
func ResourcePrefixHasPrefix ¶
ResourcePrefixHasPrefix applies the HasPrefix predicate on the "resource_prefix" field.
func ResourcePrefixHasSuffix ¶
ResourcePrefixHasSuffix applies the HasSuffix predicate on the "resource_prefix" field.
func ResourcePrefixIn ¶
ResourcePrefixIn applies the In predicate on the "resource_prefix" field.
func ResourcePrefixLT ¶
ResourcePrefixLT applies the LT predicate on the "resource_prefix" field.
func ResourcePrefixLTE ¶
ResourcePrefixLTE applies the LTE predicate on the "resource_prefix" field.
func ResourcePrefixNEQ ¶
ResourcePrefixNEQ applies the NEQ predicate on the "resource_prefix" field.
func ResourcePrefixNotIn ¶
ResourcePrefixNotIn applies the NotIn predicate on the "resource_prefix" field.
func StateNotIn ¶
StateNotIn applies the NotIn predicate on the "state" field.
func StateValidator ¶
StateValidator is a validator for the "state" field enum values. It is called by the builders before save.
func Timeout ¶
Timeout applies equality check predicate on the "timeout" field. It's identical to TimeoutEQ.
func TimeoutGTE ¶
TimeoutGTE applies the GTE predicate on the "timeout" field.
func TimeoutIsNil ¶
TimeoutIsNil applies the IsNil predicate on the "timeout" field.
func TimeoutLTE ¶
TimeoutLTE applies the LTE predicate on the "timeout" field.
func TimeoutNEQ ¶
TimeoutNEQ applies the NEQ predicate on the "timeout" field.
func TimeoutNotIn ¶
TimeoutNotIn applies the NotIn predicate on the "timeout" field.
func TimeoutNotNil ¶
TimeoutNotNil applies the NotNil predicate on the "timeout" field.
func Token ¶
Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
func TokenContains ¶
TokenContains applies the Contains predicate on the "token" field.
func TokenContainsFold ¶
TokenContainsFold applies the ContainsFold predicate on the "token" field.
func TokenEqualFold ¶
TokenEqualFold applies the EqualFold predicate on the "token" field.
func TokenHasPrefix ¶
TokenHasPrefix applies the HasPrefix predicate on the "token" field.
func TokenHasSuffix ¶
TokenHasSuffix applies the HasSuffix predicate on the "token" field.
func TokenNotIn ¶
TokenNotIn applies the NotIn predicate on the "token" 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 ¶
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.