Documentation ¶
Index ¶
- Constants
- func IsConstraintError(err error) bool
- func IsNotFound(err error) bool
- func IsNotLoaded(err error) bool
- func IsNotSingular(err error) bool
- func IsValidationError(err error) bool
- func MaskNotFound(err error) error
- func NewContext(parent context.Context, c *Client) context.Context
- func NewTxContext(parent context.Context, tx *Tx) context.Context
- type AggregateFunc
- type Client
- type CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- type Credential
- type CredentialClient
- func (c *CredentialClient) Create() *CredentialCreate
- func (c *CredentialClient) CreateBulk(builders ...*CredentialCreate) *CredentialCreateBulk
- func (c *CredentialClient) Delete() *CredentialDelete
- func (c *CredentialClient) DeleteOne(cr *Credential) *CredentialDeleteOne
- func (c *CredentialClient) DeleteOneID(id uuid.UUID) *CredentialDeleteOne
- func (c *CredentialClient) Get(ctx context.Context, id uuid.UUID) (*Credential, error)
- func (c *CredentialClient) GetX(ctx context.Context, id uuid.UUID) *Credential
- func (c *CredentialClient) Hooks() []Hook
- func (c *CredentialClient) Query() *CredentialQuery
- func (c *CredentialClient) QueryDeployment(cr *Credential) *DeploymentQuery
- func (c *CredentialClient) Update() *CredentialUpdate
- func (c *CredentialClient) UpdateOne(cr *Credential) *CredentialUpdateOne
- func (c *CredentialClient) UpdateOneID(id uuid.UUID) *CredentialUpdateOne
- func (c *CredentialClient) Use(hooks ...Hook)
- type CredentialCreate
- func (cc *CredentialCreate) Exec(ctx context.Context) error
- func (cc *CredentialCreate) ExecX(ctx context.Context)
- func (cc *CredentialCreate) Mutation() *CredentialMutation
- func (cc *CredentialCreate) Save(ctx context.Context) (*Credential, error)
- func (cc *CredentialCreate) SaveX(ctx context.Context) *Credential
- func (cc *CredentialCreate) SetCreatedAt(t time.Time) *CredentialCreate
- func (cc *CredentialCreate) SetDeployment(d *Deployment) *CredentialCreate
- func (cc *CredentialCreate) SetDeploymentID(id uuid.UUID) *CredentialCreate
- func (cc *CredentialCreate) SetID(u uuid.UUID) *CredentialCreate
- func (cc *CredentialCreate) SetNillableCreatedAt(t *time.Time) *CredentialCreate
- func (cc *CredentialCreate) SetNillableDeploymentID(id *uuid.UUID) *CredentialCreate
- func (cc *CredentialCreate) SetNillableUpdatedAt(t *time.Time) *CredentialCreate
- func (cc *CredentialCreate) SetPassword(s string) *CredentialCreate
- func (cc *CredentialCreate) SetRegistry(s string) *CredentialCreate
- func (cc *CredentialCreate) SetUpdatedAt(t time.Time) *CredentialCreate
- func (cc *CredentialCreate) SetUsername(s string) *CredentialCreate
- type CredentialCreateBulk
- type CredentialDelete
- type CredentialDeleteOne
- type CredentialEdges
- type CredentialGroupBy
- func (cgb *CredentialGroupBy) Aggregate(fns ...AggregateFunc) *CredentialGroupBy
- func (cgb *CredentialGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (cgb *CredentialGroupBy) BoolX(ctx context.Context) bool
- func (cgb *CredentialGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (cgb *CredentialGroupBy) BoolsX(ctx context.Context) []bool
- func (cgb *CredentialGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (cgb *CredentialGroupBy) Float64X(ctx context.Context) float64
- func (cgb *CredentialGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (cgb *CredentialGroupBy) Float64sX(ctx context.Context) []float64
- func (cgb *CredentialGroupBy) Int(ctx context.Context) (_ int, err error)
- func (cgb *CredentialGroupBy) IntX(ctx context.Context) int
- func (cgb *CredentialGroupBy) Ints(ctx context.Context) ([]int, error)
- func (cgb *CredentialGroupBy) IntsX(ctx context.Context) []int
- func (cgb *CredentialGroupBy) Scan(ctx context.Context, v interface{}) error
- func (cgb *CredentialGroupBy) ScanX(ctx context.Context, v interface{})
- func (cgb *CredentialGroupBy) String(ctx context.Context) (_ string, err error)
- func (cgb *CredentialGroupBy) StringX(ctx context.Context) string
- func (cgb *CredentialGroupBy) Strings(ctx context.Context) ([]string, error)
- func (cgb *CredentialGroupBy) StringsX(ctx context.Context) []string
- type CredentialMutation
- func (m *CredentialMutation) AddField(name string, value ent.Value) error
- func (m *CredentialMutation) AddedEdges() []string
- func (m *CredentialMutation) AddedField(name string) (ent.Value, bool)
- func (m *CredentialMutation) AddedFields() []string
- func (m *CredentialMutation) AddedIDs(name string) []ent.Value
- func (m *CredentialMutation) ClearDeployment()
- func (m *CredentialMutation) ClearEdge(name string) error
- func (m *CredentialMutation) ClearField(name string) error
- func (m *CredentialMutation) ClearedEdges() []string
- func (m *CredentialMutation) ClearedFields() []string
- func (m CredentialMutation) Client() *Client
- func (m *CredentialMutation) CreatedAt() (r time.Time, exists bool)
- func (m *CredentialMutation) DeploymentCleared() bool
- func (m *CredentialMutation) DeploymentID() (id uuid.UUID, exists bool)
- func (m *CredentialMutation) DeploymentIDs() (ids []uuid.UUID)
- func (m *CredentialMutation) EdgeCleared(name string) bool
- func (m *CredentialMutation) Field(name string) (ent.Value, bool)
- func (m *CredentialMutation) FieldCleared(name string) bool
- func (m *CredentialMutation) Fields() []string
- func (m *CredentialMutation) ID() (id uuid.UUID, exists bool)
- func (m *CredentialMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *CredentialMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *CredentialMutation) OldPassword(ctx context.Context) (v string, err error)
- func (m *CredentialMutation) OldRegistry(ctx context.Context) (v string, err error)
- func (m *CredentialMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *CredentialMutation) OldUsername(ctx context.Context) (v string, err error)
- func (m *CredentialMutation) Op() Op
- func (m *CredentialMutation) Password() (r string, exists bool)
- func (m *CredentialMutation) Registry() (r string, exists bool)
- func (m *CredentialMutation) RemovedEdges() []string
- func (m *CredentialMutation) RemovedIDs(name string) []ent.Value
- func (m *CredentialMutation) ResetCreatedAt()
- func (m *CredentialMutation) ResetDeployment()
- func (m *CredentialMutation) ResetEdge(name string) error
- func (m *CredentialMutation) ResetField(name string) error
- func (m *CredentialMutation) ResetPassword()
- func (m *CredentialMutation) ResetRegistry()
- func (m *CredentialMutation) ResetUpdatedAt()
- func (m *CredentialMutation) ResetUsername()
- func (m *CredentialMutation) SetCreatedAt(t time.Time)
- func (m *CredentialMutation) SetDeploymentID(id uuid.UUID)
- func (m *CredentialMutation) SetField(name string, value ent.Value) error
- func (m *CredentialMutation) SetID(id uuid.UUID)
- func (m *CredentialMutation) SetPassword(s string)
- func (m *CredentialMutation) SetRegistry(s string)
- func (m *CredentialMutation) SetUpdatedAt(t time.Time)
- func (m *CredentialMutation) SetUsername(s string)
- func (m CredentialMutation) Tx() (*Tx, error)
- func (m *CredentialMutation) Type() string
- func (m *CredentialMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *CredentialMutation) Username() (r string, exists bool)
- func (m *CredentialMutation) Where(ps ...predicate.Credential)
- type CredentialQuery
- func (cq *CredentialQuery) All(ctx context.Context) ([]*Credential, error)
- func (cq *CredentialQuery) AllX(ctx context.Context) []*Credential
- func (cq *CredentialQuery) Clone() *CredentialQuery
- func (cq *CredentialQuery) Count(ctx context.Context) (int, error)
- func (cq *CredentialQuery) CountX(ctx context.Context) int
- func (cq *CredentialQuery) Exist(ctx context.Context) (bool, error)
- func (cq *CredentialQuery) ExistX(ctx context.Context) bool
- func (cq *CredentialQuery) First(ctx context.Context) (*Credential, error)
- func (cq *CredentialQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (cq *CredentialQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (cq *CredentialQuery) FirstX(ctx context.Context) *Credential
- func (cq *CredentialQuery) GroupBy(field string, fields ...string) *CredentialGroupBy
- func (cq *CredentialQuery) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (cq *CredentialQuery) IDsX(ctx context.Context) []uuid.UUID
- func (cq *CredentialQuery) Limit(limit int) *CredentialQuery
- func (cq *CredentialQuery) Offset(offset int) *CredentialQuery
- func (cq *CredentialQuery) Only(ctx context.Context) (*Credential, error)
- func (cq *CredentialQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (cq *CredentialQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (cq *CredentialQuery) OnlyX(ctx context.Context) *Credential
- func (cq *CredentialQuery) Order(o ...OrderFunc) *CredentialQuery
- func (cq *CredentialQuery) QueryDeployment() *DeploymentQuery
- func (cq *CredentialQuery) Select(fields ...string) *CredentialSelect
- func (cq *CredentialQuery) Unique(unique bool) *CredentialQuery
- func (cq *CredentialQuery) Where(ps ...predicate.Credential) *CredentialQuery
- func (cq *CredentialQuery) WithDeployment(opts ...func(*DeploymentQuery)) *CredentialQuery
- type CredentialSelect
- func (cs *CredentialSelect) Bool(ctx context.Context) (_ bool, err error)
- func (cs *CredentialSelect) BoolX(ctx context.Context) bool
- func (cs *CredentialSelect) Bools(ctx context.Context) ([]bool, error)
- func (cs *CredentialSelect) BoolsX(ctx context.Context) []bool
- func (cs *CredentialSelect) Float64(ctx context.Context) (_ float64, err error)
- func (cs *CredentialSelect) Float64X(ctx context.Context) float64
- func (cs *CredentialSelect) Float64s(ctx context.Context) ([]float64, error)
- func (cs *CredentialSelect) Float64sX(ctx context.Context) []float64
- func (cs *CredentialSelect) Int(ctx context.Context) (_ int, err error)
- func (cs *CredentialSelect) IntX(ctx context.Context) int
- func (cs *CredentialSelect) Ints(ctx context.Context) ([]int, error)
- func (cs *CredentialSelect) IntsX(ctx context.Context) []int
- func (cs *CredentialSelect) Scan(ctx context.Context, v interface{}) error
- func (cs *CredentialSelect) ScanX(ctx context.Context, v interface{})
- func (cs *CredentialSelect) String(ctx context.Context) (_ string, err error)
- func (cs *CredentialSelect) StringX(ctx context.Context) string
- func (cs *CredentialSelect) Strings(ctx context.Context) ([]string, error)
- func (cs *CredentialSelect) StringsX(ctx context.Context) []string
- type CredentialUpdate
- func (cu *CredentialUpdate) ClearDeployment() *CredentialUpdate
- func (cu *CredentialUpdate) Exec(ctx context.Context) error
- func (cu *CredentialUpdate) ExecX(ctx context.Context)
- func (cu *CredentialUpdate) Mutation() *CredentialMutation
- func (cu *CredentialUpdate) Save(ctx context.Context) (int, error)
- func (cu *CredentialUpdate) SaveX(ctx context.Context) int
- func (cu *CredentialUpdate) SetCreatedAt(t time.Time) *CredentialUpdate
- func (cu *CredentialUpdate) SetDeployment(d *Deployment) *CredentialUpdate
- func (cu *CredentialUpdate) SetDeploymentID(id uuid.UUID) *CredentialUpdate
- func (cu *CredentialUpdate) SetNillableCreatedAt(t *time.Time) *CredentialUpdate
- func (cu *CredentialUpdate) SetNillableDeploymentID(id *uuid.UUID) *CredentialUpdate
- func (cu *CredentialUpdate) SetPassword(s string) *CredentialUpdate
- func (cu *CredentialUpdate) SetRegistry(s string) *CredentialUpdate
- func (cu *CredentialUpdate) SetUpdatedAt(t time.Time) *CredentialUpdate
- func (cu *CredentialUpdate) SetUsername(s string) *CredentialUpdate
- func (cu *CredentialUpdate) Where(ps ...predicate.Credential) *CredentialUpdate
- type CredentialUpdateOne
- func (cuo *CredentialUpdateOne) ClearDeployment() *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) Exec(ctx context.Context) error
- func (cuo *CredentialUpdateOne) ExecX(ctx context.Context)
- func (cuo *CredentialUpdateOne) Mutation() *CredentialMutation
- func (cuo *CredentialUpdateOne) Save(ctx context.Context) (*Credential, error)
- func (cuo *CredentialUpdateOne) SaveX(ctx context.Context) *Credential
- func (cuo *CredentialUpdateOne) Select(field string, fields ...string) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetCreatedAt(t time.Time) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetDeployment(d *Deployment) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetDeploymentID(id uuid.UUID) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetNillableCreatedAt(t *time.Time) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetNillableDeploymentID(id *uuid.UUID) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetPassword(s string) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetRegistry(s string) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetUpdatedAt(t time.Time) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetUsername(s string) *CredentialUpdateOne
- type Credentials
- type Deployment
- func (d *Deployment) QueryCredentials() *CredentialQuery
- func (d *Deployment) QueryProvider() *ProviderQuery
- func (d *Deployment) QueryStack() *StackQuery
- func (d *Deployment) QueryTasks() *TaskQuery
- func (d *Deployment) String() string
- func (d *Deployment) Unwrap() *Deployment
- func (d *Deployment) Update() *DeploymentUpdateOne
- type DeploymentClient
- func (c *DeploymentClient) Create() *DeploymentCreate
- func (c *DeploymentClient) CreateBulk(builders ...*DeploymentCreate) *DeploymentCreateBulk
- func (c *DeploymentClient) Delete() *DeploymentDelete
- func (c *DeploymentClient) DeleteOne(d *Deployment) *DeploymentDeleteOne
- func (c *DeploymentClient) DeleteOneID(id uuid.UUID) *DeploymentDeleteOne
- func (c *DeploymentClient) Get(ctx context.Context, id uuid.UUID) (*Deployment, error)
- func (c *DeploymentClient) GetX(ctx context.Context, id uuid.UUID) *Deployment
- func (c *DeploymentClient) Hooks() []Hook
- func (c *DeploymentClient) Query() *DeploymentQuery
- func (c *DeploymentClient) QueryCredentials(d *Deployment) *CredentialQuery
- func (c *DeploymentClient) QueryProvider(d *Deployment) *ProviderQuery
- func (c *DeploymentClient) QueryStack(d *Deployment) *StackQuery
- func (c *DeploymentClient) QueryTasks(d *Deployment) *TaskQuery
- func (c *DeploymentClient) Update() *DeploymentUpdate
- func (c *DeploymentClient) UpdateOne(d *Deployment) *DeploymentUpdateOne
- func (c *DeploymentClient) UpdateOneID(id uuid.UUID) *DeploymentUpdateOne
- func (c *DeploymentClient) Use(hooks ...Hook)
- type DeploymentCreate
- func (dc *DeploymentCreate) AddCredentialIDs(ids ...uuid.UUID) *DeploymentCreate
- func (dc *DeploymentCreate) AddCredentials(c ...*Credential) *DeploymentCreate
- func (dc *DeploymentCreate) AddTaskIDs(ids ...uuid.UUID) *DeploymentCreate
- func (dc *DeploymentCreate) AddTasks(t ...*Task) *DeploymentCreate
- func (dc *DeploymentCreate) Exec(ctx context.Context) error
- func (dc *DeploymentCreate) ExecX(ctx context.Context)
- func (dc *DeploymentCreate) Mutation() *DeploymentMutation
- func (dc *DeploymentCreate) Save(ctx context.Context) (*Deployment, error)
- func (dc *DeploymentCreate) SaveX(ctx context.Context) *Deployment
- func (dc *DeploymentCreate) SetCreatedAt(t time.Time) *DeploymentCreate
- func (dc *DeploymentCreate) SetID(u uuid.UUID) *DeploymentCreate
- func (dc *DeploymentCreate) SetName(s string) *DeploymentCreate
- func (dc *DeploymentCreate) SetNillableCreatedAt(t *time.Time) *DeploymentCreate
- func (dc *DeploymentCreate) SetNillableName(s *string) *DeploymentCreate
- func (dc *DeploymentCreate) SetNillableStackID(id *string) *DeploymentCreate
- func (dc *DeploymentCreate) SetNillableState(d *deployment.State) *DeploymentCreate
- func (dc *DeploymentCreate) SetNillableUpdatedAt(t *time.Time) *DeploymentCreate
- func (dc *DeploymentCreate) SetProvider(p *Provider) *DeploymentCreate
- func (dc *DeploymentCreate) SetProviderID(id uuid.UUID) *DeploymentCreate
- func (dc *DeploymentCreate) SetStack(s *Stack) *DeploymentCreate
- func (dc *DeploymentCreate) SetStackID(id string) *DeploymentCreate
- func (dc *DeploymentCreate) SetState(d deployment.State) *DeploymentCreate
- func (dc *DeploymentCreate) SetTimeout(i int) *DeploymentCreate
- func (dc *DeploymentCreate) SetUpdatedAt(t time.Time) *DeploymentCreate
- type DeploymentCreateBulk
- type DeploymentDelete
- type DeploymentDeleteOne
- type DeploymentEdges
- type DeploymentGroupBy
- func (dgb *DeploymentGroupBy) Aggregate(fns ...AggregateFunc) *DeploymentGroupBy
- func (dgb *DeploymentGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (dgb *DeploymentGroupBy) BoolX(ctx context.Context) bool
- func (dgb *DeploymentGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (dgb *DeploymentGroupBy) BoolsX(ctx context.Context) []bool
- func (dgb *DeploymentGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (dgb *DeploymentGroupBy) Float64X(ctx context.Context) float64
- func (dgb *DeploymentGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (dgb *DeploymentGroupBy) Float64sX(ctx context.Context) []float64
- func (dgb *DeploymentGroupBy) Int(ctx context.Context) (_ int, err error)
- func (dgb *DeploymentGroupBy) IntX(ctx context.Context) int
- func (dgb *DeploymentGroupBy) Ints(ctx context.Context) ([]int, error)
- func (dgb *DeploymentGroupBy) IntsX(ctx context.Context) []int
- func (dgb *DeploymentGroupBy) Scan(ctx context.Context, v interface{}) error
- func (dgb *DeploymentGroupBy) ScanX(ctx context.Context, v interface{})
- func (dgb *DeploymentGroupBy) String(ctx context.Context) (_ string, err error)
- func (dgb *DeploymentGroupBy) StringX(ctx context.Context) string
- func (dgb *DeploymentGroupBy) Strings(ctx context.Context) ([]string, error)
- func (dgb *DeploymentGroupBy) StringsX(ctx context.Context) []string
- type DeploymentMutation
- func (m *DeploymentMutation) AddCredentialIDs(ids ...uuid.UUID)
- func (m *DeploymentMutation) AddField(name string, value ent.Value) error
- func (m *DeploymentMutation) AddTaskIDs(ids ...uuid.UUID)
- func (m *DeploymentMutation) AddTimeout(i int)
- func (m *DeploymentMutation) AddedEdges() []string
- func (m *DeploymentMutation) AddedField(name string) (ent.Value, bool)
- func (m *DeploymentMutation) AddedFields() []string
- func (m *DeploymentMutation) AddedIDs(name string) []ent.Value
- func (m *DeploymentMutation) AddedTimeout() (r int, exists bool)
- func (m *DeploymentMutation) ClearCredentials()
- func (m *DeploymentMutation) ClearEdge(name string) error
- func (m *DeploymentMutation) ClearField(name string) error
- func (m *DeploymentMutation) ClearName()
- func (m *DeploymentMutation) ClearProvider()
- func (m *DeploymentMutation) ClearStack()
- func (m *DeploymentMutation) ClearTasks()
- func (m *DeploymentMutation) ClearedEdges() []string
- func (m *DeploymentMutation) ClearedFields() []string
- func (m DeploymentMutation) Client() *Client
- func (m *DeploymentMutation) CreatedAt() (r time.Time, exists bool)
- func (m *DeploymentMutation) CredentialsCleared() bool
- func (m *DeploymentMutation) CredentialsIDs() (ids []uuid.UUID)
- func (m *DeploymentMutation) EdgeCleared(name string) bool
- func (m *DeploymentMutation) Field(name string) (ent.Value, bool)
- func (m *DeploymentMutation) FieldCleared(name string) bool
- func (m *DeploymentMutation) Fields() []string
- func (m *DeploymentMutation) ID() (id uuid.UUID, exists bool)
- func (m *DeploymentMutation) Name() (r string, exists bool)
- func (m *DeploymentMutation) NameCleared() bool
- func (m *DeploymentMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeploymentMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *DeploymentMutation) OldName(ctx context.Context) (v string, err error)
- func (m *DeploymentMutation) OldState(ctx context.Context) (v deployment.State, err error)
- func (m *DeploymentMutation) OldTimeout(ctx context.Context) (v int, err error)
- func (m *DeploymentMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeploymentMutation) Op() Op
- func (m *DeploymentMutation) ProviderCleared() bool
- func (m *DeploymentMutation) ProviderID() (id uuid.UUID, exists bool)
- func (m *DeploymentMutation) ProviderIDs() (ids []uuid.UUID)
- func (m *DeploymentMutation) RemoveCredentialIDs(ids ...uuid.UUID)
- func (m *DeploymentMutation) RemoveTaskIDs(ids ...uuid.UUID)
- func (m *DeploymentMutation) RemovedCredentialsIDs() (ids []uuid.UUID)
- func (m *DeploymentMutation) RemovedEdges() []string
- func (m *DeploymentMutation) RemovedIDs(name string) []ent.Value
- func (m *DeploymentMutation) RemovedTasksIDs() (ids []uuid.UUID)
- func (m *DeploymentMutation) ResetCreatedAt()
- func (m *DeploymentMutation) ResetCredentials()
- func (m *DeploymentMutation) ResetEdge(name string) error
- func (m *DeploymentMutation) ResetField(name string) error
- func (m *DeploymentMutation) ResetName()
- func (m *DeploymentMutation) ResetProvider()
- func (m *DeploymentMutation) ResetStack()
- func (m *DeploymentMutation) ResetState()
- func (m *DeploymentMutation) ResetTasks()
- func (m *DeploymentMutation) ResetTimeout()
- func (m *DeploymentMutation) ResetUpdatedAt()
- func (m *DeploymentMutation) SetCreatedAt(t time.Time)
- func (m *DeploymentMutation) SetField(name string, value ent.Value) error
- func (m *DeploymentMutation) SetID(id uuid.UUID)
- func (m *DeploymentMutation) SetName(s string)
- func (m *DeploymentMutation) SetProviderID(id uuid.UUID)
- func (m *DeploymentMutation) SetStackID(id string)
- func (m *DeploymentMutation) SetState(d deployment.State)
- func (m *DeploymentMutation) SetTimeout(i int)
- func (m *DeploymentMutation) SetUpdatedAt(t time.Time)
- func (m *DeploymentMutation) StackCleared() bool
- func (m *DeploymentMutation) StackID() (id string, exists bool)
- func (m *DeploymentMutation) StackIDs() (ids []string)
- func (m *DeploymentMutation) State() (r deployment.State, exists bool)
- func (m *DeploymentMutation) TasksCleared() bool
- func (m *DeploymentMutation) TasksIDs() (ids []uuid.UUID)
- func (m *DeploymentMutation) Timeout() (r int, exists bool)
- func (m DeploymentMutation) Tx() (*Tx, error)
- func (m *DeploymentMutation) Type() string
- func (m *DeploymentMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *DeploymentMutation) Where(ps ...predicate.Deployment)
- type DeploymentQuery
- func (dq *DeploymentQuery) All(ctx context.Context) ([]*Deployment, error)
- func (dq *DeploymentQuery) AllX(ctx context.Context) []*Deployment
- func (dq *DeploymentQuery) Clone() *DeploymentQuery
- func (dq *DeploymentQuery) Count(ctx context.Context) (int, error)
- func (dq *DeploymentQuery) CountX(ctx context.Context) int
- func (dq *DeploymentQuery) Exist(ctx context.Context) (bool, error)
- func (dq *DeploymentQuery) ExistX(ctx context.Context) bool
- func (dq *DeploymentQuery) First(ctx context.Context) (*Deployment, error)
- func (dq *DeploymentQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (dq *DeploymentQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (dq *DeploymentQuery) FirstX(ctx context.Context) *Deployment
- func (dq *DeploymentQuery) GroupBy(field string, fields ...string) *DeploymentGroupBy
- func (dq *DeploymentQuery) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (dq *DeploymentQuery) IDsX(ctx context.Context) []uuid.UUID
- func (dq *DeploymentQuery) Limit(limit int) *DeploymentQuery
- func (dq *DeploymentQuery) Offset(offset int) *DeploymentQuery
- func (dq *DeploymentQuery) Only(ctx context.Context) (*Deployment, error)
- func (dq *DeploymentQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (dq *DeploymentQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (dq *DeploymentQuery) OnlyX(ctx context.Context) *Deployment
- func (dq *DeploymentQuery) Order(o ...OrderFunc) *DeploymentQuery
- func (dq *DeploymentQuery) QueryCredentials() *CredentialQuery
- func (dq *DeploymentQuery) QueryProvider() *ProviderQuery
- func (dq *DeploymentQuery) QueryStack() *StackQuery
- func (dq *DeploymentQuery) QueryTasks() *TaskQuery
- func (dq *DeploymentQuery) Select(fields ...string) *DeploymentSelect
- func (dq *DeploymentQuery) Unique(unique bool) *DeploymentQuery
- func (dq *DeploymentQuery) Where(ps ...predicate.Deployment) *DeploymentQuery
- func (dq *DeploymentQuery) WithCredentials(opts ...func(*CredentialQuery)) *DeploymentQuery
- func (dq *DeploymentQuery) WithProvider(opts ...func(*ProviderQuery)) *DeploymentQuery
- func (dq *DeploymentQuery) WithStack(opts ...func(*StackQuery)) *DeploymentQuery
- func (dq *DeploymentQuery) WithTasks(opts ...func(*TaskQuery)) *DeploymentQuery
- type DeploymentSelect
- func (ds *DeploymentSelect) Bool(ctx context.Context) (_ bool, err error)
- func (ds *DeploymentSelect) BoolX(ctx context.Context) bool
- func (ds *DeploymentSelect) Bools(ctx context.Context) ([]bool, error)
- func (ds *DeploymentSelect) BoolsX(ctx context.Context) []bool
- func (ds *DeploymentSelect) Float64(ctx context.Context) (_ float64, err error)
- func (ds *DeploymentSelect) Float64X(ctx context.Context) float64
- func (ds *DeploymentSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ds *DeploymentSelect) Float64sX(ctx context.Context) []float64
- func (ds *DeploymentSelect) Int(ctx context.Context) (_ int, err error)
- func (ds *DeploymentSelect) IntX(ctx context.Context) int
- func (ds *DeploymentSelect) Ints(ctx context.Context) ([]int, error)
- func (ds *DeploymentSelect) IntsX(ctx context.Context) []int
- func (ds *DeploymentSelect) Scan(ctx context.Context, v interface{}) error
- func (ds *DeploymentSelect) ScanX(ctx context.Context, v interface{})
- func (ds *DeploymentSelect) String(ctx context.Context) (_ string, err error)
- func (ds *DeploymentSelect) StringX(ctx context.Context) string
- func (ds *DeploymentSelect) Strings(ctx context.Context) ([]string, error)
- func (ds *DeploymentSelect) StringsX(ctx context.Context) []string
- type DeploymentUpdate
- func (du *DeploymentUpdate) AddCredentialIDs(ids ...uuid.UUID) *DeploymentUpdate
- func (du *DeploymentUpdate) AddCredentials(c ...*Credential) *DeploymentUpdate
- func (du *DeploymentUpdate) AddTaskIDs(ids ...uuid.UUID) *DeploymentUpdate
- func (du *DeploymentUpdate) AddTasks(t ...*Task) *DeploymentUpdate
- func (du *DeploymentUpdate) AddTimeout(i int) *DeploymentUpdate
- func (du *DeploymentUpdate) ClearCredentials() *DeploymentUpdate
- func (du *DeploymentUpdate) ClearName() *DeploymentUpdate
- func (du *DeploymentUpdate) ClearProvider() *DeploymentUpdate
- func (du *DeploymentUpdate) ClearStack() *DeploymentUpdate
- func (du *DeploymentUpdate) ClearTasks() *DeploymentUpdate
- func (du *DeploymentUpdate) Exec(ctx context.Context) error
- func (du *DeploymentUpdate) ExecX(ctx context.Context)
- func (du *DeploymentUpdate) Mutation() *DeploymentMutation
- func (du *DeploymentUpdate) RemoveCredentialIDs(ids ...uuid.UUID) *DeploymentUpdate
- func (du *DeploymentUpdate) RemoveCredentials(c ...*Credential) *DeploymentUpdate
- func (du *DeploymentUpdate) RemoveTaskIDs(ids ...uuid.UUID) *DeploymentUpdate
- func (du *DeploymentUpdate) RemoveTasks(t ...*Task) *DeploymentUpdate
- func (du *DeploymentUpdate) Save(ctx context.Context) (int, error)
- func (du *DeploymentUpdate) SaveX(ctx context.Context) int
- func (du *DeploymentUpdate) SetCreatedAt(t time.Time) *DeploymentUpdate
- func (du *DeploymentUpdate) SetName(s string) *DeploymentUpdate
- func (du *DeploymentUpdate) SetNillableCreatedAt(t *time.Time) *DeploymentUpdate
- func (du *DeploymentUpdate) SetNillableName(s *string) *DeploymentUpdate
- func (du *DeploymentUpdate) SetNillableStackID(id *string) *DeploymentUpdate
- func (du *DeploymentUpdate) SetNillableState(d *deployment.State) *DeploymentUpdate
- func (du *DeploymentUpdate) SetProvider(p *Provider) *DeploymentUpdate
- func (du *DeploymentUpdate) SetProviderID(id uuid.UUID) *DeploymentUpdate
- func (du *DeploymentUpdate) SetStack(s *Stack) *DeploymentUpdate
- func (du *DeploymentUpdate) SetStackID(id string) *DeploymentUpdate
- func (du *DeploymentUpdate) SetState(d deployment.State) *DeploymentUpdate
- func (du *DeploymentUpdate) SetTimeout(i int) *DeploymentUpdate
- func (du *DeploymentUpdate) SetUpdatedAt(t time.Time) *DeploymentUpdate
- func (du *DeploymentUpdate) Where(ps ...predicate.Deployment) *DeploymentUpdate
- type DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) AddCredentialIDs(ids ...uuid.UUID) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) AddCredentials(c ...*Credential) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) AddTaskIDs(ids ...uuid.UUID) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) AddTasks(t ...*Task) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) AddTimeout(i int) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) ClearCredentials() *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) ClearName() *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) ClearProvider() *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) ClearStack() *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) ClearTasks() *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) Exec(ctx context.Context) error
- func (duo *DeploymentUpdateOne) ExecX(ctx context.Context)
- func (duo *DeploymentUpdateOne) Mutation() *DeploymentMutation
- func (duo *DeploymentUpdateOne) RemoveCredentialIDs(ids ...uuid.UUID) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) RemoveCredentials(c ...*Credential) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) RemoveTaskIDs(ids ...uuid.UUID) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) RemoveTasks(t ...*Task) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) Save(ctx context.Context) (*Deployment, error)
- func (duo *DeploymentUpdateOne) SaveX(ctx context.Context) *Deployment
- func (duo *DeploymentUpdateOne) Select(field string, fields ...string) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) SetCreatedAt(t time.Time) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) SetName(s string) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) SetNillableCreatedAt(t *time.Time) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) SetNillableName(s *string) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) SetNillableStackID(id *string) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) SetNillableState(d *deployment.State) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) SetProvider(p *Provider) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) SetProviderID(id uuid.UUID) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) SetStack(s *Stack) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) SetStackID(id string) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) SetState(d deployment.State) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) SetTimeout(i int) *DeploymentUpdateOne
- func (duo *DeploymentUpdateOne) SetUpdatedAt(t time.Time) *DeploymentUpdateOne
- type Deployments
- type Hook
- type MutateFunc
- type Mutation
- type Mutator
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type Op
- type Option
- type OrderFunc
- type Policy
- type Process
- type ProcessClient
- func (c *ProcessClient) Create() *ProcessCreate
- func (c *ProcessClient) CreateBulk(builders ...*ProcessCreate) *ProcessCreateBulk
- func (c *ProcessClient) Delete() *ProcessDelete
- func (c *ProcessClient) DeleteOne(pr *Process) *ProcessDeleteOne
- func (c *ProcessClient) DeleteOneID(id string) *ProcessDeleteOne
- func (c *ProcessClient) Get(ctx context.Context, id string) (*Process, error)
- func (c *ProcessClient) GetX(ctx context.Context, id string) *Process
- func (c *ProcessClient) Hooks() []Hook
- func (c *ProcessClient) Query() *ProcessQuery
- func (c *ProcessClient) QueryCredentials(pr *Process) *CredentialQuery
- func (c *ProcessClient) QueryStack(pr *Process) *StackQuery
- func (c *ProcessClient) QueryTasks(pr *Process) *TaskQuery
- func (c *ProcessClient) Update() *ProcessUpdate
- func (c *ProcessClient) UpdateOne(pr *Process) *ProcessUpdateOne
- func (c *ProcessClient) UpdateOneID(id string) *ProcessUpdateOne
- func (c *ProcessClient) Use(hooks ...Hook)
- type ProcessCreate
- func (pc *ProcessCreate) AddCredentialIDs(ids ...uuid.UUID) *ProcessCreate
- func (pc *ProcessCreate) AddCredentials(c ...*Credential) *ProcessCreate
- func (pc *ProcessCreate) AddTaskIDs(ids ...uuid.UUID) *ProcessCreate
- func (pc *ProcessCreate) AddTasks(t ...*Task) *ProcessCreate
- func (pc *ProcessCreate) Exec(ctx context.Context) error
- func (pc *ProcessCreate) ExecX(ctx context.Context)
- func (pc *ProcessCreate) Mutation() *ProcessMutation
- func (pc *ProcessCreate) Save(ctx context.Context) (*Process, error)
- func (pc *ProcessCreate) SaveX(ctx context.Context) *Process
- func (pc *ProcessCreate) SetAmiID(s string) *ProcessCreate
- func (pc *ProcessCreate) SetCreatedAt(t time.Time) *ProcessCreate
- func (pc *ProcessCreate) SetExpiration(i int) *ProcessCreate
- func (pc *ProcessCreate) SetID(s string) *ProcessCreate
- func (pc *ProcessCreate) SetInstanceType(s string) *ProcessCreate
- func (pc *ProcessCreate) SetName(s string) *ProcessCreate
- func (pc *ProcessCreate) SetNillableCreatedAt(t *time.Time) *ProcessCreate
- func (pc *ProcessCreate) SetNillableName(s *string) *ProcessCreate
- func (pc *ProcessCreate) SetNillableStackID(id *string) *ProcessCreate
- func (pc *ProcessCreate) SetNillableState(pr *process.State) *ProcessCreate
- func (pc *ProcessCreate) SetNillableTimeout(i *int) *ProcessCreate
- func (pc *ProcessCreate) SetNillableUpdatedAt(t *time.Time) *ProcessCreate
- func (pc *ProcessCreate) SetResourcePrefix(s string) *ProcessCreate
- func (pc *ProcessCreate) SetStack(s *Stack) *ProcessCreate
- func (pc *ProcessCreate) SetStackID(id string) *ProcessCreate
- func (pc *ProcessCreate) SetState(pr process.State) *ProcessCreate
- func (pc *ProcessCreate) SetTimeout(i int) *ProcessCreate
- func (pc *ProcessCreate) SetToken(s string) *ProcessCreate
- func (pc *ProcessCreate) SetUpdatedAt(t time.Time) *ProcessCreate
- type ProcessCreateBulk
- type ProcessDelete
- type ProcessDeleteOne
- type ProcessEdges
- type ProcessGroupBy
- func (pgb *ProcessGroupBy) Aggregate(fns ...AggregateFunc) *ProcessGroupBy
- func (pgb *ProcessGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (pgb *ProcessGroupBy) BoolX(ctx context.Context) bool
- func (pgb *ProcessGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (pgb *ProcessGroupBy) BoolsX(ctx context.Context) []bool
- func (pgb *ProcessGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (pgb *ProcessGroupBy) Float64X(ctx context.Context) float64
- func (pgb *ProcessGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (pgb *ProcessGroupBy) Float64sX(ctx context.Context) []float64
- func (pgb *ProcessGroupBy) Int(ctx context.Context) (_ int, err error)
- func (pgb *ProcessGroupBy) IntX(ctx context.Context) int
- func (pgb *ProcessGroupBy) Ints(ctx context.Context) ([]int, error)
- func (pgb *ProcessGroupBy) IntsX(ctx context.Context) []int
- func (pgb *ProcessGroupBy) Scan(ctx context.Context, v interface{}) error
- func (pgb *ProcessGroupBy) ScanX(ctx context.Context, v interface{})
- func (pgb *ProcessGroupBy) String(ctx context.Context) (_ string, err error)
- func (pgb *ProcessGroupBy) StringX(ctx context.Context) string
- func (pgb *ProcessGroupBy) Strings(ctx context.Context) ([]string, error)
- func (pgb *ProcessGroupBy) StringsX(ctx context.Context) []string
- type ProcessMutation
- func (m *ProcessMutation) AddCredentialIDs(ids ...uuid.UUID)
- func (m *ProcessMutation) AddExpiration(i int)
- func (m *ProcessMutation) AddField(name string, value ent.Value) error
- func (m *ProcessMutation) AddTaskIDs(ids ...uuid.UUID)
- func (m *ProcessMutation) AddTimeout(i int)
- func (m *ProcessMutation) AddedEdges() []string
- func (m *ProcessMutation) AddedExpiration() (r int, exists bool)
- func (m *ProcessMutation) AddedField(name string) (ent.Value, bool)
- func (m *ProcessMutation) AddedFields() []string
- func (m *ProcessMutation) AddedIDs(name string) []ent.Value
- func (m *ProcessMutation) AddedTimeout() (r int, exists bool)
- func (m *ProcessMutation) AmiID() (r string, exists bool)
- func (m *ProcessMutation) ClearCredentials()
- func (m *ProcessMutation) ClearEdge(name string) error
- func (m *ProcessMutation) ClearField(name string) error
- func (m *ProcessMutation) ClearName()
- func (m *ProcessMutation) ClearStack()
- func (m *ProcessMutation) ClearTasks()
- func (m *ProcessMutation) ClearTimeout()
- func (m *ProcessMutation) ClearedEdges() []string
- func (m *ProcessMutation) ClearedFields() []string
- func (m ProcessMutation) Client() *Client
- func (m *ProcessMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ProcessMutation) CredentialsCleared() bool
- func (m *ProcessMutation) CredentialsIDs() (ids []uuid.UUID)
- func (m *ProcessMutation) EdgeCleared(name string) bool
- func (m *ProcessMutation) Expiration() (r int, exists bool)
- func (m *ProcessMutation) Field(name string) (ent.Value, bool)
- func (m *ProcessMutation) FieldCleared(name string) bool
- func (m *ProcessMutation) Fields() []string
- func (m *ProcessMutation) ID() (id string, exists bool)
- func (m *ProcessMutation) InstanceType() (r string, exists bool)
- func (m *ProcessMutation) Name() (r string, exists bool)
- func (m *ProcessMutation) NameCleared() bool
- func (m *ProcessMutation) OldAmiID(ctx context.Context) (v string, err error)
- func (m *ProcessMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProcessMutation) OldExpiration(ctx context.Context) (v int, err error)
- func (m *ProcessMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ProcessMutation) OldInstanceType(ctx context.Context) (v string, err error)
- func (m *ProcessMutation) OldName(ctx context.Context) (v string, err error)
- func (m *ProcessMutation) OldResourcePrefix(ctx context.Context) (v string, err error)
- func (m *ProcessMutation) OldState(ctx context.Context) (v process.State, err error)
- func (m *ProcessMutation) OldTimeout(ctx context.Context) (v int, err error)
- func (m *ProcessMutation) OldToken(ctx context.Context) (v string, err error)
- func (m *ProcessMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProcessMutation) Op() Op
- func (m *ProcessMutation) RemoveCredentialIDs(ids ...uuid.UUID)
- func (m *ProcessMutation) RemoveTaskIDs(ids ...uuid.UUID)
- func (m *ProcessMutation) RemovedCredentialsIDs() (ids []uuid.UUID)
- func (m *ProcessMutation) RemovedEdges() []string
- func (m *ProcessMutation) RemovedIDs(name string) []ent.Value
- func (m *ProcessMutation) RemovedTasksIDs() (ids []uuid.UUID)
- func (m *ProcessMutation) ResetAmiID()
- func (m *ProcessMutation) ResetCreatedAt()
- func (m *ProcessMutation) ResetCredentials()
- func (m *ProcessMutation) ResetEdge(name string) error
- func (m *ProcessMutation) ResetExpiration()
- func (m *ProcessMutation) ResetField(name string) error
- func (m *ProcessMutation) ResetInstanceType()
- func (m *ProcessMutation) ResetName()
- func (m *ProcessMutation) ResetResourcePrefix()
- func (m *ProcessMutation) ResetStack()
- func (m *ProcessMutation) ResetState()
- func (m *ProcessMutation) ResetTasks()
- func (m *ProcessMutation) ResetTimeout()
- func (m *ProcessMutation) ResetToken()
- func (m *ProcessMutation) ResetUpdatedAt()
- func (m *ProcessMutation) ResourcePrefix() (r string, exists bool)
- func (m *ProcessMutation) SetAmiID(s string)
- func (m *ProcessMutation) SetCreatedAt(t time.Time)
- func (m *ProcessMutation) SetExpiration(i int)
- func (m *ProcessMutation) SetField(name string, value ent.Value) error
- func (m *ProcessMutation) SetID(id string)
- func (m *ProcessMutation) SetInstanceType(s string)
- func (m *ProcessMutation) SetName(s string)
- func (m *ProcessMutation) SetResourcePrefix(s string)
- func (m *ProcessMutation) SetStackID(id string)
- func (m *ProcessMutation) SetState(pr process.State)
- func (m *ProcessMutation) SetTimeout(i int)
- func (m *ProcessMutation) SetToken(s string)
- func (m *ProcessMutation) SetUpdatedAt(t time.Time)
- func (m *ProcessMutation) StackCleared() bool
- func (m *ProcessMutation) StackID() (id string, exists bool)
- func (m *ProcessMutation) StackIDs() (ids []string)
- func (m *ProcessMutation) State() (r process.State, exists bool)
- func (m *ProcessMutation) TasksCleared() bool
- func (m *ProcessMutation) TasksIDs() (ids []uuid.UUID)
- func (m *ProcessMutation) Timeout() (r int, exists bool)
- func (m *ProcessMutation) TimeoutCleared() bool
- func (m *ProcessMutation) Token() (r string, exists bool)
- func (m ProcessMutation) Tx() (*Tx, error)
- func (m *ProcessMutation) Type() string
- func (m *ProcessMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ProcessMutation) Where(ps ...predicate.Process)
- type ProcessQuery
- func (pq *ProcessQuery) All(ctx context.Context) ([]*Process, error)
- func (pq *ProcessQuery) AllX(ctx context.Context) []*Process
- func (pq *ProcessQuery) Clone() *ProcessQuery
- func (pq *ProcessQuery) Count(ctx context.Context) (int, error)
- func (pq *ProcessQuery) CountX(ctx context.Context) int
- func (pq *ProcessQuery) Exist(ctx context.Context) (bool, error)
- func (pq *ProcessQuery) ExistX(ctx context.Context) bool
- func (pq *ProcessQuery) First(ctx context.Context) (*Process, error)
- func (pq *ProcessQuery) FirstID(ctx context.Context) (id string, err error)
- func (pq *ProcessQuery) FirstIDX(ctx context.Context) string
- func (pq *ProcessQuery) FirstX(ctx context.Context) *Process
- func (pq *ProcessQuery) GroupBy(field string, fields ...string) *ProcessGroupBy
- func (pq *ProcessQuery) IDs(ctx context.Context) ([]string, error)
- func (pq *ProcessQuery) IDsX(ctx context.Context) []string
- func (pq *ProcessQuery) Limit(limit int) *ProcessQuery
- func (pq *ProcessQuery) Offset(offset int) *ProcessQuery
- func (pq *ProcessQuery) Only(ctx context.Context) (*Process, error)
- func (pq *ProcessQuery) OnlyID(ctx context.Context) (id string, err error)
- func (pq *ProcessQuery) OnlyIDX(ctx context.Context) string
- func (pq *ProcessQuery) OnlyX(ctx context.Context) *Process
- func (pq *ProcessQuery) Order(o ...OrderFunc) *ProcessQuery
- func (pq *ProcessQuery) QueryCredentials() *CredentialQuery
- func (pq *ProcessQuery) QueryStack() *StackQuery
- func (pq *ProcessQuery) QueryTasks() *TaskQuery
- func (pq *ProcessQuery) Select(fields ...string) *ProcessSelect
- func (pq *ProcessQuery) Unique(unique bool) *ProcessQuery
- func (pq *ProcessQuery) Where(ps ...predicate.Process) *ProcessQuery
- func (pq *ProcessQuery) WithCredentials(opts ...func(*CredentialQuery)) *ProcessQuery
- func (pq *ProcessQuery) WithStack(opts ...func(*StackQuery)) *ProcessQuery
- func (pq *ProcessQuery) WithTasks(opts ...func(*TaskQuery)) *ProcessQuery
- type ProcessSelect
- func (ps *ProcessSelect) Bool(ctx context.Context) (_ bool, err error)
- func (ps *ProcessSelect) BoolX(ctx context.Context) bool
- func (ps *ProcessSelect) Bools(ctx context.Context) ([]bool, error)
- func (ps *ProcessSelect) BoolsX(ctx context.Context) []bool
- func (ps *ProcessSelect) Float64(ctx context.Context) (_ float64, err error)
- func (ps *ProcessSelect) Float64X(ctx context.Context) float64
- func (ps *ProcessSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ps *ProcessSelect) Float64sX(ctx context.Context) []float64
- func (ps *ProcessSelect) Int(ctx context.Context) (_ int, err error)
- func (ps *ProcessSelect) IntX(ctx context.Context) int
- func (ps *ProcessSelect) Ints(ctx context.Context) ([]int, error)
- func (ps *ProcessSelect) IntsX(ctx context.Context) []int
- func (ps *ProcessSelect) Scan(ctx context.Context, v interface{}) error
- func (ps *ProcessSelect) ScanX(ctx context.Context, v interface{})
- func (ps *ProcessSelect) String(ctx context.Context) (_ string, err error)
- func (ps *ProcessSelect) StringX(ctx context.Context) string
- func (ps *ProcessSelect) Strings(ctx context.Context) ([]string, error)
- func (ps *ProcessSelect) StringsX(ctx context.Context) []string
- type ProcessUpdate
- func (pu *ProcessUpdate) AddCredentialIDs(ids ...uuid.UUID) *ProcessUpdate
- func (pu *ProcessUpdate) AddCredentials(c ...*Credential) *ProcessUpdate
- func (pu *ProcessUpdate) AddExpiration(i int) *ProcessUpdate
- func (pu *ProcessUpdate) AddTaskIDs(ids ...uuid.UUID) *ProcessUpdate
- func (pu *ProcessUpdate) AddTasks(t ...*Task) *ProcessUpdate
- func (pu *ProcessUpdate) AddTimeout(i int) *ProcessUpdate
- func (pu *ProcessUpdate) ClearCredentials() *ProcessUpdate
- func (pu *ProcessUpdate) ClearName() *ProcessUpdate
- func (pu *ProcessUpdate) ClearStack() *ProcessUpdate
- func (pu *ProcessUpdate) ClearTasks() *ProcessUpdate
- func (pu *ProcessUpdate) ClearTimeout() *ProcessUpdate
- func (pu *ProcessUpdate) Exec(ctx context.Context) error
- func (pu *ProcessUpdate) ExecX(ctx context.Context)
- func (pu *ProcessUpdate) Mutation() *ProcessMutation
- func (pu *ProcessUpdate) RemoveCredentialIDs(ids ...uuid.UUID) *ProcessUpdate
- func (pu *ProcessUpdate) RemoveCredentials(c ...*Credential) *ProcessUpdate
- func (pu *ProcessUpdate) RemoveTaskIDs(ids ...uuid.UUID) *ProcessUpdate
- func (pu *ProcessUpdate) RemoveTasks(t ...*Task) *ProcessUpdate
- func (pu *ProcessUpdate) Save(ctx context.Context) (int, error)
- func (pu *ProcessUpdate) SaveX(ctx context.Context) int
- func (pu *ProcessUpdate) SetAmiID(s string) *ProcessUpdate
- func (pu *ProcessUpdate) SetCreatedAt(t time.Time) *ProcessUpdate
- func (pu *ProcessUpdate) SetExpiration(i int) *ProcessUpdate
- func (pu *ProcessUpdate) SetInstanceType(s string) *ProcessUpdate
- func (pu *ProcessUpdate) SetName(s string) *ProcessUpdate
- func (pu *ProcessUpdate) SetNillableCreatedAt(t *time.Time) *ProcessUpdate
- func (pu *ProcessUpdate) SetNillableName(s *string) *ProcessUpdate
- func (pu *ProcessUpdate) SetNillableStackID(id *string) *ProcessUpdate
- func (pu *ProcessUpdate) SetNillableState(pr *process.State) *ProcessUpdate
- func (pu *ProcessUpdate) SetNillableTimeout(i *int) *ProcessUpdate
- func (pu *ProcessUpdate) SetResourcePrefix(s string) *ProcessUpdate
- func (pu *ProcessUpdate) SetStack(s *Stack) *ProcessUpdate
- func (pu *ProcessUpdate) SetStackID(id string) *ProcessUpdate
- func (pu *ProcessUpdate) SetState(pr process.State) *ProcessUpdate
- func (pu *ProcessUpdate) SetTimeout(i int) *ProcessUpdate
- func (pu *ProcessUpdate) SetToken(s string) *ProcessUpdate
- func (pu *ProcessUpdate) SetUpdatedAt(t time.Time) *ProcessUpdate
- func (pu *ProcessUpdate) Where(ps ...predicate.Process) *ProcessUpdate
- type ProcessUpdateOne
- func (puo *ProcessUpdateOne) AddCredentialIDs(ids ...uuid.UUID) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) AddCredentials(c ...*Credential) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) AddExpiration(i int) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) AddTaskIDs(ids ...uuid.UUID) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) AddTasks(t ...*Task) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) AddTimeout(i int) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) ClearCredentials() *ProcessUpdateOne
- func (puo *ProcessUpdateOne) ClearName() *ProcessUpdateOne
- func (puo *ProcessUpdateOne) ClearStack() *ProcessUpdateOne
- func (puo *ProcessUpdateOne) ClearTasks() *ProcessUpdateOne
- func (puo *ProcessUpdateOne) ClearTimeout() *ProcessUpdateOne
- func (puo *ProcessUpdateOne) Exec(ctx context.Context) error
- func (puo *ProcessUpdateOne) ExecX(ctx context.Context)
- func (puo *ProcessUpdateOne) Mutation() *ProcessMutation
- func (puo *ProcessUpdateOne) RemoveCredentialIDs(ids ...uuid.UUID) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) RemoveCredentials(c ...*Credential) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) RemoveTaskIDs(ids ...uuid.UUID) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) RemoveTasks(t ...*Task) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) Save(ctx context.Context) (*Process, error)
- func (puo *ProcessUpdateOne) SaveX(ctx context.Context) *Process
- func (puo *ProcessUpdateOne) Select(field string, fields ...string) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) SetAmiID(s string) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) SetCreatedAt(t time.Time) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) SetExpiration(i int) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) SetInstanceType(s string) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) SetName(s string) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) SetNillableCreatedAt(t *time.Time) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) SetNillableName(s *string) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) SetNillableStackID(id *string) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) SetNillableState(pr *process.State) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) SetNillableTimeout(i *int) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) SetResourcePrefix(s string) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) SetStack(s *Stack) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) SetStackID(id string) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) SetState(pr process.State) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) SetTimeout(i int) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) SetToken(s string) *ProcessUpdateOne
- func (puo *ProcessUpdateOne) SetUpdatedAt(t time.Time) *ProcessUpdateOne
- type Processes
- type Provider
- type ProviderClient
- func (c *ProviderClient) Create() *ProviderCreate
- func (c *ProviderClient) CreateBulk(builders ...*ProviderCreate) *ProviderCreateBulk
- func (c *ProviderClient) Delete() *ProviderDelete
- func (c *ProviderClient) DeleteOne(pr *Provider) *ProviderDeleteOne
- func (c *ProviderClient) DeleteOneID(id uuid.UUID) *ProviderDeleteOne
- func (c *ProviderClient) Get(ctx context.Context, id uuid.UUID) (*Provider, error)
- func (c *ProviderClient) GetX(ctx context.Context, id uuid.UUID) *Provider
- func (c *ProviderClient) Hooks() []Hook
- func (c *ProviderClient) Query() *ProviderQuery
- func (c *ProviderClient) QueryDeployment(pr *Provider) *DeploymentQuery
- func (c *ProviderClient) Update() *ProviderUpdate
- func (c *ProviderClient) UpdateOne(pr *Provider) *ProviderUpdateOne
- func (c *ProviderClient) UpdateOneID(id uuid.UUID) *ProviderUpdateOne
- func (c *ProviderClient) Use(hooks ...Hook)
- type ProviderCreate
- func (pc *ProviderCreate) AddDeployment(d ...*Deployment) *ProviderCreate
- func (pc *ProviderCreate) AddDeploymentIDs(ids ...uuid.UUID) *ProviderCreate
- func (pc *ProviderCreate) Exec(ctx context.Context) error
- func (pc *ProviderCreate) ExecX(ctx context.Context)
- func (pc *ProviderCreate) Mutation() *ProviderMutation
- func (pc *ProviderCreate) Save(ctx context.Context) (*Provider, error)
- func (pc *ProviderCreate) SaveX(ctx context.Context) *Provider
- func (pc *ProviderCreate) SetCreatedAt(t time.Time) *ProviderCreate
- func (pc *ProviderCreate) SetHostname(s string) *ProviderCreate
- func (pc *ProviderCreate) SetID(u uuid.UUID) *ProviderCreate
- func (pc *ProviderCreate) SetNillableCreatedAt(t *time.Time) *ProviderCreate
- func (pc *ProviderCreate) SetNillableUpdatedAt(t *time.Time) *ProviderCreate
- func (pc *ProviderCreate) SetToken(s string) *ProviderCreate
- func (pc *ProviderCreate) SetUpdatedAt(t time.Time) *ProviderCreate
- type ProviderCreateBulk
- type ProviderDelete
- type ProviderDeleteOne
- type ProviderEdges
- type ProviderGroupBy
- func (pgb *ProviderGroupBy) Aggregate(fns ...AggregateFunc) *ProviderGroupBy
- func (pgb *ProviderGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (pgb *ProviderGroupBy) BoolX(ctx context.Context) bool
- func (pgb *ProviderGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (pgb *ProviderGroupBy) BoolsX(ctx context.Context) []bool
- func (pgb *ProviderGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (pgb *ProviderGroupBy) Float64X(ctx context.Context) float64
- func (pgb *ProviderGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (pgb *ProviderGroupBy) Float64sX(ctx context.Context) []float64
- func (pgb *ProviderGroupBy) Int(ctx context.Context) (_ int, err error)
- func (pgb *ProviderGroupBy) IntX(ctx context.Context) int
- func (pgb *ProviderGroupBy) Ints(ctx context.Context) ([]int, error)
- func (pgb *ProviderGroupBy) IntsX(ctx context.Context) []int
- func (pgb *ProviderGroupBy) Scan(ctx context.Context, v interface{}) error
- func (pgb *ProviderGroupBy) ScanX(ctx context.Context, v interface{})
- func (pgb *ProviderGroupBy) String(ctx context.Context) (_ string, err error)
- func (pgb *ProviderGroupBy) StringX(ctx context.Context) string
- func (pgb *ProviderGroupBy) Strings(ctx context.Context) ([]string, error)
- func (pgb *ProviderGroupBy) StringsX(ctx context.Context) []string
- type ProviderMutation
- func (m *ProviderMutation) AddDeploymentIDs(ids ...uuid.UUID)
- func (m *ProviderMutation) AddField(name string, value ent.Value) error
- func (m *ProviderMutation) AddedEdges() []string
- func (m *ProviderMutation) AddedField(name string) (ent.Value, bool)
- func (m *ProviderMutation) AddedFields() []string
- func (m *ProviderMutation) AddedIDs(name string) []ent.Value
- func (m *ProviderMutation) ClearDeployment()
- func (m *ProviderMutation) ClearEdge(name string) error
- func (m *ProviderMutation) ClearField(name string) error
- func (m *ProviderMutation) ClearedEdges() []string
- func (m *ProviderMutation) ClearedFields() []string
- func (m ProviderMutation) Client() *Client
- func (m *ProviderMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ProviderMutation) DeploymentCleared() bool
- func (m *ProviderMutation) DeploymentIDs() (ids []uuid.UUID)
- func (m *ProviderMutation) EdgeCleared(name string) bool
- func (m *ProviderMutation) Field(name string) (ent.Value, bool)
- func (m *ProviderMutation) FieldCleared(name string) bool
- func (m *ProviderMutation) Fields() []string
- func (m *ProviderMutation) Hostname() (r string, exists bool)
- func (m *ProviderMutation) ID() (id uuid.UUID, exists bool)
- func (m *ProviderMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProviderMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ProviderMutation) OldHostname(ctx context.Context) (v string, err error)
- func (m *ProviderMutation) OldToken(ctx context.Context) (v string, err error)
- func (m *ProviderMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProviderMutation) Op() Op
- func (m *ProviderMutation) RemoveDeploymentIDs(ids ...uuid.UUID)
- func (m *ProviderMutation) RemovedDeploymentIDs() (ids []uuid.UUID)
- func (m *ProviderMutation) RemovedEdges() []string
- func (m *ProviderMutation) RemovedIDs(name string) []ent.Value
- func (m *ProviderMutation) ResetCreatedAt()
- func (m *ProviderMutation) ResetDeployment()
- func (m *ProviderMutation) ResetEdge(name string) error
- func (m *ProviderMutation) ResetField(name string) error
- func (m *ProviderMutation) ResetHostname()
- func (m *ProviderMutation) ResetToken()
- func (m *ProviderMutation) ResetUpdatedAt()
- func (m *ProviderMutation) SetCreatedAt(t time.Time)
- func (m *ProviderMutation) SetField(name string, value ent.Value) error
- func (m *ProviderMutation) SetHostname(s string)
- func (m *ProviderMutation) SetID(id uuid.UUID)
- func (m *ProviderMutation) SetToken(s string)
- func (m *ProviderMutation) SetUpdatedAt(t time.Time)
- func (m *ProviderMutation) Token() (r string, exists bool)
- func (m ProviderMutation) Tx() (*Tx, error)
- func (m *ProviderMutation) Type() string
- func (m *ProviderMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ProviderMutation) Where(ps ...predicate.Provider)
- type ProviderQuery
- func (pq *ProviderQuery) All(ctx context.Context) ([]*Provider, error)
- func (pq *ProviderQuery) AllX(ctx context.Context) []*Provider
- func (pq *ProviderQuery) Clone() *ProviderQuery
- func (pq *ProviderQuery) Count(ctx context.Context) (int, error)
- func (pq *ProviderQuery) CountX(ctx context.Context) int
- func (pq *ProviderQuery) Exist(ctx context.Context) (bool, error)
- func (pq *ProviderQuery) ExistX(ctx context.Context) bool
- func (pq *ProviderQuery) First(ctx context.Context) (*Provider, error)
- func (pq *ProviderQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (pq *ProviderQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (pq *ProviderQuery) FirstX(ctx context.Context) *Provider
- func (pq *ProviderQuery) GroupBy(field string, fields ...string) *ProviderGroupBy
- func (pq *ProviderQuery) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (pq *ProviderQuery) IDsX(ctx context.Context) []uuid.UUID
- func (pq *ProviderQuery) Limit(limit int) *ProviderQuery
- func (pq *ProviderQuery) Offset(offset int) *ProviderQuery
- func (pq *ProviderQuery) Only(ctx context.Context) (*Provider, error)
- func (pq *ProviderQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (pq *ProviderQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (pq *ProviderQuery) OnlyX(ctx context.Context) *Provider
- func (pq *ProviderQuery) Order(o ...OrderFunc) *ProviderQuery
- func (pq *ProviderQuery) QueryDeployment() *DeploymentQuery
- func (pq *ProviderQuery) Select(fields ...string) *ProviderSelect
- func (pq *ProviderQuery) Unique(unique bool) *ProviderQuery
- func (pq *ProviderQuery) Where(ps ...predicate.Provider) *ProviderQuery
- func (pq *ProviderQuery) WithDeployment(opts ...func(*DeploymentQuery)) *ProviderQuery
- type ProviderSelect
- func (ps *ProviderSelect) Bool(ctx context.Context) (_ bool, err error)
- func (ps *ProviderSelect) BoolX(ctx context.Context) bool
- func (ps *ProviderSelect) Bools(ctx context.Context) ([]bool, error)
- func (ps *ProviderSelect) BoolsX(ctx context.Context) []bool
- func (ps *ProviderSelect) Float64(ctx context.Context) (_ float64, err error)
- func (ps *ProviderSelect) Float64X(ctx context.Context) float64
- func (ps *ProviderSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ps *ProviderSelect) Float64sX(ctx context.Context) []float64
- func (ps *ProviderSelect) Int(ctx context.Context) (_ int, err error)
- func (ps *ProviderSelect) IntX(ctx context.Context) int
- func (ps *ProviderSelect) Ints(ctx context.Context) ([]int, error)
- func (ps *ProviderSelect) IntsX(ctx context.Context) []int
- func (ps *ProviderSelect) Scan(ctx context.Context, v interface{}) error
- func (ps *ProviderSelect) ScanX(ctx context.Context, v interface{})
- func (ps *ProviderSelect) String(ctx context.Context) (_ string, err error)
- func (ps *ProviderSelect) StringX(ctx context.Context) string
- func (ps *ProviderSelect) Strings(ctx context.Context) ([]string, error)
- func (ps *ProviderSelect) StringsX(ctx context.Context) []string
- type ProviderUpdate
- func (pu *ProviderUpdate) AddDeployment(d ...*Deployment) *ProviderUpdate
- func (pu *ProviderUpdate) AddDeploymentIDs(ids ...uuid.UUID) *ProviderUpdate
- func (pu *ProviderUpdate) ClearDeployment() *ProviderUpdate
- func (pu *ProviderUpdate) Exec(ctx context.Context) error
- func (pu *ProviderUpdate) ExecX(ctx context.Context)
- func (pu *ProviderUpdate) Mutation() *ProviderMutation
- func (pu *ProviderUpdate) RemoveDeployment(d ...*Deployment) *ProviderUpdate
- func (pu *ProviderUpdate) RemoveDeploymentIDs(ids ...uuid.UUID) *ProviderUpdate
- func (pu *ProviderUpdate) Save(ctx context.Context) (int, error)
- func (pu *ProviderUpdate) SaveX(ctx context.Context) int
- func (pu *ProviderUpdate) SetCreatedAt(t time.Time) *ProviderUpdate
- func (pu *ProviderUpdate) SetHostname(s string) *ProviderUpdate
- func (pu *ProviderUpdate) SetNillableCreatedAt(t *time.Time) *ProviderUpdate
- func (pu *ProviderUpdate) SetToken(s string) *ProviderUpdate
- func (pu *ProviderUpdate) SetUpdatedAt(t time.Time) *ProviderUpdate
- func (pu *ProviderUpdate) Where(ps ...predicate.Provider) *ProviderUpdate
- type ProviderUpdateOne
- func (puo *ProviderUpdateOne) AddDeployment(d ...*Deployment) *ProviderUpdateOne
- func (puo *ProviderUpdateOne) AddDeploymentIDs(ids ...uuid.UUID) *ProviderUpdateOne
- func (puo *ProviderUpdateOne) ClearDeployment() *ProviderUpdateOne
- func (puo *ProviderUpdateOne) Exec(ctx context.Context) error
- func (puo *ProviderUpdateOne) ExecX(ctx context.Context)
- func (puo *ProviderUpdateOne) Mutation() *ProviderMutation
- func (puo *ProviderUpdateOne) RemoveDeployment(d ...*Deployment) *ProviderUpdateOne
- func (puo *ProviderUpdateOne) RemoveDeploymentIDs(ids ...uuid.UUID) *ProviderUpdateOne
- func (puo *ProviderUpdateOne) Save(ctx context.Context) (*Provider, error)
- func (puo *ProviderUpdateOne) SaveX(ctx context.Context) *Provider
- func (puo *ProviderUpdateOne) Select(field string, fields ...string) *ProviderUpdateOne
- func (puo *ProviderUpdateOne) SetCreatedAt(t time.Time) *ProviderUpdateOne
- func (puo *ProviderUpdateOne) SetHostname(s string) *ProviderUpdateOne
- func (puo *ProviderUpdateOne) SetNillableCreatedAt(t *time.Time) *ProviderUpdateOne
- func (puo *ProviderUpdateOne) SetToken(s string) *ProviderUpdateOne
- func (puo *ProviderUpdateOne) SetUpdatedAt(t time.Time) *ProviderUpdateOne
- type Providers
- type Query
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type Stack
- type StackClient
- func (c *StackClient) Create() *StackCreate
- func (c *StackClient) CreateBulk(builders ...*StackCreate) *StackCreateBulk
- func (c *StackClient) Delete() *StackDelete
- func (c *StackClient) DeleteOne(s *Stack) *StackDeleteOne
- func (c *StackClient) DeleteOneID(id string) *StackDeleteOne
- func (c *StackClient) Get(ctx context.Context, id string) (*Stack, error)
- func (c *StackClient) GetX(ctx context.Context, id string) *Stack
- func (c *StackClient) Hooks() []Hook
- func (c *StackClient) Query() *StackQuery
- func (c *StackClient) QueryDeployment(s *Stack) *DeploymentQuery
- func (c *StackClient) Update() *StackUpdate
- func (c *StackClient) UpdateOne(s *Stack) *StackUpdateOne
- func (c *StackClient) UpdateOneID(id string) *StackUpdateOne
- func (c *StackClient) Use(hooks ...Hook)
- type StackCreate
- func (sc *StackCreate) Exec(ctx context.Context) error
- func (sc *StackCreate) ExecX(ctx context.Context)
- func (sc *StackCreate) Mutation() *StackMutation
- func (sc *StackCreate) Save(ctx context.Context) (*Stack, error)
- func (sc *StackCreate) SaveX(ctx context.Context) *Stack
- func (sc *StackCreate) SetCreatedAt(t time.Time) *StackCreate
- func (sc *StackCreate) SetDeployment(d *Deployment) *StackCreate
- func (sc *StackCreate) SetDeploymentID(id uuid.UUID) *StackCreate
- func (sc *StackCreate) SetFilepath(s string) *StackCreate
- func (sc *StackCreate) SetID(s string) *StackCreate
- func (sc *StackCreate) SetInstance(s string) *StackCreate
- func (sc *StackCreate) SetKeyPair(s string) *StackCreate
- func (sc *StackCreate) SetName(s string) *StackCreate
- func (sc *StackCreate) SetNillableCreatedAt(t *time.Time) *StackCreate
- func (sc *StackCreate) SetNillableDeploymentID(id *uuid.UUID) *StackCreate
- func (sc *StackCreate) SetNillableFilepath(s *string) *StackCreate
- func (sc *StackCreate) SetNillablePublicDNS(s *string) *StackCreate
- func (sc *StackCreate) SetNillableUpdatedAt(t *time.Time) *StackCreate
- func (sc *StackCreate) SetPrivateKey(s string) *StackCreate
- func (sc *StackCreate) SetPublicDNS(s string) *StackCreate
- func (sc *StackCreate) SetPublicIP(s string) *StackCreate
- func (sc *StackCreate) SetSecurityGroup(s string) *StackCreate
- func (sc *StackCreate) SetUpdatedAt(t time.Time) *StackCreate
- func (sc *StackCreate) SetUsername(s string) *StackCreate
- func (sc *StackCreate) SetVpcID(s string) *StackCreate
- type StackCreateBulk
- type StackDelete
- type StackDeleteOne
- type StackEdges
- type StackGroupBy
- func (sgb *StackGroupBy) Aggregate(fns ...AggregateFunc) *StackGroupBy
- func (sgb *StackGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (sgb *StackGroupBy) BoolX(ctx context.Context) bool
- func (sgb *StackGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (sgb *StackGroupBy) BoolsX(ctx context.Context) []bool
- func (sgb *StackGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (sgb *StackGroupBy) Float64X(ctx context.Context) float64
- func (sgb *StackGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (sgb *StackGroupBy) Float64sX(ctx context.Context) []float64
- func (sgb *StackGroupBy) Int(ctx context.Context) (_ int, err error)
- func (sgb *StackGroupBy) IntX(ctx context.Context) int
- func (sgb *StackGroupBy) Ints(ctx context.Context) ([]int, error)
- func (sgb *StackGroupBy) IntsX(ctx context.Context) []int
- func (sgb *StackGroupBy) Scan(ctx context.Context, v interface{}) error
- func (sgb *StackGroupBy) ScanX(ctx context.Context, v interface{})
- func (sgb *StackGroupBy) String(ctx context.Context) (_ string, err error)
- func (sgb *StackGroupBy) StringX(ctx context.Context) string
- func (sgb *StackGroupBy) Strings(ctx context.Context) ([]string, error)
- func (sgb *StackGroupBy) StringsX(ctx context.Context) []string
- type StackMutation
- func (m *StackMutation) AddField(name string, value ent.Value) error
- func (m *StackMutation) AddedEdges() []string
- func (m *StackMutation) AddedField(name string) (ent.Value, bool)
- func (m *StackMutation) AddedFields() []string
- func (m *StackMutation) AddedIDs(name string) []ent.Value
- func (m *StackMutation) ClearDeployment()
- func (m *StackMutation) ClearEdge(name string) error
- func (m *StackMutation) ClearField(name string) error
- func (m *StackMutation) ClearFilepath()
- func (m *StackMutation) ClearPublicDNS()
- func (m *StackMutation) ClearedEdges() []string
- func (m *StackMutation) ClearedFields() []string
- func (m StackMutation) Client() *Client
- func (m *StackMutation) CreatedAt() (r time.Time, exists bool)
- func (m *StackMutation) DeploymentCleared() bool
- func (m *StackMutation) DeploymentID() (id uuid.UUID, exists bool)
- func (m *StackMutation) DeploymentIDs() (ids []uuid.UUID)
- func (m *StackMutation) EdgeCleared(name string) bool
- func (m *StackMutation) Field(name string) (ent.Value, bool)
- func (m *StackMutation) FieldCleared(name string) bool
- func (m *StackMutation) Fields() []string
- func (m *StackMutation) Filepath() (r string, exists bool)
- func (m *StackMutation) FilepathCleared() bool
- func (m *StackMutation) ID() (id string, exists bool)
- func (m *StackMutation) Instance() (r string, exists bool)
- func (m *StackMutation) KeyPair() (r string, exists bool)
- func (m *StackMutation) Name() (r string, exists bool)
- func (m *StackMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *StackMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *StackMutation) OldFilepath(ctx context.Context) (v string, err error)
- func (m *StackMutation) OldInstance(ctx context.Context) (v string, err error)
- func (m *StackMutation) OldKeyPair(ctx context.Context) (v string, err error)
- func (m *StackMutation) OldName(ctx context.Context) (v string, err error)
- func (m *StackMutation) OldPrivateKey(ctx context.Context) (v string, err error)
- func (m *StackMutation) OldPublicDNS(ctx context.Context) (v string, err error)
- func (m *StackMutation) OldPublicIP(ctx context.Context) (v string, err error)
- func (m *StackMutation) OldSecurityGroup(ctx context.Context) (v string, err error)
- func (m *StackMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *StackMutation) OldUsername(ctx context.Context) (v string, err error)
- func (m *StackMutation) OldVpcID(ctx context.Context) (v string, err error)
- func (m *StackMutation) Op() Op
- func (m *StackMutation) PrivateKey() (r string, exists bool)
- func (m *StackMutation) PublicDNS() (r string, exists bool)
- func (m *StackMutation) PublicDNSCleared() bool
- func (m *StackMutation) PublicIP() (r string, exists bool)
- func (m *StackMutation) RemovedEdges() []string
- func (m *StackMutation) RemovedIDs(name string) []ent.Value
- func (m *StackMutation) ResetCreatedAt()
- func (m *StackMutation) ResetDeployment()
- func (m *StackMutation) ResetEdge(name string) error
- func (m *StackMutation) ResetField(name string) error
- func (m *StackMutation) ResetFilepath()
- func (m *StackMutation) ResetInstance()
- func (m *StackMutation) ResetKeyPair()
- func (m *StackMutation) ResetName()
- func (m *StackMutation) ResetPrivateKey()
- func (m *StackMutation) ResetPublicDNS()
- func (m *StackMutation) ResetPublicIP()
- func (m *StackMutation) ResetSecurityGroup()
- func (m *StackMutation) ResetUpdatedAt()
- func (m *StackMutation) ResetUsername()
- func (m *StackMutation) ResetVpcID()
- func (m *StackMutation) SecurityGroup() (r string, exists bool)
- func (m *StackMutation) SetCreatedAt(t time.Time)
- func (m *StackMutation) SetDeploymentID(id uuid.UUID)
- func (m *StackMutation) SetField(name string, value ent.Value) error
- func (m *StackMutation) SetFilepath(s string)
- func (m *StackMutation) SetID(id string)
- func (m *StackMutation) SetInstance(s string)
- func (m *StackMutation) SetKeyPair(s string)
- func (m *StackMutation) SetName(s string)
- func (m *StackMutation) SetPrivateKey(s string)
- func (m *StackMutation) SetPublicDNS(s string)
- func (m *StackMutation) SetPublicIP(s string)
- func (m *StackMutation) SetSecurityGroup(s string)
- func (m *StackMutation) SetUpdatedAt(t time.Time)
- func (m *StackMutation) SetUsername(s string)
- func (m *StackMutation) SetVpcID(s string)
- func (m StackMutation) Tx() (*Tx, error)
- func (m *StackMutation) Type() string
- func (m *StackMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *StackMutation) Username() (r string, exists bool)
- func (m *StackMutation) VpcID() (r string, exists bool)
- func (m *StackMutation) Where(ps ...predicate.Stack)
- type StackQuery
- func (sq *StackQuery) All(ctx context.Context) ([]*Stack, error)
- func (sq *StackQuery) AllX(ctx context.Context) []*Stack
- func (sq *StackQuery) Clone() *StackQuery
- func (sq *StackQuery) Count(ctx context.Context) (int, error)
- func (sq *StackQuery) CountX(ctx context.Context) int
- func (sq *StackQuery) Exist(ctx context.Context) (bool, error)
- func (sq *StackQuery) ExistX(ctx context.Context) bool
- func (sq *StackQuery) First(ctx context.Context) (*Stack, error)
- func (sq *StackQuery) FirstID(ctx context.Context) (id string, err error)
- func (sq *StackQuery) FirstIDX(ctx context.Context) string
- func (sq *StackQuery) FirstX(ctx context.Context) *Stack
- func (sq *StackQuery) GroupBy(field string, fields ...string) *StackGroupBy
- func (sq *StackQuery) IDs(ctx context.Context) ([]string, error)
- func (sq *StackQuery) IDsX(ctx context.Context) []string
- func (sq *StackQuery) Limit(limit int) *StackQuery
- func (sq *StackQuery) Offset(offset int) *StackQuery
- func (sq *StackQuery) Only(ctx context.Context) (*Stack, error)
- func (sq *StackQuery) OnlyID(ctx context.Context) (id string, err error)
- func (sq *StackQuery) OnlyIDX(ctx context.Context) string
- func (sq *StackQuery) OnlyX(ctx context.Context) *Stack
- func (sq *StackQuery) Order(o ...OrderFunc) *StackQuery
- func (sq *StackQuery) QueryDeployment() *DeploymentQuery
- func (sq *StackQuery) Select(fields ...string) *StackSelect
- func (sq *StackQuery) Unique(unique bool) *StackQuery
- func (sq *StackQuery) Where(ps ...predicate.Stack) *StackQuery
- func (sq *StackQuery) WithDeployment(opts ...func(*DeploymentQuery)) *StackQuery
- type StackSelect
- func (ss *StackSelect) Bool(ctx context.Context) (_ bool, err error)
- func (ss *StackSelect) BoolX(ctx context.Context) bool
- func (ss *StackSelect) Bools(ctx context.Context) ([]bool, error)
- func (ss *StackSelect) BoolsX(ctx context.Context) []bool
- func (ss *StackSelect) Float64(ctx context.Context) (_ float64, err error)
- func (ss *StackSelect) Float64X(ctx context.Context) float64
- func (ss *StackSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ss *StackSelect) Float64sX(ctx context.Context) []float64
- func (ss *StackSelect) Int(ctx context.Context) (_ int, err error)
- func (ss *StackSelect) IntX(ctx context.Context) int
- func (ss *StackSelect) Ints(ctx context.Context) ([]int, error)
- func (ss *StackSelect) IntsX(ctx context.Context) []int
- func (ss *StackSelect) Scan(ctx context.Context, v interface{}) error
- func (ss *StackSelect) ScanX(ctx context.Context, v interface{})
- func (ss *StackSelect) String(ctx context.Context) (_ string, err error)
- func (ss *StackSelect) StringX(ctx context.Context) string
- func (ss *StackSelect) Strings(ctx context.Context) ([]string, error)
- func (ss *StackSelect) StringsX(ctx context.Context) []string
- type StackUpdate
- func (su *StackUpdate) ClearDeployment() *StackUpdate
- func (su *StackUpdate) ClearFilepath() *StackUpdate
- func (su *StackUpdate) ClearPublicDNS() *StackUpdate
- func (su *StackUpdate) Exec(ctx context.Context) error
- func (su *StackUpdate) ExecX(ctx context.Context)
- func (su *StackUpdate) Mutation() *StackMutation
- func (su *StackUpdate) Save(ctx context.Context) (int, error)
- func (su *StackUpdate) SaveX(ctx context.Context) int
- func (su *StackUpdate) SetCreatedAt(t time.Time) *StackUpdate
- func (su *StackUpdate) SetDeployment(d *Deployment) *StackUpdate
- func (su *StackUpdate) SetDeploymentID(id uuid.UUID) *StackUpdate
- func (su *StackUpdate) SetFilepath(s string) *StackUpdate
- func (su *StackUpdate) SetInstance(s string) *StackUpdate
- func (su *StackUpdate) SetKeyPair(s string) *StackUpdate
- func (su *StackUpdate) SetName(s string) *StackUpdate
- func (su *StackUpdate) SetNillableCreatedAt(t *time.Time) *StackUpdate
- func (su *StackUpdate) SetNillableDeploymentID(id *uuid.UUID) *StackUpdate
- func (su *StackUpdate) SetNillableFilepath(s *string) *StackUpdate
- func (su *StackUpdate) SetNillablePublicDNS(s *string) *StackUpdate
- func (su *StackUpdate) SetPrivateKey(s string) *StackUpdate
- func (su *StackUpdate) SetPublicDNS(s string) *StackUpdate
- func (su *StackUpdate) SetPublicIP(s string) *StackUpdate
- func (su *StackUpdate) SetSecurityGroup(s string) *StackUpdate
- func (su *StackUpdate) SetUpdatedAt(t time.Time) *StackUpdate
- func (su *StackUpdate) SetUsername(s string) *StackUpdate
- func (su *StackUpdate) SetVpcID(s string) *StackUpdate
- func (su *StackUpdate) Where(ps ...predicate.Stack) *StackUpdate
- type StackUpdateOne
- func (suo *StackUpdateOne) ClearDeployment() *StackUpdateOne
- func (suo *StackUpdateOne) ClearFilepath() *StackUpdateOne
- func (suo *StackUpdateOne) ClearPublicDNS() *StackUpdateOne
- func (suo *StackUpdateOne) Exec(ctx context.Context) error
- func (suo *StackUpdateOne) ExecX(ctx context.Context)
- func (suo *StackUpdateOne) Mutation() *StackMutation
- func (suo *StackUpdateOne) Save(ctx context.Context) (*Stack, error)
- func (suo *StackUpdateOne) SaveX(ctx context.Context) *Stack
- func (suo *StackUpdateOne) Select(field string, fields ...string) *StackUpdateOne
- func (suo *StackUpdateOne) SetCreatedAt(t time.Time) *StackUpdateOne
- func (suo *StackUpdateOne) SetDeployment(d *Deployment) *StackUpdateOne
- func (suo *StackUpdateOne) SetDeploymentID(id uuid.UUID) *StackUpdateOne
- func (suo *StackUpdateOne) SetFilepath(s string) *StackUpdateOne
- func (suo *StackUpdateOne) SetInstance(s string) *StackUpdateOne
- func (suo *StackUpdateOne) SetKeyPair(s string) *StackUpdateOne
- func (suo *StackUpdateOne) SetName(s string) *StackUpdateOne
- func (suo *StackUpdateOne) SetNillableCreatedAt(t *time.Time) *StackUpdateOne
- func (suo *StackUpdateOne) SetNillableDeploymentID(id *uuid.UUID) *StackUpdateOne
- func (suo *StackUpdateOne) SetNillableFilepath(s *string) *StackUpdateOne
- func (suo *StackUpdateOne) SetNillablePublicDNS(s *string) *StackUpdateOne
- func (suo *StackUpdateOne) SetPrivateKey(s string) *StackUpdateOne
- func (suo *StackUpdateOne) SetPublicDNS(s string) *StackUpdateOne
- func (suo *StackUpdateOne) SetPublicIP(s string) *StackUpdateOne
- func (suo *StackUpdateOne) SetSecurityGroup(s string) *StackUpdateOne
- func (suo *StackUpdateOne) SetUpdatedAt(t time.Time) *StackUpdateOne
- func (suo *StackUpdateOne) SetUsername(s string) *StackUpdateOne
- func (suo *StackUpdateOne) SetVpcID(s string) *StackUpdateOne
- type Stacks
- type Task
- type TaskClient
- func (c *TaskClient) Create() *TaskCreate
- func (c *TaskClient) CreateBulk(builders ...*TaskCreate) *TaskCreateBulk
- func (c *TaskClient) Delete() *TaskDelete
- func (c *TaskClient) DeleteOne(t *Task) *TaskDeleteOne
- func (c *TaskClient) DeleteOneID(id uuid.UUID) *TaskDeleteOne
- func (c *TaskClient) Get(ctx context.Context, id uuid.UUID) (*Task, error)
- func (c *TaskClient) GetX(ctx context.Context, id uuid.UUID) *Task
- func (c *TaskClient) Hooks() []Hook
- func (c *TaskClient) Query() *TaskQuery
- func (c *TaskClient) QueryDeployment(t *Task) *DeploymentQuery
- func (c *TaskClient) Update() *TaskUpdate
- func (c *TaskClient) UpdateOne(t *Task) *TaskUpdateOne
- func (c *TaskClient) UpdateOneID(id uuid.UUID) *TaskUpdateOne
- func (c *TaskClient) Use(hooks ...Hook)
- type TaskCreate
- func (tc *TaskCreate) Exec(ctx context.Context) error
- func (tc *TaskCreate) ExecX(ctx context.Context)
- func (tc *TaskCreate) Mutation() *TaskMutation
- func (tc *TaskCreate) Save(ctx context.Context) (*Task, error)
- func (tc *TaskCreate) SaveX(ctx context.Context) *Task
- func (tc *TaskCreate) SetCapAdd(s []string) *TaskCreate
- func (tc *TaskCreate) SetCmd(s string) *TaskCreate
- func (tc *TaskCreate) SetCreatedAt(t time.Time) *TaskCreate
- func (tc *TaskCreate) SetDeployment(d *Deployment) *TaskCreate
- func (tc *TaskCreate) SetDeploymentID(id uuid.UUID) *TaskCreate
- func (tc *TaskCreate) SetDetached(b bool) *TaskCreate
- func (tc *TaskCreate) SetEnvironment(m map[string]interface{}) *TaskCreate
- func (tc *TaskCreate) SetID(u uuid.UUID) *TaskCreate
- func (tc *TaskCreate) SetImage(s string) *TaskCreate
- func (tc *TaskCreate) SetName(s string) *TaskCreate
- func (tc *TaskCreate) SetNillableCmd(s *string) *TaskCreate
- func (tc *TaskCreate) SetNillableCreatedAt(t *time.Time) *TaskCreate
- func (tc *TaskCreate) SetNillableDeploymentID(id *uuid.UUID) *TaskCreate
- func (tc *TaskCreate) SetNillableDetached(b *bool) *TaskCreate
- func (tc *TaskCreate) SetNillableName(s *string) *TaskCreate
- func (tc *TaskCreate) SetNillableRestart(s *string) *TaskCreate
- func (tc *TaskCreate) SetNillableTimeout(i *int) *TaskCreate
- func (tc *TaskCreate) SetNillableUpdatedAt(t *time.Time) *TaskCreate
- func (tc *TaskCreate) SetPorts(s []string) *TaskCreate
- func (tc *TaskCreate) SetRestart(s string) *TaskCreate
- func (tc *TaskCreate) SetSecurityOpt(s []string) *TaskCreate
- func (tc *TaskCreate) SetTimeout(i int) *TaskCreate
- func (tc *TaskCreate) SetUpdatedAt(t time.Time) *TaskCreate
- func (tc *TaskCreate) SetVolumes(s []string) *TaskCreate
- type TaskCreateBulk
- type TaskDelete
- type TaskDeleteOne
- type TaskEdges
- type TaskGroupBy
- func (tgb *TaskGroupBy) Aggregate(fns ...AggregateFunc) *TaskGroupBy
- func (tgb *TaskGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (tgb *TaskGroupBy) BoolX(ctx context.Context) bool
- func (tgb *TaskGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (tgb *TaskGroupBy) BoolsX(ctx context.Context) []bool
- func (tgb *TaskGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (tgb *TaskGroupBy) Float64X(ctx context.Context) float64
- func (tgb *TaskGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (tgb *TaskGroupBy) Float64sX(ctx context.Context) []float64
- func (tgb *TaskGroupBy) Int(ctx context.Context) (_ int, err error)
- func (tgb *TaskGroupBy) IntX(ctx context.Context) int
- func (tgb *TaskGroupBy) Ints(ctx context.Context) ([]int, error)
- func (tgb *TaskGroupBy) IntsX(ctx context.Context) []int
- func (tgb *TaskGroupBy) Scan(ctx context.Context, v interface{}) error
- func (tgb *TaskGroupBy) ScanX(ctx context.Context, v interface{})
- func (tgb *TaskGroupBy) String(ctx context.Context) (_ string, err error)
- func (tgb *TaskGroupBy) StringX(ctx context.Context) string
- func (tgb *TaskGroupBy) Strings(ctx context.Context) ([]string, error)
- func (tgb *TaskGroupBy) StringsX(ctx context.Context) []string
- type TaskMutation
- func (m *TaskMutation) AddField(name string, value ent.Value) error
- func (m *TaskMutation) AddTimeout(i int)
- func (m *TaskMutation) AddedEdges() []string
- func (m *TaskMutation) AddedField(name string) (ent.Value, bool)
- func (m *TaskMutation) AddedFields() []string
- func (m *TaskMutation) AddedIDs(name string) []ent.Value
- func (m *TaskMutation) AddedTimeout() (r int, exists bool)
- func (m *TaskMutation) CapAdd() (r []string, exists bool)
- func (m *TaskMutation) CapAddCleared() bool
- func (m *TaskMutation) ClearCapAdd()
- func (m *TaskMutation) ClearCmd()
- func (m *TaskMutation) ClearDeployment()
- func (m *TaskMutation) ClearDetached()
- func (m *TaskMutation) ClearEdge(name string) error
- func (m *TaskMutation) ClearEnvironment()
- func (m *TaskMutation) ClearField(name string) error
- func (m *TaskMutation) ClearName()
- func (m *TaskMutation) ClearPorts()
- func (m *TaskMutation) ClearRestart()
- func (m *TaskMutation) ClearSecurityOpt()
- func (m *TaskMutation) ClearTimeout()
- func (m *TaskMutation) ClearVolumes()
- func (m *TaskMutation) ClearedEdges() []string
- func (m *TaskMutation) ClearedFields() []string
- func (m TaskMutation) Client() *Client
- func (m *TaskMutation) Cmd() (r string, exists bool)
- func (m *TaskMutation) CmdCleared() bool
- func (m *TaskMutation) CreatedAt() (r time.Time, exists bool)
- func (m *TaskMutation) DeploymentCleared() bool
- func (m *TaskMutation) DeploymentID() (id uuid.UUID, exists bool)
- func (m *TaskMutation) DeploymentIDs() (ids []uuid.UUID)
- func (m *TaskMutation) Detached() (r bool, exists bool)
- func (m *TaskMutation) DetachedCleared() bool
- func (m *TaskMutation) EdgeCleared(name string) bool
- func (m *TaskMutation) Environment() (r map[string]interface{}, exists bool)
- func (m *TaskMutation) EnvironmentCleared() bool
- func (m *TaskMutation) Field(name string) (ent.Value, bool)
- func (m *TaskMutation) FieldCleared(name string) bool
- func (m *TaskMutation) Fields() []string
- func (m *TaskMutation) ID() (id uuid.UUID, exists bool)
- func (m *TaskMutation) Image() (r string, exists bool)
- func (m *TaskMutation) Name() (r string, exists bool)
- func (m *TaskMutation) NameCleared() bool
- func (m *TaskMutation) OldCapAdd(ctx context.Context) (v []string, err error)
- func (m *TaskMutation) OldCmd(ctx context.Context) (v string, err error)
- func (m *TaskMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *TaskMutation) OldDetached(ctx context.Context) (v bool, err error)
- func (m *TaskMutation) OldEnvironment(ctx context.Context) (v map[string]interface{}, err error)
- func (m *TaskMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *TaskMutation) OldImage(ctx context.Context) (v string, err error)
- func (m *TaskMutation) OldName(ctx context.Context) (v string, err error)
- func (m *TaskMutation) OldPorts(ctx context.Context) (v []string, err error)
- func (m *TaskMutation) OldRestart(ctx context.Context) (v string, err error)
- func (m *TaskMutation) OldSecurityOpt(ctx context.Context) (v []string, err error)
- func (m *TaskMutation) OldTimeout(ctx context.Context) (v int, err error)
- func (m *TaskMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *TaskMutation) OldVolumes(ctx context.Context) (v []string, err error)
- func (m *TaskMutation) Op() Op
- func (m *TaskMutation) Ports() (r []string, exists bool)
- func (m *TaskMutation) PortsCleared() bool
- func (m *TaskMutation) RemovedEdges() []string
- func (m *TaskMutation) RemovedIDs(name string) []ent.Value
- func (m *TaskMutation) ResetCapAdd()
- func (m *TaskMutation) ResetCmd()
- func (m *TaskMutation) ResetCreatedAt()
- func (m *TaskMutation) ResetDeployment()
- func (m *TaskMutation) ResetDetached()
- func (m *TaskMutation) ResetEdge(name string) error
- func (m *TaskMutation) ResetEnvironment()
- func (m *TaskMutation) ResetField(name string) error
- func (m *TaskMutation) ResetImage()
- func (m *TaskMutation) ResetName()
- func (m *TaskMutation) ResetPorts()
- func (m *TaskMutation) ResetRestart()
- func (m *TaskMutation) ResetSecurityOpt()
- func (m *TaskMutation) ResetTimeout()
- func (m *TaskMutation) ResetUpdatedAt()
- func (m *TaskMutation) ResetVolumes()
- func (m *TaskMutation) Restart() (r string, exists bool)
- func (m *TaskMutation) RestartCleared() bool
- func (m *TaskMutation) SecurityOpt() (r []string, exists bool)
- func (m *TaskMutation) SecurityOptCleared() bool
- func (m *TaskMutation) SetCapAdd(s []string)
- func (m *TaskMutation) SetCmd(s string)
- func (m *TaskMutation) SetCreatedAt(t time.Time)
- func (m *TaskMutation) SetDeploymentID(id uuid.UUID)
- func (m *TaskMutation) SetDetached(b bool)
- func (m *TaskMutation) SetEnvironment(value map[string]interface{})
- func (m *TaskMutation) SetField(name string, value ent.Value) error
- func (m *TaskMutation) SetID(id uuid.UUID)
- func (m *TaskMutation) SetImage(s string)
- func (m *TaskMutation) SetName(s string)
- func (m *TaskMutation) SetPorts(s []string)
- func (m *TaskMutation) SetRestart(s string)
- func (m *TaskMutation) SetSecurityOpt(s []string)
- func (m *TaskMutation) SetTimeout(i int)
- func (m *TaskMutation) SetUpdatedAt(t time.Time)
- func (m *TaskMutation) SetVolumes(s []string)
- func (m *TaskMutation) Timeout() (r int, exists bool)
- func (m *TaskMutation) TimeoutCleared() bool
- func (m TaskMutation) Tx() (*Tx, error)
- func (m *TaskMutation) Type() string
- func (m *TaskMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *TaskMutation) Volumes() (r []string, exists bool)
- func (m *TaskMutation) VolumesCleared() bool
- func (m *TaskMutation) Where(ps ...predicate.Task)
- type TaskQuery
- func (tq *TaskQuery) All(ctx context.Context) ([]*Task, error)
- func (tq *TaskQuery) AllX(ctx context.Context) []*Task
- func (tq *TaskQuery) Clone() *TaskQuery
- func (tq *TaskQuery) Count(ctx context.Context) (int, error)
- func (tq *TaskQuery) CountX(ctx context.Context) int
- func (tq *TaskQuery) Exist(ctx context.Context) (bool, error)
- func (tq *TaskQuery) ExistX(ctx context.Context) bool
- func (tq *TaskQuery) First(ctx context.Context) (*Task, error)
- func (tq *TaskQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (tq *TaskQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (tq *TaskQuery) FirstX(ctx context.Context) *Task
- func (tq *TaskQuery) GroupBy(field string, fields ...string) *TaskGroupBy
- func (tq *TaskQuery) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (tq *TaskQuery) IDsX(ctx context.Context) []uuid.UUID
- func (tq *TaskQuery) Limit(limit int) *TaskQuery
- func (tq *TaskQuery) Offset(offset int) *TaskQuery
- func (tq *TaskQuery) Only(ctx context.Context) (*Task, error)
- func (tq *TaskQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (tq *TaskQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (tq *TaskQuery) OnlyX(ctx context.Context) *Task
- func (tq *TaskQuery) Order(o ...OrderFunc) *TaskQuery
- func (tq *TaskQuery) QueryDeployment() *DeploymentQuery
- func (tq *TaskQuery) Select(fields ...string) *TaskSelect
- func (tq *TaskQuery) Unique(unique bool) *TaskQuery
- func (tq *TaskQuery) Where(ps ...predicate.Task) *TaskQuery
- func (tq *TaskQuery) WithDeployment(opts ...func(*DeploymentQuery)) *TaskQuery
- type TaskSelect
- func (ts *TaskSelect) Bool(ctx context.Context) (_ bool, err error)
- func (ts *TaskSelect) BoolX(ctx context.Context) bool
- func (ts *TaskSelect) Bools(ctx context.Context) ([]bool, error)
- func (ts *TaskSelect) BoolsX(ctx context.Context) []bool
- func (ts *TaskSelect) Float64(ctx context.Context) (_ float64, err error)
- func (ts *TaskSelect) Float64X(ctx context.Context) float64
- func (ts *TaskSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ts *TaskSelect) Float64sX(ctx context.Context) []float64
- func (ts *TaskSelect) Int(ctx context.Context) (_ int, err error)
- func (ts *TaskSelect) IntX(ctx context.Context) int
- func (ts *TaskSelect) Ints(ctx context.Context) ([]int, error)
- func (ts *TaskSelect) IntsX(ctx context.Context) []int
- func (ts *TaskSelect) Scan(ctx context.Context, v interface{}) error
- func (ts *TaskSelect) ScanX(ctx context.Context, v interface{})
- func (ts *TaskSelect) String(ctx context.Context) (_ string, err error)
- func (ts *TaskSelect) StringX(ctx context.Context) string
- func (ts *TaskSelect) Strings(ctx context.Context) ([]string, error)
- func (ts *TaskSelect) StringsX(ctx context.Context) []string
- type TaskUpdate
- func (tu *TaskUpdate) AddTimeout(i int) *TaskUpdate
- func (tu *TaskUpdate) ClearCapAdd() *TaskUpdate
- func (tu *TaskUpdate) ClearCmd() *TaskUpdate
- func (tu *TaskUpdate) ClearDeployment() *TaskUpdate
- func (tu *TaskUpdate) ClearDetached() *TaskUpdate
- func (tu *TaskUpdate) ClearEnvironment() *TaskUpdate
- func (tu *TaskUpdate) ClearName() *TaskUpdate
- func (tu *TaskUpdate) ClearPorts() *TaskUpdate
- func (tu *TaskUpdate) ClearRestart() *TaskUpdate
- func (tu *TaskUpdate) ClearSecurityOpt() *TaskUpdate
- func (tu *TaskUpdate) ClearTimeout() *TaskUpdate
- func (tu *TaskUpdate) ClearVolumes() *TaskUpdate
- func (tu *TaskUpdate) Exec(ctx context.Context) error
- func (tu *TaskUpdate) ExecX(ctx context.Context)
- func (tu *TaskUpdate) Mutation() *TaskMutation
- func (tu *TaskUpdate) Save(ctx context.Context) (int, error)
- func (tu *TaskUpdate) SaveX(ctx context.Context) int
- func (tu *TaskUpdate) SetCapAdd(s []string) *TaskUpdate
- func (tu *TaskUpdate) SetCmd(s string) *TaskUpdate
- func (tu *TaskUpdate) SetCreatedAt(t time.Time) *TaskUpdate
- func (tu *TaskUpdate) SetDeployment(d *Deployment) *TaskUpdate
- func (tu *TaskUpdate) SetDeploymentID(id uuid.UUID) *TaskUpdate
- func (tu *TaskUpdate) SetDetached(b bool) *TaskUpdate
- func (tu *TaskUpdate) SetEnvironment(m map[string]interface{}) *TaskUpdate
- func (tu *TaskUpdate) SetImage(s string) *TaskUpdate
- func (tu *TaskUpdate) SetName(s string) *TaskUpdate
- func (tu *TaskUpdate) SetNillableCmd(s *string) *TaskUpdate
- func (tu *TaskUpdate) SetNillableCreatedAt(t *time.Time) *TaskUpdate
- func (tu *TaskUpdate) SetNillableDeploymentID(id *uuid.UUID) *TaskUpdate
- func (tu *TaskUpdate) SetNillableDetached(b *bool) *TaskUpdate
- func (tu *TaskUpdate) SetNillableName(s *string) *TaskUpdate
- func (tu *TaskUpdate) SetNillableRestart(s *string) *TaskUpdate
- func (tu *TaskUpdate) SetNillableTimeout(i *int) *TaskUpdate
- func (tu *TaskUpdate) SetPorts(s []string) *TaskUpdate
- func (tu *TaskUpdate) SetRestart(s string) *TaskUpdate
- func (tu *TaskUpdate) SetSecurityOpt(s []string) *TaskUpdate
- func (tu *TaskUpdate) SetTimeout(i int) *TaskUpdate
- func (tu *TaskUpdate) SetUpdatedAt(t time.Time) *TaskUpdate
- func (tu *TaskUpdate) SetVolumes(s []string) *TaskUpdate
- func (tu *TaskUpdate) Where(ps ...predicate.Task) *TaskUpdate
- type TaskUpdateOne
- func (tuo *TaskUpdateOne) AddTimeout(i int) *TaskUpdateOne
- func (tuo *TaskUpdateOne) ClearCapAdd() *TaskUpdateOne
- func (tuo *TaskUpdateOne) ClearCmd() *TaskUpdateOne
- func (tuo *TaskUpdateOne) ClearDeployment() *TaskUpdateOne
- func (tuo *TaskUpdateOne) ClearDetached() *TaskUpdateOne
- func (tuo *TaskUpdateOne) ClearEnvironment() *TaskUpdateOne
- func (tuo *TaskUpdateOne) ClearName() *TaskUpdateOne
- func (tuo *TaskUpdateOne) ClearPorts() *TaskUpdateOne
- func (tuo *TaskUpdateOne) ClearRestart() *TaskUpdateOne
- func (tuo *TaskUpdateOne) ClearSecurityOpt() *TaskUpdateOne
- func (tuo *TaskUpdateOne) ClearTimeout() *TaskUpdateOne
- func (tuo *TaskUpdateOne) ClearVolumes() *TaskUpdateOne
- func (tuo *TaskUpdateOne) Exec(ctx context.Context) error
- func (tuo *TaskUpdateOne) ExecX(ctx context.Context)
- func (tuo *TaskUpdateOne) Mutation() *TaskMutation
- func (tuo *TaskUpdateOne) Save(ctx context.Context) (*Task, error)
- func (tuo *TaskUpdateOne) SaveX(ctx context.Context) *Task
- func (tuo *TaskUpdateOne) Select(field string, fields ...string) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetCapAdd(s []string) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetCmd(s string) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetCreatedAt(t time.Time) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetDeployment(d *Deployment) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetDeploymentID(id uuid.UUID) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetDetached(b bool) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetEnvironment(m map[string]interface{}) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetImage(s string) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetName(s string) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetNillableCmd(s *string) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetNillableCreatedAt(t *time.Time) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetNillableDeploymentID(id *uuid.UUID) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetNillableDetached(b *bool) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetNillableName(s *string) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetNillableRestart(s *string) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetNillableTimeout(i *int) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetPorts(s []string) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetRestart(s string) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetSecurityOpt(s []string) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetTimeout(i int) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetUpdatedAt(t time.Time) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetVolumes(s []string) *TaskUpdateOne
- type Tasks
- type Tx
- type ValidationError
- type Value
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeCredential = "Credential" TypeDeployment = "Deployment" TypeProcess = "Process" TypeProvider = "Provider" TypeStack = "Stack" TypeTask = "Task" )
Variables ¶
This section is empty.
Functions ¶
func IsConstraintError ¶
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶
IsNotSingular returns a boolean indicating whether the error is a not singular error.
func IsValidationError ¶
IsValidationError returns a boolean indicating whether the error is a validation error.
func NewContext ¶
NewContext returns a new context with the given Client attached.
Types ¶
type AggregateFunc ¶
AggregateFunc applies an aggregation step on the group-by traversal/selector.
func As ¶
func As(fn AggregateFunc, end string) AggregateFunc
As is a pseudo aggregation function for renaming another other functions with custom names. For example:
GroupBy(field1, field2). Aggregate(ent.As(ent.Sum(field1), "sum_field1"), (ent.As(ent.Sum(field2), "sum_field2")). Scan(ctx, &v)
func Count ¶
func Count() AggregateFunc
Count applies the "count" aggregation function on each group.
func Max ¶
func Max(field string) AggregateFunc
Max applies the "max" aggregation function on the given field of each group.
func Mean ¶
func Mean(field string) AggregateFunc
Mean applies the "mean" aggregation function on the given field of each group.
func Min ¶
func Min(field string) AggregateFunc
Min applies the "min" aggregation function on the given field of each group.
func Sum ¶
func Sum(field string) AggregateFunc
Sum applies the "sum" aggregation function on the given field of each group.
type Client ¶
type Client struct { // Schema is the client for creating, migrating and dropping schema. Schema *migrate.Schema // Credential is the client for interacting with the Credential builders. Credential *CredentialClient // Deployment is the client for interacting with the Deployment builders. Deployment *DeploymentClient // Process is the client for interacting with the Process builders. Process *ProcessClient // Provider is the client for interacting with the Provider builders. Provider *ProviderClient // Stack is the client for interacting with the Stack builders. Stack *StackClient // Task is the client for interacting with the Task builders. Task *TaskClient // contains filtered or unexported fields }
Client is the client that holds all ent builders.
func FromContext ¶
FromContext returns a Client stored inside a context, or nil if there isn't one.
func Open ¶
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it. Optional parameters can be added for configuring the client.
func (*Client) Debug ¶
Debug returns a new debug-client. It's used to get verbose logging on specific operations.
client.Debug(). Credential. Query(). Count(ctx)
type CommitFunc ¶
The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.
type CommitHook ¶
CommitHook defines the "commit middleware". A function that gets a Committer and returns a Committer. For example:
hook := func(next ent.Committer) ent.Committer { return ent.CommitFunc(func(context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Commit(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type ConstraintError ¶
type ConstraintError struct {
// contains filtered or unexported fields
}
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.
func (ConstraintError) Error ¶
func (e ConstraintError) Error() string
Error implements the error interface.
func (*ConstraintError) Unwrap ¶
func (e *ConstraintError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type Credential ¶
type Credential struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt time.Time `json:"updated_at,omitempty"` // Registry holds the value of the "registry" field. Registry string `json:"registry,omitempty"` // Username holds the value of the "username" field. Username string `json:"username,omitempty"` // Password holds the value of the "password" field. Password string `json:"-"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the CredentialQuery when eager-loading is set. Edges CredentialEdges `json:"edges"` // contains filtered or unexported fields }
Credential is the model entity for the Credential schema.
func (*Credential) QueryDeployment ¶
func (c *Credential) QueryDeployment() *DeploymentQuery
QueryDeployment queries the "deployment" edge of the Credential entity.
func (*Credential) String ¶
func (c *Credential) String() string
String implements the fmt.Stringer.
func (*Credential) Unwrap ¶
func (c *Credential) Unwrap() *Credential
Unwrap unwraps the Credential entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Credential) Update ¶
func (c *Credential) Update() *CredentialUpdateOne
Update returns a builder for updating this Credential. Note that you need to call Credential.Unwrap() before calling this method if this Credential was returned from a transaction, and the transaction was committed or rolled back.
type CredentialClient ¶
type CredentialClient struct {
// contains filtered or unexported fields
}
CredentialClient is a client for the Credential schema.
func NewCredentialClient ¶
func NewCredentialClient(c config) *CredentialClient
NewCredentialClient returns a client for the Credential from the given config.
func (*CredentialClient) Create ¶
func (c *CredentialClient) Create() *CredentialCreate
Create returns a create builder for Credential.
func (*CredentialClient) CreateBulk ¶
func (c *CredentialClient) CreateBulk(builders ...*CredentialCreate) *CredentialCreateBulk
CreateBulk returns a builder for creating a bulk of Credential entities.
func (*CredentialClient) Delete ¶
func (c *CredentialClient) Delete() *CredentialDelete
Delete returns a delete builder for Credential.
func (*CredentialClient) DeleteOne ¶
func (c *CredentialClient) DeleteOne(cr *Credential) *CredentialDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*CredentialClient) DeleteOneID ¶
func (c *CredentialClient) DeleteOneID(id uuid.UUID) *CredentialDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*CredentialClient) Get ¶
func (c *CredentialClient) Get(ctx context.Context, id uuid.UUID) (*Credential, error)
Get returns a Credential entity by its id.
func (*CredentialClient) GetX ¶
func (c *CredentialClient) GetX(ctx context.Context, id uuid.UUID) *Credential
GetX is like Get, but panics if an error occurs.
func (*CredentialClient) Hooks ¶
func (c *CredentialClient) Hooks() []Hook
Hooks returns the client hooks.
func (*CredentialClient) Query ¶
func (c *CredentialClient) Query() *CredentialQuery
Query returns a query builder for Credential.
func (*CredentialClient) QueryDeployment ¶
func (c *CredentialClient) QueryDeployment(cr *Credential) *DeploymentQuery
QueryDeployment queries the deployment edge of a Credential.
func (*CredentialClient) Update ¶
func (c *CredentialClient) Update() *CredentialUpdate
Update returns an update builder for Credential.
func (*CredentialClient) UpdateOne ¶
func (c *CredentialClient) UpdateOne(cr *Credential) *CredentialUpdateOne
UpdateOne returns an update builder for the given entity.
func (*CredentialClient) UpdateOneID ¶
func (c *CredentialClient) UpdateOneID(id uuid.UUID) *CredentialUpdateOne
UpdateOneID returns an update builder for the given id.
func (*CredentialClient) Use ¶
func (c *CredentialClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `credential.Hooks(f(g(h())))`.
type CredentialCreate ¶
type CredentialCreate struct {
// contains filtered or unexported fields
}
CredentialCreate is the builder for creating a Credential entity.
func (*CredentialCreate) Exec ¶
func (cc *CredentialCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*CredentialCreate) ExecX ¶
func (cc *CredentialCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CredentialCreate) Mutation ¶
func (cc *CredentialCreate) Mutation() *CredentialMutation
Mutation returns the CredentialMutation object of the builder.
func (*CredentialCreate) Save ¶
func (cc *CredentialCreate) Save(ctx context.Context) (*Credential, error)
Save creates the Credential in the database.
func (*CredentialCreate) SaveX ¶
func (cc *CredentialCreate) SaveX(ctx context.Context) *Credential
SaveX calls Save and panics if Save returns an error.
func (*CredentialCreate) SetCreatedAt ¶
func (cc *CredentialCreate) SetCreatedAt(t time.Time) *CredentialCreate
SetCreatedAt sets the "created_at" field.
func (*CredentialCreate) SetDeployment ¶
func (cc *CredentialCreate) SetDeployment(d *Deployment) *CredentialCreate
SetDeployment sets the "deployment" edge to the Deployment entity.
func (*CredentialCreate) SetDeploymentID ¶
func (cc *CredentialCreate) SetDeploymentID(id uuid.UUID) *CredentialCreate
SetDeploymentID sets the "deployment" edge to the Deployment entity by ID.
func (*CredentialCreate) SetID ¶
func (cc *CredentialCreate) SetID(u uuid.UUID) *CredentialCreate
SetID sets the "id" field.
func (*CredentialCreate) SetNillableCreatedAt ¶
func (cc *CredentialCreate) SetNillableCreatedAt(t *time.Time) *CredentialCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*CredentialCreate) SetNillableDeploymentID ¶
func (cc *CredentialCreate) SetNillableDeploymentID(id *uuid.UUID) *CredentialCreate
SetNillableDeploymentID sets the "deployment" edge to the Deployment entity by ID if the given value is not nil.
func (*CredentialCreate) SetNillableUpdatedAt ¶
func (cc *CredentialCreate) SetNillableUpdatedAt(t *time.Time) *CredentialCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*CredentialCreate) SetPassword ¶
func (cc *CredentialCreate) SetPassword(s string) *CredentialCreate
SetPassword sets the "password" field.
func (*CredentialCreate) SetRegistry ¶
func (cc *CredentialCreate) SetRegistry(s string) *CredentialCreate
SetRegistry sets the "registry" field.
func (*CredentialCreate) SetUpdatedAt ¶
func (cc *CredentialCreate) SetUpdatedAt(t time.Time) *CredentialCreate
SetUpdatedAt sets the "updated_at" field.
func (*CredentialCreate) SetUsername ¶
func (cc *CredentialCreate) SetUsername(s string) *CredentialCreate
SetUsername sets the "username" field.
type CredentialCreateBulk ¶
type CredentialCreateBulk struct {
// contains filtered or unexported fields
}
CredentialCreateBulk is the builder for creating many Credential entities in bulk.
func (*CredentialCreateBulk) Exec ¶
func (ccb *CredentialCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*CredentialCreateBulk) ExecX ¶
func (ccb *CredentialCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CredentialCreateBulk) Save ¶
func (ccb *CredentialCreateBulk) Save(ctx context.Context) ([]*Credential, error)
Save creates the Credential entities in the database.
func (*CredentialCreateBulk) SaveX ¶
func (ccb *CredentialCreateBulk) SaveX(ctx context.Context) []*Credential
SaveX is like Save, but panics if an error occurs.
type CredentialDelete ¶
type CredentialDelete struct {
// contains filtered or unexported fields
}
CredentialDelete is the builder for deleting a Credential entity.
func (*CredentialDelete) Exec ¶
func (cd *CredentialDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*CredentialDelete) ExecX ¶
func (cd *CredentialDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*CredentialDelete) Where ¶
func (cd *CredentialDelete) Where(ps ...predicate.Credential) *CredentialDelete
Where appends a list predicates to the CredentialDelete builder.
type CredentialDeleteOne ¶
type CredentialDeleteOne struct {
// contains filtered or unexported fields
}
CredentialDeleteOne is the builder for deleting a single Credential entity.
func (*CredentialDeleteOne) Exec ¶
func (cdo *CredentialDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*CredentialDeleteOne) ExecX ¶
func (cdo *CredentialDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type CredentialEdges ¶
type CredentialEdges struct { // Deployment holds the value of the deployment edge. Deployment *Deployment `json:"deployment,omitempty"` // contains filtered or unexported fields }
CredentialEdges holds the relations/edges for other nodes in the graph.
func (CredentialEdges) DeploymentOrErr ¶
func (e CredentialEdges) DeploymentOrErr() (*Deployment, error)
DeploymentOrErr returns the Deployment value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type CredentialGroupBy ¶
type CredentialGroupBy struct {
// contains filtered or unexported fields
}
CredentialGroupBy is the group-by builder for Credential entities.
func (*CredentialGroupBy) Aggregate ¶
func (cgb *CredentialGroupBy) Aggregate(fns ...AggregateFunc) *CredentialGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*CredentialGroupBy) Bool ¶
func (cgb *CredentialGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*CredentialGroupBy) BoolX ¶
func (cgb *CredentialGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*CredentialGroupBy) Bools ¶
func (cgb *CredentialGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*CredentialGroupBy) BoolsX ¶
func (cgb *CredentialGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*CredentialGroupBy) Float64 ¶
func (cgb *CredentialGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*CredentialGroupBy) Float64X ¶
func (cgb *CredentialGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*CredentialGroupBy) Float64s ¶
func (cgb *CredentialGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*CredentialGroupBy) Float64sX ¶
func (cgb *CredentialGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*CredentialGroupBy) Int ¶
func (cgb *CredentialGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*CredentialGroupBy) IntX ¶
func (cgb *CredentialGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*CredentialGroupBy) Ints ¶
func (cgb *CredentialGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*CredentialGroupBy) IntsX ¶
func (cgb *CredentialGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*CredentialGroupBy) Scan ¶
func (cgb *CredentialGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*CredentialGroupBy) ScanX ¶
func (cgb *CredentialGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*CredentialGroupBy) String ¶
func (cgb *CredentialGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*CredentialGroupBy) StringX ¶
func (cgb *CredentialGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type CredentialMutation ¶
type CredentialMutation struct {
// contains filtered or unexported fields
}
CredentialMutation represents an operation that mutates the Credential nodes in the graph.
func (*CredentialMutation) AddField ¶
func (m *CredentialMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*CredentialMutation) AddedEdges ¶
func (m *CredentialMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*CredentialMutation) AddedField ¶
func (m *CredentialMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*CredentialMutation) AddedFields ¶
func (m *CredentialMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*CredentialMutation) AddedIDs ¶
func (m *CredentialMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*CredentialMutation) ClearDeployment ¶
func (m *CredentialMutation) ClearDeployment()
ClearDeployment clears the "deployment" edge to the Deployment entity.
func (*CredentialMutation) ClearEdge ¶
func (m *CredentialMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*CredentialMutation) ClearField ¶
func (m *CredentialMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*CredentialMutation) ClearedEdges ¶
func (m *CredentialMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*CredentialMutation) ClearedFields ¶
func (m *CredentialMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (CredentialMutation) Client ¶
func (m CredentialMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*CredentialMutation) CreatedAt ¶
func (m *CredentialMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*CredentialMutation) DeploymentCleared ¶
func (m *CredentialMutation) DeploymentCleared() bool
DeploymentCleared reports if the "deployment" edge to the Deployment entity was cleared.
func (*CredentialMutation) DeploymentID ¶
func (m *CredentialMutation) DeploymentID() (id uuid.UUID, exists bool)
DeploymentID returns the "deployment" edge ID in the mutation.
func (*CredentialMutation) DeploymentIDs ¶
func (m *CredentialMutation) DeploymentIDs() (ids []uuid.UUID)
DeploymentIDs returns the "deployment" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use DeploymentID instead. It exists only for internal usage by the builders.
func (*CredentialMutation) EdgeCleared ¶
func (m *CredentialMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*CredentialMutation) Field ¶
func (m *CredentialMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*CredentialMutation) FieldCleared ¶
func (m *CredentialMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*CredentialMutation) Fields ¶
func (m *CredentialMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*CredentialMutation) ID ¶
func (m *CredentialMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*CredentialMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Credential entity. If the Credential object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CredentialMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*CredentialMutation) OldPassword ¶
func (m *CredentialMutation) OldPassword(ctx context.Context) (v string, err error)
OldPassword returns the old "password" field's value of the Credential entity. If the Credential object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CredentialMutation) OldRegistry ¶
func (m *CredentialMutation) OldRegistry(ctx context.Context) (v string, err error)
OldRegistry returns the old "registry" field's value of the Credential entity. If the Credential object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CredentialMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Credential entity. If the Credential object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CredentialMutation) OldUsername ¶
func (m *CredentialMutation) OldUsername(ctx context.Context) (v string, err error)
OldUsername returns the old "username" field's value of the Credential entity. If the Credential object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CredentialMutation) Password ¶
func (m *CredentialMutation) Password() (r string, exists bool)
Password returns the value of the "password" field in the mutation.
func (*CredentialMutation) Registry ¶
func (m *CredentialMutation) Registry() (r string, exists bool)
Registry returns the value of the "registry" field in the mutation.
func (*CredentialMutation) RemovedEdges ¶
func (m *CredentialMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*CredentialMutation) RemovedIDs ¶
func (m *CredentialMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*CredentialMutation) ResetCreatedAt ¶
func (m *CredentialMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*CredentialMutation) ResetDeployment ¶
func (m *CredentialMutation) ResetDeployment()
ResetDeployment resets all changes to the "deployment" edge.
func (*CredentialMutation) ResetEdge ¶
func (m *CredentialMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*CredentialMutation) ResetField ¶
func (m *CredentialMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*CredentialMutation) ResetPassword ¶
func (m *CredentialMutation) ResetPassword()
ResetPassword resets all changes to the "password" field.
func (*CredentialMutation) ResetRegistry ¶
func (m *CredentialMutation) ResetRegistry()
ResetRegistry resets all changes to the "registry" field.
func (*CredentialMutation) ResetUpdatedAt ¶
func (m *CredentialMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*CredentialMutation) ResetUsername ¶
func (m *CredentialMutation) ResetUsername()
ResetUsername resets all changes to the "username" field.
func (*CredentialMutation) SetCreatedAt ¶
func (m *CredentialMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*CredentialMutation) SetDeploymentID ¶
func (m *CredentialMutation) SetDeploymentID(id uuid.UUID)
SetDeploymentID sets the "deployment" edge to the Deployment entity by id.
func (*CredentialMutation) SetField ¶
func (m *CredentialMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*CredentialMutation) SetID ¶
func (m *CredentialMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Credential entities.
func (*CredentialMutation) SetPassword ¶
func (m *CredentialMutation) SetPassword(s string)
SetPassword sets the "password" field.
func (*CredentialMutation) SetRegistry ¶
func (m *CredentialMutation) SetRegistry(s string)
SetRegistry sets the "registry" field.
func (*CredentialMutation) SetUpdatedAt ¶
func (m *CredentialMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*CredentialMutation) SetUsername ¶
func (m *CredentialMutation) SetUsername(s string)
SetUsername sets the "username" field.
func (CredentialMutation) Tx ¶
func (m CredentialMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*CredentialMutation) Type ¶
func (m *CredentialMutation) Type() string
Type returns the node type of this mutation (Credential).
func (*CredentialMutation) UpdatedAt ¶
func (m *CredentialMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*CredentialMutation) Username ¶
func (m *CredentialMutation) Username() (r string, exists bool)
Username returns the value of the "username" field in the mutation.
func (*CredentialMutation) Where ¶
func (m *CredentialMutation) Where(ps ...predicate.Credential)
Where appends a list predicates to the CredentialMutation builder.
type CredentialQuery ¶
type CredentialQuery struct {
// contains filtered or unexported fields
}
CredentialQuery is the builder for querying Credential entities.
func (*CredentialQuery) All ¶
func (cq *CredentialQuery) All(ctx context.Context) ([]*Credential, error)
All executes the query and returns a list of Credentials.
func (*CredentialQuery) AllX ¶
func (cq *CredentialQuery) AllX(ctx context.Context) []*Credential
AllX is like All, but panics if an error occurs.
func (*CredentialQuery) Clone ¶
func (cq *CredentialQuery) Clone() *CredentialQuery
Clone returns a duplicate of the CredentialQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*CredentialQuery) Count ¶
func (cq *CredentialQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*CredentialQuery) CountX ¶
func (cq *CredentialQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*CredentialQuery) Exist ¶
func (cq *CredentialQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*CredentialQuery) ExistX ¶
func (cq *CredentialQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*CredentialQuery) First ¶
func (cq *CredentialQuery) First(ctx context.Context) (*Credential, error)
First returns the first Credential entity from the query. Returns a *NotFoundError when no Credential was found.
func (*CredentialQuery) FirstID ¶
FirstID returns the first Credential ID from the query. Returns a *NotFoundError when no Credential ID was found.
func (*CredentialQuery) FirstIDX ¶
func (cq *CredentialQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*CredentialQuery) FirstX ¶
func (cq *CredentialQuery) FirstX(ctx context.Context) *Credential
FirstX is like First, but panics if an error occurs.
func (*CredentialQuery) GroupBy ¶
func (cq *CredentialQuery) GroupBy(field string, fields ...string) *CredentialGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.Credential.Query(). GroupBy(credential.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*CredentialQuery) IDsX ¶
func (cq *CredentialQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*CredentialQuery) Limit ¶
func (cq *CredentialQuery) Limit(limit int) *CredentialQuery
Limit adds a limit step to the query.
func (*CredentialQuery) Offset ¶
func (cq *CredentialQuery) Offset(offset int) *CredentialQuery
Offset adds an offset step to the query.
func (*CredentialQuery) Only ¶
func (cq *CredentialQuery) Only(ctx context.Context) (*Credential, error)
Only returns a single Credential entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Credential entity is not found. Returns a *NotFoundError when no Credential entities are found.
func (*CredentialQuery) OnlyID ¶
OnlyID is like Only, but returns the only Credential ID in the query. Returns a *NotSingularError when exactly one Credential ID is not found. Returns a *NotFoundError when no entities are found.
func (*CredentialQuery) OnlyIDX ¶
func (cq *CredentialQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*CredentialQuery) OnlyX ¶
func (cq *CredentialQuery) OnlyX(ctx context.Context) *Credential
OnlyX is like Only, but panics if an error occurs.
func (*CredentialQuery) Order ¶
func (cq *CredentialQuery) Order(o ...OrderFunc) *CredentialQuery
Order adds an order step to the query.
func (*CredentialQuery) QueryDeployment ¶
func (cq *CredentialQuery) QueryDeployment() *DeploymentQuery
QueryDeployment chains the current query on the "deployment" edge.
func (*CredentialQuery) Select ¶
func (cq *CredentialQuery) Select(fields ...string) *CredentialSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` } client.Credential.Query(). Select(credential.FieldCreatedAt). Scan(ctx, &v)
func (*CredentialQuery) Unique ¶
func (cq *CredentialQuery) Unique(unique bool) *CredentialQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*CredentialQuery) Where ¶
func (cq *CredentialQuery) Where(ps ...predicate.Credential) *CredentialQuery
Where adds a new predicate for the CredentialQuery builder.
func (*CredentialQuery) WithDeployment ¶
func (cq *CredentialQuery) WithDeployment(opts ...func(*DeploymentQuery)) *CredentialQuery
WithDeployment tells the query-builder to eager-load the nodes that are connected to the "deployment" edge. The optional arguments are used to configure the query builder of the edge.
type CredentialSelect ¶
type CredentialSelect struct { *CredentialQuery // contains filtered or unexported fields }
CredentialSelect is the builder for selecting fields of Credential entities.
func (*CredentialSelect) Bool ¶
func (cs *CredentialSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CredentialSelect) BoolX ¶
func (cs *CredentialSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*CredentialSelect) Bools ¶
func (cs *CredentialSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CredentialSelect) BoolsX ¶
func (cs *CredentialSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*CredentialSelect) Float64 ¶
func (cs *CredentialSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CredentialSelect) Float64X ¶
func (cs *CredentialSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*CredentialSelect) Float64s ¶
func (cs *CredentialSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CredentialSelect) Float64sX ¶
func (cs *CredentialSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*CredentialSelect) Int ¶
func (cs *CredentialSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CredentialSelect) IntX ¶
func (cs *CredentialSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*CredentialSelect) Ints ¶
func (cs *CredentialSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CredentialSelect) IntsX ¶
func (cs *CredentialSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*CredentialSelect) Scan ¶
func (cs *CredentialSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*CredentialSelect) ScanX ¶
func (cs *CredentialSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*CredentialSelect) String ¶
func (cs *CredentialSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*CredentialSelect) StringX ¶
func (cs *CredentialSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type CredentialUpdate ¶
type CredentialUpdate struct {
// contains filtered or unexported fields
}
CredentialUpdate is the builder for updating Credential entities.
func (*CredentialUpdate) ClearDeployment ¶
func (cu *CredentialUpdate) ClearDeployment() *CredentialUpdate
ClearDeployment clears the "deployment" edge to the Deployment entity.
func (*CredentialUpdate) Exec ¶
func (cu *CredentialUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*CredentialUpdate) ExecX ¶
func (cu *CredentialUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CredentialUpdate) Mutation ¶
func (cu *CredentialUpdate) Mutation() *CredentialMutation
Mutation returns the CredentialMutation object of the builder.
func (*CredentialUpdate) Save ¶
func (cu *CredentialUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*CredentialUpdate) SaveX ¶
func (cu *CredentialUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*CredentialUpdate) SetCreatedAt ¶
func (cu *CredentialUpdate) SetCreatedAt(t time.Time) *CredentialUpdate
SetCreatedAt sets the "created_at" field.
func (*CredentialUpdate) SetDeployment ¶
func (cu *CredentialUpdate) SetDeployment(d *Deployment) *CredentialUpdate
SetDeployment sets the "deployment" edge to the Deployment entity.
func (*CredentialUpdate) SetDeploymentID ¶
func (cu *CredentialUpdate) SetDeploymentID(id uuid.UUID) *CredentialUpdate
SetDeploymentID sets the "deployment" edge to the Deployment entity by ID.
func (*CredentialUpdate) SetNillableCreatedAt ¶
func (cu *CredentialUpdate) SetNillableCreatedAt(t *time.Time) *CredentialUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*CredentialUpdate) SetNillableDeploymentID ¶
func (cu *CredentialUpdate) SetNillableDeploymentID(id *uuid.UUID) *CredentialUpdate
SetNillableDeploymentID sets the "deployment" edge to the Deployment entity by ID if the given value is not nil.
func (*CredentialUpdate) SetPassword ¶
func (cu *CredentialUpdate) SetPassword(s string) *CredentialUpdate
SetPassword sets the "password" field.
func (*CredentialUpdate) SetRegistry ¶
func (cu *CredentialUpdate) SetRegistry(s string) *CredentialUpdate
SetRegistry sets the "registry" field.
func (*CredentialUpdate) SetUpdatedAt ¶
func (cu *CredentialUpdate) SetUpdatedAt(t time.Time) *CredentialUpdate
SetUpdatedAt sets the "updated_at" field.
func (*CredentialUpdate) SetUsername ¶
func (cu *CredentialUpdate) SetUsername(s string) *CredentialUpdate
SetUsername sets the "username" field.
func (*CredentialUpdate) Where ¶
func (cu *CredentialUpdate) Where(ps ...predicate.Credential) *CredentialUpdate
Where appends a list predicates to the CredentialUpdate builder.
type CredentialUpdateOne ¶
type CredentialUpdateOne struct {
// contains filtered or unexported fields
}
CredentialUpdateOne is the builder for updating a single Credential entity.
func (*CredentialUpdateOne) ClearDeployment ¶
func (cuo *CredentialUpdateOne) ClearDeployment() *CredentialUpdateOne
ClearDeployment clears the "deployment" edge to the Deployment entity.
func (*CredentialUpdateOne) Exec ¶
func (cuo *CredentialUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*CredentialUpdateOne) ExecX ¶
func (cuo *CredentialUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CredentialUpdateOne) Mutation ¶
func (cuo *CredentialUpdateOne) Mutation() *CredentialMutation
Mutation returns the CredentialMutation object of the builder.
func (*CredentialUpdateOne) Save ¶
func (cuo *CredentialUpdateOne) Save(ctx context.Context) (*Credential, error)
Save executes the query and returns the updated Credential entity.
func (*CredentialUpdateOne) SaveX ¶
func (cuo *CredentialUpdateOne) SaveX(ctx context.Context) *Credential
SaveX is like Save, but panics if an error occurs.
func (*CredentialUpdateOne) Select ¶
func (cuo *CredentialUpdateOne) Select(field string, fields ...string) *CredentialUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*CredentialUpdateOne) SetCreatedAt ¶
func (cuo *CredentialUpdateOne) SetCreatedAt(t time.Time) *CredentialUpdateOne
SetCreatedAt sets the "created_at" field.
func (*CredentialUpdateOne) SetDeployment ¶
func (cuo *CredentialUpdateOne) SetDeployment(d *Deployment) *CredentialUpdateOne
SetDeployment sets the "deployment" edge to the Deployment entity.
func (*CredentialUpdateOne) SetDeploymentID ¶
func (cuo *CredentialUpdateOne) SetDeploymentID(id uuid.UUID) *CredentialUpdateOne
SetDeploymentID sets the "deployment" edge to the Deployment entity by ID.
func (*CredentialUpdateOne) SetNillableCreatedAt ¶
func (cuo *CredentialUpdateOne) SetNillableCreatedAt(t *time.Time) *CredentialUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*CredentialUpdateOne) SetNillableDeploymentID ¶
func (cuo *CredentialUpdateOne) SetNillableDeploymentID(id *uuid.UUID) *CredentialUpdateOne
SetNillableDeploymentID sets the "deployment" edge to the Deployment entity by ID if the given value is not nil.
func (*CredentialUpdateOne) SetPassword ¶
func (cuo *CredentialUpdateOne) SetPassword(s string) *CredentialUpdateOne
SetPassword sets the "password" field.
func (*CredentialUpdateOne) SetRegistry ¶
func (cuo *CredentialUpdateOne) SetRegistry(s string) *CredentialUpdateOne
SetRegistry sets the "registry" field.
func (*CredentialUpdateOne) SetUpdatedAt ¶
func (cuo *CredentialUpdateOne) SetUpdatedAt(t time.Time) *CredentialUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*CredentialUpdateOne) SetUsername ¶
func (cuo *CredentialUpdateOne) SetUsername(s string) *CredentialUpdateOne
SetUsername sets the "username" field.
type Deployment ¶
type Deployment struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt time.Time `json:"updated_at,omitempty"` // State holds the value of the "state" field. State deployment.State `json:"state,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Timeout holds the value of the "timeout" field. Timeout int `json:"timeout,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the DeploymentQuery when eager-loading is set. Edges DeploymentEdges `json:"edges"` // contains filtered or unexported fields }
Deployment is the model entity for the Deployment schema.
func (*Deployment) QueryCredentials ¶
func (d *Deployment) QueryCredentials() *CredentialQuery
QueryCredentials queries the "credentials" edge of the Deployment entity.
func (*Deployment) QueryProvider ¶
func (d *Deployment) QueryProvider() *ProviderQuery
QueryProvider queries the "provider" edge of the Deployment entity.
func (*Deployment) QueryStack ¶
func (d *Deployment) QueryStack() *StackQuery
QueryStack queries the "stack" edge of the Deployment entity.
func (*Deployment) QueryTasks ¶
func (d *Deployment) QueryTasks() *TaskQuery
QueryTasks queries the "tasks" edge of the Deployment entity.
func (*Deployment) String ¶
func (d *Deployment) String() string
String implements the fmt.Stringer.
func (*Deployment) Unwrap ¶
func (d *Deployment) Unwrap() *Deployment
Unwrap unwraps the Deployment entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Deployment) Update ¶
func (d *Deployment) Update() *DeploymentUpdateOne
Update returns a builder for updating this Deployment. Note that you need to call Deployment.Unwrap() before calling this method if this Deployment was returned from a transaction, and the transaction was committed or rolled back.
type DeploymentClient ¶
type DeploymentClient struct {
// contains filtered or unexported fields
}
DeploymentClient is a client for the Deployment schema.
func NewDeploymentClient ¶
func NewDeploymentClient(c config) *DeploymentClient
NewDeploymentClient returns a client for the Deployment from the given config.
func (*DeploymentClient) Create ¶
func (c *DeploymentClient) Create() *DeploymentCreate
Create returns a create builder for Deployment.
func (*DeploymentClient) CreateBulk ¶
func (c *DeploymentClient) CreateBulk(builders ...*DeploymentCreate) *DeploymentCreateBulk
CreateBulk returns a builder for creating a bulk of Deployment entities.
func (*DeploymentClient) Delete ¶
func (c *DeploymentClient) Delete() *DeploymentDelete
Delete returns a delete builder for Deployment.
func (*DeploymentClient) DeleteOne ¶
func (c *DeploymentClient) DeleteOne(d *Deployment) *DeploymentDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*DeploymentClient) DeleteOneID ¶
func (c *DeploymentClient) DeleteOneID(id uuid.UUID) *DeploymentDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*DeploymentClient) Get ¶
func (c *DeploymentClient) Get(ctx context.Context, id uuid.UUID) (*Deployment, error)
Get returns a Deployment entity by its id.
func (*DeploymentClient) GetX ¶
func (c *DeploymentClient) GetX(ctx context.Context, id uuid.UUID) *Deployment
GetX is like Get, but panics if an error occurs.
func (*DeploymentClient) Hooks ¶
func (c *DeploymentClient) Hooks() []Hook
Hooks returns the client hooks.
func (*DeploymentClient) Query ¶
func (c *DeploymentClient) Query() *DeploymentQuery
Query returns a query builder for Deployment.
func (*DeploymentClient) QueryCredentials ¶
func (c *DeploymentClient) QueryCredentials(d *Deployment) *CredentialQuery
QueryCredentials queries the credentials edge of a Deployment.
func (*DeploymentClient) QueryProvider ¶
func (c *DeploymentClient) QueryProvider(d *Deployment) *ProviderQuery
QueryProvider queries the provider edge of a Deployment.
func (*DeploymentClient) QueryStack ¶
func (c *DeploymentClient) QueryStack(d *Deployment) *StackQuery
QueryStack queries the stack edge of a Deployment.
func (*DeploymentClient) QueryTasks ¶
func (c *DeploymentClient) QueryTasks(d *Deployment) *TaskQuery
QueryTasks queries the tasks edge of a Deployment.
func (*DeploymentClient) Update ¶
func (c *DeploymentClient) Update() *DeploymentUpdate
Update returns an update builder for Deployment.
func (*DeploymentClient) UpdateOne ¶
func (c *DeploymentClient) UpdateOne(d *Deployment) *DeploymentUpdateOne
UpdateOne returns an update builder for the given entity.
func (*DeploymentClient) UpdateOneID ¶
func (c *DeploymentClient) UpdateOneID(id uuid.UUID) *DeploymentUpdateOne
UpdateOneID returns an update builder for the given id.
func (*DeploymentClient) Use ¶
func (c *DeploymentClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `deployment.Hooks(f(g(h())))`.
type DeploymentCreate ¶
type DeploymentCreate struct {
// contains filtered or unexported fields
}
DeploymentCreate is the builder for creating a Deployment entity.
func (*DeploymentCreate) AddCredentialIDs ¶
func (dc *DeploymentCreate) AddCredentialIDs(ids ...uuid.UUID) *DeploymentCreate
AddCredentialIDs adds the "credentials" edge to the Credential entity by IDs.
func (*DeploymentCreate) AddCredentials ¶
func (dc *DeploymentCreate) AddCredentials(c ...*Credential) *DeploymentCreate
AddCredentials adds the "credentials" edges to the Credential entity.
func (*DeploymentCreate) AddTaskIDs ¶
func (dc *DeploymentCreate) AddTaskIDs(ids ...uuid.UUID) *DeploymentCreate
AddTaskIDs adds the "tasks" edge to the Task entity by IDs.
func (*DeploymentCreate) AddTasks ¶
func (dc *DeploymentCreate) AddTasks(t ...*Task) *DeploymentCreate
AddTasks adds the "tasks" edges to the Task entity.
func (*DeploymentCreate) Exec ¶
func (dc *DeploymentCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeploymentCreate) ExecX ¶
func (dc *DeploymentCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeploymentCreate) Mutation ¶
func (dc *DeploymentCreate) Mutation() *DeploymentMutation
Mutation returns the DeploymentMutation object of the builder.
func (*DeploymentCreate) Save ¶
func (dc *DeploymentCreate) Save(ctx context.Context) (*Deployment, error)
Save creates the Deployment in the database.
func (*DeploymentCreate) SaveX ¶
func (dc *DeploymentCreate) SaveX(ctx context.Context) *Deployment
SaveX calls Save and panics if Save returns an error.
func (*DeploymentCreate) SetCreatedAt ¶
func (dc *DeploymentCreate) SetCreatedAt(t time.Time) *DeploymentCreate
SetCreatedAt sets the "created_at" field.
func (*DeploymentCreate) SetID ¶
func (dc *DeploymentCreate) SetID(u uuid.UUID) *DeploymentCreate
SetID sets the "id" field.
func (*DeploymentCreate) SetName ¶
func (dc *DeploymentCreate) SetName(s string) *DeploymentCreate
SetName sets the "name" field.
func (*DeploymentCreate) SetNillableCreatedAt ¶
func (dc *DeploymentCreate) SetNillableCreatedAt(t *time.Time) *DeploymentCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*DeploymentCreate) SetNillableName ¶
func (dc *DeploymentCreate) SetNillableName(s *string) *DeploymentCreate
SetNillableName sets the "name" field if the given value is not nil.
func (*DeploymentCreate) SetNillableStackID ¶
func (dc *DeploymentCreate) SetNillableStackID(id *string) *DeploymentCreate
SetNillableStackID sets the "stack" edge to the Stack entity by ID if the given value is not nil.
func (*DeploymentCreate) SetNillableState ¶
func (dc *DeploymentCreate) SetNillableState(d *deployment.State) *DeploymentCreate
SetNillableState sets the "state" field if the given value is not nil.
func (*DeploymentCreate) SetNillableUpdatedAt ¶
func (dc *DeploymentCreate) SetNillableUpdatedAt(t *time.Time) *DeploymentCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*DeploymentCreate) SetProvider ¶
func (dc *DeploymentCreate) SetProvider(p *Provider) *DeploymentCreate
SetProvider sets the "provider" edge to the Provider entity.
func (*DeploymentCreate) SetProviderID ¶
func (dc *DeploymentCreate) SetProviderID(id uuid.UUID) *DeploymentCreate
SetProviderID sets the "provider" edge to the Provider entity by ID.
func (*DeploymentCreate) SetStack ¶
func (dc *DeploymentCreate) SetStack(s *Stack) *DeploymentCreate
SetStack sets the "stack" edge to the Stack entity.
func (*DeploymentCreate) SetStackID ¶
func (dc *DeploymentCreate) SetStackID(id string) *DeploymentCreate
SetStackID sets the "stack" edge to the Stack entity by ID.
func (*DeploymentCreate) SetState ¶
func (dc *DeploymentCreate) SetState(d deployment.State) *DeploymentCreate
SetState sets the "state" field.
func (*DeploymentCreate) SetTimeout ¶
func (dc *DeploymentCreate) SetTimeout(i int) *DeploymentCreate
SetTimeout sets the "timeout" field.
func (*DeploymentCreate) SetUpdatedAt ¶
func (dc *DeploymentCreate) SetUpdatedAt(t time.Time) *DeploymentCreate
SetUpdatedAt sets the "updated_at" field.
type DeploymentCreateBulk ¶
type DeploymentCreateBulk struct {
// contains filtered or unexported fields
}
DeploymentCreateBulk is the builder for creating many Deployment entities in bulk.
func (*DeploymentCreateBulk) Exec ¶
func (dcb *DeploymentCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeploymentCreateBulk) ExecX ¶
func (dcb *DeploymentCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeploymentCreateBulk) Save ¶
func (dcb *DeploymentCreateBulk) Save(ctx context.Context) ([]*Deployment, error)
Save creates the Deployment entities in the database.
func (*DeploymentCreateBulk) SaveX ¶
func (dcb *DeploymentCreateBulk) SaveX(ctx context.Context) []*Deployment
SaveX is like Save, but panics if an error occurs.
type DeploymentDelete ¶
type DeploymentDelete struct {
// contains filtered or unexported fields
}
DeploymentDelete is the builder for deleting a Deployment entity.
func (*DeploymentDelete) Exec ¶
func (dd *DeploymentDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*DeploymentDelete) ExecX ¶
func (dd *DeploymentDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*DeploymentDelete) Where ¶
func (dd *DeploymentDelete) Where(ps ...predicate.Deployment) *DeploymentDelete
Where appends a list predicates to the DeploymentDelete builder.
type DeploymentDeleteOne ¶
type DeploymentDeleteOne struct {
// contains filtered or unexported fields
}
DeploymentDeleteOne is the builder for deleting a single Deployment entity.
func (*DeploymentDeleteOne) Exec ¶
func (ddo *DeploymentDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*DeploymentDeleteOne) ExecX ¶
func (ddo *DeploymentDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type DeploymentEdges ¶
type DeploymentEdges struct { // Tasks holds the value of the tasks edge. Tasks []*Task `json:"tasks,omitempty"` // Provider holds the value of the provider edge. Provider *Provider `json:"provider,omitempty"` // Stack holds the value of the stack edge. Stack *Stack `json:"stack,omitempty"` // Credentials holds the value of the credentials edge. Credentials []*Credential `json:"credentials,omitempty"` // contains filtered or unexported fields }
DeploymentEdges holds the relations/edges for other nodes in the graph.
func (DeploymentEdges) CredentialsOrErr ¶
func (e DeploymentEdges) CredentialsOrErr() ([]*Credential, error)
CredentialsOrErr returns the Credentials value or an error if the edge was not loaded in eager-loading.
func (DeploymentEdges) ProviderOrErr ¶
func (e DeploymentEdges) ProviderOrErr() (*Provider, error)
ProviderOrErr returns the Provider value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (DeploymentEdges) StackOrErr ¶
func (e DeploymentEdges) StackOrErr() (*Stack, error)
StackOrErr returns the Stack value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (DeploymentEdges) TasksOrErr ¶
func (e DeploymentEdges) TasksOrErr() ([]*Task, error)
TasksOrErr returns the Tasks value or an error if the edge was not loaded in eager-loading.
type DeploymentGroupBy ¶
type DeploymentGroupBy struct {
// contains filtered or unexported fields
}
DeploymentGroupBy is the group-by builder for Deployment entities.
func (*DeploymentGroupBy) Aggregate ¶
func (dgb *DeploymentGroupBy) Aggregate(fns ...AggregateFunc) *DeploymentGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*DeploymentGroupBy) Bool ¶
func (dgb *DeploymentGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*DeploymentGroupBy) BoolX ¶
func (dgb *DeploymentGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*DeploymentGroupBy) Bools ¶
func (dgb *DeploymentGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*DeploymentGroupBy) BoolsX ¶
func (dgb *DeploymentGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*DeploymentGroupBy) Float64 ¶
func (dgb *DeploymentGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*DeploymentGroupBy) Float64X ¶
func (dgb *DeploymentGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*DeploymentGroupBy) Float64s ¶
func (dgb *DeploymentGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*DeploymentGroupBy) Float64sX ¶
func (dgb *DeploymentGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*DeploymentGroupBy) Int ¶
func (dgb *DeploymentGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*DeploymentGroupBy) IntX ¶
func (dgb *DeploymentGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*DeploymentGroupBy) Ints ¶
func (dgb *DeploymentGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*DeploymentGroupBy) IntsX ¶
func (dgb *DeploymentGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*DeploymentGroupBy) Scan ¶
func (dgb *DeploymentGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*DeploymentGroupBy) ScanX ¶
func (dgb *DeploymentGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*DeploymentGroupBy) String ¶
func (dgb *DeploymentGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*DeploymentGroupBy) StringX ¶
func (dgb *DeploymentGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type DeploymentMutation ¶
type DeploymentMutation struct {
// contains filtered or unexported fields
}
DeploymentMutation represents an operation that mutates the Deployment nodes in the graph.
func (*DeploymentMutation) AddCredentialIDs ¶
func (m *DeploymentMutation) AddCredentialIDs(ids ...uuid.UUID)
AddCredentialIDs adds the "credentials" edge to the Credential entity by ids.
func (*DeploymentMutation) AddField ¶
func (m *DeploymentMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*DeploymentMutation) AddTaskIDs ¶
func (m *DeploymentMutation) AddTaskIDs(ids ...uuid.UUID)
AddTaskIDs adds the "tasks" edge to the Task entity by ids.
func (*DeploymentMutation) AddTimeout ¶
func (m *DeploymentMutation) AddTimeout(i int)
AddTimeout adds i to the "timeout" field.
func (*DeploymentMutation) AddedEdges ¶
func (m *DeploymentMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*DeploymentMutation) AddedField ¶
func (m *DeploymentMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*DeploymentMutation) AddedFields ¶
func (m *DeploymentMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*DeploymentMutation) AddedIDs ¶
func (m *DeploymentMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*DeploymentMutation) AddedTimeout ¶
func (m *DeploymentMutation) AddedTimeout() (r int, exists bool)
AddedTimeout returns the value that was added to the "timeout" field in this mutation.
func (*DeploymentMutation) ClearCredentials ¶
func (m *DeploymentMutation) ClearCredentials()
ClearCredentials clears the "credentials" edge to the Credential entity.
func (*DeploymentMutation) ClearEdge ¶
func (m *DeploymentMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*DeploymentMutation) ClearField ¶
func (m *DeploymentMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*DeploymentMutation) ClearName ¶
func (m *DeploymentMutation) ClearName()
ClearName clears the value of the "name" field.
func (*DeploymentMutation) ClearProvider ¶
func (m *DeploymentMutation) ClearProvider()
ClearProvider clears the "provider" edge to the Provider entity.
func (*DeploymentMutation) ClearStack ¶
func (m *DeploymentMutation) ClearStack()
ClearStack clears the "stack" edge to the Stack entity.
func (*DeploymentMutation) ClearTasks ¶
func (m *DeploymentMutation) ClearTasks()
ClearTasks clears the "tasks" edge to the Task entity.
func (*DeploymentMutation) ClearedEdges ¶
func (m *DeploymentMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*DeploymentMutation) ClearedFields ¶
func (m *DeploymentMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (DeploymentMutation) Client ¶
func (m DeploymentMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*DeploymentMutation) CreatedAt ¶
func (m *DeploymentMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*DeploymentMutation) CredentialsCleared ¶
func (m *DeploymentMutation) CredentialsCleared() bool
CredentialsCleared reports if the "credentials" edge to the Credential entity was cleared.
func (*DeploymentMutation) CredentialsIDs ¶
func (m *DeploymentMutation) CredentialsIDs() (ids []uuid.UUID)
CredentialsIDs returns the "credentials" edge IDs in the mutation.
func (*DeploymentMutation) EdgeCleared ¶
func (m *DeploymentMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*DeploymentMutation) Field ¶
func (m *DeploymentMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*DeploymentMutation) FieldCleared ¶
func (m *DeploymentMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*DeploymentMutation) Fields ¶
func (m *DeploymentMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*DeploymentMutation) ID ¶
func (m *DeploymentMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*DeploymentMutation) Name ¶
func (m *DeploymentMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*DeploymentMutation) NameCleared ¶
func (m *DeploymentMutation) NameCleared() bool
NameCleared returns if the "name" field was cleared in this mutation.
func (*DeploymentMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Deployment entity. If the Deployment object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeploymentMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*DeploymentMutation) OldName ¶
func (m *DeploymentMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Deployment entity. If the Deployment object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeploymentMutation) OldState ¶
func (m *DeploymentMutation) OldState(ctx context.Context) (v deployment.State, err error)
OldState returns the old "state" field's value of the Deployment entity. If the Deployment object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeploymentMutation) OldTimeout ¶
func (m *DeploymentMutation) OldTimeout(ctx context.Context) (v int, err error)
OldTimeout returns the old "timeout" field's value of the Deployment entity. If the Deployment object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeploymentMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Deployment entity. If the Deployment object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeploymentMutation) ProviderCleared ¶
func (m *DeploymentMutation) ProviderCleared() bool
ProviderCleared reports if the "provider" edge to the Provider entity was cleared.
func (*DeploymentMutation) ProviderID ¶
func (m *DeploymentMutation) ProviderID() (id uuid.UUID, exists bool)
ProviderID returns the "provider" edge ID in the mutation.
func (*DeploymentMutation) ProviderIDs ¶
func (m *DeploymentMutation) ProviderIDs() (ids []uuid.UUID)
ProviderIDs returns the "provider" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ProviderID instead. It exists only for internal usage by the builders.
func (*DeploymentMutation) RemoveCredentialIDs ¶
func (m *DeploymentMutation) RemoveCredentialIDs(ids ...uuid.UUID)
RemoveCredentialIDs removes the "credentials" edge to the Credential entity by IDs.
func (*DeploymentMutation) RemoveTaskIDs ¶
func (m *DeploymentMutation) RemoveTaskIDs(ids ...uuid.UUID)
RemoveTaskIDs removes the "tasks" edge to the Task entity by IDs.
func (*DeploymentMutation) RemovedCredentialsIDs ¶
func (m *DeploymentMutation) RemovedCredentialsIDs() (ids []uuid.UUID)
RemovedCredentials returns the removed IDs of the "credentials" edge to the Credential entity.
func (*DeploymentMutation) RemovedEdges ¶
func (m *DeploymentMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*DeploymentMutation) RemovedIDs ¶
func (m *DeploymentMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*DeploymentMutation) RemovedTasksIDs ¶
func (m *DeploymentMutation) RemovedTasksIDs() (ids []uuid.UUID)
RemovedTasks returns the removed IDs of the "tasks" edge to the Task entity.
func (*DeploymentMutation) ResetCreatedAt ¶
func (m *DeploymentMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*DeploymentMutation) ResetCredentials ¶
func (m *DeploymentMutation) ResetCredentials()
ResetCredentials resets all changes to the "credentials" edge.
func (*DeploymentMutation) ResetEdge ¶
func (m *DeploymentMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*DeploymentMutation) ResetField ¶
func (m *DeploymentMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*DeploymentMutation) ResetName ¶
func (m *DeploymentMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*DeploymentMutation) ResetProvider ¶
func (m *DeploymentMutation) ResetProvider()
ResetProvider resets all changes to the "provider" edge.
func (*DeploymentMutation) ResetStack ¶
func (m *DeploymentMutation) ResetStack()
ResetStack resets all changes to the "stack" edge.
func (*DeploymentMutation) ResetState ¶
func (m *DeploymentMutation) ResetState()
ResetState resets all changes to the "state" field.
func (*DeploymentMutation) ResetTasks ¶
func (m *DeploymentMutation) ResetTasks()
ResetTasks resets all changes to the "tasks" edge.
func (*DeploymentMutation) ResetTimeout ¶
func (m *DeploymentMutation) ResetTimeout()
ResetTimeout resets all changes to the "timeout" field.
func (*DeploymentMutation) ResetUpdatedAt ¶
func (m *DeploymentMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*DeploymentMutation) SetCreatedAt ¶
func (m *DeploymentMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*DeploymentMutation) SetField ¶
func (m *DeploymentMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*DeploymentMutation) SetID ¶
func (m *DeploymentMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Deployment entities.
func (*DeploymentMutation) SetName ¶
func (m *DeploymentMutation) SetName(s string)
SetName sets the "name" field.
func (*DeploymentMutation) SetProviderID ¶
func (m *DeploymentMutation) SetProviderID(id uuid.UUID)
SetProviderID sets the "provider" edge to the Provider entity by id.
func (*DeploymentMutation) SetStackID ¶
func (m *DeploymentMutation) SetStackID(id string)
SetStackID sets the "stack" edge to the Stack entity by id.
func (*DeploymentMutation) SetState ¶
func (m *DeploymentMutation) SetState(d deployment.State)
SetState sets the "state" field.
func (*DeploymentMutation) SetTimeout ¶
func (m *DeploymentMutation) SetTimeout(i int)
SetTimeout sets the "timeout" field.
func (*DeploymentMutation) SetUpdatedAt ¶
func (m *DeploymentMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*DeploymentMutation) StackCleared ¶
func (m *DeploymentMutation) StackCleared() bool
StackCleared reports if the "stack" edge to the Stack entity was cleared.
func (*DeploymentMutation) StackID ¶
func (m *DeploymentMutation) StackID() (id string, exists bool)
StackID returns the "stack" edge ID in the mutation.
func (*DeploymentMutation) StackIDs ¶
func (m *DeploymentMutation) StackIDs() (ids []string)
StackIDs returns the "stack" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use StackID instead. It exists only for internal usage by the builders.
func (*DeploymentMutation) State ¶
func (m *DeploymentMutation) State() (r deployment.State, exists bool)
State returns the value of the "state" field in the mutation.
func (*DeploymentMutation) TasksCleared ¶
func (m *DeploymentMutation) TasksCleared() bool
TasksCleared reports if the "tasks" edge to the Task entity was cleared.
func (*DeploymentMutation) TasksIDs ¶
func (m *DeploymentMutation) TasksIDs() (ids []uuid.UUID)
TasksIDs returns the "tasks" edge IDs in the mutation.
func (*DeploymentMutation) Timeout ¶
func (m *DeploymentMutation) Timeout() (r int, exists bool)
Timeout returns the value of the "timeout" field in the mutation.
func (DeploymentMutation) Tx ¶
func (m DeploymentMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*DeploymentMutation) Type ¶
func (m *DeploymentMutation) Type() string
Type returns the node type of this mutation (Deployment).
func (*DeploymentMutation) UpdatedAt ¶
func (m *DeploymentMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*DeploymentMutation) Where ¶
func (m *DeploymentMutation) Where(ps ...predicate.Deployment)
Where appends a list predicates to the DeploymentMutation builder.
type DeploymentQuery ¶
type DeploymentQuery struct {
// contains filtered or unexported fields
}
DeploymentQuery is the builder for querying Deployment entities.
func (*DeploymentQuery) All ¶
func (dq *DeploymentQuery) All(ctx context.Context) ([]*Deployment, error)
All executes the query and returns a list of Deployments.
func (*DeploymentQuery) AllX ¶
func (dq *DeploymentQuery) AllX(ctx context.Context) []*Deployment
AllX is like All, but panics if an error occurs.
func (*DeploymentQuery) Clone ¶
func (dq *DeploymentQuery) Clone() *DeploymentQuery
Clone returns a duplicate of the DeploymentQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*DeploymentQuery) Count ¶
func (dq *DeploymentQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*DeploymentQuery) CountX ¶
func (dq *DeploymentQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*DeploymentQuery) Exist ¶
func (dq *DeploymentQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*DeploymentQuery) ExistX ¶
func (dq *DeploymentQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*DeploymentQuery) First ¶
func (dq *DeploymentQuery) First(ctx context.Context) (*Deployment, error)
First returns the first Deployment entity from the query. Returns a *NotFoundError when no Deployment was found.
func (*DeploymentQuery) FirstID ¶
FirstID returns the first Deployment ID from the query. Returns a *NotFoundError when no Deployment ID was found.
func (*DeploymentQuery) FirstIDX ¶
func (dq *DeploymentQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*DeploymentQuery) FirstX ¶
func (dq *DeploymentQuery) FirstX(ctx context.Context) *Deployment
FirstX is like First, but panics if an error occurs.
func (*DeploymentQuery) GroupBy ¶
func (dq *DeploymentQuery) GroupBy(field string, fields ...string) *DeploymentGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.Deployment.Query(). GroupBy(deployment.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*DeploymentQuery) IDsX ¶
func (dq *DeploymentQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*DeploymentQuery) Limit ¶
func (dq *DeploymentQuery) Limit(limit int) *DeploymentQuery
Limit adds a limit step to the query.
func (*DeploymentQuery) Offset ¶
func (dq *DeploymentQuery) Offset(offset int) *DeploymentQuery
Offset adds an offset step to the query.
func (*DeploymentQuery) Only ¶
func (dq *DeploymentQuery) Only(ctx context.Context) (*Deployment, error)
Only returns a single Deployment entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Deployment entity is not found. Returns a *NotFoundError when no Deployment entities are found.
func (*DeploymentQuery) OnlyID ¶
OnlyID is like Only, but returns the only Deployment ID in the query. Returns a *NotSingularError when exactly one Deployment ID is not found. Returns a *NotFoundError when no entities are found.
func (*DeploymentQuery) OnlyIDX ¶
func (dq *DeploymentQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*DeploymentQuery) OnlyX ¶
func (dq *DeploymentQuery) OnlyX(ctx context.Context) *Deployment
OnlyX is like Only, but panics if an error occurs.
func (*DeploymentQuery) Order ¶
func (dq *DeploymentQuery) Order(o ...OrderFunc) *DeploymentQuery
Order adds an order step to the query.
func (*DeploymentQuery) QueryCredentials ¶
func (dq *DeploymentQuery) QueryCredentials() *CredentialQuery
QueryCredentials chains the current query on the "credentials" edge.
func (*DeploymentQuery) QueryProvider ¶
func (dq *DeploymentQuery) QueryProvider() *ProviderQuery
QueryProvider chains the current query on the "provider" edge.
func (*DeploymentQuery) QueryStack ¶
func (dq *DeploymentQuery) QueryStack() *StackQuery
QueryStack chains the current query on the "stack" edge.
func (*DeploymentQuery) QueryTasks ¶
func (dq *DeploymentQuery) QueryTasks() *TaskQuery
QueryTasks chains the current query on the "tasks" edge.
func (*DeploymentQuery) Select ¶
func (dq *DeploymentQuery) Select(fields ...string) *DeploymentSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` } client.Deployment.Query(). Select(deployment.FieldCreatedAt). Scan(ctx, &v)
func (*DeploymentQuery) Unique ¶
func (dq *DeploymentQuery) Unique(unique bool) *DeploymentQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*DeploymentQuery) Where ¶
func (dq *DeploymentQuery) Where(ps ...predicate.Deployment) *DeploymentQuery
Where adds a new predicate for the DeploymentQuery builder.
func (*DeploymentQuery) WithCredentials ¶
func (dq *DeploymentQuery) WithCredentials(opts ...func(*CredentialQuery)) *DeploymentQuery
WithCredentials tells the query-builder to eager-load the nodes that are connected to the "credentials" edge. The optional arguments are used to configure the query builder of the edge.
func (*DeploymentQuery) WithProvider ¶
func (dq *DeploymentQuery) WithProvider(opts ...func(*ProviderQuery)) *DeploymentQuery
WithProvider tells the query-builder to eager-load the nodes that are connected to the "provider" edge. The optional arguments are used to configure the query builder of the edge.
func (*DeploymentQuery) WithStack ¶
func (dq *DeploymentQuery) WithStack(opts ...func(*StackQuery)) *DeploymentQuery
WithStack tells the query-builder to eager-load the nodes that are connected to the "stack" edge. The optional arguments are used to configure the query builder of the edge.
func (*DeploymentQuery) WithTasks ¶
func (dq *DeploymentQuery) WithTasks(opts ...func(*TaskQuery)) *DeploymentQuery
WithTasks tells the query-builder to eager-load the nodes that are connected to the "tasks" edge. The optional arguments are used to configure the query builder of the edge.
type DeploymentSelect ¶
type DeploymentSelect struct { *DeploymentQuery // contains filtered or unexported fields }
DeploymentSelect is the builder for selecting fields of Deployment entities.
func (*DeploymentSelect) Bool ¶
func (ds *DeploymentSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeploymentSelect) BoolX ¶
func (ds *DeploymentSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*DeploymentSelect) Bools ¶
func (ds *DeploymentSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*DeploymentSelect) BoolsX ¶
func (ds *DeploymentSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*DeploymentSelect) Float64 ¶
func (ds *DeploymentSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeploymentSelect) Float64X ¶
func (ds *DeploymentSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*DeploymentSelect) Float64s ¶
func (ds *DeploymentSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeploymentSelect) Float64sX ¶
func (ds *DeploymentSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*DeploymentSelect) Int ¶
func (ds *DeploymentSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeploymentSelect) IntX ¶
func (ds *DeploymentSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*DeploymentSelect) Ints ¶
func (ds *DeploymentSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeploymentSelect) IntsX ¶
func (ds *DeploymentSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*DeploymentSelect) Scan ¶
func (ds *DeploymentSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*DeploymentSelect) ScanX ¶
func (ds *DeploymentSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*DeploymentSelect) String ¶
func (ds *DeploymentSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*DeploymentSelect) StringX ¶
func (ds *DeploymentSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type DeploymentUpdate ¶
type DeploymentUpdate struct {
// contains filtered or unexported fields
}
DeploymentUpdate is the builder for updating Deployment entities.
func (*DeploymentUpdate) AddCredentialIDs ¶
func (du *DeploymentUpdate) AddCredentialIDs(ids ...uuid.UUID) *DeploymentUpdate
AddCredentialIDs adds the "credentials" edge to the Credential entity by IDs.
func (*DeploymentUpdate) AddCredentials ¶
func (du *DeploymentUpdate) AddCredentials(c ...*Credential) *DeploymentUpdate
AddCredentials adds the "credentials" edges to the Credential entity.
func (*DeploymentUpdate) AddTaskIDs ¶
func (du *DeploymentUpdate) AddTaskIDs(ids ...uuid.UUID) *DeploymentUpdate
AddTaskIDs adds the "tasks" edge to the Task entity by IDs.
func (*DeploymentUpdate) AddTasks ¶
func (du *DeploymentUpdate) AddTasks(t ...*Task) *DeploymentUpdate
AddTasks adds the "tasks" edges to the Task entity.
func (*DeploymentUpdate) AddTimeout ¶
func (du *DeploymentUpdate) AddTimeout(i int) *DeploymentUpdate
AddTimeout adds i to the "timeout" field.
func (*DeploymentUpdate) ClearCredentials ¶
func (du *DeploymentUpdate) ClearCredentials() *DeploymentUpdate
ClearCredentials clears all "credentials" edges to the Credential entity.
func (*DeploymentUpdate) ClearName ¶
func (du *DeploymentUpdate) ClearName() *DeploymentUpdate
ClearName clears the value of the "name" field.
func (*DeploymentUpdate) ClearProvider ¶
func (du *DeploymentUpdate) ClearProvider() *DeploymentUpdate
ClearProvider clears the "provider" edge to the Provider entity.
func (*DeploymentUpdate) ClearStack ¶
func (du *DeploymentUpdate) ClearStack() *DeploymentUpdate
ClearStack clears the "stack" edge to the Stack entity.
func (*DeploymentUpdate) ClearTasks ¶
func (du *DeploymentUpdate) ClearTasks() *DeploymentUpdate
ClearTasks clears all "tasks" edges to the Task entity.
func (*DeploymentUpdate) Exec ¶
func (du *DeploymentUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeploymentUpdate) ExecX ¶
func (du *DeploymentUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeploymentUpdate) Mutation ¶
func (du *DeploymentUpdate) Mutation() *DeploymentMutation
Mutation returns the DeploymentMutation object of the builder.
func (*DeploymentUpdate) RemoveCredentialIDs ¶
func (du *DeploymentUpdate) RemoveCredentialIDs(ids ...uuid.UUID) *DeploymentUpdate
RemoveCredentialIDs removes the "credentials" edge to Credential entities by IDs.
func (*DeploymentUpdate) RemoveCredentials ¶
func (du *DeploymentUpdate) RemoveCredentials(c ...*Credential) *DeploymentUpdate
RemoveCredentials removes "credentials" edges to Credential entities.
func (*DeploymentUpdate) RemoveTaskIDs ¶
func (du *DeploymentUpdate) RemoveTaskIDs(ids ...uuid.UUID) *DeploymentUpdate
RemoveTaskIDs removes the "tasks" edge to Task entities by IDs.
func (*DeploymentUpdate) RemoveTasks ¶
func (du *DeploymentUpdate) RemoveTasks(t ...*Task) *DeploymentUpdate
RemoveTasks removes "tasks" edges to Task entities.
func (*DeploymentUpdate) Save ¶
func (du *DeploymentUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*DeploymentUpdate) SaveX ¶
func (du *DeploymentUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*DeploymentUpdate) SetCreatedAt ¶
func (du *DeploymentUpdate) SetCreatedAt(t time.Time) *DeploymentUpdate
SetCreatedAt sets the "created_at" field.
func (*DeploymentUpdate) SetName ¶
func (du *DeploymentUpdate) SetName(s string) *DeploymentUpdate
SetName sets the "name" field.
func (*DeploymentUpdate) SetNillableCreatedAt ¶
func (du *DeploymentUpdate) SetNillableCreatedAt(t *time.Time) *DeploymentUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*DeploymentUpdate) SetNillableName ¶
func (du *DeploymentUpdate) SetNillableName(s *string) *DeploymentUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*DeploymentUpdate) SetNillableStackID ¶
func (du *DeploymentUpdate) SetNillableStackID(id *string) *DeploymentUpdate
SetNillableStackID sets the "stack" edge to the Stack entity by ID if the given value is not nil.
func (*DeploymentUpdate) SetNillableState ¶
func (du *DeploymentUpdate) SetNillableState(d *deployment.State) *DeploymentUpdate
SetNillableState sets the "state" field if the given value is not nil.
func (*DeploymentUpdate) SetProvider ¶
func (du *DeploymentUpdate) SetProvider(p *Provider) *DeploymentUpdate
SetProvider sets the "provider" edge to the Provider entity.
func (*DeploymentUpdate) SetProviderID ¶
func (du *DeploymentUpdate) SetProviderID(id uuid.UUID) *DeploymentUpdate
SetProviderID sets the "provider" edge to the Provider entity by ID.
func (*DeploymentUpdate) SetStack ¶
func (du *DeploymentUpdate) SetStack(s *Stack) *DeploymentUpdate
SetStack sets the "stack" edge to the Stack entity.
func (*DeploymentUpdate) SetStackID ¶
func (du *DeploymentUpdate) SetStackID(id string) *DeploymentUpdate
SetStackID sets the "stack" edge to the Stack entity by ID.
func (*DeploymentUpdate) SetState ¶
func (du *DeploymentUpdate) SetState(d deployment.State) *DeploymentUpdate
SetState sets the "state" field.
func (*DeploymentUpdate) SetTimeout ¶
func (du *DeploymentUpdate) SetTimeout(i int) *DeploymentUpdate
SetTimeout sets the "timeout" field.
func (*DeploymentUpdate) SetUpdatedAt ¶
func (du *DeploymentUpdate) SetUpdatedAt(t time.Time) *DeploymentUpdate
SetUpdatedAt sets the "updated_at" field.
func (*DeploymentUpdate) Where ¶
func (du *DeploymentUpdate) Where(ps ...predicate.Deployment) *DeploymentUpdate
Where appends a list predicates to the DeploymentUpdate builder.
type DeploymentUpdateOne ¶
type DeploymentUpdateOne struct {
// contains filtered or unexported fields
}
DeploymentUpdateOne is the builder for updating a single Deployment entity.
func (*DeploymentUpdateOne) AddCredentialIDs ¶
func (duo *DeploymentUpdateOne) AddCredentialIDs(ids ...uuid.UUID) *DeploymentUpdateOne
AddCredentialIDs adds the "credentials" edge to the Credential entity by IDs.
func (*DeploymentUpdateOne) AddCredentials ¶
func (duo *DeploymentUpdateOne) AddCredentials(c ...*Credential) *DeploymentUpdateOne
AddCredentials adds the "credentials" edges to the Credential entity.
func (*DeploymentUpdateOne) AddTaskIDs ¶
func (duo *DeploymentUpdateOne) AddTaskIDs(ids ...uuid.UUID) *DeploymentUpdateOne
AddTaskIDs adds the "tasks" edge to the Task entity by IDs.
func (*DeploymentUpdateOne) AddTasks ¶
func (duo *DeploymentUpdateOne) AddTasks(t ...*Task) *DeploymentUpdateOne
AddTasks adds the "tasks" edges to the Task entity.
func (*DeploymentUpdateOne) AddTimeout ¶
func (duo *DeploymentUpdateOne) AddTimeout(i int) *DeploymentUpdateOne
AddTimeout adds i to the "timeout" field.
func (*DeploymentUpdateOne) ClearCredentials ¶
func (duo *DeploymentUpdateOne) ClearCredentials() *DeploymentUpdateOne
ClearCredentials clears all "credentials" edges to the Credential entity.
func (*DeploymentUpdateOne) ClearName ¶
func (duo *DeploymentUpdateOne) ClearName() *DeploymentUpdateOne
ClearName clears the value of the "name" field.
func (*DeploymentUpdateOne) ClearProvider ¶
func (duo *DeploymentUpdateOne) ClearProvider() *DeploymentUpdateOne
ClearProvider clears the "provider" edge to the Provider entity.
func (*DeploymentUpdateOne) ClearStack ¶
func (duo *DeploymentUpdateOne) ClearStack() *DeploymentUpdateOne
ClearStack clears the "stack" edge to the Stack entity.
func (*DeploymentUpdateOne) ClearTasks ¶
func (duo *DeploymentUpdateOne) ClearTasks() *DeploymentUpdateOne
ClearTasks clears all "tasks" edges to the Task entity.
func (*DeploymentUpdateOne) Exec ¶
func (duo *DeploymentUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*DeploymentUpdateOne) ExecX ¶
func (duo *DeploymentUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeploymentUpdateOne) Mutation ¶
func (duo *DeploymentUpdateOne) Mutation() *DeploymentMutation
Mutation returns the DeploymentMutation object of the builder.
func (*DeploymentUpdateOne) RemoveCredentialIDs ¶
func (duo *DeploymentUpdateOne) RemoveCredentialIDs(ids ...uuid.UUID) *DeploymentUpdateOne
RemoveCredentialIDs removes the "credentials" edge to Credential entities by IDs.
func (*DeploymentUpdateOne) RemoveCredentials ¶
func (duo *DeploymentUpdateOne) RemoveCredentials(c ...*Credential) *DeploymentUpdateOne
RemoveCredentials removes "credentials" edges to Credential entities.
func (*DeploymentUpdateOne) RemoveTaskIDs ¶
func (duo *DeploymentUpdateOne) RemoveTaskIDs(ids ...uuid.UUID) *DeploymentUpdateOne
RemoveTaskIDs removes the "tasks" edge to Task entities by IDs.
func (*DeploymentUpdateOne) RemoveTasks ¶
func (duo *DeploymentUpdateOne) RemoveTasks(t ...*Task) *DeploymentUpdateOne
RemoveTasks removes "tasks" edges to Task entities.
func (*DeploymentUpdateOne) Save ¶
func (duo *DeploymentUpdateOne) Save(ctx context.Context) (*Deployment, error)
Save executes the query and returns the updated Deployment entity.
func (*DeploymentUpdateOne) SaveX ¶
func (duo *DeploymentUpdateOne) SaveX(ctx context.Context) *Deployment
SaveX is like Save, but panics if an error occurs.
func (*DeploymentUpdateOne) Select ¶
func (duo *DeploymentUpdateOne) Select(field string, fields ...string) *DeploymentUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*DeploymentUpdateOne) SetCreatedAt ¶
func (duo *DeploymentUpdateOne) SetCreatedAt(t time.Time) *DeploymentUpdateOne
SetCreatedAt sets the "created_at" field.
func (*DeploymentUpdateOne) SetName ¶
func (duo *DeploymentUpdateOne) SetName(s string) *DeploymentUpdateOne
SetName sets the "name" field.
func (*DeploymentUpdateOne) SetNillableCreatedAt ¶
func (duo *DeploymentUpdateOne) SetNillableCreatedAt(t *time.Time) *DeploymentUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*DeploymentUpdateOne) SetNillableName ¶
func (duo *DeploymentUpdateOne) SetNillableName(s *string) *DeploymentUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*DeploymentUpdateOne) SetNillableStackID ¶
func (duo *DeploymentUpdateOne) SetNillableStackID(id *string) *DeploymentUpdateOne
SetNillableStackID sets the "stack" edge to the Stack entity by ID if the given value is not nil.
func (*DeploymentUpdateOne) SetNillableState ¶
func (duo *DeploymentUpdateOne) SetNillableState(d *deployment.State) *DeploymentUpdateOne
SetNillableState sets the "state" field if the given value is not nil.
func (*DeploymentUpdateOne) SetProvider ¶
func (duo *DeploymentUpdateOne) SetProvider(p *Provider) *DeploymentUpdateOne
SetProvider sets the "provider" edge to the Provider entity.
func (*DeploymentUpdateOne) SetProviderID ¶
func (duo *DeploymentUpdateOne) SetProviderID(id uuid.UUID) *DeploymentUpdateOne
SetProviderID sets the "provider" edge to the Provider entity by ID.
func (*DeploymentUpdateOne) SetStack ¶
func (duo *DeploymentUpdateOne) SetStack(s *Stack) *DeploymentUpdateOne
SetStack sets the "stack" edge to the Stack entity.
func (*DeploymentUpdateOne) SetStackID ¶
func (duo *DeploymentUpdateOne) SetStackID(id string) *DeploymentUpdateOne
SetStackID sets the "stack" edge to the Stack entity by ID.
func (*DeploymentUpdateOne) SetState ¶
func (duo *DeploymentUpdateOne) SetState(d deployment.State) *DeploymentUpdateOne
SetState sets the "state" field.
func (*DeploymentUpdateOne) SetTimeout ¶
func (duo *DeploymentUpdateOne) SetTimeout(i int) *DeploymentUpdateOne
SetTimeout sets the "timeout" field.
func (*DeploymentUpdateOne) SetUpdatedAt ¶
func (duo *DeploymentUpdateOne) SetUpdatedAt(t time.Time) *DeploymentUpdateOne
SetUpdatedAt sets the "updated_at" field.
type MutateFunc ¶
type MutateFunc = ent.MutateFunc
ent aliases to avoid import conflicts in user's code.
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
Error implements the error interface.
type NotLoadedError ¶
type NotLoadedError struct {
// contains filtered or unexported fields
}
NotLoadedError returns when trying to get a node that was not loaded by the query.
func (*NotLoadedError) Error ¶
func (e *NotLoadedError) Error() string
Error implements the error interface.
type NotSingularError ¶
type NotSingularError struct {
// contains filtered or unexported fields
}
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
func (*NotSingularError) Error ¶
func (e *NotSingularError) Error() string
Error implements the error interface.
type Process ¶
type Process struct { // ID of the ent. ID string `json:"id,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt time.Time `json:"updated_at,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Token holds the value of the "token" field. Token string `json:"token,omitempty"` // InstanceType holds the value of the "instance_type" field. InstanceType string `json:"instance_type,omitempty"` // AmiID holds the value of the "ami_id" field. AmiID string `json:"ami_id,omitempty"` // ResourcePrefix holds the value of the "resource_prefix" field. ResourcePrefix string `json:"resource_prefix,omitempty"` // Timeout holds the value of the "timeout" field. Timeout int `json:"timeout,omitempty"` // Expiration holds the value of the "expiration" field. Expiration int `json:"expiration,omitempty"` // State holds the value of the "state" field. State process.State `json:"state,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the ProcessQuery when eager-loading is set. Edges ProcessEdges `json:"edges"` // contains filtered or unexported fields }
Process is the model entity for the Process schema.
func (*Process) QueryCredentials ¶
func (pr *Process) QueryCredentials() *CredentialQuery
QueryCredentials queries the "credentials" edge of the Process entity.
func (*Process) QueryStack ¶
func (pr *Process) QueryStack() *StackQuery
QueryStack queries the "stack" edge of the Process entity.
func (*Process) QueryTasks ¶
QueryTasks queries the "tasks" edge of the Process entity.
func (*Process) Unwrap ¶
Unwrap unwraps the Process entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Process) Update ¶
func (pr *Process) Update() *ProcessUpdateOne
Update returns a builder for updating this Process. Note that you need to call Process.Unwrap() before calling this method if this Process was returned from a transaction, and the transaction was committed or rolled back.
type ProcessClient ¶
type ProcessClient struct {
// contains filtered or unexported fields
}
ProcessClient is a client for the Process schema.
func NewProcessClient ¶
func NewProcessClient(c config) *ProcessClient
NewProcessClient returns a client for the Process from the given config.
func (*ProcessClient) Create ¶
func (c *ProcessClient) Create() *ProcessCreate
Create returns a create builder for Process.
func (*ProcessClient) CreateBulk ¶
func (c *ProcessClient) CreateBulk(builders ...*ProcessCreate) *ProcessCreateBulk
CreateBulk returns a builder for creating a bulk of Process entities.
func (*ProcessClient) Delete ¶
func (c *ProcessClient) Delete() *ProcessDelete
Delete returns a delete builder for Process.
func (*ProcessClient) DeleteOne ¶
func (c *ProcessClient) DeleteOne(pr *Process) *ProcessDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*ProcessClient) DeleteOneID ¶
func (c *ProcessClient) DeleteOneID(id string) *ProcessDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*ProcessClient) GetX ¶
func (c *ProcessClient) GetX(ctx context.Context, id string) *Process
GetX is like Get, but panics if an error occurs.
func (*ProcessClient) Hooks ¶
func (c *ProcessClient) Hooks() []Hook
Hooks returns the client hooks.
func (*ProcessClient) Query ¶
func (c *ProcessClient) Query() *ProcessQuery
Query returns a query builder for Process.
func (*ProcessClient) QueryCredentials ¶
func (c *ProcessClient) QueryCredentials(pr *Process) *CredentialQuery
QueryCredentials queries the credentials edge of a Process.
func (*ProcessClient) QueryStack ¶
func (c *ProcessClient) QueryStack(pr *Process) *StackQuery
QueryStack queries the stack edge of a Process.
func (*ProcessClient) QueryTasks ¶
func (c *ProcessClient) QueryTasks(pr *Process) *TaskQuery
QueryTasks queries the tasks edge of a Process.
func (*ProcessClient) Update ¶
func (c *ProcessClient) Update() *ProcessUpdate
Update returns an update builder for Process.
func (*ProcessClient) UpdateOne ¶
func (c *ProcessClient) UpdateOne(pr *Process) *ProcessUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ProcessClient) UpdateOneID ¶
func (c *ProcessClient) UpdateOneID(id string) *ProcessUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ProcessClient) Use ¶
func (c *ProcessClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `process.Hooks(f(g(h())))`.
type ProcessCreate ¶
type ProcessCreate struct {
// contains filtered or unexported fields
}
ProcessCreate is the builder for creating a Process entity.
func (*ProcessCreate) AddCredentialIDs ¶
func (pc *ProcessCreate) AddCredentialIDs(ids ...uuid.UUID) *ProcessCreate
AddCredentialIDs adds the "credentials" edge to the Credential entity by IDs.
func (*ProcessCreate) AddCredentials ¶
func (pc *ProcessCreate) AddCredentials(c ...*Credential) *ProcessCreate
AddCredentials adds the "credentials" edges to the Credential entity.
func (*ProcessCreate) AddTaskIDs ¶
func (pc *ProcessCreate) AddTaskIDs(ids ...uuid.UUID) *ProcessCreate
AddTaskIDs adds the "tasks" edge to the Task entity by IDs.
func (*ProcessCreate) AddTasks ¶
func (pc *ProcessCreate) AddTasks(t ...*Task) *ProcessCreate
AddTasks adds the "tasks" edges to the Task entity.
func (*ProcessCreate) Exec ¶
func (pc *ProcessCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*ProcessCreate) ExecX ¶
func (pc *ProcessCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProcessCreate) Mutation ¶
func (pc *ProcessCreate) Mutation() *ProcessMutation
Mutation returns the ProcessMutation object of the builder.
func (*ProcessCreate) Save ¶
func (pc *ProcessCreate) Save(ctx context.Context) (*Process, error)
Save creates the Process in the database.
func (*ProcessCreate) SaveX ¶
func (pc *ProcessCreate) SaveX(ctx context.Context) *Process
SaveX calls Save and panics if Save returns an error.
func (*ProcessCreate) SetAmiID ¶
func (pc *ProcessCreate) SetAmiID(s string) *ProcessCreate
SetAmiID sets the "ami_id" field.
func (*ProcessCreate) SetCreatedAt ¶
func (pc *ProcessCreate) SetCreatedAt(t time.Time) *ProcessCreate
SetCreatedAt sets the "created_at" field.
func (*ProcessCreate) SetExpiration ¶
func (pc *ProcessCreate) SetExpiration(i int) *ProcessCreate
SetExpiration sets the "expiration" field.
func (*ProcessCreate) SetID ¶
func (pc *ProcessCreate) SetID(s string) *ProcessCreate
SetID sets the "id" field.
func (*ProcessCreate) SetInstanceType ¶
func (pc *ProcessCreate) SetInstanceType(s string) *ProcessCreate
SetInstanceType sets the "instance_type" field.
func (*ProcessCreate) SetName ¶
func (pc *ProcessCreate) SetName(s string) *ProcessCreate
SetName sets the "name" field.
func (*ProcessCreate) SetNillableCreatedAt ¶
func (pc *ProcessCreate) SetNillableCreatedAt(t *time.Time) *ProcessCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*ProcessCreate) SetNillableName ¶
func (pc *ProcessCreate) SetNillableName(s *string) *ProcessCreate
SetNillableName sets the "name" field if the given value is not nil.
func (*ProcessCreate) SetNillableStackID ¶
func (pc *ProcessCreate) SetNillableStackID(id *string) *ProcessCreate
SetNillableStackID sets the "stack" edge to the Stack entity by ID if the given value is not nil.
func (*ProcessCreate) SetNillableState ¶
func (pc *ProcessCreate) SetNillableState(pr *process.State) *ProcessCreate
SetNillableState sets the "state" field if the given value is not nil.
func (*ProcessCreate) SetNillableTimeout ¶
func (pc *ProcessCreate) SetNillableTimeout(i *int) *ProcessCreate
SetNillableTimeout sets the "timeout" field if the given value is not nil.
func (*ProcessCreate) SetNillableUpdatedAt ¶
func (pc *ProcessCreate) SetNillableUpdatedAt(t *time.Time) *ProcessCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*ProcessCreate) SetResourcePrefix ¶
func (pc *ProcessCreate) SetResourcePrefix(s string) *ProcessCreate
SetResourcePrefix sets the "resource_prefix" field.
func (*ProcessCreate) SetStack ¶
func (pc *ProcessCreate) SetStack(s *Stack) *ProcessCreate
SetStack sets the "stack" edge to the Stack entity.
func (*ProcessCreate) SetStackID ¶
func (pc *ProcessCreate) SetStackID(id string) *ProcessCreate
SetStackID sets the "stack" edge to the Stack entity by ID.
func (*ProcessCreate) SetState ¶
func (pc *ProcessCreate) SetState(pr process.State) *ProcessCreate
SetState sets the "state" field.
func (*ProcessCreate) SetTimeout ¶
func (pc *ProcessCreate) SetTimeout(i int) *ProcessCreate
SetTimeout sets the "timeout" field.
func (*ProcessCreate) SetToken ¶
func (pc *ProcessCreate) SetToken(s string) *ProcessCreate
SetToken sets the "token" field.
func (*ProcessCreate) SetUpdatedAt ¶
func (pc *ProcessCreate) SetUpdatedAt(t time.Time) *ProcessCreate
SetUpdatedAt sets the "updated_at" field.
type ProcessCreateBulk ¶
type ProcessCreateBulk struct {
// contains filtered or unexported fields
}
ProcessCreateBulk is the builder for creating many Process entities in bulk.
func (*ProcessCreateBulk) Exec ¶
func (pcb *ProcessCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ProcessCreateBulk) ExecX ¶
func (pcb *ProcessCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type ProcessDelete ¶
type ProcessDelete struct {
// contains filtered or unexported fields
}
ProcessDelete is the builder for deleting a Process entity.
func (*ProcessDelete) Exec ¶
func (pd *ProcessDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ProcessDelete) ExecX ¶
func (pd *ProcessDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ProcessDelete) Where ¶
func (pd *ProcessDelete) Where(ps ...predicate.Process) *ProcessDelete
Where appends a list predicates to the ProcessDelete builder.
type ProcessDeleteOne ¶
type ProcessDeleteOne struct {
// contains filtered or unexported fields
}
ProcessDeleteOne is the builder for deleting a single Process entity.
func (*ProcessDeleteOne) Exec ¶
func (pdo *ProcessDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ProcessDeleteOne) ExecX ¶
func (pdo *ProcessDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type ProcessEdges ¶
type ProcessEdges struct { // Stack holds the value of the stack edge. Stack *Stack `json:"stack,omitempty"` // Credentials holds the value of the credentials edge. Credentials []*Credential `json:"credentials,omitempty"` // Tasks holds the value of the tasks edge. Tasks []*Task `json:"tasks,omitempty"` // contains filtered or unexported fields }
ProcessEdges holds the relations/edges for other nodes in the graph.
func (ProcessEdges) CredentialsOrErr ¶
func (e ProcessEdges) CredentialsOrErr() ([]*Credential, error)
CredentialsOrErr returns the Credentials value or an error if the edge was not loaded in eager-loading.
func (ProcessEdges) StackOrErr ¶
func (e ProcessEdges) StackOrErr() (*Stack, error)
StackOrErr returns the Stack value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (ProcessEdges) TasksOrErr ¶
func (e ProcessEdges) TasksOrErr() ([]*Task, error)
TasksOrErr returns the Tasks value or an error if the edge was not loaded in eager-loading.
type ProcessGroupBy ¶
type ProcessGroupBy struct {
// contains filtered or unexported fields
}
ProcessGroupBy is the group-by builder for Process entities.
func (*ProcessGroupBy) Aggregate ¶
func (pgb *ProcessGroupBy) Aggregate(fns ...AggregateFunc) *ProcessGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ProcessGroupBy) Bool ¶
func (pgb *ProcessGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*ProcessGroupBy) BoolX ¶
func (pgb *ProcessGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*ProcessGroupBy) Bools ¶
func (pgb *ProcessGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*ProcessGroupBy) BoolsX ¶
func (pgb *ProcessGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ProcessGroupBy) Float64 ¶
func (pgb *ProcessGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*ProcessGroupBy) Float64X ¶
func (pgb *ProcessGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*ProcessGroupBy) Float64s ¶
func (pgb *ProcessGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*ProcessGroupBy) Float64sX ¶
func (pgb *ProcessGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ProcessGroupBy) Int ¶
func (pgb *ProcessGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*ProcessGroupBy) IntX ¶
func (pgb *ProcessGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*ProcessGroupBy) Ints ¶
func (pgb *ProcessGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*ProcessGroupBy) IntsX ¶
func (pgb *ProcessGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ProcessGroupBy) Scan ¶
func (pgb *ProcessGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*ProcessGroupBy) ScanX ¶
func (pgb *ProcessGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*ProcessGroupBy) String ¶
func (pgb *ProcessGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*ProcessGroupBy) StringX ¶
func (pgb *ProcessGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type ProcessMutation ¶
type ProcessMutation struct {
// contains filtered or unexported fields
}
ProcessMutation represents an operation that mutates the Process nodes in the graph.
func (*ProcessMutation) AddCredentialIDs ¶
func (m *ProcessMutation) AddCredentialIDs(ids ...uuid.UUID)
AddCredentialIDs adds the "credentials" edge to the Credential entity by ids.
func (*ProcessMutation) AddExpiration ¶
func (m *ProcessMutation) AddExpiration(i int)
AddExpiration adds i to the "expiration" field.
func (*ProcessMutation) AddField ¶
func (m *ProcessMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*ProcessMutation) AddTaskIDs ¶
func (m *ProcessMutation) AddTaskIDs(ids ...uuid.UUID)
AddTaskIDs adds the "tasks" edge to the Task entity by ids.
func (*ProcessMutation) AddTimeout ¶
func (m *ProcessMutation) AddTimeout(i int)
AddTimeout adds i to the "timeout" field.
func (*ProcessMutation) AddedEdges ¶
func (m *ProcessMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ProcessMutation) AddedExpiration ¶
func (m *ProcessMutation) AddedExpiration() (r int, exists bool)
AddedExpiration returns the value that was added to the "expiration" field in this mutation.
func (*ProcessMutation) AddedField ¶
func (m *ProcessMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*ProcessMutation) AddedFields ¶
func (m *ProcessMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*ProcessMutation) AddedIDs ¶
func (m *ProcessMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*ProcessMutation) AddedTimeout ¶
func (m *ProcessMutation) AddedTimeout() (r int, exists bool)
AddedTimeout returns the value that was added to the "timeout" field in this mutation.
func (*ProcessMutation) AmiID ¶
func (m *ProcessMutation) AmiID() (r string, exists bool)
AmiID returns the value of the "ami_id" field in the mutation.
func (*ProcessMutation) ClearCredentials ¶
func (m *ProcessMutation) ClearCredentials()
ClearCredentials clears the "credentials" edge to the Credential entity.
func (*ProcessMutation) ClearEdge ¶
func (m *ProcessMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*ProcessMutation) ClearField ¶
func (m *ProcessMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*ProcessMutation) ClearName ¶
func (m *ProcessMutation) ClearName()
ClearName clears the value of the "name" field.
func (*ProcessMutation) ClearStack ¶
func (m *ProcessMutation) ClearStack()
ClearStack clears the "stack" edge to the Stack entity.
func (*ProcessMutation) ClearTasks ¶
func (m *ProcessMutation) ClearTasks()
ClearTasks clears the "tasks" edge to the Task entity.
func (*ProcessMutation) ClearTimeout ¶
func (m *ProcessMutation) ClearTimeout()
ClearTimeout clears the value of the "timeout" field.
func (*ProcessMutation) ClearedEdges ¶
func (m *ProcessMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ProcessMutation) ClearedFields ¶
func (m *ProcessMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ProcessMutation) Client ¶
func (m ProcessMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*ProcessMutation) CreatedAt ¶
func (m *ProcessMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*ProcessMutation) CredentialsCleared ¶
func (m *ProcessMutation) CredentialsCleared() bool
CredentialsCleared reports if the "credentials" edge to the Credential entity was cleared.
func (*ProcessMutation) CredentialsIDs ¶
func (m *ProcessMutation) CredentialsIDs() (ids []uuid.UUID)
CredentialsIDs returns the "credentials" edge IDs in the mutation.
func (*ProcessMutation) EdgeCleared ¶
func (m *ProcessMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*ProcessMutation) Expiration ¶
func (m *ProcessMutation) Expiration() (r int, exists bool)
Expiration returns the value of the "expiration" field in the mutation.
func (*ProcessMutation) Field ¶
func (m *ProcessMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*ProcessMutation) FieldCleared ¶
func (m *ProcessMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*ProcessMutation) Fields ¶
func (m *ProcessMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*ProcessMutation) ID ¶
func (m *ProcessMutation) ID() (id string, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*ProcessMutation) InstanceType ¶
func (m *ProcessMutation) InstanceType() (r string, exists bool)
InstanceType returns the value of the "instance_type" field in the mutation.
func (*ProcessMutation) Name ¶
func (m *ProcessMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*ProcessMutation) NameCleared ¶
func (m *ProcessMutation) NameCleared() bool
NameCleared returns if the "name" field was cleared in this mutation.
func (*ProcessMutation) OldAmiID ¶
func (m *ProcessMutation) OldAmiID(ctx context.Context) (v string, err error)
OldAmiID returns the old "ami_id" field's value of the Process entity. If the Process object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProcessMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Process entity. If the Process object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProcessMutation) OldExpiration ¶
func (m *ProcessMutation) OldExpiration(ctx context.Context) (v int, err error)
OldExpiration returns the old "expiration" field's value of the Process entity. If the Process object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProcessMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*ProcessMutation) OldInstanceType ¶
func (m *ProcessMutation) OldInstanceType(ctx context.Context) (v string, err error)
OldInstanceType returns the old "instance_type" field's value of the Process entity. If the Process object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProcessMutation) OldName ¶
func (m *ProcessMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Process entity. If the Process object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProcessMutation) OldResourcePrefix ¶
func (m *ProcessMutation) OldResourcePrefix(ctx context.Context) (v string, err error)
OldResourcePrefix returns the old "resource_prefix" field's value of the Process entity. If the Process object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProcessMutation) OldState ¶
OldState returns the old "state" field's value of the Process entity. If the Process object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProcessMutation) OldTimeout ¶
func (m *ProcessMutation) OldTimeout(ctx context.Context) (v int, err error)
OldTimeout returns the old "timeout" field's value of the Process entity. If the Process object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProcessMutation) OldToken ¶
func (m *ProcessMutation) OldToken(ctx context.Context) (v string, err error)
OldToken returns the old "token" field's value of the Process entity. If the Process object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProcessMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Process entity. If the Process object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProcessMutation) RemoveCredentialIDs ¶
func (m *ProcessMutation) RemoveCredentialIDs(ids ...uuid.UUID)
RemoveCredentialIDs removes the "credentials" edge to the Credential entity by IDs.
func (*ProcessMutation) RemoveTaskIDs ¶
func (m *ProcessMutation) RemoveTaskIDs(ids ...uuid.UUID)
RemoveTaskIDs removes the "tasks" edge to the Task entity by IDs.
func (*ProcessMutation) RemovedCredentialsIDs ¶
func (m *ProcessMutation) RemovedCredentialsIDs() (ids []uuid.UUID)
RemovedCredentials returns the removed IDs of the "credentials" edge to the Credential entity.
func (*ProcessMutation) RemovedEdges ¶
func (m *ProcessMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ProcessMutation) RemovedIDs ¶
func (m *ProcessMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*ProcessMutation) RemovedTasksIDs ¶
func (m *ProcessMutation) RemovedTasksIDs() (ids []uuid.UUID)
RemovedTasks returns the removed IDs of the "tasks" edge to the Task entity.
func (*ProcessMutation) ResetAmiID ¶
func (m *ProcessMutation) ResetAmiID()
ResetAmiID resets all changes to the "ami_id" field.
func (*ProcessMutation) ResetCreatedAt ¶
func (m *ProcessMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*ProcessMutation) ResetCredentials ¶
func (m *ProcessMutation) ResetCredentials()
ResetCredentials resets all changes to the "credentials" edge.
func (*ProcessMutation) ResetEdge ¶
func (m *ProcessMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*ProcessMutation) ResetExpiration ¶
func (m *ProcessMutation) ResetExpiration()
ResetExpiration resets all changes to the "expiration" field.
func (*ProcessMutation) ResetField ¶
func (m *ProcessMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*ProcessMutation) ResetInstanceType ¶
func (m *ProcessMutation) ResetInstanceType()
ResetInstanceType resets all changes to the "instance_type" field.
func (*ProcessMutation) ResetName ¶
func (m *ProcessMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*ProcessMutation) ResetResourcePrefix ¶
func (m *ProcessMutation) ResetResourcePrefix()
ResetResourcePrefix resets all changes to the "resource_prefix" field.
func (*ProcessMutation) ResetStack ¶
func (m *ProcessMutation) ResetStack()
ResetStack resets all changes to the "stack" edge.
func (*ProcessMutation) ResetState ¶
func (m *ProcessMutation) ResetState()
ResetState resets all changes to the "state" field.
func (*ProcessMutation) ResetTasks ¶
func (m *ProcessMutation) ResetTasks()
ResetTasks resets all changes to the "tasks" edge.
func (*ProcessMutation) ResetTimeout ¶
func (m *ProcessMutation) ResetTimeout()
ResetTimeout resets all changes to the "timeout" field.
func (*ProcessMutation) ResetToken ¶
func (m *ProcessMutation) ResetToken()
ResetToken resets all changes to the "token" field.
func (*ProcessMutation) ResetUpdatedAt ¶
func (m *ProcessMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*ProcessMutation) ResourcePrefix ¶
func (m *ProcessMutation) ResourcePrefix() (r string, exists bool)
ResourcePrefix returns the value of the "resource_prefix" field in the mutation.
func (*ProcessMutation) SetAmiID ¶
func (m *ProcessMutation) SetAmiID(s string)
SetAmiID sets the "ami_id" field.
func (*ProcessMutation) SetCreatedAt ¶
func (m *ProcessMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*ProcessMutation) SetExpiration ¶
func (m *ProcessMutation) SetExpiration(i int)
SetExpiration sets the "expiration" field.
func (*ProcessMutation) SetField ¶
func (m *ProcessMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*ProcessMutation) SetID ¶
func (m *ProcessMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Process entities.
func (*ProcessMutation) SetInstanceType ¶
func (m *ProcessMutation) SetInstanceType(s string)
SetInstanceType sets the "instance_type" field.
func (*ProcessMutation) SetName ¶
func (m *ProcessMutation) SetName(s string)
SetName sets the "name" field.
func (*ProcessMutation) SetResourcePrefix ¶
func (m *ProcessMutation) SetResourcePrefix(s string)
SetResourcePrefix sets the "resource_prefix" field.
func (*ProcessMutation) SetStackID ¶
func (m *ProcessMutation) SetStackID(id string)
SetStackID sets the "stack" edge to the Stack entity by id.
func (*ProcessMutation) SetState ¶
func (m *ProcessMutation) SetState(pr process.State)
SetState sets the "state" field.
func (*ProcessMutation) SetTimeout ¶
func (m *ProcessMutation) SetTimeout(i int)
SetTimeout sets the "timeout" field.
func (*ProcessMutation) SetToken ¶
func (m *ProcessMutation) SetToken(s string)
SetToken sets the "token" field.
func (*ProcessMutation) SetUpdatedAt ¶
func (m *ProcessMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*ProcessMutation) StackCleared ¶
func (m *ProcessMutation) StackCleared() bool
StackCleared reports if the "stack" edge to the Stack entity was cleared.
func (*ProcessMutation) StackID ¶
func (m *ProcessMutation) StackID() (id string, exists bool)
StackID returns the "stack" edge ID in the mutation.
func (*ProcessMutation) StackIDs ¶
func (m *ProcessMutation) StackIDs() (ids []string)
StackIDs returns the "stack" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use StackID instead. It exists only for internal usage by the builders.
func (*ProcessMutation) State ¶
func (m *ProcessMutation) State() (r process.State, exists bool)
State returns the value of the "state" field in the mutation.
func (*ProcessMutation) TasksCleared ¶
func (m *ProcessMutation) TasksCleared() bool
TasksCleared reports if the "tasks" edge to the Task entity was cleared.
func (*ProcessMutation) TasksIDs ¶
func (m *ProcessMutation) TasksIDs() (ids []uuid.UUID)
TasksIDs returns the "tasks" edge IDs in the mutation.
func (*ProcessMutation) Timeout ¶
func (m *ProcessMutation) Timeout() (r int, exists bool)
Timeout returns the value of the "timeout" field in the mutation.
func (*ProcessMutation) TimeoutCleared ¶
func (m *ProcessMutation) TimeoutCleared() bool
TimeoutCleared returns if the "timeout" field was cleared in this mutation.
func (*ProcessMutation) Token ¶
func (m *ProcessMutation) Token() (r string, exists bool)
Token returns the value of the "token" field in the mutation.
func (ProcessMutation) Tx ¶
func (m ProcessMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ProcessMutation) Type ¶
func (m *ProcessMutation) Type() string
Type returns the node type of this mutation (Process).
func (*ProcessMutation) UpdatedAt ¶
func (m *ProcessMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*ProcessMutation) Where ¶
func (m *ProcessMutation) Where(ps ...predicate.Process)
Where appends a list predicates to the ProcessMutation builder.
type ProcessQuery ¶
type ProcessQuery struct {
// contains filtered or unexported fields
}
ProcessQuery is the builder for querying Process entities.
func (*ProcessQuery) All ¶
func (pq *ProcessQuery) All(ctx context.Context) ([]*Process, error)
All executes the query and returns a list of Processes.
func (*ProcessQuery) AllX ¶
func (pq *ProcessQuery) AllX(ctx context.Context) []*Process
AllX is like All, but panics if an error occurs.
func (*ProcessQuery) Clone ¶
func (pq *ProcessQuery) Clone() *ProcessQuery
Clone returns a duplicate of the ProcessQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ProcessQuery) Count ¶
func (pq *ProcessQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ProcessQuery) CountX ¶
func (pq *ProcessQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ProcessQuery) Exist ¶
func (pq *ProcessQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ProcessQuery) ExistX ¶
func (pq *ProcessQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ProcessQuery) First ¶
func (pq *ProcessQuery) First(ctx context.Context) (*Process, error)
First returns the first Process entity from the query. Returns a *NotFoundError when no Process was found.
func (*ProcessQuery) FirstID ¶
func (pq *ProcessQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first Process ID from the query. Returns a *NotFoundError when no Process ID was found.
func (*ProcessQuery) FirstIDX ¶
func (pq *ProcessQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*ProcessQuery) FirstX ¶
func (pq *ProcessQuery) FirstX(ctx context.Context) *Process
FirstX is like First, but panics if an error occurs.
func (*ProcessQuery) GroupBy ¶
func (pq *ProcessQuery) GroupBy(field string, fields ...string) *ProcessGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.Process.Query(). GroupBy(process.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*ProcessQuery) IDs ¶
func (pq *ProcessQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of Process IDs.
func (*ProcessQuery) IDsX ¶
func (pq *ProcessQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*ProcessQuery) Limit ¶
func (pq *ProcessQuery) Limit(limit int) *ProcessQuery
Limit adds a limit step to the query.
func (*ProcessQuery) Offset ¶
func (pq *ProcessQuery) Offset(offset int) *ProcessQuery
Offset adds an offset step to the query.
func (*ProcessQuery) Only ¶
func (pq *ProcessQuery) Only(ctx context.Context) (*Process, error)
Only returns a single Process entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Process entity is not found. Returns a *NotFoundError when no Process entities are found.
func (*ProcessQuery) OnlyID ¶
func (pq *ProcessQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only Process ID in the query. Returns a *NotSingularError when exactly one Process ID is not found. Returns a *NotFoundError when no entities are found.
func (*ProcessQuery) OnlyIDX ¶
func (pq *ProcessQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ProcessQuery) OnlyX ¶
func (pq *ProcessQuery) OnlyX(ctx context.Context) *Process
OnlyX is like Only, but panics if an error occurs.
func (*ProcessQuery) Order ¶
func (pq *ProcessQuery) Order(o ...OrderFunc) *ProcessQuery
Order adds an order step to the query.
func (*ProcessQuery) QueryCredentials ¶
func (pq *ProcessQuery) QueryCredentials() *CredentialQuery
QueryCredentials chains the current query on the "credentials" edge.
func (*ProcessQuery) QueryStack ¶
func (pq *ProcessQuery) QueryStack() *StackQuery
QueryStack chains the current query on the "stack" edge.
func (*ProcessQuery) QueryTasks ¶
func (pq *ProcessQuery) QueryTasks() *TaskQuery
QueryTasks chains the current query on the "tasks" edge.
func (*ProcessQuery) Select ¶
func (pq *ProcessQuery) Select(fields ...string) *ProcessSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` } client.Process.Query(). Select(process.FieldCreatedAt). Scan(ctx, &v)
func (*ProcessQuery) Unique ¶
func (pq *ProcessQuery) Unique(unique bool) *ProcessQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*ProcessQuery) Where ¶
func (pq *ProcessQuery) Where(ps ...predicate.Process) *ProcessQuery
Where adds a new predicate for the ProcessQuery builder.
func (*ProcessQuery) WithCredentials ¶
func (pq *ProcessQuery) WithCredentials(opts ...func(*CredentialQuery)) *ProcessQuery
WithCredentials tells the query-builder to eager-load the nodes that are connected to the "credentials" edge. The optional arguments are used to configure the query builder of the edge.
func (*ProcessQuery) WithStack ¶
func (pq *ProcessQuery) WithStack(opts ...func(*StackQuery)) *ProcessQuery
WithStack tells the query-builder to eager-load the nodes that are connected to the "stack" edge. The optional arguments are used to configure the query builder of the edge.
func (*ProcessQuery) WithTasks ¶
func (pq *ProcessQuery) WithTasks(opts ...func(*TaskQuery)) *ProcessQuery
WithTasks tells the query-builder to eager-load the nodes that are connected to the "tasks" edge. The optional arguments are used to configure the query builder of the edge.
type ProcessSelect ¶
type ProcessSelect struct { *ProcessQuery // contains filtered or unexported fields }
ProcessSelect is the builder for selecting fields of Process entities.
func (*ProcessSelect) Bool ¶
func (ps *ProcessSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProcessSelect) BoolX ¶
func (ps *ProcessSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*ProcessSelect) Bools ¶
func (ps *ProcessSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ProcessSelect) BoolsX ¶
func (ps *ProcessSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ProcessSelect) Float64 ¶
func (ps *ProcessSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProcessSelect) Float64X ¶
func (ps *ProcessSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*ProcessSelect) Float64s ¶
func (ps *ProcessSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProcessSelect) Float64sX ¶
func (ps *ProcessSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ProcessSelect) Int ¶
func (ps *ProcessSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProcessSelect) IntX ¶
func (ps *ProcessSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*ProcessSelect) Ints ¶
func (ps *ProcessSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ProcessSelect) IntsX ¶
func (ps *ProcessSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ProcessSelect) Scan ¶
func (ps *ProcessSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*ProcessSelect) ScanX ¶
func (ps *ProcessSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*ProcessSelect) String ¶
func (ps *ProcessSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ProcessSelect) StringX ¶
func (ps *ProcessSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type ProcessUpdate ¶
type ProcessUpdate struct {
// contains filtered or unexported fields
}
ProcessUpdate is the builder for updating Process entities.
func (*ProcessUpdate) AddCredentialIDs ¶
func (pu *ProcessUpdate) AddCredentialIDs(ids ...uuid.UUID) *ProcessUpdate
AddCredentialIDs adds the "credentials" edge to the Credential entity by IDs.
func (*ProcessUpdate) AddCredentials ¶
func (pu *ProcessUpdate) AddCredentials(c ...*Credential) *ProcessUpdate
AddCredentials adds the "credentials" edges to the Credential entity.
func (*ProcessUpdate) AddExpiration ¶
func (pu *ProcessUpdate) AddExpiration(i int) *ProcessUpdate
AddExpiration adds i to the "expiration" field.
func (*ProcessUpdate) AddTaskIDs ¶
func (pu *ProcessUpdate) AddTaskIDs(ids ...uuid.UUID) *ProcessUpdate
AddTaskIDs adds the "tasks" edge to the Task entity by IDs.
func (*ProcessUpdate) AddTasks ¶
func (pu *ProcessUpdate) AddTasks(t ...*Task) *ProcessUpdate
AddTasks adds the "tasks" edges to the Task entity.
func (*ProcessUpdate) AddTimeout ¶
func (pu *ProcessUpdate) AddTimeout(i int) *ProcessUpdate
AddTimeout adds i to the "timeout" field.
func (*ProcessUpdate) ClearCredentials ¶
func (pu *ProcessUpdate) ClearCredentials() *ProcessUpdate
ClearCredentials clears all "credentials" edges to the Credential entity.
func (*ProcessUpdate) ClearName ¶
func (pu *ProcessUpdate) ClearName() *ProcessUpdate
ClearName clears the value of the "name" field.
func (*ProcessUpdate) ClearStack ¶
func (pu *ProcessUpdate) ClearStack() *ProcessUpdate
ClearStack clears the "stack" edge to the Stack entity.
func (*ProcessUpdate) ClearTasks ¶
func (pu *ProcessUpdate) ClearTasks() *ProcessUpdate
ClearTasks clears all "tasks" edges to the Task entity.
func (*ProcessUpdate) ClearTimeout ¶
func (pu *ProcessUpdate) ClearTimeout() *ProcessUpdate
ClearTimeout clears the value of the "timeout" field.
func (*ProcessUpdate) Exec ¶
func (pu *ProcessUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ProcessUpdate) ExecX ¶
func (pu *ProcessUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProcessUpdate) Mutation ¶
func (pu *ProcessUpdate) Mutation() *ProcessMutation
Mutation returns the ProcessMutation object of the builder.
func (*ProcessUpdate) RemoveCredentialIDs ¶
func (pu *ProcessUpdate) RemoveCredentialIDs(ids ...uuid.UUID) *ProcessUpdate
RemoveCredentialIDs removes the "credentials" edge to Credential entities by IDs.
func (*ProcessUpdate) RemoveCredentials ¶
func (pu *ProcessUpdate) RemoveCredentials(c ...*Credential) *ProcessUpdate
RemoveCredentials removes "credentials" edges to Credential entities.
func (*ProcessUpdate) RemoveTaskIDs ¶
func (pu *ProcessUpdate) RemoveTaskIDs(ids ...uuid.UUID) *ProcessUpdate
RemoveTaskIDs removes the "tasks" edge to Task entities by IDs.
func (*ProcessUpdate) RemoveTasks ¶
func (pu *ProcessUpdate) RemoveTasks(t ...*Task) *ProcessUpdate
RemoveTasks removes "tasks" edges to Task entities.
func (*ProcessUpdate) Save ¶
func (pu *ProcessUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*ProcessUpdate) SaveX ¶
func (pu *ProcessUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ProcessUpdate) SetAmiID ¶
func (pu *ProcessUpdate) SetAmiID(s string) *ProcessUpdate
SetAmiID sets the "ami_id" field.
func (*ProcessUpdate) SetCreatedAt ¶
func (pu *ProcessUpdate) SetCreatedAt(t time.Time) *ProcessUpdate
SetCreatedAt sets the "created_at" field.
func (*ProcessUpdate) SetExpiration ¶
func (pu *ProcessUpdate) SetExpiration(i int) *ProcessUpdate
SetExpiration sets the "expiration" field.
func (*ProcessUpdate) SetInstanceType ¶
func (pu *ProcessUpdate) SetInstanceType(s string) *ProcessUpdate
SetInstanceType sets the "instance_type" field.
func (*ProcessUpdate) SetName ¶
func (pu *ProcessUpdate) SetName(s string) *ProcessUpdate
SetName sets the "name" field.
func (*ProcessUpdate) SetNillableCreatedAt ¶
func (pu *ProcessUpdate) SetNillableCreatedAt(t *time.Time) *ProcessUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*ProcessUpdate) SetNillableName ¶
func (pu *ProcessUpdate) SetNillableName(s *string) *ProcessUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*ProcessUpdate) SetNillableStackID ¶
func (pu *ProcessUpdate) SetNillableStackID(id *string) *ProcessUpdate
SetNillableStackID sets the "stack" edge to the Stack entity by ID if the given value is not nil.
func (*ProcessUpdate) SetNillableState ¶
func (pu *ProcessUpdate) SetNillableState(pr *process.State) *ProcessUpdate
SetNillableState sets the "state" field if the given value is not nil.
func (*ProcessUpdate) SetNillableTimeout ¶
func (pu *ProcessUpdate) SetNillableTimeout(i *int) *ProcessUpdate
SetNillableTimeout sets the "timeout" field if the given value is not nil.
func (*ProcessUpdate) SetResourcePrefix ¶
func (pu *ProcessUpdate) SetResourcePrefix(s string) *ProcessUpdate
SetResourcePrefix sets the "resource_prefix" field.
func (*ProcessUpdate) SetStack ¶
func (pu *ProcessUpdate) SetStack(s *Stack) *ProcessUpdate
SetStack sets the "stack" edge to the Stack entity.
func (*ProcessUpdate) SetStackID ¶
func (pu *ProcessUpdate) SetStackID(id string) *ProcessUpdate
SetStackID sets the "stack" edge to the Stack entity by ID.
func (*ProcessUpdate) SetState ¶
func (pu *ProcessUpdate) SetState(pr process.State) *ProcessUpdate
SetState sets the "state" field.
func (*ProcessUpdate) SetTimeout ¶
func (pu *ProcessUpdate) SetTimeout(i int) *ProcessUpdate
SetTimeout sets the "timeout" field.
func (*ProcessUpdate) SetToken ¶
func (pu *ProcessUpdate) SetToken(s string) *ProcessUpdate
SetToken sets the "token" field.
func (*ProcessUpdate) SetUpdatedAt ¶
func (pu *ProcessUpdate) SetUpdatedAt(t time.Time) *ProcessUpdate
SetUpdatedAt sets the "updated_at" field.
func (*ProcessUpdate) Where ¶
func (pu *ProcessUpdate) Where(ps ...predicate.Process) *ProcessUpdate
Where appends a list predicates to the ProcessUpdate builder.
type ProcessUpdateOne ¶
type ProcessUpdateOne struct {
// contains filtered or unexported fields
}
ProcessUpdateOne is the builder for updating a single Process entity.
func (*ProcessUpdateOne) AddCredentialIDs ¶
func (puo *ProcessUpdateOne) AddCredentialIDs(ids ...uuid.UUID) *ProcessUpdateOne
AddCredentialIDs adds the "credentials" edge to the Credential entity by IDs.
func (*ProcessUpdateOne) AddCredentials ¶
func (puo *ProcessUpdateOne) AddCredentials(c ...*Credential) *ProcessUpdateOne
AddCredentials adds the "credentials" edges to the Credential entity.
func (*ProcessUpdateOne) AddExpiration ¶
func (puo *ProcessUpdateOne) AddExpiration(i int) *ProcessUpdateOne
AddExpiration adds i to the "expiration" field.
func (*ProcessUpdateOne) AddTaskIDs ¶
func (puo *ProcessUpdateOne) AddTaskIDs(ids ...uuid.UUID) *ProcessUpdateOne
AddTaskIDs adds the "tasks" edge to the Task entity by IDs.
func (*ProcessUpdateOne) AddTasks ¶
func (puo *ProcessUpdateOne) AddTasks(t ...*Task) *ProcessUpdateOne
AddTasks adds the "tasks" edges to the Task entity.
func (*ProcessUpdateOne) AddTimeout ¶
func (puo *ProcessUpdateOne) AddTimeout(i int) *ProcessUpdateOne
AddTimeout adds i to the "timeout" field.
func (*ProcessUpdateOne) ClearCredentials ¶
func (puo *ProcessUpdateOne) ClearCredentials() *ProcessUpdateOne
ClearCredentials clears all "credentials" edges to the Credential entity.
func (*ProcessUpdateOne) ClearName ¶
func (puo *ProcessUpdateOne) ClearName() *ProcessUpdateOne
ClearName clears the value of the "name" field.
func (*ProcessUpdateOne) ClearStack ¶
func (puo *ProcessUpdateOne) ClearStack() *ProcessUpdateOne
ClearStack clears the "stack" edge to the Stack entity.
func (*ProcessUpdateOne) ClearTasks ¶
func (puo *ProcessUpdateOne) ClearTasks() *ProcessUpdateOne
ClearTasks clears all "tasks" edges to the Task entity.
func (*ProcessUpdateOne) ClearTimeout ¶
func (puo *ProcessUpdateOne) ClearTimeout() *ProcessUpdateOne
ClearTimeout clears the value of the "timeout" field.
func (*ProcessUpdateOne) Exec ¶
func (puo *ProcessUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ProcessUpdateOne) ExecX ¶
func (puo *ProcessUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProcessUpdateOne) Mutation ¶
func (puo *ProcessUpdateOne) Mutation() *ProcessMutation
Mutation returns the ProcessMutation object of the builder.
func (*ProcessUpdateOne) RemoveCredentialIDs ¶
func (puo *ProcessUpdateOne) RemoveCredentialIDs(ids ...uuid.UUID) *ProcessUpdateOne
RemoveCredentialIDs removes the "credentials" edge to Credential entities by IDs.
func (*ProcessUpdateOne) RemoveCredentials ¶
func (puo *ProcessUpdateOne) RemoveCredentials(c ...*Credential) *ProcessUpdateOne
RemoveCredentials removes "credentials" edges to Credential entities.
func (*ProcessUpdateOne) RemoveTaskIDs ¶
func (puo *ProcessUpdateOne) RemoveTaskIDs(ids ...uuid.UUID) *ProcessUpdateOne
RemoveTaskIDs removes the "tasks" edge to Task entities by IDs.
func (*ProcessUpdateOne) RemoveTasks ¶
func (puo *ProcessUpdateOne) RemoveTasks(t ...*Task) *ProcessUpdateOne
RemoveTasks removes "tasks" edges to Task entities.
func (*ProcessUpdateOne) Save ¶
func (puo *ProcessUpdateOne) Save(ctx context.Context) (*Process, error)
Save executes the query and returns the updated Process entity.
func (*ProcessUpdateOne) SaveX ¶
func (puo *ProcessUpdateOne) SaveX(ctx context.Context) *Process
SaveX is like Save, but panics if an error occurs.
func (*ProcessUpdateOne) Select ¶
func (puo *ProcessUpdateOne) Select(field string, fields ...string) *ProcessUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*ProcessUpdateOne) SetAmiID ¶
func (puo *ProcessUpdateOne) SetAmiID(s string) *ProcessUpdateOne
SetAmiID sets the "ami_id" field.
func (*ProcessUpdateOne) SetCreatedAt ¶
func (puo *ProcessUpdateOne) SetCreatedAt(t time.Time) *ProcessUpdateOne
SetCreatedAt sets the "created_at" field.
func (*ProcessUpdateOne) SetExpiration ¶
func (puo *ProcessUpdateOne) SetExpiration(i int) *ProcessUpdateOne
SetExpiration sets the "expiration" field.
func (*ProcessUpdateOne) SetInstanceType ¶
func (puo *ProcessUpdateOne) SetInstanceType(s string) *ProcessUpdateOne
SetInstanceType sets the "instance_type" field.
func (*ProcessUpdateOne) SetName ¶
func (puo *ProcessUpdateOne) SetName(s string) *ProcessUpdateOne
SetName sets the "name" field.
func (*ProcessUpdateOne) SetNillableCreatedAt ¶
func (puo *ProcessUpdateOne) SetNillableCreatedAt(t *time.Time) *ProcessUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*ProcessUpdateOne) SetNillableName ¶
func (puo *ProcessUpdateOne) SetNillableName(s *string) *ProcessUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*ProcessUpdateOne) SetNillableStackID ¶
func (puo *ProcessUpdateOne) SetNillableStackID(id *string) *ProcessUpdateOne
SetNillableStackID sets the "stack" edge to the Stack entity by ID if the given value is not nil.
func (*ProcessUpdateOne) SetNillableState ¶
func (puo *ProcessUpdateOne) SetNillableState(pr *process.State) *ProcessUpdateOne
SetNillableState sets the "state" field if the given value is not nil.
func (*ProcessUpdateOne) SetNillableTimeout ¶
func (puo *ProcessUpdateOne) SetNillableTimeout(i *int) *ProcessUpdateOne
SetNillableTimeout sets the "timeout" field if the given value is not nil.
func (*ProcessUpdateOne) SetResourcePrefix ¶
func (puo *ProcessUpdateOne) SetResourcePrefix(s string) *ProcessUpdateOne
SetResourcePrefix sets the "resource_prefix" field.
func (*ProcessUpdateOne) SetStack ¶
func (puo *ProcessUpdateOne) SetStack(s *Stack) *ProcessUpdateOne
SetStack sets the "stack" edge to the Stack entity.
func (*ProcessUpdateOne) SetStackID ¶
func (puo *ProcessUpdateOne) SetStackID(id string) *ProcessUpdateOne
SetStackID sets the "stack" edge to the Stack entity by ID.
func (*ProcessUpdateOne) SetState ¶
func (puo *ProcessUpdateOne) SetState(pr process.State) *ProcessUpdateOne
SetState sets the "state" field.
func (*ProcessUpdateOne) SetTimeout ¶
func (puo *ProcessUpdateOne) SetTimeout(i int) *ProcessUpdateOne
SetTimeout sets the "timeout" field.
func (*ProcessUpdateOne) SetToken ¶
func (puo *ProcessUpdateOne) SetToken(s string) *ProcessUpdateOne
SetToken sets the "token" field.
func (*ProcessUpdateOne) SetUpdatedAt ¶
func (puo *ProcessUpdateOne) SetUpdatedAt(t time.Time) *ProcessUpdateOne
SetUpdatedAt sets the "updated_at" field.
type Provider ¶
type Provider struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt time.Time `json:"updated_at,omitempty"` // Hostname holds the value of the "hostname" field. Hostname string `json:"hostname,omitempty"` // Token holds the value of the "token" field. Token string `json:"-"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the ProviderQuery when eager-loading is set. Edges ProviderEdges `json:"edges"` // contains filtered or unexported fields }
Provider is the model entity for the Provider schema.
func (*Provider) QueryDeployment ¶
func (pr *Provider) QueryDeployment() *DeploymentQuery
QueryDeployment queries the "deployment" edge of the Provider entity.
func (*Provider) Unwrap ¶
Unwrap unwraps the Provider entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Provider) Update ¶
func (pr *Provider) Update() *ProviderUpdateOne
Update returns a builder for updating this Provider. Note that you need to call Provider.Unwrap() before calling this method if this Provider was returned from a transaction, and the transaction was committed or rolled back.
type ProviderClient ¶
type ProviderClient struct {
// contains filtered or unexported fields
}
ProviderClient is a client for the Provider schema.
func NewProviderClient ¶
func NewProviderClient(c config) *ProviderClient
NewProviderClient returns a client for the Provider from the given config.
func (*ProviderClient) Create ¶
func (c *ProviderClient) Create() *ProviderCreate
Create returns a create builder for Provider.
func (*ProviderClient) CreateBulk ¶
func (c *ProviderClient) CreateBulk(builders ...*ProviderCreate) *ProviderCreateBulk
CreateBulk returns a builder for creating a bulk of Provider entities.
func (*ProviderClient) Delete ¶
func (c *ProviderClient) Delete() *ProviderDelete
Delete returns a delete builder for Provider.
func (*ProviderClient) DeleteOne ¶
func (c *ProviderClient) DeleteOne(pr *Provider) *ProviderDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*ProviderClient) DeleteOneID ¶
func (c *ProviderClient) DeleteOneID(id uuid.UUID) *ProviderDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*ProviderClient) Hooks ¶
func (c *ProviderClient) Hooks() []Hook
Hooks returns the client hooks.
func (*ProviderClient) Query ¶
func (c *ProviderClient) Query() *ProviderQuery
Query returns a query builder for Provider.
func (*ProviderClient) QueryDeployment ¶
func (c *ProviderClient) QueryDeployment(pr *Provider) *DeploymentQuery
QueryDeployment queries the deployment edge of a Provider.
func (*ProviderClient) Update ¶
func (c *ProviderClient) Update() *ProviderUpdate
Update returns an update builder for Provider.
func (*ProviderClient) UpdateOne ¶
func (c *ProviderClient) UpdateOne(pr *Provider) *ProviderUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ProviderClient) UpdateOneID ¶
func (c *ProviderClient) UpdateOneID(id uuid.UUID) *ProviderUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ProviderClient) Use ¶
func (c *ProviderClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `provider.Hooks(f(g(h())))`.
type ProviderCreate ¶
type ProviderCreate struct {
// contains filtered or unexported fields
}
ProviderCreate is the builder for creating a Provider entity.
func (*ProviderCreate) AddDeployment ¶
func (pc *ProviderCreate) AddDeployment(d ...*Deployment) *ProviderCreate
AddDeployment adds the "deployment" edges to the Deployment entity.
func (*ProviderCreate) AddDeploymentIDs ¶
func (pc *ProviderCreate) AddDeploymentIDs(ids ...uuid.UUID) *ProviderCreate
AddDeploymentIDs adds the "deployment" edge to the Deployment entity by IDs.
func (*ProviderCreate) Exec ¶
func (pc *ProviderCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*ProviderCreate) ExecX ¶
func (pc *ProviderCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProviderCreate) Mutation ¶
func (pc *ProviderCreate) Mutation() *ProviderMutation
Mutation returns the ProviderMutation object of the builder.
func (*ProviderCreate) Save ¶
func (pc *ProviderCreate) Save(ctx context.Context) (*Provider, error)
Save creates the Provider in the database.
func (*ProviderCreate) SaveX ¶
func (pc *ProviderCreate) SaveX(ctx context.Context) *Provider
SaveX calls Save and panics if Save returns an error.
func (*ProviderCreate) SetCreatedAt ¶
func (pc *ProviderCreate) SetCreatedAt(t time.Time) *ProviderCreate
SetCreatedAt sets the "created_at" field.
func (*ProviderCreate) SetHostname ¶
func (pc *ProviderCreate) SetHostname(s string) *ProviderCreate
SetHostname sets the "hostname" field.
func (*ProviderCreate) SetID ¶
func (pc *ProviderCreate) SetID(u uuid.UUID) *ProviderCreate
SetID sets the "id" field.
func (*ProviderCreate) SetNillableCreatedAt ¶
func (pc *ProviderCreate) SetNillableCreatedAt(t *time.Time) *ProviderCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*ProviderCreate) SetNillableUpdatedAt ¶
func (pc *ProviderCreate) SetNillableUpdatedAt(t *time.Time) *ProviderCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*ProviderCreate) SetToken ¶
func (pc *ProviderCreate) SetToken(s string) *ProviderCreate
SetToken sets the "token" field.
func (*ProviderCreate) SetUpdatedAt ¶
func (pc *ProviderCreate) SetUpdatedAt(t time.Time) *ProviderCreate
SetUpdatedAt sets the "updated_at" field.
type ProviderCreateBulk ¶
type ProviderCreateBulk struct {
// contains filtered or unexported fields
}
ProviderCreateBulk is the builder for creating many Provider entities in bulk.
func (*ProviderCreateBulk) Exec ¶
func (pcb *ProviderCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ProviderCreateBulk) ExecX ¶
func (pcb *ProviderCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type ProviderDelete ¶
type ProviderDelete struct {
// contains filtered or unexported fields
}
ProviderDelete is the builder for deleting a Provider entity.
func (*ProviderDelete) Exec ¶
func (pd *ProviderDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ProviderDelete) ExecX ¶
func (pd *ProviderDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ProviderDelete) Where ¶
func (pd *ProviderDelete) Where(ps ...predicate.Provider) *ProviderDelete
Where appends a list predicates to the ProviderDelete builder.
type ProviderDeleteOne ¶
type ProviderDeleteOne struct {
// contains filtered or unexported fields
}
ProviderDeleteOne is the builder for deleting a single Provider entity.
func (*ProviderDeleteOne) Exec ¶
func (pdo *ProviderDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ProviderDeleteOne) ExecX ¶
func (pdo *ProviderDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type ProviderEdges ¶
type ProviderEdges struct { // Deployment holds the value of the deployment edge. Deployment []*Deployment `json:"deployment,omitempty"` // contains filtered or unexported fields }
ProviderEdges holds the relations/edges for other nodes in the graph.
func (ProviderEdges) DeploymentOrErr ¶
func (e ProviderEdges) DeploymentOrErr() ([]*Deployment, error)
DeploymentOrErr returns the Deployment value or an error if the edge was not loaded in eager-loading.
type ProviderGroupBy ¶
type ProviderGroupBy struct {
// contains filtered or unexported fields
}
ProviderGroupBy is the group-by builder for Provider entities.
func (*ProviderGroupBy) Aggregate ¶
func (pgb *ProviderGroupBy) Aggregate(fns ...AggregateFunc) *ProviderGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ProviderGroupBy) Bool ¶
func (pgb *ProviderGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*ProviderGroupBy) BoolX ¶
func (pgb *ProviderGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*ProviderGroupBy) Bools ¶
func (pgb *ProviderGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*ProviderGroupBy) BoolsX ¶
func (pgb *ProviderGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ProviderGroupBy) Float64 ¶
func (pgb *ProviderGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*ProviderGroupBy) Float64X ¶
func (pgb *ProviderGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*ProviderGroupBy) Float64s ¶
func (pgb *ProviderGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*ProviderGroupBy) Float64sX ¶
func (pgb *ProviderGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ProviderGroupBy) Int ¶
func (pgb *ProviderGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*ProviderGroupBy) IntX ¶
func (pgb *ProviderGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*ProviderGroupBy) Ints ¶
func (pgb *ProviderGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*ProviderGroupBy) IntsX ¶
func (pgb *ProviderGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ProviderGroupBy) Scan ¶
func (pgb *ProviderGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*ProviderGroupBy) ScanX ¶
func (pgb *ProviderGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*ProviderGroupBy) String ¶
func (pgb *ProviderGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*ProviderGroupBy) StringX ¶
func (pgb *ProviderGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type ProviderMutation ¶
type ProviderMutation struct {
// contains filtered or unexported fields
}
ProviderMutation represents an operation that mutates the Provider nodes in the graph.
func (*ProviderMutation) AddDeploymentIDs ¶
func (m *ProviderMutation) AddDeploymentIDs(ids ...uuid.UUID)
AddDeploymentIDs adds the "deployment" edge to the Deployment entity by ids.
func (*ProviderMutation) AddField ¶
func (m *ProviderMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*ProviderMutation) AddedEdges ¶
func (m *ProviderMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ProviderMutation) AddedField ¶
func (m *ProviderMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*ProviderMutation) AddedFields ¶
func (m *ProviderMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*ProviderMutation) AddedIDs ¶
func (m *ProviderMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*ProviderMutation) ClearDeployment ¶
func (m *ProviderMutation) ClearDeployment()
ClearDeployment clears the "deployment" edge to the Deployment entity.
func (*ProviderMutation) ClearEdge ¶
func (m *ProviderMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*ProviderMutation) ClearField ¶
func (m *ProviderMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*ProviderMutation) ClearedEdges ¶
func (m *ProviderMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ProviderMutation) ClearedFields ¶
func (m *ProviderMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ProviderMutation) Client ¶
func (m ProviderMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*ProviderMutation) CreatedAt ¶
func (m *ProviderMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*ProviderMutation) DeploymentCleared ¶
func (m *ProviderMutation) DeploymentCleared() bool
DeploymentCleared reports if the "deployment" edge to the Deployment entity was cleared.
func (*ProviderMutation) DeploymentIDs ¶
func (m *ProviderMutation) DeploymentIDs() (ids []uuid.UUID)
DeploymentIDs returns the "deployment" edge IDs in the mutation.
func (*ProviderMutation) EdgeCleared ¶
func (m *ProviderMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*ProviderMutation) Field ¶
func (m *ProviderMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*ProviderMutation) FieldCleared ¶
func (m *ProviderMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*ProviderMutation) Fields ¶
func (m *ProviderMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*ProviderMutation) Hostname ¶
func (m *ProviderMutation) Hostname() (r string, exists bool)
Hostname returns the value of the "hostname" field in the mutation.
func (*ProviderMutation) ID ¶
func (m *ProviderMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*ProviderMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Provider entity. If the Provider object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProviderMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*ProviderMutation) OldHostname ¶
func (m *ProviderMutation) OldHostname(ctx context.Context) (v string, err error)
OldHostname returns the old "hostname" field's value of the Provider entity. If the Provider object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProviderMutation) OldToken ¶
func (m *ProviderMutation) OldToken(ctx context.Context) (v string, err error)
OldToken returns the old "token" field's value of the Provider entity. If the Provider object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProviderMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Provider entity. If the Provider object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProviderMutation) RemoveDeploymentIDs ¶
func (m *ProviderMutation) RemoveDeploymentIDs(ids ...uuid.UUID)
RemoveDeploymentIDs removes the "deployment" edge to the Deployment entity by IDs.
func (*ProviderMutation) RemovedDeploymentIDs ¶
func (m *ProviderMutation) RemovedDeploymentIDs() (ids []uuid.UUID)
RemovedDeployment returns the removed IDs of the "deployment" edge to the Deployment entity.
func (*ProviderMutation) RemovedEdges ¶
func (m *ProviderMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ProviderMutation) RemovedIDs ¶
func (m *ProviderMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*ProviderMutation) ResetCreatedAt ¶
func (m *ProviderMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*ProviderMutation) ResetDeployment ¶
func (m *ProviderMutation) ResetDeployment()
ResetDeployment resets all changes to the "deployment" edge.
func (*ProviderMutation) ResetEdge ¶
func (m *ProviderMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*ProviderMutation) ResetField ¶
func (m *ProviderMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*ProviderMutation) ResetHostname ¶
func (m *ProviderMutation) ResetHostname()
ResetHostname resets all changes to the "hostname" field.
func (*ProviderMutation) ResetToken ¶
func (m *ProviderMutation) ResetToken()
ResetToken resets all changes to the "token" field.
func (*ProviderMutation) ResetUpdatedAt ¶
func (m *ProviderMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*ProviderMutation) SetCreatedAt ¶
func (m *ProviderMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*ProviderMutation) SetField ¶
func (m *ProviderMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*ProviderMutation) SetHostname ¶
func (m *ProviderMutation) SetHostname(s string)
SetHostname sets the "hostname" field.
func (*ProviderMutation) SetID ¶
func (m *ProviderMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Provider entities.
func (*ProviderMutation) SetToken ¶
func (m *ProviderMutation) SetToken(s string)
SetToken sets the "token" field.
func (*ProviderMutation) SetUpdatedAt ¶
func (m *ProviderMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*ProviderMutation) Token ¶
func (m *ProviderMutation) Token() (r string, exists bool)
Token returns the value of the "token" field in the mutation.
func (ProviderMutation) Tx ¶
func (m ProviderMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ProviderMutation) Type ¶
func (m *ProviderMutation) Type() string
Type returns the node type of this mutation (Provider).
func (*ProviderMutation) UpdatedAt ¶
func (m *ProviderMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*ProviderMutation) Where ¶
func (m *ProviderMutation) Where(ps ...predicate.Provider)
Where appends a list predicates to the ProviderMutation builder.
type ProviderQuery ¶
type ProviderQuery struct {
// contains filtered or unexported fields
}
ProviderQuery is the builder for querying Provider entities.
func (*ProviderQuery) All ¶
func (pq *ProviderQuery) All(ctx context.Context) ([]*Provider, error)
All executes the query and returns a list of Providers.
func (*ProviderQuery) AllX ¶
func (pq *ProviderQuery) AllX(ctx context.Context) []*Provider
AllX is like All, but panics if an error occurs.
func (*ProviderQuery) Clone ¶
func (pq *ProviderQuery) Clone() *ProviderQuery
Clone returns a duplicate of the ProviderQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ProviderQuery) Count ¶
func (pq *ProviderQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ProviderQuery) CountX ¶
func (pq *ProviderQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ProviderQuery) Exist ¶
func (pq *ProviderQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ProviderQuery) ExistX ¶
func (pq *ProviderQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ProviderQuery) First ¶
func (pq *ProviderQuery) First(ctx context.Context) (*Provider, error)
First returns the first Provider entity from the query. Returns a *NotFoundError when no Provider was found.
func (*ProviderQuery) FirstID ¶
FirstID returns the first Provider ID from the query. Returns a *NotFoundError when no Provider ID was found.
func (*ProviderQuery) FirstIDX ¶
func (pq *ProviderQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*ProviderQuery) FirstX ¶
func (pq *ProviderQuery) FirstX(ctx context.Context) *Provider
FirstX is like First, but panics if an error occurs.
func (*ProviderQuery) GroupBy ¶
func (pq *ProviderQuery) GroupBy(field string, fields ...string) *ProviderGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.Provider.Query(). GroupBy(provider.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*ProviderQuery) IDsX ¶
func (pq *ProviderQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*ProviderQuery) Limit ¶
func (pq *ProviderQuery) Limit(limit int) *ProviderQuery
Limit adds a limit step to the query.
func (*ProviderQuery) Offset ¶
func (pq *ProviderQuery) Offset(offset int) *ProviderQuery
Offset adds an offset step to the query.
func (*ProviderQuery) Only ¶
func (pq *ProviderQuery) Only(ctx context.Context) (*Provider, error)
Only returns a single Provider entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Provider entity is not found. Returns a *NotFoundError when no Provider entities are found.
func (*ProviderQuery) OnlyID ¶
OnlyID is like Only, but returns the only Provider ID in the query. Returns a *NotSingularError when exactly one Provider ID is not found. Returns a *NotFoundError when no entities are found.
func (*ProviderQuery) OnlyIDX ¶
func (pq *ProviderQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ProviderQuery) OnlyX ¶
func (pq *ProviderQuery) OnlyX(ctx context.Context) *Provider
OnlyX is like Only, but panics if an error occurs.
func (*ProviderQuery) Order ¶
func (pq *ProviderQuery) Order(o ...OrderFunc) *ProviderQuery
Order adds an order step to the query.
func (*ProviderQuery) QueryDeployment ¶
func (pq *ProviderQuery) QueryDeployment() *DeploymentQuery
QueryDeployment chains the current query on the "deployment" edge.
func (*ProviderQuery) Select ¶
func (pq *ProviderQuery) Select(fields ...string) *ProviderSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` } client.Provider.Query(). Select(provider.FieldCreatedAt). Scan(ctx, &v)
func (*ProviderQuery) Unique ¶
func (pq *ProviderQuery) Unique(unique bool) *ProviderQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*ProviderQuery) Where ¶
func (pq *ProviderQuery) Where(ps ...predicate.Provider) *ProviderQuery
Where adds a new predicate for the ProviderQuery builder.
func (*ProviderQuery) WithDeployment ¶
func (pq *ProviderQuery) WithDeployment(opts ...func(*DeploymentQuery)) *ProviderQuery
WithDeployment tells the query-builder to eager-load the nodes that are connected to the "deployment" edge. The optional arguments are used to configure the query builder of the edge.
type ProviderSelect ¶
type ProviderSelect struct { *ProviderQuery // contains filtered or unexported fields }
ProviderSelect is the builder for selecting fields of Provider entities.
func (*ProviderSelect) Bool ¶
func (ps *ProviderSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProviderSelect) BoolX ¶
func (ps *ProviderSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*ProviderSelect) Bools ¶
func (ps *ProviderSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ProviderSelect) BoolsX ¶
func (ps *ProviderSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ProviderSelect) Float64 ¶
func (ps *ProviderSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProviderSelect) Float64X ¶
func (ps *ProviderSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*ProviderSelect) Float64s ¶
func (ps *ProviderSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProviderSelect) Float64sX ¶
func (ps *ProviderSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ProviderSelect) Int ¶
func (ps *ProviderSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProviderSelect) IntX ¶
func (ps *ProviderSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*ProviderSelect) Ints ¶
func (ps *ProviderSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ProviderSelect) IntsX ¶
func (ps *ProviderSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ProviderSelect) Scan ¶
func (ps *ProviderSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*ProviderSelect) ScanX ¶
func (ps *ProviderSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*ProviderSelect) String ¶
func (ps *ProviderSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ProviderSelect) StringX ¶
func (ps *ProviderSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type ProviderUpdate ¶
type ProviderUpdate struct {
// contains filtered or unexported fields
}
ProviderUpdate is the builder for updating Provider entities.
func (*ProviderUpdate) AddDeployment ¶
func (pu *ProviderUpdate) AddDeployment(d ...*Deployment) *ProviderUpdate
AddDeployment adds the "deployment" edges to the Deployment entity.
func (*ProviderUpdate) AddDeploymentIDs ¶
func (pu *ProviderUpdate) AddDeploymentIDs(ids ...uuid.UUID) *ProviderUpdate
AddDeploymentIDs adds the "deployment" edge to the Deployment entity by IDs.
func (*ProviderUpdate) ClearDeployment ¶
func (pu *ProviderUpdate) ClearDeployment() *ProviderUpdate
ClearDeployment clears all "deployment" edges to the Deployment entity.
func (*ProviderUpdate) Exec ¶
func (pu *ProviderUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ProviderUpdate) ExecX ¶
func (pu *ProviderUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProviderUpdate) Mutation ¶
func (pu *ProviderUpdate) Mutation() *ProviderMutation
Mutation returns the ProviderMutation object of the builder.
func (*ProviderUpdate) RemoveDeployment ¶
func (pu *ProviderUpdate) RemoveDeployment(d ...*Deployment) *ProviderUpdate
RemoveDeployment removes "deployment" edges to Deployment entities.
func (*ProviderUpdate) RemoveDeploymentIDs ¶
func (pu *ProviderUpdate) RemoveDeploymentIDs(ids ...uuid.UUID) *ProviderUpdate
RemoveDeploymentIDs removes the "deployment" edge to Deployment entities by IDs.
func (*ProviderUpdate) Save ¶
func (pu *ProviderUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*ProviderUpdate) SaveX ¶
func (pu *ProviderUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ProviderUpdate) SetCreatedAt ¶
func (pu *ProviderUpdate) SetCreatedAt(t time.Time) *ProviderUpdate
SetCreatedAt sets the "created_at" field.
func (*ProviderUpdate) SetHostname ¶
func (pu *ProviderUpdate) SetHostname(s string) *ProviderUpdate
SetHostname sets the "hostname" field.
func (*ProviderUpdate) SetNillableCreatedAt ¶
func (pu *ProviderUpdate) SetNillableCreatedAt(t *time.Time) *ProviderUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*ProviderUpdate) SetToken ¶
func (pu *ProviderUpdate) SetToken(s string) *ProviderUpdate
SetToken sets the "token" field.
func (*ProviderUpdate) SetUpdatedAt ¶
func (pu *ProviderUpdate) SetUpdatedAt(t time.Time) *ProviderUpdate
SetUpdatedAt sets the "updated_at" field.
func (*ProviderUpdate) Where ¶
func (pu *ProviderUpdate) Where(ps ...predicate.Provider) *ProviderUpdate
Where appends a list predicates to the ProviderUpdate builder.
type ProviderUpdateOne ¶
type ProviderUpdateOne struct {
// contains filtered or unexported fields
}
ProviderUpdateOne is the builder for updating a single Provider entity.
func (*ProviderUpdateOne) AddDeployment ¶
func (puo *ProviderUpdateOne) AddDeployment(d ...*Deployment) *ProviderUpdateOne
AddDeployment adds the "deployment" edges to the Deployment entity.
func (*ProviderUpdateOne) AddDeploymentIDs ¶
func (puo *ProviderUpdateOne) AddDeploymentIDs(ids ...uuid.UUID) *ProviderUpdateOne
AddDeploymentIDs adds the "deployment" edge to the Deployment entity by IDs.
func (*ProviderUpdateOne) ClearDeployment ¶
func (puo *ProviderUpdateOne) ClearDeployment() *ProviderUpdateOne
ClearDeployment clears all "deployment" edges to the Deployment entity.
func (*ProviderUpdateOne) Exec ¶
func (puo *ProviderUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ProviderUpdateOne) ExecX ¶
func (puo *ProviderUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProviderUpdateOne) Mutation ¶
func (puo *ProviderUpdateOne) Mutation() *ProviderMutation
Mutation returns the ProviderMutation object of the builder.
func (*ProviderUpdateOne) RemoveDeployment ¶
func (puo *ProviderUpdateOne) RemoveDeployment(d ...*Deployment) *ProviderUpdateOne
RemoveDeployment removes "deployment" edges to Deployment entities.
func (*ProviderUpdateOne) RemoveDeploymentIDs ¶
func (puo *ProviderUpdateOne) RemoveDeploymentIDs(ids ...uuid.UUID) *ProviderUpdateOne
RemoveDeploymentIDs removes the "deployment" edge to Deployment entities by IDs.
func (*ProviderUpdateOne) Save ¶
func (puo *ProviderUpdateOne) Save(ctx context.Context) (*Provider, error)
Save executes the query and returns the updated Provider entity.
func (*ProviderUpdateOne) SaveX ¶
func (puo *ProviderUpdateOne) SaveX(ctx context.Context) *Provider
SaveX is like Save, but panics if an error occurs.
func (*ProviderUpdateOne) Select ¶
func (puo *ProviderUpdateOne) Select(field string, fields ...string) *ProviderUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*ProviderUpdateOne) SetCreatedAt ¶
func (puo *ProviderUpdateOne) SetCreatedAt(t time.Time) *ProviderUpdateOne
SetCreatedAt sets the "created_at" field.
func (*ProviderUpdateOne) SetHostname ¶
func (puo *ProviderUpdateOne) SetHostname(s string) *ProviderUpdateOne
SetHostname sets the "hostname" field.
func (*ProviderUpdateOne) SetNillableCreatedAt ¶
func (puo *ProviderUpdateOne) SetNillableCreatedAt(t *time.Time) *ProviderUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*ProviderUpdateOne) SetToken ¶
func (puo *ProviderUpdateOne) SetToken(s string) *ProviderUpdateOne
SetToken sets the "token" field.
func (*ProviderUpdateOne) SetUpdatedAt ¶
func (puo *ProviderUpdateOne) SetUpdatedAt(t time.Time) *ProviderUpdateOne
SetUpdatedAt sets the "updated_at" field.
type RollbackFunc ¶
The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.
type RollbackHook ¶
type RollbackHook func(Rollbacker) Rollbacker
RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:
hook := func(next ent.Rollbacker) ent.Rollbacker { return ent.RollbackFunc(func(context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Rollback(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type Rollbacker ¶
Rollbacker is the interface that wraps the Rollbacker method.
type Stack ¶
type Stack struct { // ID of the ent. ID string `json:"id,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt time.Time `json:"updated_at,omitempty"` // Instance holds the value of the "instance" field. Instance string `json:"instance,omitempty"` // VpcID holds the value of the "vpc_id" field. VpcID string `json:"vpc_id,omitempty"` // PublicIP holds the value of the "public_ip" field. PublicIP string `json:"public_ip,omitempty"` // PublicDNS holds the value of the "public_dns" field. PublicDNS string `json:"public_dns,omitempty"` // Username holds the value of the "username" field. Username string `json:"username,omitempty"` // SecurityGroup holds the value of the "security_group" field. SecurityGroup string `json:"security_group,omitempty"` // KeyPair holds the value of the "key_pair" field. KeyPair string `json:"key_pair,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // PrivateKey holds the value of the "private_key" field. PrivateKey string `json:"private_key,omitempty"` // Filepath holds the value of the "filepath" field. Filepath string `json:"filepath,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the StackQuery when eager-loading is set. Edges StackEdges `json:"edges"` // contains filtered or unexported fields }
Stack is the model entity for the Stack schema.
func (*Stack) QueryDeployment ¶
func (s *Stack) QueryDeployment() *DeploymentQuery
QueryDeployment queries the "deployment" edge of the Stack entity.
func (*Stack) Unwrap ¶
Unwrap unwraps the Stack entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Stack) Update ¶
func (s *Stack) Update() *StackUpdateOne
Update returns a builder for updating this Stack. Note that you need to call Stack.Unwrap() before calling this method if this Stack was returned from a transaction, and the transaction was committed or rolled back.
type StackClient ¶
type StackClient struct {
// contains filtered or unexported fields
}
StackClient is a client for the Stack schema.
func NewStackClient ¶
func NewStackClient(c config) *StackClient
NewStackClient returns a client for the Stack from the given config.
func (*StackClient) Create ¶
func (c *StackClient) Create() *StackCreate
Create returns a create builder for Stack.
func (*StackClient) CreateBulk ¶
func (c *StackClient) CreateBulk(builders ...*StackCreate) *StackCreateBulk
CreateBulk returns a builder for creating a bulk of Stack entities.
func (*StackClient) Delete ¶
func (c *StackClient) Delete() *StackDelete
Delete returns a delete builder for Stack.
func (*StackClient) DeleteOne ¶
func (c *StackClient) DeleteOne(s *Stack) *StackDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*StackClient) DeleteOneID ¶
func (c *StackClient) DeleteOneID(id string) *StackDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*StackClient) GetX ¶
func (c *StackClient) GetX(ctx context.Context, id string) *Stack
GetX is like Get, but panics if an error occurs.
func (*StackClient) Query ¶
func (c *StackClient) Query() *StackQuery
Query returns a query builder for Stack.
func (*StackClient) QueryDeployment ¶
func (c *StackClient) QueryDeployment(s *Stack) *DeploymentQuery
QueryDeployment queries the deployment edge of a Stack.
func (*StackClient) Update ¶
func (c *StackClient) Update() *StackUpdate
Update returns an update builder for Stack.
func (*StackClient) UpdateOne ¶
func (c *StackClient) UpdateOne(s *Stack) *StackUpdateOne
UpdateOne returns an update builder for the given entity.
func (*StackClient) UpdateOneID ¶
func (c *StackClient) UpdateOneID(id string) *StackUpdateOne
UpdateOneID returns an update builder for the given id.
func (*StackClient) Use ¶
func (c *StackClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `stack.Hooks(f(g(h())))`.
type StackCreate ¶
type StackCreate struct {
// contains filtered or unexported fields
}
StackCreate is the builder for creating a Stack entity.
func (*StackCreate) Exec ¶
func (sc *StackCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*StackCreate) ExecX ¶
func (sc *StackCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*StackCreate) Mutation ¶
func (sc *StackCreate) Mutation() *StackMutation
Mutation returns the StackMutation object of the builder.
func (*StackCreate) Save ¶
func (sc *StackCreate) Save(ctx context.Context) (*Stack, error)
Save creates the Stack in the database.
func (*StackCreate) SaveX ¶
func (sc *StackCreate) SaveX(ctx context.Context) *Stack
SaveX calls Save and panics if Save returns an error.
func (*StackCreate) SetCreatedAt ¶
func (sc *StackCreate) SetCreatedAt(t time.Time) *StackCreate
SetCreatedAt sets the "created_at" field.
func (*StackCreate) SetDeployment ¶
func (sc *StackCreate) SetDeployment(d *Deployment) *StackCreate
SetDeployment sets the "deployment" edge to the Deployment entity.
func (*StackCreate) SetDeploymentID ¶
func (sc *StackCreate) SetDeploymentID(id uuid.UUID) *StackCreate
SetDeploymentID sets the "deployment" edge to the Deployment entity by ID.
func (*StackCreate) SetFilepath ¶
func (sc *StackCreate) SetFilepath(s string) *StackCreate
SetFilepath sets the "filepath" field.
func (*StackCreate) SetID ¶
func (sc *StackCreate) SetID(s string) *StackCreate
SetID sets the "id" field.
func (*StackCreate) SetInstance ¶
func (sc *StackCreate) SetInstance(s string) *StackCreate
SetInstance sets the "instance" field.
func (*StackCreate) SetKeyPair ¶
func (sc *StackCreate) SetKeyPair(s string) *StackCreate
SetKeyPair sets the "key_pair" field.
func (*StackCreate) SetName ¶
func (sc *StackCreate) SetName(s string) *StackCreate
SetName sets the "name" field.
func (*StackCreate) SetNillableCreatedAt ¶
func (sc *StackCreate) SetNillableCreatedAt(t *time.Time) *StackCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*StackCreate) SetNillableDeploymentID ¶
func (sc *StackCreate) SetNillableDeploymentID(id *uuid.UUID) *StackCreate
SetNillableDeploymentID sets the "deployment" edge to the Deployment entity by ID if the given value is not nil.
func (*StackCreate) SetNillableFilepath ¶
func (sc *StackCreate) SetNillableFilepath(s *string) *StackCreate
SetNillableFilepath sets the "filepath" field if the given value is not nil.
func (*StackCreate) SetNillablePublicDNS ¶
func (sc *StackCreate) SetNillablePublicDNS(s *string) *StackCreate
SetNillablePublicDNS sets the "public_dns" field if the given value is not nil.
func (*StackCreate) SetNillableUpdatedAt ¶
func (sc *StackCreate) SetNillableUpdatedAt(t *time.Time) *StackCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*StackCreate) SetPrivateKey ¶
func (sc *StackCreate) SetPrivateKey(s string) *StackCreate
SetPrivateKey sets the "private_key" field.
func (*StackCreate) SetPublicDNS ¶
func (sc *StackCreate) SetPublicDNS(s string) *StackCreate
SetPublicDNS sets the "public_dns" field.
func (*StackCreate) SetPublicIP ¶
func (sc *StackCreate) SetPublicIP(s string) *StackCreate
SetPublicIP sets the "public_ip" field.
func (*StackCreate) SetSecurityGroup ¶
func (sc *StackCreate) SetSecurityGroup(s string) *StackCreate
SetSecurityGroup sets the "security_group" field.
func (*StackCreate) SetUpdatedAt ¶
func (sc *StackCreate) SetUpdatedAt(t time.Time) *StackCreate
SetUpdatedAt sets the "updated_at" field.
func (*StackCreate) SetUsername ¶
func (sc *StackCreate) SetUsername(s string) *StackCreate
SetUsername sets the "username" field.
func (*StackCreate) SetVpcID ¶
func (sc *StackCreate) SetVpcID(s string) *StackCreate
SetVpcID sets the "vpc_id" field.
type StackCreateBulk ¶
type StackCreateBulk struct {
// contains filtered or unexported fields
}
StackCreateBulk is the builder for creating many Stack entities in bulk.
func (*StackCreateBulk) Exec ¶
func (scb *StackCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*StackCreateBulk) ExecX ¶
func (scb *StackCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type StackDelete ¶
type StackDelete struct {
// contains filtered or unexported fields
}
StackDelete is the builder for deleting a Stack entity.
func (*StackDelete) Exec ¶
func (sd *StackDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*StackDelete) ExecX ¶
func (sd *StackDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*StackDelete) Where ¶
func (sd *StackDelete) Where(ps ...predicate.Stack) *StackDelete
Where appends a list predicates to the StackDelete builder.
type StackDeleteOne ¶
type StackDeleteOne struct {
// contains filtered or unexported fields
}
StackDeleteOne is the builder for deleting a single Stack entity.
func (*StackDeleteOne) Exec ¶
func (sdo *StackDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*StackDeleteOne) ExecX ¶
func (sdo *StackDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type StackEdges ¶
type StackEdges struct { // Deployment holds the value of the deployment edge. Deployment *Deployment `json:"deployment,omitempty"` // contains filtered or unexported fields }
StackEdges holds the relations/edges for other nodes in the graph.
func (StackEdges) DeploymentOrErr ¶
func (e StackEdges) DeploymentOrErr() (*Deployment, error)
DeploymentOrErr returns the Deployment value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type StackGroupBy ¶
type StackGroupBy struct {
// contains filtered or unexported fields
}
StackGroupBy is the group-by builder for Stack entities.
func (*StackGroupBy) Aggregate ¶
func (sgb *StackGroupBy) Aggregate(fns ...AggregateFunc) *StackGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*StackGroupBy) Bool ¶
func (sgb *StackGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*StackGroupBy) BoolX ¶
func (sgb *StackGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*StackGroupBy) Bools ¶
func (sgb *StackGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*StackGroupBy) BoolsX ¶
func (sgb *StackGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*StackGroupBy) Float64 ¶
func (sgb *StackGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*StackGroupBy) Float64X ¶
func (sgb *StackGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*StackGroupBy) Float64s ¶
func (sgb *StackGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*StackGroupBy) Float64sX ¶
func (sgb *StackGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*StackGroupBy) Int ¶
func (sgb *StackGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*StackGroupBy) IntX ¶
func (sgb *StackGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*StackGroupBy) Ints ¶
func (sgb *StackGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*StackGroupBy) IntsX ¶
func (sgb *StackGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*StackGroupBy) Scan ¶
func (sgb *StackGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*StackGroupBy) ScanX ¶
func (sgb *StackGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*StackGroupBy) String ¶
func (sgb *StackGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*StackGroupBy) StringX ¶
func (sgb *StackGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type StackMutation ¶
type StackMutation struct {
// contains filtered or unexported fields
}
StackMutation represents an operation that mutates the Stack nodes in the graph.
func (*StackMutation) AddField ¶
func (m *StackMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*StackMutation) AddedEdges ¶
func (m *StackMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*StackMutation) AddedField ¶
func (m *StackMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*StackMutation) AddedFields ¶
func (m *StackMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*StackMutation) AddedIDs ¶
func (m *StackMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*StackMutation) ClearDeployment ¶
func (m *StackMutation) ClearDeployment()
ClearDeployment clears the "deployment" edge to the Deployment entity.
func (*StackMutation) ClearEdge ¶
func (m *StackMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*StackMutation) ClearField ¶
func (m *StackMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*StackMutation) ClearFilepath ¶
func (m *StackMutation) ClearFilepath()
ClearFilepath clears the value of the "filepath" field.
func (*StackMutation) ClearPublicDNS ¶
func (m *StackMutation) ClearPublicDNS()
ClearPublicDNS clears the value of the "public_dns" field.
func (*StackMutation) ClearedEdges ¶
func (m *StackMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*StackMutation) ClearedFields ¶
func (m *StackMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (StackMutation) Client ¶
func (m StackMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*StackMutation) CreatedAt ¶
func (m *StackMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*StackMutation) DeploymentCleared ¶
func (m *StackMutation) DeploymentCleared() bool
DeploymentCleared reports if the "deployment" edge to the Deployment entity was cleared.
func (*StackMutation) DeploymentID ¶
func (m *StackMutation) DeploymentID() (id uuid.UUID, exists bool)
DeploymentID returns the "deployment" edge ID in the mutation.
func (*StackMutation) DeploymentIDs ¶
func (m *StackMutation) DeploymentIDs() (ids []uuid.UUID)
DeploymentIDs returns the "deployment" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use DeploymentID instead. It exists only for internal usage by the builders.
func (*StackMutation) EdgeCleared ¶
func (m *StackMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*StackMutation) Field ¶
func (m *StackMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*StackMutation) FieldCleared ¶
func (m *StackMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*StackMutation) Fields ¶
func (m *StackMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*StackMutation) Filepath ¶
func (m *StackMutation) Filepath() (r string, exists bool)
Filepath returns the value of the "filepath" field in the mutation.
func (*StackMutation) FilepathCleared ¶
func (m *StackMutation) FilepathCleared() bool
FilepathCleared returns if the "filepath" field was cleared in this mutation.
func (*StackMutation) ID ¶
func (m *StackMutation) ID() (id string, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*StackMutation) Instance ¶
func (m *StackMutation) Instance() (r string, exists bool)
Instance returns the value of the "instance" field in the mutation.
func (*StackMutation) KeyPair ¶
func (m *StackMutation) KeyPair() (r string, exists bool)
KeyPair returns the value of the "key_pair" field in the mutation.
func (*StackMutation) Name ¶
func (m *StackMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*StackMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Stack entity. If the Stack object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*StackMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*StackMutation) OldFilepath ¶
func (m *StackMutation) OldFilepath(ctx context.Context) (v string, err error)
OldFilepath returns the old "filepath" field's value of the Stack entity. If the Stack object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*StackMutation) OldInstance ¶
func (m *StackMutation) OldInstance(ctx context.Context) (v string, err error)
OldInstance returns the old "instance" field's value of the Stack entity. If the Stack object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*StackMutation) OldKeyPair ¶
func (m *StackMutation) OldKeyPair(ctx context.Context) (v string, err error)
OldKeyPair returns the old "key_pair" field's value of the Stack entity. If the Stack object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*StackMutation) OldName ¶
func (m *StackMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Stack entity. If the Stack object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*StackMutation) OldPrivateKey ¶
func (m *StackMutation) OldPrivateKey(ctx context.Context) (v string, err error)
OldPrivateKey returns the old "private_key" field's value of the Stack entity. If the Stack object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*StackMutation) OldPublicDNS ¶
func (m *StackMutation) OldPublicDNS(ctx context.Context) (v string, err error)
OldPublicDNS returns the old "public_dns" field's value of the Stack entity. If the Stack object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*StackMutation) OldPublicIP ¶
func (m *StackMutation) OldPublicIP(ctx context.Context) (v string, err error)
OldPublicIP returns the old "public_ip" field's value of the Stack entity. If the Stack object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*StackMutation) OldSecurityGroup ¶
func (m *StackMutation) OldSecurityGroup(ctx context.Context) (v string, err error)
OldSecurityGroup returns the old "security_group" field's value of the Stack entity. If the Stack object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*StackMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Stack entity. If the Stack object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*StackMutation) OldUsername ¶
func (m *StackMutation) OldUsername(ctx context.Context) (v string, err error)
OldUsername returns the old "username" field's value of the Stack entity. If the Stack object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*StackMutation) OldVpcID ¶
func (m *StackMutation) OldVpcID(ctx context.Context) (v string, err error)
OldVpcID returns the old "vpc_id" field's value of the Stack entity. If the Stack object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*StackMutation) PrivateKey ¶
func (m *StackMutation) PrivateKey() (r string, exists bool)
PrivateKey returns the value of the "private_key" field in the mutation.
func (*StackMutation) PublicDNS ¶
func (m *StackMutation) PublicDNS() (r string, exists bool)
PublicDNS returns the value of the "public_dns" field in the mutation.
func (*StackMutation) PublicDNSCleared ¶
func (m *StackMutation) PublicDNSCleared() bool
PublicDNSCleared returns if the "public_dns" field was cleared in this mutation.
func (*StackMutation) PublicIP ¶
func (m *StackMutation) PublicIP() (r string, exists bool)
PublicIP returns the value of the "public_ip" field in the mutation.
func (*StackMutation) RemovedEdges ¶
func (m *StackMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*StackMutation) RemovedIDs ¶
func (m *StackMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*StackMutation) ResetCreatedAt ¶
func (m *StackMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*StackMutation) ResetDeployment ¶
func (m *StackMutation) ResetDeployment()
ResetDeployment resets all changes to the "deployment" edge.
func (*StackMutation) ResetEdge ¶
func (m *StackMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*StackMutation) ResetField ¶
func (m *StackMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*StackMutation) ResetFilepath ¶
func (m *StackMutation) ResetFilepath()
ResetFilepath resets all changes to the "filepath" field.
func (*StackMutation) ResetInstance ¶
func (m *StackMutation) ResetInstance()
ResetInstance resets all changes to the "instance" field.
func (*StackMutation) ResetKeyPair ¶
func (m *StackMutation) ResetKeyPair()
ResetKeyPair resets all changes to the "key_pair" field.
func (*StackMutation) ResetName ¶
func (m *StackMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*StackMutation) ResetPrivateKey ¶
func (m *StackMutation) ResetPrivateKey()
ResetPrivateKey resets all changes to the "private_key" field.
func (*StackMutation) ResetPublicDNS ¶
func (m *StackMutation) ResetPublicDNS()
ResetPublicDNS resets all changes to the "public_dns" field.
func (*StackMutation) ResetPublicIP ¶
func (m *StackMutation) ResetPublicIP()
ResetPublicIP resets all changes to the "public_ip" field.
func (*StackMutation) ResetSecurityGroup ¶
func (m *StackMutation) ResetSecurityGroup()
ResetSecurityGroup resets all changes to the "security_group" field.
func (*StackMutation) ResetUpdatedAt ¶
func (m *StackMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*StackMutation) ResetUsername ¶
func (m *StackMutation) ResetUsername()
ResetUsername resets all changes to the "username" field.
func (*StackMutation) ResetVpcID ¶
func (m *StackMutation) ResetVpcID()
ResetVpcID resets all changes to the "vpc_id" field.
func (*StackMutation) SecurityGroup ¶
func (m *StackMutation) SecurityGroup() (r string, exists bool)
SecurityGroup returns the value of the "security_group" field in the mutation.
func (*StackMutation) SetCreatedAt ¶
func (m *StackMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*StackMutation) SetDeploymentID ¶
func (m *StackMutation) SetDeploymentID(id uuid.UUID)
SetDeploymentID sets the "deployment" edge to the Deployment entity by id.
func (*StackMutation) SetField ¶
func (m *StackMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*StackMutation) SetFilepath ¶
func (m *StackMutation) SetFilepath(s string)
SetFilepath sets the "filepath" field.
func (*StackMutation) SetID ¶
func (m *StackMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Stack entities.
func (*StackMutation) SetInstance ¶
func (m *StackMutation) SetInstance(s string)
SetInstance sets the "instance" field.
func (*StackMutation) SetKeyPair ¶
func (m *StackMutation) SetKeyPair(s string)
SetKeyPair sets the "key_pair" field.
func (*StackMutation) SetName ¶
func (m *StackMutation) SetName(s string)
SetName sets the "name" field.
func (*StackMutation) SetPrivateKey ¶
func (m *StackMutation) SetPrivateKey(s string)
SetPrivateKey sets the "private_key" field.
func (*StackMutation) SetPublicDNS ¶
func (m *StackMutation) SetPublicDNS(s string)
SetPublicDNS sets the "public_dns" field.
func (*StackMutation) SetPublicIP ¶
func (m *StackMutation) SetPublicIP(s string)
SetPublicIP sets the "public_ip" field.
func (*StackMutation) SetSecurityGroup ¶
func (m *StackMutation) SetSecurityGroup(s string)
SetSecurityGroup sets the "security_group" field.
func (*StackMutation) SetUpdatedAt ¶
func (m *StackMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*StackMutation) SetUsername ¶
func (m *StackMutation) SetUsername(s string)
SetUsername sets the "username" field.
func (*StackMutation) SetVpcID ¶
func (m *StackMutation) SetVpcID(s string)
SetVpcID sets the "vpc_id" field.
func (StackMutation) Tx ¶
func (m StackMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*StackMutation) Type ¶
func (m *StackMutation) Type() string
Type returns the node type of this mutation (Stack).
func (*StackMutation) UpdatedAt ¶
func (m *StackMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*StackMutation) Username ¶
func (m *StackMutation) Username() (r string, exists bool)
Username returns the value of the "username" field in the mutation.
func (*StackMutation) VpcID ¶
func (m *StackMutation) VpcID() (r string, exists bool)
VpcID returns the value of the "vpc_id" field in the mutation.
func (*StackMutation) Where ¶
func (m *StackMutation) Where(ps ...predicate.Stack)
Where appends a list predicates to the StackMutation builder.
type StackQuery ¶
type StackQuery struct {
// contains filtered or unexported fields
}
StackQuery is the builder for querying Stack entities.
func (*StackQuery) All ¶
func (sq *StackQuery) All(ctx context.Context) ([]*Stack, error)
All executes the query and returns a list of Stacks.
func (*StackQuery) AllX ¶
func (sq *StackQuery) AllX(ctx context.Context) []*Stack
AllX is like All, but panics if an error occurs.
func (*StackQuery) Clone ¶
func (sq *StackQuery) Clone() *StackQuery
Clone returns a duplicate of the StackQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*StackQuery) Count ¶
func (sq *StackQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*StackQuery) CountX ¶
func (sq *StackQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*StackQuery) Exist ¶
func (sq *StackQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*StackQuery) ExistX ¶
func (sq *StackQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*StackQuery) First ¶
func (sq *StackQuery) First(ctx context.Context) (*Stack, error)
First returns the first Stack entity from the query. Returns a *NotFoundError when no Stack was found.
func (*StackQuery) FirstID ¶
func (sq *StackQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first Stack ID from the query. Returns a *NotFoundError when no Stack ID was found.
func (*StackQuery) FirstIDX ¶
func (sq *StackQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*StackQuery) FirstX ¶
func (sq *StackQuery) FirstX(ctx context.Context) *Stack
FirstX is like First, but panics if an error occurs.
func (*StackQuery) GroupBy ¶
func (sq *StackQuery) GroupBy(field string, fields ...string) *StackGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.Stack.Query(). GroupBy(stack.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*StackQuery) IDs ¶
func (sq *StackQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of Stack IDs.
func (*StackQuery) IDsX ¶
func (sq *StackQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*StackQuery) Limit ¶
func (sq *StackQuery) Limit(limit int) *StackQuery
Limit adds a limit step to the query.
func (*StackQuery) Offset ¶
func (sq *StackQuery) Offset(offset int) *StackQuery
Offset adds an offset step to the query.
func (*StackQuery) Only ¶
func (sq *StackQuery) Only(ctx context.Context) (*Stack, error)
Only returns a single Stack entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Stack entity is not found. Returns a *NotFoundError when no Stack entities are found.
func (*StackQuery) OnlyID ¶
func (sq *StackQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only Stack ID in the query. Returns a *NotSingularError when exactly one Stack ID is not found. Returns a *NotFoundError when no entities are found.
func (*StackQuery) OnlyIDX ¶
func (sq *StackQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*StackQuery) OnlyX ¶
func (sq *StackQuery) OnlyX(ctx context.Context) *Stack
OnlyX is like Only, but panics if an error occurs.
func (*StackQuery) Order ¶
func (sq *StackQuery) Order(o ...OrderFunc) *StackQuery
Order adds an order step to the query.
func (*StackQuery) QueryDeployment ¶
func (sq *StackQuery) QueryDeployment() *DeploymentQuery
QueryDeployment chains the current query on the "deployment" edge.
func (*StackQuery) Select ¶
func (sq *StackQuery) Select(fields ...string) *StackSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` } client.Stack.Query(). Select(stack.FieldCreatedAt). Scan(ctx, &v)
func (*StackQuery) Unique ¶
func (sq *StackQuery) Unique(unique bool) *StackQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*StackQuery) Where ¶
func (sq *StackQuery) Where(ps ...predicate.Stack) *StackQuery
Where adds a new predicate for the StackQuery builder.
func (*StackQuery) WithDeployment ¶
func (sq *StackQuery) WithDeployment(opts ...func(*DeploymentQuery)) *StackQuery
WithDeployment tells the query-builder to eager-load the nodes that are connected to the "deployment" edge. The optional arguments are used to configure the query builder of the edge.
type StackSelect ¶
type StackSelect struct { *StackQuery // contains filtered or unexported fields }
StackSelect is the builder for selecting fields of Stack entities.
func (*StackSelect) Bool ¶
func (ss *StackSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*StackSelect) BoolX ¶
func (ss *StackSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*StackSelect) Bools ¶
func (ss *StackSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*StackSelect) BoolsX ¶
func (ss *StackSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*StackSelect) Float64 ¶
func (ss *StackSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*StackSelect) Float64X ¶
func (ss *StackSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*StackSelect) Float64s ¶
func (ss *StackSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*StackSelect) Float64sX ¶
func (ss *StackSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*StackSelect) Int ¶
func (ss *StackSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*StackSelect) IntX ¶
func (ss *StackSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*StackSelect) Ints ¶
func (ss *StackSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*StackSelect) IntsX ¶
func (ss *StackSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*StackSelect) Scan ¶
func (ss *StackSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*StackSelect) ScanX ¶
func (ss *StackSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*StackSelect) String ¶
func (ss *StackSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*StackSelect) StringX ¶
func (ss *StackSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type StackUpdate ¶
type StackUpdate struct {
// contains filtered or unexported fields
}
StackUpdate is the builder for updating Stack entities.
func (*StackUpdate) ClearDeployment ¶
func (su *StackUpdate) ClearDeployment() *StackUpdate
ClearDeployment clears the "deployment" edge to the Deployment entity.
func (*StackUpdate) ClearFilepath ¶
func (su *StackUpdate) ClearFilepath() *StackUpdate
ClearFilepath clears the value of the "filepath" field.
func (*StackUpdate) ClearPublicDNS ¶
func (su *StackUpdate) ClearPublicDNS() *StackUpdate
ClearPublicDNS clears the value of the "public_dns" field.
func (*StackUpdate) Exec ¶
func (su *StackUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*StackUpdate) ExecX ¶
func (su *StackUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*StackUpdate) Mutation ¶
func (su *StackUpdate) Mutation() *StackMutation
Mutation returns the StackMutation object of the builder.
func (*StackUpdate) Save ¶
func (su *StackUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*StackUpdate) SaveX ¶
func (su *StackUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*StackUpdate) SetCreatedAt ¶
func (su *StackUpdate) SetCreatedAt(t time.Time) *StackUpdate
SetCreatedAt sets the "created_at" field.
func (*StackUpdate) SetDeployment ¶
func (su *StackUpdate) SetDeployment(d *Deployment) *StackUpdate
SetDeployment sets the "deployment" edge to the Deployment entity.
func (*StackUpdate) SetDeploymentID ¶
func (su *StackUpdate) SetDeploymentID(id uuid.UUID) *StackUpdate
SetDeploymentID sets the "deployment" edge to the Deployment entity by ID.
func (*StackUpdate) SetFilepath ¶
func (su *StackUpdate) SetFilepath(s string) *StackUpdate
SetFilepath sets the "filepath" field.
func (*StackUpdate) SetInstance ¶
func (su *StackUpdate) SetInstance(s string) *StackUpdate
SetInstance sets the "instance" field.
func (*StackUpdate) SetKeyPair ¶
func (su *StackUpdate) SetKeyPair(s string) *StackUpdate
SetKeyPair sets the "key_pair" field.
func (*StackUpdate) SetName ¶
func (su *StackUpdate) SetName(s string) *StackUpdate
SetName sets the "name" field.
func (*StackUpdate) SetNillableCreatedAt ¶
func (su *StackUpdate) SetNillableCreatedAt(t *time.Time) *StackUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*StackUpdate) SetNillableDeploymentID ¶
func (su *StackUpdate) SetNillableDeploymentID(id *uuid.UUID) *StackUpdate
SetNillableDeploymentID sets the "deployment" edge to the Deployment entity by ID if the given value is not nil.
func (*StackUpdate) SetNillableFilepath ¶
func (su *StackUpdate) SetNillableFilepath(s *string) *StackUpdate
SetNillableFilepath sets the "filepath" field if the given value is not nil.
func (*StackUpdate) SetNillablePublicDNS ¶
func (su *StackUpdate) SetNillablePublicDNS(s *string) *StackUpdate
SetNillablePublicDNS sets the "public_dns" field if the given value is not nil.
func (*StackUpdate) SetPrivateKey ¶
func (su *StackUpdate) SetPrivateKey(s string) *StackUpdate
SetPrivateKey sets the "private_key" field.
func (*StackUpdate) SetPublicDNS ¶
func (su *StackUpdate) SetPublicDNS(s string) *StackUpdate
SetPublicDNS sets the "public_dns" field.
func (*StackUpdate) SetPublicIP ¶
func (su *StackUpdate) SetPublicIP(s string) *StackUpdate
SetPublicIP sets the "public_ip" field.
func (*StackUpdate) SetSecurityGroup ¶
func (su *StackUpdate) SetSecurityGroup(s string) *StackUpdate
SetSecurityGroup sets the "security_group" field.
func (*StackUpdate) SetUpdatedAt ¶
func (su *StackUpdate) SetUpdatedAt(t time.Time) *StackUpdate
SetUpdatedAt sets the "updated_at" field.
func (*StackUpdate) SetUsername ¶
func (su *StackUpdate) SetUsername(s string) *StackUpdate
SetUsername sets the "username" field.
func (*StackUpdate) SetVpcID ¶
func (su *StackUpdate) SetVpcID(s string) *StackUpdate
SetVpcID sets the "vpc_id" field.
func (*StackUpdate) Where ¶
func (su *StackUpdate) Where(ps ...predicate.Stack) *StackUpdate
Where appends a list predicates to the StackUpdate builder.
type StackUpdateOne ¶
type StackUpdateOne struct {
// contains filtered or unexported fields
}
StackUpdateOne is the builder for updating a single Stack entity.
func (*StackUpdateOne) ClearDeployment ¶
func (suo *StackUpdateOne) ClearDeployment() *StackUpdateOne
ClearDeployment clears the "deployment" edge to the Deployment entity.
func (*StackUpdateOne) ClearFilepath ¶
func (suo *StackUpdateOne) ClearFilepath() *StackUpdateOne
ClearFilepath clears the value of the "filepath" field.
func (*StackUpdateOne) ClearPublicDNS ¶
func (suo *StackUpdateOne) ClearPublicDNS() *StackUpdateOne
ClearPublicDNS clears the value of the "public_dns" field.
func (*StackUpdateOne) Exec ¶
func (suo *StackUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*StackUpdateOne) ExecX ¶
func (suo *StackUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*StackUpdateOne) Mutation ¶
func (suo *StackUpdateOne) Mutation() *StackMutation
Mutation returns the StackMutation object of the builder.
func (*StackUpdateOne) Save ¶
func (suo *StackUpdateOne) Save(ctx context.Context) (*Stack, error)
Save executes the query and returns the updated Stack entity.
func (*StackUpdateOne) SaveX ¶
func (suo *StackUpdateOne) SaveX(ctx context.Context) *Stack
SaveX is like Save, but panics if an error occurs.
func (*StackUpdateOne) Select ¶
func (suo *StackUpdateOne) Select(field string, fields ...string) *StackUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*StackUpdateOne) SetCreatedAt ¶
func (suo *StackUpdateOne) SetCreatedAt(t time.Time) *StackUpdateOne
SetCreatedAt sets the "created_at" field.
func (*StackUpdateOne) SetDeployment ¶
func (suo *StackUpdateOne) SetDeployment(d *Deployment) *StackUpdateOne
SetDeployment sets the "deployment" edge to the Deployment entity.
func (*StackUpdateOne) SetDeploymentID ¶
func (suo *StackUpdateOne) SetDeploymentID(id uuid.UUID) *StackUpdateOne
SetDeploymentID sets the "deployment" edge to the Deployment entity by ID.
func (*StackUpdateOne) SetFilepath ¶
func (suo *StackUpdateOne) SetFilepath(s string) *StackUpdateOne
SetFilepath sets the "filepath" field.
func (*StackUpdateOne) SetInstance ¶
func (suo *StackUpdateOne) SetInstance(s string) *StackUpdateOne
SetInstance sets the "instance" field.
func (*StackUpdateOne) SetKeyPair ¶
func (suo *StackUpdateOne) SetKeyPair(s string) *StackUpdateOne
SetKeyPair sets the "key_pair" field.
func (*StackUpdateOne) SetName ¶
func (suo *StackUpdateOne) SetName(s string) *StackUpdateOne
SetName sets the "name" field.
func (*StackUpdateOne) SetNillableCreatedAt ¶
func (suo *StackUpdateOne) SetNillableCreatedAt(t *time.Time) *StackUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*StackUpdateOne) SetNillableDeploymentID ¶
func (suo *StackUpdateOne) SetNillableDeploymentID(id *uuid.UUID) *StackUpdateOne
SetNillableDeploymentID sets the "deployment" edge to the Deployment entity by ID if the given value is not nil.
func (*StackUpdateOne) SetNillableFilepath ¶
func (suo *StackUpdateOne) SetNillableFilepath(s *string) *StackUpdateOne
SetNillableFilepath sets the "filepath" field if the given value is not nil.
func (*StackUpdateOne) SetNillablePublicDNS ¶
func (suo *StackUpdateOne) SetNillablePublicDNS(s *string) *StackUpdateOne
SetNillablePublicDNS sets the "public_dns" field if the given value is not nil.
func (*StackUpdateOne) SetPrivateKey ¶
func (suo *StackUpdateOne) SetPrivateKey(s string) *StackUpdateOne
SetPrivateKey sets the "private_key" field.
func (*StackUpdateOne) SetPublicDNS ¶
func (suo *StackUpdateOne) SetPublicDNS(s string) *StackUpdateOne
SetPublicDNS sets the "public_dns" field.
func (*StackUpdateOne) SetPublicIP ¶
func (suo *StackUpdateOne) SetPublicIP(s string) *StackUpdateOne
SetPublicIP sets the "public_ip" field.
func (*StackUpdateOne) SetSecurityGroup ¶
func (suo *StackUpdateOne) SetSecurityGroup(s string) *StackUpdateOne
SetSecurityGroup sets the "security_group" field.
func (*StackUpdateOne) SetUpdatedAt ¶
func (suo *StackUpdateOne) SetUpdatedAt(t time.Time) *StackUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*StackUpdateOne) SetUsername ¶
func (suo *StackUpdateOne) SetUsername(s string) *StackUpdateOne
SetUsername sets the "username" field.
func (*StackUpdateOne) SetVpcID ¶
func (suo *StackUpdateOne) SetVpcID(s string) *StackUpdateOne
SetVpcID sets the "vpc_id" field.
type Task ¶
type Task struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt time.Time `json:"updated_at,omitempty"` // Image holds the value of the "image" field. Image string `json:"image,omitempty"` // Timeout holds the value of the "timeout" field. Timeout int `json:"timeout,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Cmd holds the value of the "cmd" field. Cmd string `json:"cmd,omitempty"` // Detached holds the value of the "detached" field. Detached bool `json:"detached,omitempty"` // Environment holds the value of the "environment" field. Environment map[string]interface{} `json:"environment,omitempty"` // Ports holds the value of the "ports" field. Ports []string `json:"ports,omitempty"` // Volumes holds the value of the "volumes" field. Volumes []string `json:"volumes,omitempty"` // Restart holds the value of the "restart" field. Restart string `json:"restart,omitempty"` // SecurityOpt holds the value of the "security_opt" field. SecurityOpt []string `json:"security_opt,omitempty"` // CapAdd holds the value of the "cap_add" field. CapAdd []string `json:"cap_add,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the TaskQuery when eager-loading is set. Edges TaskEdges `json:"edges"` // contains filtered or unexported fields }
Task is the model entity for the Task schema.
func (*Task) QueryDeployment ¶
func (t *Task) QueryDeployment() *DeploymentQuery
QueryDeployment queries the "deployment" edge of the Task entity.
func (*Task) Unwrap ¶
Unwrap unwraps the Task entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Task) Update ¶
func (t *Task) Update() *TaskUpdateOne
Update returns a builder for updating this Task. Note that you need to call Task.Unwrap() before calling this method if this Task was returned from a transaction, and the transaction was committed or rolled back.
type TaskClient ¶
type TaskClient struct {
// contains filtered or unexported fields
}
TaskClient is a client for the Task schema.
func NewTaskClient ¶
func NewTaskClient(c config) *TaskClient
NewTaskClient returns a client for the Task from the given config.
func (*TaskClient) Create ¶
func (c *TaskClient) Create() *TaskCreate
Create returns a create builder for Task.
func (*TaskClient) CreateBulk ¶
func (c *TaskClient) CreateBulk(builders ...*TaskCreate) *TaskCreateBulk
CreateBulk returns a builder for creating a bulk of Task entities.
func (*TaskClient) Delete ¶
func (c *TaskClient) Delete() *TaskDelete
Delete returns a delete builder for Task.
func (*TaskClient) DeleteOne ¶
func (c *TaskClient) DeleteOne(t *Task) *TaskDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*TaskClient) DeleteOneID ¶
func (c *TaskClient) DeleteOneID(id uuid.UUID) *TaskDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*TaskClient) Query ¶
func (c *TaskClient) Query() *TaskQuery
Query returns a query builder for Task.
func (*TaskClient) QueryDeployment ¶
func (c *TaskClient) QueryDeployment(t *Task) *DeploymentQuery
QueryDeployment queries the deployment edge of a Task.
func (*TaskClient) Update ¶
func (c *TaskClient) Update() *TaskUpdate
Update returns an update builder for Task.
func (*TaskClient) UpdateOne ¶
func (c *TaskClient) UpdateOne(t *Task) *TaskUpdateOne
UpdateOne returns an update builder for the given entity.
func (*TaskClient) UpdateOneID ¶
func (c *TaskClient) UpdateOneID(id uuid.UUID) *TaskUpdateOne
UpdateOneID returns an update builder for the given id.
func (*TaskClient) Use ¶
func (c *TaskClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `task.Hooks(f(g(h())))`.
type TaskCreate ¶
type TaskCreate struct {
// contains filtered or unexported fields
}
TaskCreate is the builder for creating a Task entity.
func (*TaskCreate) Exec ¶
func (tc *TaskCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*TaskCreate) ExecX ¶
func (tc *TaskCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TaskCreate) Mutation ¶
func (tc *TaskCreate) Mutation() *TaskMutation
Mutation returns the TaskMutation object of the builder.
func (*TaskCreate) Save ¶
func (tc *TaskCreate) Save(ctx context.Context) (*Task, error)
Save creates the Task in the database.
func (*TaskCreate) SaveX ¶
func (tc *TaskCreate) SaveX(ctx context.Context) *Task
SaveX calls Save and panics if Save returns an error.
func (*TaskCreate) SetCapAdd ¶
func (tc *TaskCreate) SetCapAdd(s []string) *TaskCreate
SetCapAdd sets the "cap_add" field.
func (*TaskCreate) SetCmd ¶
func (tc *TaskCreate) SetCmd(s string) *TaskCreate
SetCmd sets the "cmd" field.
func (*TaskCreate) SetCreatedAt ¶
func (tc *TaskCreate) SetCreatedAt(t time.Time) *TaskCreate
SetCreatedAt sets the "created_at" field.
func (*TaskCreate) SetDeployment ¶
func (tc *TaskCreate) SetDeployment(d *Deployment) *TaskCreate
SetDeployment sets the "deployment" edge to the Deployment entity.
func (*TaskCreate) SetDeploymentID ¶
func (tc *TaskCreate) SetDeploymentID(id uuid.UUID) *TaskCreate
SetDeploymentID sets the "deployment" edge to the Deployment entity by ID.
func (*TaskCreate) SetDetached ¶
func (tc *TaskCreate) SetDetached(b bool) *TaskCreate
SetDetached sets the "detached" field.
func (*TaskCreate) SetEnvironment ¶
func (tc *TaskCreate) SetEnvironment(m map[string]interface{}) *TaskCreate
SetEnvironment sets the "environment" field.
func (*TaskCreate) SetID ¶
func (tc *TaskCreate) SetID(u uuid.UUID) *TaskCreate
SetID sets the "id" field.
func (*TaskCreate) SetImage ¶
func (tc *TaskCreate) SetImage(s string) *TaskCreate
SetImage sets the "image" field.
func (*TaskCreate) SetName ¶
func (tc *TaskCreate) SetName(s string) *TaskCreate
SetName sets the "name" field.
func (*TaskCreate) SetNillableCmd ¶
func (tc *TaskCreate) SetNillableCmd(s *string) *TaskCreate
SetNillableCmd sets the "cmd" field if the given value is not nil.
func (*TaskCreate) SetNillableCreatedAt ¶
func (tc *TaskCreate) SetNillableCreatedAt(t *time.Time) *TaskCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*TaskCreate) SetNillableDeploymentID ¶
func (tc *TaskCreate) SetNillableDeploymentID(id *uuid.UUID) *TaskCreate
SetNillableDeploymentID sets the "deployment" edge to the Deployment entity by ID if the given value is not nil.
func (*TaskCreate) SetNillableDetached ¶
func (tc *TaskCreate) SetNillableDetached(b *bool) *TaskCreate
SetNillableDetached sets the "detached" field if the given value is not nil.
func (*TaskCreate) SetNillableName ¶
func (tc *TaskCreate) SetNillableName(s *string) *TaskCreate
SetNillableName sets the "name" field if the given value is not nil.
func (*TaskCreate) SetNillableRestart ¶
func (tc *TaskCreate) SetNillableRestart(s *string) *TaskCreate
SetNillableRestart sets the "restart" field if the given value is not nil.
func (*TaskCreate) SetNillableTimeout ¶
func (tc *TaskCreate) SetNillableTimeout(i *int) *TaskCreate
SetNillableTimeout sets the "timeout" field if the given value is not nil.
func (*TaskCreate) SetNillableUpdatedAt ¶
func (tc *TaskCreate) SetNillableUpdatedAt(t *time.Time) *TaskCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*TaskCreate) SetPorts ¶
func (tc *TaskCreate) SetPorts(s []string) *TaskCreate
SetPorts sets the "ports" field.
func (*TaskCreate) SetRestart ¶
func (tc *TaskCreate) SetRestart(s string) *TaskCreate
SetRestart sets the "restart" field.
func (*TaskCreate) SetSecurityOpt ¶
func (tc *TaskCreate) SetSecurityOpt(s []string) *TaskCreate
SetSecurityOpt sets the "security_opt" field.
func (*TaskCreate) SetTimeout ¶
func (tc *TaskCreate) SetTimeout(i int) *TaskCreate
SetTimeout sets the "timeout" field.
func (*TaskCreate) SetUpdatedAt ¶
func (tc *TaskCreate) SetUpdatedAt(t time.Time) *TaskCreate
SetUpdatedAt sets the "updated_at" field.
func (*TaskCreate) SetVolumes ¶
func (tc *TaskCreate) SetVolumes(s []string) *TaskCreate
SetVolumes sets the "volumes" field.
type TaskCreateBulk ¶
type TaskCreateBulk struct {
// contains filtered or unexported fields
}
TaskCreateBulk is the builder for creating many Task entities in bulk.
func (*TaskCreateBulk) Exec ¶
func (tcb *TaskCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*TaskCreateBulk) ExecX ¶
func (tcb *TaskCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type TaskDelete ¶
type TaskDelete struct {
// contains filtered or unexported fields
}
TaskDelete is the builder for deleting a Task entity.
func (*TaskDelete) Exec ¶
func (td *TaskDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*TaskDelete) ExecX ¶
func (td *TaskDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*TaskDelete) Where ¶
func (td *TaskDelete) Where(ps ...predicate.Task) *TaskDelete
Where appends a list predicates to the TaskDelete builder.
type TaskDeleteOne ¶
type TaskDeleteOne struct {
// contains filtered or unexported fields
}
TaskDeleteOne is the builder for deleting a single Task entity.
func (*TaskDeleteOne) Exec ¶
func (tdo *TaskDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*TaskDeleteOne) ExecX ¶
func (tdo *TaskDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type TaskEdges ¶
type TaskEdges struct { // Deployment holds the value of the deployment edge. Deployment *Deployment `json:"deployment,omitempty"` // contains filtered or unexported fields }
TaskEdges holds the relations/edges for other nodes in the graph.
func (TaskEdges) DeploymentOrErr ¶
func (e TaskEdges) DeploymentOrErr() (*Deployment, error)
DeploymentOrErr returns the Deployment value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type TaskGroupBy ¶
type TaskGroupBy struct {
// contains filtered or unexported fields
}
TaskGroupBy is the group-by builder for Task entities.
func (*TaskGroupBy) Aggregate ¶
func (tgb *TaskGroupBy) Aggregate(fns ...AggregateFunc) *TaskGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*TaskGroupBy) Bool ¶
func (tgb *TaskGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*TaskGroupBy) BoolX ¶
func (tgb *TaskGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*TaskGroupBy) Bools ¶
func (tgb *TaskGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*TaskGroupBy) BoolsX ¶
func (tgb *TaskGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*TaskGroupBy) Float64 ¶
func (tgb *TaskGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*TaskGroupBy) Float64X ¶
func (tgb *TaskGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*TaskGroupBy) Float64s ¶
func (tgb *TaskGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*TaskGroupBy) Float64sX ¶
func (tgb *TaskGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*TaskGroupBy) Int ¶
func (tgb *TaskGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*TaskGroupBy) IntX ¶
func (tgb *TaskGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*TaskGroupBy) Ints ¶
func (tgb *TaskGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*TaskGroupBy) IntsX ¶
func (tgb *TaskGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*TaskGroupBy) Scan ¶
func (tgb *TaskGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*TaskGroupBy) ScanX ¶
func (tgb *TaskGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*TaskGroupBy) String ¶
func (tgb *TaskGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*TaskGroupBy) StringX ¶
func (tgb *TaskGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type TaskMutation ¶
type TaskMutation struct {
// contains filtered or unexported fields
}
TaskMutation represents an operation that mutates the Task nodes in the graph.
func (*TaskMutation) AddField ¶
func (m *TaskMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*TaskMutation) AddTimeout ¶
func (m *TaskMutation) AddTimeout(i int)
AddTimeout adds i to the "timeout" field.
func (*TaskMutation) AddedEdges ¶
func (m *TaskMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*TaskMutation) AddedField ¶
func (m *TaskMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*TaskMutation) AddedFields ¶
func (m *TaskMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*TaskMutation) AddedIDs ¶
func (m *TaskMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*TaskMutation) AddedTimeout ¶
func (m *TaskMutation) AddedTimeout() (r int, exists bool)
AddedTimeout returns the value that was added to the "timeout" field in this mutation.
func (*TaskMutation) CapAdd ¶
func (m *TaskMutation) CapAdd() (r []string, exists bool)
CapAdd returns the value of the "cap_add" field in the mutation.
func (*TaskMutation) CapAddCleared ¶
func (m *TaskMutation) CapAddCleared() bool
CapAddCleared returns if the "cap_add" field was cleared in this mutation.
func (*TaskMutation) ClearCapAdd ¶
func (m *TaskMutation) ClearCapAdd()
ClearCapAdd clears the value of the "cap_add" field.
func (*TaskMutation) ClearCmd ¶
func (m *TaskMutation) ClearCmd()
ClearCmd clears the value of the "cmd" field.
func (*TaskMutation) ClearDeployment ¶
func (m *TaskMutation) ClearDeployment()
ClearDeployment clears the "deployment" edge to the Deployment entity.
func (*TaskMutation) ClearDetached ¶
func (m *TaskMutation) ClearDetached()
ClearDetached clears the value of the "detached" field.
func (*TaskMutation) ClearEdge ¶
func (m *TaskMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*TaskMutation) ClearEnvironment ¶
func (m *TaskMutation) ClearEnvironment()
ClearEnvironment clears the value of the "environment" field.
func (*TaskMutation) ClearField ¶
func (m *TaskMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*TaskMutation) ClearName ¶
func (m *TaskMutation) ClearName()
ClearName clears the value of the "name" field.
func (*TaskMutation) ClearPorts ¶
func (m *TaskMutation) ClearPorts()
ClearPorts clears the value of the "ports" field.
func (*TaskMutation) ClearRestart ¶
func (m *TaskMutation) ClearRestart()
ClearRestart clears the value of the "restart" field.
func (*TaskMutation) ClearSecurityOpt ¶
func (m *TaskMutation) ClearSecurityOpt()
ClearSecurityOpt clears the value of the "security_opt" field.
func (*TaskMutation) ClearTimeout ¶
func (m *TaskMutation) ClearTimeout()
ClearTimeout clears the value of the "timeout" field.
func (*TaskMutation) ClearVolumes ¶
func (m *TaskMutation) ClearVolumes()
ClearVolumes clears the value of the "volumes" field.
func (*TaskMutation) ClearedEdges ¶
func (m *TaskMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*TaskMutation) ClearedFields ¶
func (m *TaskMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (TaskMutation) Client ¶
func (m TaskMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*TaskMutation) Cmd ¶
func (m *TaskMutation) Cmd() (r string, exists bool)
Cmd returns the value of the "cmd" field in the mutation.
func (*TaskMutation) CmdCleared ¶
func (m *TaskMutation) CmdCleared() bool
CmdCleared returns if the "cmd" field was cleared in this mutation.
func (*TaskMutation) CreatedAt ¶
func (m *TaskMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*TaskMutation) DeploymentCleared ¶
func (m *TaskMutation) DeploymentCleared() bool
DeploymentCleared reports if the "deployment" edge to the Deployment entity was cleared.
func (*TaskMutation) DeploymentID ¶
func (m *TaskMutation) DeploymentID() (id uuid.UUID, exists bool)
DeploymentID returns the "deployment" edge ID in the mutation.
func (*TaskMutation) DeploymentIDs ¶
func (m *TaskMutation) DeploymentIDs() (ids []uuid.UUID)
DeploymentIDs returns the "deployment" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use DeploymentID instead. It exists only for internal usage by the builders.
func (*TaskMutation) Detached ¶
func (m *TaskMutation) Detached() (r bool, exists bool)
Detached returns the value of the "detached" field in the mutation.
func (*TaskMutation) DetachedCleared ¶
func (m *TaskMutation) DetachedCleared() bool
DetachedCleared returns if the "detached" field was cleared in this mutation.
func (*TaskMutation) EdgeCleared ¶
func (m *TaskMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*TaskMutation) Environment ¶
func (m *TaskMutation) Environment() (r map[string]interface{}, exists bool)
Environment returns the value of the "environment" field in the mutation.
func (*TaskMutation) EnvironmentCleared ¶
func (m *TaskMutation) EnvironmentCleared() bool
EnvironmentCleared returns if the "environment" field was cleared in this mutation.
func (*TaskMutation) Field ¶
func (m *TaskMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*TaskMutation) FieldCleared ¶
func (m *TaskMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*TaskMutation) Fields ¶
func (m *TaskMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*TaskMutation) ID ¶
func (m *TaskMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*TaskMutation) Image ¶
func (m *TaskMutation) Image() (r string, exists bool)
Image returns the value of the "image" field in the mutation.
func (*TaskMutation) Name ¶
func (m *TaskMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*TaskMutation) NameCleared ¶
func (m *TaskMutation) NameCleared() bool
NameCleared returns if the "name" field was cleared in this mutation.
func (*TaskMutation) OldCapAdd ¶
func (m *TaskMutation) OldCapAdd(ctx context.Context) (v []string, err error)
OldCapAdd returns the old "cap_add" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) OldCmd ¶
func (m *TaskMutation) OldCmd(ctx context.Context) (v string, err error)
OldCmd returns the old "cmd" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) OldDetached ¶
func (m *TaskMutation) OldDetached(ctx context.Context) (v bool, err error)
OldDetached returns the old "detached" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) OldEnvironment ¶
func (m *TaskMutation) OldEnvironment(ctx context.Context) (v map[string]interface{}, err error)
OldEnvironment returns the old "environment" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*TaskMutation) OldImage ¶
func (m *TaskMutation) OldImage(ctx context.Context) (v string, err error)
OldImage returns the old "image" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) OldName ¶
func (m *TaskMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) OldPorts ¶
func (m *TaskMutation) OldPorts(ctx context.Context) (v []string, err error)
OldPorts returns the old "ports" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) OldRestart ¶
func (m *TaskMutation) OldRestart(ctx context.Context) (v string, err error)
OldRestart returns the old "restart" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) OldSecurityOpt ¶
func (m *TaskMutation) OldSecurityOpt(ctx context.Context) (v []string, err error)
OldSecurityOpt returns the old "security_opt" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) OldTimeout ¶
func (m *TaskMutation) OldTimeout(ctx context.Context) (v int, err error)
OldTimeout returns the old "timeout" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) OldVolumes ¶
func (m *TaskMutation) OldVolumes(ctx context.Context) (v []string, err error)
OldVolumes returns the old "volumes" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) Ports ¶
func (m *TaskMutation) Ports() (r []string, exists bool)
Ports returns the value of the "ports" field in the mutation.
func (*TaskMutation) PortsCleared ¶
func (m *TaskMutation) PortsCleared() bool
PortsCleared returns if the "ports" field was cleared in this mutation.
func (*TaskMutation) RemovedEdges ¶
func (m *TaskMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*TaskMutation) RemovedIDs ¶
func (m *TaskMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*TaskMutation) ResetCapAdd ¶
func (m *TaskMutation) ResetCapAdd()
ResetCapAdd resets all changes to the "cap_add" field.
func (*TaskMutation) ResetCmd ¶
func (m *TaskMutation) ResetCmd()
ResetCmd resets all changes to the "cmd" field.
func (*TaskMutation) ResetCreatedAt ¶
func (m *TaskMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*TaskMutation) ResetDeployment ¶
func (m *TaskMutation) ResetDeployment()
ResetDeployment resets all changes to the "deployment" edge.
func (*TaskMutation) ResetDetached ¶
func (m *TaskMutation) ResetDetached()
ResetDetached resets all changes to the "detached" field.
func (*TaskMutation) ResetEdge ¶
func (m *TaskMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*TaskMutation) ResetEnvironment ¶
func (m *TaskMutation) ResetEnvironment()
ResetEnvironment resets all changes to the "environment" field.
func (*TaskMutation) ResetField ¶
func (m *TaskMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*TaskMutation) ResetImage ¶
func (m *TaskMutation) ResetImage()
ResetImage resets all changes to the "image" field.
func (*TaskMutation) ResetName ¶
func (m *TaskMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*TaskMutation) ResetPorts ¶
func (m *TaskMutation) ResetPorts()
ResetPorts resets all changes to the "ports" field.
func (*TaskMutation) ResetRestart ¶
func (m *TaskMutation) ResetRestart()
ResetRestart resets all changes to the "restart" field.
func (*TaskMutation) ResetSecurityOpt ¶
func (m *TaskMutation) ResetSecurityOpt()
ResetSecurityOpt resets all changes to the "security_opt" field.
func (*TaskMutation) ResetTimeout ¶
func (m *TaskMutation) ResetTimeout()
ResetTimeout resets all changes to the "timeout" field.
func (*TaskMutation) ResetUpdatedAt ¶
func (m *TaskMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*TaskMutation) ResetVolumes ¶
func (m *TaskMutation) ResetVolumes()
ResetVolumes resets all changes to the "volumes" field.
func (*TaskMutation) Restart ¶
func (m *TaskMutation) Restart() (r string, exists bool)
Restart returns the value of the "restart" field in the mutation.
func (*TaskMutation) RestartCleared ¶
func (m *TaskMutation) RestartCleared() bool
RestartCleared returns if the "restart" field was cleared in this mutation.
func (*TaskMutation) SecurityOpt ¶
func (m *TaskMutation) SecurityOpt() (r []string, exists bool)
SecurityOpt returns the value of the "security_opt" field in the mutation.
func (*TaskMutation) SecurityOptCleared ¶
func (m *TaskMutation) SecurityOptCleared() bool
SecurityOptCleared returns if the "security_opt" field was cleared in this mutation.
func (*TaskMutation) SetCapAdd ¶
func (m *TaskMutation) SetCapAdd(s []string)
SetCapAdd sets the "cap_add" field.
func (*TaskMutation) SetCreatedAt ¶
func (m *TaskMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*TaskMutation) SetDeploymentID ¶
func (m *TaskMutation) SetDeploymentID(id uuid.UUID)
SetDeploymentID sets the "deployment" edge to the Deployment entity by id.
func (*TaskMutation) SetDetached ¶
func (m *TaskMutation) SetDetached(b bool)
SetDetached sets the "detached" field.
func (*TaskMutation) SetEnvironment ¶
func (m *TaskMutation) SetEnvironment(value map[string]interface{})
SetEnvironment sets the "environment" field.
func (*TaskMutation) SetField ¶
func (m *TaskMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*TaskMutation) SetID ¶
func (m *TaskMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Task entities.
func (*TaskMutation) SetImage ¶
func (m *TaskMutation) SetImage(s string)
SetImage sets the "image" field.
func (*TaskMutation) SetName ¶
func (m *TaskMutation) SetName(s string)
SetName sets the "name" field.
func (*TaskMutation) SetPorts ¶
func (m *TaskMutation) SetPorts(s []string)
SetPorts sets the "ports" field.
func (*TaskMutation) SetRestart ¶
func (m *TaskMutation) SetRestart(s string)
SetRestart sets the "restart" field.
func (*TaskMutation) SetSecurityOpt ¶
func (m *TaskMutation) SetSecurityOpt(s []string)
SetSecurityOpt sets the "security_opt" field.
func (*TaskMutation) SetTimeout ¶
func (m *TaskMutation) SetTimeout(i int)
SetTimeout sets the "timeout" field.
func (*TaskMutation) SetUpdatedAt ¶
func (m *TaskMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*TaskMutation) SetVolumes ¶
func (m *TaskMutation) SetVolumes(s []string)
SetVolumes sets the "volumes" field.
func (*TaskMutation) Timeout ¶
func (m *TaskMutation) Timeout() (r int, exists bool)
Timeout returns the value of the "timeout" field in the mutation.
func (*TaskMutation) TimeoutCleared ¶
func (m *TaskMutation) TimeoutCleared() bool
TimeoutCleared returns if the "timeout" field was cleared in this mutation.
func (TaskMutation) Tx ¶
func (m TaskMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*TaskMutation) Type ¶
func (m *TaskMutation) Type() string
Type returns the node type of this mutation (Task).
func (*TaskMutation) UpdatedAt ¶
func (m *TaskMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*TaskMutation) Volumes ¶
func (m *TaskMutation) Volumes() (r []string, exists bool)
Volumes returns the value of the "volumes" field in the mutation.
func (*TaskMutation) VolumesCleared ¶
func (m *TaskMutation) VolumesCleared() bool
VolumesCleared returns if the "volumes" field was cleared in this mutation.
func (*TaskMutation) Where ¶
func (m *TaskMutation) Where(ps ...predicate.Task)
Where appends a list predicates to the TaskMutation builder.
type TaskQuery ¶
type TaskQuery struct {
// contains filtered or unexported fields
}
TaskQuery is the builder for querying Task entities.
func (*TaskQuery) Clone ¶
Clone returns a duplicate of the TaskQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*TaskQuery) First ¶
First returns the first Task entity from the query. Returns a *NotFoundError when no Task was found.
func (*TaskQuery) FirstID ¶
FirstID returns the first Task ID from the query. Returns a *NotFoundError when no Task ID was found.
func (*TaskQuery) GroupBy ¶
func (tq *TaskQuery) GroupBy(field string, fields ...string) *TaskGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.Task.Query(). GroupBy(task.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*TaskQuery) Only ¶
Only returns a single Task entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Task entity is not found. Returns a *NotFoundError when no Task entities are found.
func (*TaskQuery) OnlyID ¶
OnlyID is like Only, but returns the only Task ID in the query. Returns a *NotSingularError when exactly one Task ID is not found. Returns a *NotFoundError when no entities are found.
func (*TaskQuery) QueryDeployment ¶
func (tq *TaskQuery) QueryDeployment() *DeploymentQuery
QueryDeployment chains the current query on the "deployment" edge.
func (*TaskQuery) Select ¶
func (tq *TaskQuery) Select(fields ...string) *TaskSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` } client.Task.Query(). Select(task.FieldCreatedAt). Scan(ctx, &v)
func (*TaskQuery) Unique ¶
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*TaskQuery) WithDeployment ¶
func (tq *TaskQuery) WithDeployment(opts ...func(*DeploymentQuery)) *TaskQuery
WithDeployment tells the query-builder to eager-load the nodes that are connected to the "deployment" edge. The optional arguments are used to configure the query builder of the edge.
type TaskSelect ¶
type TaskSelect struct { *TaskQuery // contains filtered or unexported fields }
TaskSelect is the builder for selecting fields of Task entities.
func (*TaskSelect) Bool ¶
func (ts *TaskSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TaskSelect) BoolX ¶
func (ts *TaskSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*TaskSelect) Bools ¶
func (ts *TaskSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TaskSelect) BoolsX ¶
func (ts *TaskSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*TaskSelect) Float64 ¶
func (ts *TaskSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*TaskSelect) Float64X ¶
func (ts *TaskSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*TaskSelect) Float64s ¶
func (ts *TaskSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TaskSelect) Float64sX ¶
func (ts *TaskSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*TaskSelect) Int ¶
func (ts *TaskSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TaskSelect) IntX ¶
func (ts *TaskSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*TaskSelect) Ints ¶
func (ts *TaskSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*TaskSelect) IntsX ¶
func (ts *TaskSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*TaskSelect) Scan ¶
func (ts *TaskSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*TaskSelect) ScanX ¶
func (ts *TaskSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*TaskSelect) String ¶
func (ts *TaskSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*TaskSelect) StringX ¶
func (ts *TaskSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type TaskUpdate ¶
type TaskUpdate struct {
// contains filtered or unexported fields
}
TaskUpdate is the builder for updating Task entities.
func (*TaskUpdate) AddTimeout ¶
func (tu *TaskUpdate) AddTimeout(i int) *TaskUpdate
AddTimeout adds i to the "timeout" field.
func (*TaskUpdate) ClearCapAdd ¶
func (tu *TaskUpdate) ClearCapAdd() *TaskUpdate
ClearCapAdd clears the value of the "cap_add" field.
func (*TaskUpdate) ClearCmd ¶
func (tu *TaskUpdate) ClearCmd() *TaskUpdate
ClearCmd clears the value of the "cmd" field.
func (*TaskUpdate) ClearDeployment ¶
func (tu *TaskUpdate) ClearDeployment() *TaskUpdate
ClearDeployment clears the "deployment" edge to the Deployment entity.
func (*TaskUpdate) ClearDetached ¶
func (tu *TaskUpdate) ClearDetached() *TaskUpdate
ClearDetached clears the value of the "detached" field.
func (*TaskUpdate) ClearEnvironment ¶
func (tu *TaskUpdate) ClearEnvironment() *TaskUpdate
ClearEnvironment clears the value of the "environment" field.
func (*TaskUpdate) ClearName ¶
func (tu *TaskUpdate) ClearName() *TaskUpdate
ClearName clears the value of the "name" field.
func (*TaskUpdate) ClearPorts ¶
func (tu *TaskUpdate) ClearPorts() *TaskUpdate
ClearPorts clears the value of the "ports" field.
func (*TaskUpdate) ClearRestart ¶
func (tu *TaskUpdate) ClearRestart() *TaskUpdate
ClearRestart clears the value of the "restart" field.
func (*TaskUpdate) ClearSecurityOpt ¶
func (tu *TaskUpdate) ClearSecurityOpt() *TaskUpdate
ClearSecurityOpt clears the value of the "security_opt" field.
func (*TaskUpdate) ClearTimeout ¶
func (tu *TaskUpdate) ClearTimeout() *TaskUpdate
ClearTimeout clears the value of the "timeout" field.
func (*TaskUpdate) ClearVolumes ¶
func (tu *TaskUpdate) ClearVolumes() *TaskUpdate
ClearVolumes clears the value of the "volumes" field.
func (*TaskUpdate) Exec ¶
func (tu *TaskUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*TaskUpdate) ExecX ¶
func (tu *TaskUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TaskUpdate) Mutation ¶
func (tu *TaskUpdate) Mutation() *TaskMutation
Mutation returns the TaskMutation object of the builder.
func (*TaskUpdate) Save ¶
func (tu *TaskUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*TaskUpdate) SaveX ¶
func (tu *TaskUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*TaskUpdate) SetCapAdd ¶
func (tu *TaskUpdate) SetCapAdd(s []string) *TaskUpdate
SetCapAdd sets the "cap_add" field.
func (*TaskUpdate) SetCmd ¶
func (tu *TaskUpdate) SetCmd(s string) *TaskUpdate
SetCmd sets the "cmd" field.
func (*TaskUpdate) SetCreatedAt ¶
func (tu *TaskUpdate) SetCreatedAt(t time.Time) *TaskUpdate
SetCreatedAt sets the "created_at" field.
func (*TaskUpdate) SetDeployment ¶
func (tu *TaskUpdate) SetDeployment(d *Deployment) *TaskUpdate
SetDeployment sets the "deployment" edge to the Deployment entity.
func (*TaskUpdate) SetDeploymentID ¶
func (tu *TaskUpdate) SetDeploymentID(id uuid.UUID) *TaskUpdate
SetDeploymentID sets the "deployment" edge to the Deployment entity by ID.
func (*TaskUpdate) SetDetached ¶
func (tu *TaskUpdate) SetDetached(b bool) *TaskUpdate
SetDetached sets the "detached" field.
func (*TaskUpdate) SetEnvironment ¶
func (tu *TaskUpdate) SetEnvironment(m map[string]interface{}) *TaskUpdate
SetEnvironment sets the "environment" field.
func (*TaskUpdate) SetImage ¶
func (tu *TaskUpdate) SetImage(s string) *TaskUpdate
SetImage sets the "image" field.
func (*TaskUpdate) SetName ¶
func (tu *TaskUpdate) SetName(s string) *TaskUpdate
SetName sets the "name" field.
func (*TaskUpdate) SetNillableCmd ¶
func (tu *TaskUpdate) SetNillableCmd(s *string) *TaskUpdate
SetNillableCmd sets the "cmd" field if the given value is not nil.
func (*TaskUpdate) SetNillableCreatedAt ¶
func (tu *TaskUpdate) SetNillableCreatedAt(t *time.Time) *TaskUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*TaskUpdate) SetNillableDeploymentID ¶
func (tu *TaskUpdate) SetNillableDeploymentID(id *uuid.UUID) *TaskUpdate
SetNillableDeploymentID sets the "deployment" edge to the Deployment entity by ID if the given value is not nil.
func (*TaskUpdate) SetNillableDetached ¶
func (tu *TaskUpdate) SetNillableDetached(b *bool) *TaskUpdate
SetNillableDetached sets the "detached" field if the given value is not nil.
func (*TaskUpdate) SetNillableName ¶
func (tu *TaskUpdate) SetNillableName(s *string) *TaskUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*TaskUpdate) SetNillableRestart ¶
func (tu *TaskUpdate) SetNillableRestart(s *string) *TaskUpdate
SetNillableRestart sets the "restart" field if the given value is not nil.
func (*TaskUpdate) SetNillableTimeout ¶
func (tu *TaskUpdate) SetNillableTimeout(i *int) *TaskUpdate
SetNillableTimeout sets the "timeout" field if the given value is not nil.
func (*TaskUpdate) SetPorts ¶
func (tu *TaskUpdate) SetPorts(s []string) *TaskUpdate
SetPorts sets the "ports" field.
func (*TaskUpdate) SetRestart ¶
func (tu *TaskUpdate) SetRestart(s string) *TaskUpdate
SetRestart sets the "restart" field.
func (*TaskUpdate) SetSecurityOpt ¶
func (tu *TaskUpdate) SetSecurityOpt(s []string) *TaskUpdate
SetSecurityOpt sets the "security_opt" field.
func (*TaskUpdate) SetTimeout ¶
func (tu *TaskUpdate) SetTimeout(i int) *TaskUpdate
SetTimeout sets the "timeout" field.
func (*TaskUpdate) SetUpdatedAt ¶
func (tu *TaskUpdate) SetUpdatedAt(t time.Time) *TaskUpdate
SetUpdatedAt sets the "updated_at" field.
func (*TaskUpdate) SetVolumes ¶
func (tu *TaskUpdate) SetVolumes(s []string) *TaskUpdate
SetVolumes sets the "volumes" field.
func (*TaskUpdate) Where ¶
func (tu *TaskUpdate) Where(ps ...predicate.Task) *TaskUpdate
Where appends a list predicates to the TaskUpdate builder.
type TaskUpdateOne ¶
type TaskUpdateOne struct {
// contains filtered or unexported fields
}
TaskUpdateOne is the builder for updating a single Task entity.
func (*TaskUpdateOne) AddTimeout ¶
func (tuo *TaskUpdateOne) AddTimeout(i int) *TaskUpdateOne
AddTimeout adds i to the "timeout" field.
func (*TaskUpdateOne) ClearCapAdd ¶
func (tuo *TaskUpdateOne) ClearCapAdd() *TaskUpdateOne
ClearCapAdd clears the value of the "cap_add" field.
func (*TaskUpdateOne) ClearCmd ¶
func (tuo *TaskUpdateOne) ClearCmd() *TaskUpdateOne
ClearCmd clears the value of the "cmd" field.
func (*TaskUpdateOne) ClearDeployment ¶
func (tuo *TaskUpdateOne) ClearDeployment() *TaskUpdateOne
ClearDeployment clears the "deployment" edge to the Deployment entity.
func (*TaskUpdateOne) ClearDetached ¶
func (tuo *TaskUpdateOne) ClearDetached() *TaskUpdateOne
ClearDetached clears the value of the "detached" field.
func (*TaskUpdateOne) ClearEnvironment ¶
func (tuo *TaskUpdateOne) ClearEnvironment() *TaskUpdateOne
ClearEnvironment clears the value of the "environment" field.
func (*TaskUpdateOne) ClearName ¶
func (tuo *TaskUpdateOne) ClearName() *TaskUpdateOne
ClearName clears the value of the "name" field.
func (*TaskUpdateOne) ClearPorts ¶
func (tuo *TaskUpdateOne) ClearPorts() *TaskUpdateOne
ClearPorts clears the value of the "ports" field.
func (*TaskUpdateOne) ClearRestart ¶
func (tuo *TaskUpdateOne) ClearRestart() *TaskUpdateOne
ClearRestart clears the value of the "restart" field.
func (*TaskUpdateOne) ClearSecurityOpt ¶
func (tuo *TaskUpdateOne) ClearSecurityOpt() *TaskUpdateOne
ClearSecurityOpt clears the value of the "security_opt" field.
func (*TaskUpdateOne) ClearTimeout ¶
func (tuo *TaskUpdateOne) ClearTimeout() *TaskUpdateOne
ClearTimeout clears the value of the "timeout" field.
func (*TaskUpdateOne) ClearVolumes ¶
func (tuo *TaskUpdateOne) ClearVolumes() *TaskUpdateOne
ClearVolumes clears the value of the "volumes" field.
func (*TaskUpdateOne) Exec ¶
func (tuo *TaskUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*TaskUpdateOne) ExecX ¶
func (tuo *TaskUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TaskUpdateOne) Mutation ¶
func (tuo *TaskUpdateOne) Mutation() *TaskMutation
Mutation returns the TaskMutation object of the builder.
func (*TaskUpdateOne) Save ¶
func (tuo *TaskUpdateOne) Save(ctx context.Context) (*Task, error)
Save executes the query and returns the updated Task entity.
func (*TaskUpdateOne) SaveX ¶
func (tuo *TaskUpdateOne) SaveX(ctx context.Context) *Task
SaveX is like Save, but panics if an error occurs.
func (*TaskUpdateOne) Select ¶
func (tuo *TaskUpdateOne) Select(field string, fields ...string) *TaskUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*TaskUpdateOne) SetCapAdd ¶
func (tuo *TaskUpdateOne) SetCapAdd(s []string) *TaskUpdateOne
SetCapAdd sets the "cap_add" field.
func (*TaskUpdateOne) SetCmd ¶
func (tuo *TaskUpdateOne) SetCmd(s string) *TaskUpdateOne
SetCmd sets the "cmd" field.
func (*TaskUpdateOne) SetCreatedAt ¶
func (tuo *TaskUpdateOne) SetCreatedAt(t time.Time) *TaskUpdateOne
SetCreatedAt sets the "created_at" field.
func (*TaskUpdateOne) SetDeployment ¶
func (tuo *TaskUpdateOne) SetDeployment(d *Deployment) *TaskUpdateOne
SetDeployment sets the "deployment" edge to the Deployment entity.
func (*TaskUpdateOne) SetDeploymentID ¶
func (tuo *TaskUpdateOne) SetDeploymentID(id uuid.UUID) *TaskUpdateOne
SetDeploymentID sets the "deployment" edge to the Deployment entity by ID.
func (*TaskUpdateOne) SetDetached ¶
func (tuo *TaskUpdateOne) SetDetached(b bool) *TaskUpdateOne
SetDetached sets the "detached" field.
func (*TaskUpdateOne) SetEnvironment ¶
func (tuo *TaskUpdateOne) SetEnvironment(m map[string]interface{}) *TaskUpdateOne
SetEnvironment sets the "environment" field.
func (*TaskUpdateOne) SetImage ¶
func (tuo *TaskUpdateOne) SetImage(s string) *TaskUpdateOne
SetImage sets the "image" field.
func (*TaskUpdateOne) SetName ¶
func (tuo *TaskUpdateOne) SetName(s string) *TaskUpdateOne
SetName sets the "name" field.
func (*TaskUpdateOne) SetNillableCmd ¶
func (tuo *TaskUpdateOne) SetNillableCmd(s *string) *TaskUpdateOne
SetNillableCmd sets the "cmd" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableCreatedAt ¶
func (tuo *TaskUpdateOne) SetNillableCreatedAt(t *time.Time) *TaskUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableDeploymentID ¶
func (tuo *TaskUpdateOne) SetNillableDeploymentID(id *uuid.UUID) *TaskUpdateOne
SetNillableDeploymentID sets the "deployment" edge to the Deployment entity by ID if the given value is not nil.
func (*TaskUpdateOne) SetNillableDetached ¶
func (tuo *TaskUpdateOne) SetNillableDetached(b *bool) *TaskUpdateOne
SetNillableDetached sets the "detached" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableName ¶
func (tuo *TaskUpdateOne) SetNillableName(s *string) *TaskUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableRestart ¶
func (tuo *TaskUpdateOne) SetNillableRestart(s *string) *TaskUpdateOne
SetNillableRestart sets the "restart" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableTimeout ¶
func (tuo *TaskUpdateOne) SetNillableTimeout(i *int) *TaskUpdateOne
SetNillableTimeout sets the "timeout" field if the given value is not nil.
func (*TaskUpdateOne) SetPorts ¶
func (tuo *TaskUpdateOne) SetPorts(s []string) *TaskUpdateOne
SetPorts sets the "ports" field.
func (*TaskUpdateOne) SetRestart ¶
func (tuo *TaskUpdateOne) SetRestart(s string) *TaskUpdateOne
SetRestart sets the "restart" field.
func (*TaskUpdateOne) SetSecurityOpt ¶
func (tuo *TaskUpdateOne) SetSecurityOpt(s []string) *TaskUpdateOne
SetSecurityOpt sets the "security_opt" field.
func (*TaskUpdateOne) SetTimeout ¶
func (tuo *TaskUpdateOne) SetTimeout(i int) *TaskUpdateOne
SetTimeout sets the "timeout" field.
func (*TaskUpdateOne) SetUpdatedAt ¶
func (tuo *TaskUpdateOne) SetUpdatedAt(t time.Time) *TaskUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*TaskUpdateOne) SetVolumes ¶
func (tuo *TaskUpdateOne) SetVolumes(s []string) *TaskUpdateOne
SetVolumes sets the "volumes" field.
type Tx ¶
type Tx struct { // Credential is the client for interacting with the Credential builders. Credential *CredentialClient // Deployment is the client for interacting with the Deployment builders. Deployment *DeploymentClient // Process is the client for interacting with the Process builders. Process *ProcessClient // Provider is the client for interacting with the Provider builders. Provider *ProviderClient // Stack is the client for interacting with the Stack builders. Stack *StackClient // Task is the client for interacting with the Task builders. Task *TaskClient // contains filtered or unexported fields }
Tx is a transactional client that is created by calling Client.Tx().
func TxFromContext ¶
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.
func (*Tx) OnRollback ¶
func (tx *Tx) OnRollback(f RollbackHook)
OnRollback adds a hook to call on rollback.
type ValidationError ¶
type ValidationError struct { Name string // Field or edge name. // contains filtered or unexported fields }
ValidationError returns when validating a field fails.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Error implements the error interface.
func (*ValidationError) Unwrap ¶
func (e *ValidationError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
Source Files ¶
- client.go
- config.go
- context.go
- credential.go
- credential_create.go
- credential_delete.go
- credential_query.go
- credential_update.go
- deployment.go
- deployment_create.go
- deployment_delete.go
- deployment_query.go
- deployment_update.go
- ent.go
- generate.go
- mutation.go
- process.go
- process_create.go
- process_delete.go
- process_query.go
- process_update.go
- provider.go
- provider_create.go
- provider_delete.go
- provider_query.go
- provider_update.go
- runtime.go
- stack.go
- stack_create.go
- stack_delete.go
- stack_query.go
- stack_update.go
- task.go
- task_create.go
- task_delete.go
- task_query.go
- task_update.go
- tx.go