Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Deployment) predicate.Deployment
- func CreatedAt(v time.Time) predicate.Deployment
- func CreatedAtEQ(v time.Time) predicate.Deployment
- func CreatedAtGT(v time.Time) predicate.Deployment
- func CreatedAtGTE(v time.Time) predicate.Deployment
- func CreatedAtIn(vs ...time.Time) predicate.Deployment
- func CreatedAtLT(v time.Time) predicate.Deployment
- func CreatedAtLTE(v time.Time) predicate.Deployment
- func CreatedAtNEQ(v time.Time) predicate.Deployment
- func CreatedAtNotIn(vs ...time.Time) predicate.Deployment
- func HasCredentials() predicate.Deployment
- func HasCredentialsWith(preds ...predicate.Credential) predicate.Deployment
- func HasProvider() predicate.Deployment
- func HasProviderWith(preds ...predicate.Provider) predicate.Deployment
- func HasStack() predicate.Deployment
- func HasStackWith(preds ...predicate.Stack) predicate.Deployment
- func HasTasks() predicate.Deployment
- func HasTasksWith(preds ...predicate.Task) predicate.Deployment
- func ID(id uuid.UUID) predicate.Deployment
- func IDEQ(id uuid.UUID) predicate.Deployment
- func IDGT(id uuid.UUID) predicate.Deployment
- func IDGTE(id uuid.UUID) predicate.Deployment
- func IDIn(ids ...uuid.UUID) predicate.Deployment
- func IDLT(id uuid.UUID) predicate.Deployment
- func IDLTE(id uuid.UUID) predicate.Deployment
- func IDNEQ(id uuid.UUID) predicate.Deployment
- func IDNotIn(ids ...uuid.UUID) predicate.Deployment
- func Name(v string) predicate.Deployment
- func NameContains(v string) predicate.Deployment
- func NameContainsFold(v string) predicate.Deployment
- func NameEQ(v string) predicate.Deployment
- func NameEqualFold(v string) predicate.Deployment
- func NameGT(v string) predicate.Deployment
- func NameGTE(v string) predicate.Deployment
- func NameHasPrefix(v string) predicate.Deployment
- func NameHasSuffix(v string) predicate.Deployment
- func NameIn(vs ...string) predicate.Deployment
- func NameIsNil() predicate.Deployment
- func NameLT(v string) predicate.Deployment
- func NameLTE(v string) predicate.Deployment
- func NameNEQ(v string) predicate.Deployment
- func NameNotIn(vs ...string) predicate.Deployment
- func NameNotNil() predicate.Deployment
- func Not(p predicate.Deployment) predicate.Deployment
- func Or(predicates ...predicate.Deployment) predicate.Deployment
- func StateEQ(v State) predicate.Deployment
- func StateIn(vs ...State) predicate.Deployment
- func StateNEQ(v State) predicate.Deployment
- func StateNotIn(vs ...State) predicate.Deployment
- func StateValidator(s State) error
- func Timeout(v int) predicate.Deployment
- func TimeoutEQ(v int) predicate.Deployment
- func TimeoutGT(v int) predicate.Deployment
- func TimeoutGTE(v int) predicate.Deployment
- func TimeoutIn(vs ...int) predicate.Deployment
- func TimeoutLT(v int) predicate.Deployment
- func TimeoutLTE(v int) predicate.Deployment
- func TimeoutNEQ(v int) predicate.Deployment
- func TimeoutNotIn(vs ...int) predicate.Deployment
- func UpdatedAt(v time.Time) predicate.Deployment
- func UpdatedAtEQ(v time.Time) predicate.Deployment
- func UpdatedAtGT(v time.Time) predicate.Deployment
- func UpdatedAtGTE(v time.Time) predicate.Deployment
- func UpdatedAtIn(vs ...time.Time) predicate.Deployment
- func UpdatedAtLT(v time.Time) predicate.Deployment
- func UpdatedAtLTE(v time.Time) predicate.Deployment
- func UpdatedAtNEQ(v time.Time) predicate.Deployment
- func UpdatedAtNotIn(vs ...time.Time) predicate.Deployment
- func ValidColumn(column string) bool
- type State
Constants ¶
const ( // Label holds the string label denoting the deployment type in the database. Label = "deployment" // 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" // FieldState holds the string denoting the state field in the database. FieldState = "state" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldTimeout holds the string denoting the timeout field in the database. FieldTimeout = "timeout" // EdgeTasks holds the string denoting the tasks edge name in mutations. EdgeTasks = "tasks" // EdgeProvider holds the string denoting the provider edge name in mutations. EdgeProvider = "provider" // 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" // Table holds the table name of the deployment in the database. Table = "deployments" // 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 = "deployment_tasks" // ProviderTable is the table that holds the provider relation/edge. ProviderTable = "deployments" // 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 = "deployment_provider" // StackTable is the table that holds the stack relation/edge. StackTable = "stacks" // 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 = "deployment_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 = "deployment_credentials" )
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 // DefaultName holds the default value on creation for the "name" field. DefaultName string // TimeoutValidator is a validator for the "timeout" field. It is called by the builders before save. TimeoutValidator func(int) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldState, FieldName, FieldTimeout, }
Columns holds all SQL columns for deployment fields.
var ForeignKeys = []string{
"deployment_provider",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "deployments" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.Deployment) predicate.Deployment
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Deployment
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Deployment
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Deployment
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Deployment
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Deployment
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Deployment
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Deployment
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Deployment
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Deployment
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasCredentials ¶
func HasCredentials() predicate.Deployment
HasCredentials applies the HasEdge predicate on the "credentials" edge.
func HasCredentialsWith ¶
func HasCredentialsWith(preds ...predicate.Credential) predicate.Deployment
HasCredentialsWith applies the HasEdge predicate on the "credentials" edge with a given conditions (other predicates).
func HasProvider ¶
func HasProvider() predicate.Deployment
HasProvider applies the HasEdge predicate on the "provider" edge.
func HasProviderWith ¶
func HasProviderWith(preds ...predicate.Provider) predicate.Deployment
HasProviderWith applies the HasEdge predicate on the "provider" edge with a given conditions (other predicates).
func HasStack ¶
func HasStack() predicate.Deployment
HasStack applies the HasEdge predicate on the "stack" edge.
func HasStackWith ¶
func HasStackWith(preds ...predicate.Stack) predicate.Deployment
HasStackWith applies the HasEdge predicate on the "stack" edge with a given conditions (other predicates).
func HasTasks ¶
func HasTasks() predicate.Deployment
HasTasks applies the HasEdge predicate on the "tasks" edge.
func HasTasksWith ¶
func HasTasksWith(preds ...predicate.Task) predicate.Deployment
HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.Deployment
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.Deployment
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.Deployment
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.Deployment
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.Deployment
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.Deployment
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.Deployment
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.Deployment
IDNotIn applies the NotIn predicate on the ID field.
func Name ¶
func Name(v string) predicate.Deployment
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.Deployment
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.Deployment
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.Deployment
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.Deployment
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.Deployment
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.Deployment
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.Deployment
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.Deployment
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.Deployment
NameIn applies the In predicate on the "name" field.
func NameIsNil ¶
func NameIsNil() predicate.Deployment
NameIsNil applies the IsNil predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.Deployment
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.Deployment
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.Deployment
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.Deployment
NameNotIn applies the NotIn predicate on the "name" field.
func NameNotNil ¶
func NameNotNil() predicate.Deployment
NameNotNil applies the NotNil predicate on the "name" field.
func Not ¶
func Not(p predicate.Deployment) predicate.Deployment
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Deployment) predicate.Deployment
Or groups predicates with the OR operator between them.
func StateEQ ¶
func StateEQ(v State) predicate.Deployment
StateEQ applies the EQ predicate on the "state" field.
func StateIn ¶
func StateIn(vs ...State) predicate.Deployment
StateIn applies the In predicate on the "state" field.
func StateNEQ ¶
func StateNEQ(v State) predicate.Deployment
StateNEQ applies the NEQ predicate on the "state" field.
func StateNotIn ¶
func StateNotIn(vs ...State) predicate.Deployment
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 ¶
func Timeout(v int) predicate.Deployment
Timeout applies equality check predicate on the "timeout" field. It's identical to TimeoutEQ.
func TimeoutEQ ¶
func TimeoutEQ(v int) predicate.Deployment
TimeoutEQ applies the EQ predicate on the "timeout" field.
func TimeoutGT ¶
func TimeoutGT(v int) predicate.Deployment
TimeoutGT applies the GT predicate on the "timeout" field.
func TimeoutGTE ¶
func TimeoutGTE(v int) predicate.Deployment
TimeoutGTE applies the GTE predicate on the "timeout" field.
func TimeoutIn ¶
func TimeoutIn(vs ...int) predicate.Deployment
TimeoutIn applies the In predicate on the "timeout" field.
func TimeoutLT ¶
func TimeoutLT(v int) predicate.Deployment
TimeoutLT applies the LT predicate on the "timeout" field.
func TimeoutLTE ¶
func TimeoutLTE(v int) predicate.Deployment
TimeoutLTE applies the LTE predicate on the "timeout" field.
func TimeoutNEQ ¶
func TimeoutNEQ(v int) predicate.Deployment
TimeoutNEQ applies the NEQ predicate on the "timeout" field.
func TimeoutNotIn ¶
func TimeoutNotIn(vs ...int) predicate.Deployment
TimeoutNotIn applies the NotIn predicate on the "timeout" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.Deployment
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.Deployment
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.Deployment
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.Deployment
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.Deployment
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.Deployment
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.Deployment
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.Deployment
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.Deployment
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).