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
- func ServeEntviz() http.Handler
- type AggregateFunc
- type Client
- func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)
- func (c *Client) Close() error
- func (c *Client) Debug() *Client
- func (c *Client) Intercept(interceptors ...Interceptor)
- func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)
- func (c *Client) Tx(ctx context.Context) (*Tx, error)
- func (c *Client) Use(hooks ...Hook)
- type CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- type Hook
- type Integration
- type IntegrationAttachment
- func (ia *IntegrationAttachment) QueryIntegration() *IntegrationQuery
- func (ia *IntegrationAttachment) QueryWorkflow() *WorkflowQuery
- func (ia *IntegrationAttachment) String() string
- func (ia *IntegrationAttachment) Unwrap() *IntegrationAttachment
- func (ia *IntegrationAttachment) Update() *IntegrationAttachmentUpdateOne
- type IntegrationAttachmentClient
- func (c *IntegrationAttachmentClient) Create() *IntegrationAttachmentCreate
- func (c *IntegrationAttachmentClient) CreateBulk(builders ...*IntegrationAttachmentCreate) *IntegrationAttachmentCreateBulk
- func (c *IntegrationAttachmentClient) Delete() *IntegrationAttachmentDelete
- func (c *IntegrationAttachmentClient) DeleteOne(ia *IntegrationAttachment) *IntegrationAttachmentDeleteOne
- func (c *IntegrationAttachmentClient) DeleteOneID(id uuid.UUID) *IntegrationAttachmentDeleteOne
- func (c *IntegrationAttachmentClient) Get(ctx context.Context, id uuid.UUID) (*IntegrationAttachment, error)
- func (c *IntegrationAttachmentClient) GetX(ctx context.Context, id uuid.UUID) *IntegrationAttachment
- func (c *IntegrationAttachmentClient) Hooks() []Hook
- func (c *IntegrationAttachmentClient) Intercept(interceptors ...Interceptor)
- func (c *IntegrationAttachmentClient) Interceptors() []Interceptor
- func (c *IntegrationAttachmentClient) Query() *IntegrationAttachmentQuery
- func (c *IntegrationAttachmentClient) QueryIntegration(ia *IntegrationAttachment) *IntegrationQuery
- func (c *IntegrationAttachmentClient) QueryWorkflow(ia *IntegrationAttachment) *WorkflowQuery
- func (c *IntegrationAttachmentClient) Update() *IntegrationAttachmentUpdate
- func (c *IntegrationAttachmentClient) UpdateOne(ia *IntegrationAttachment) *IntegrationAttachmentUpdateOne
- func (c *IntegrationAttachmentClient) UpdateOneID(id uuid.UUID) *IntegrationAttachmentUpdateOne
- func (c *IntegrationAttachmentClient) Use(hooks ...Hook)
- type IntegrationAttachmentCreate
- func (iac *IntegrationAttachmentCreate) Exec(ctx context.Context) error
- func (iac *IntegrationAttachmentCreate) ExecX(ctx context.Context)
- func (iac *IntegrationAttachmentCreate) Mutation() *IntegrationAttachmentMutation
- func (iac *IntegrationAttachmentCreate) Save(ctx context.Context) (*IntegrationAttachment, error)
- func (iac *IntegrationAttachmentCreate) SaveX(ctx context.Context) *IntegrationAttachment
- func (iac *IntegrationAttachmentCreate) SetConfiguration(b []byte) *IntegrationAttachmentCreate
- func (iac *IntegrationAttachmentCreate) SetCreatedAt(t time.Time) *IntegrationAttachmentCreate
- func (iac *IntegrationAttachmentCreate) SetDeletedAt(t time.Time) *IntegrationAttachmentCreate
- func (iac *IntegrationAttachmentCreate) SetID(u uuid.UUID) *IntegrationAttachmentCreate
- func (iac *IntegrationAttachmentCreate) SetIntegration(i *Integration) *IntegrationAttachmentCreate
- func (iac *IntegrationAttachmentCreate) SetIntegrationID(id uuid.UUID) *IntegrationAttachmentCreate
- func (iac *IntegrationAttachmentCreate) SetNillableCreatedAt(t *time.Time) *IntegrationAttachmentCreate
- func (iac *IntegrationAttachmentCreate) SetNillableDeletedAt(t *time.Time) *IntegrationAttachmentCreate
- func (iac *IntegrationAttachmentCreate) SetNillableID(u *uuid.UUID) *IntegrationAttachmentCreate
- func (iac *IntegrationAttachmentCreate) SetWorkflow(w *Workflow) *IntegrationAttachmentCreate
- func (iac *IntegrationAttachmentCreate) SetWorkflowID(id uuid.UUID) *IntegrationAttachmentCreate
- type IntegrationAttachmentCreateBulk
- func (iacb *IntegrationAttachmentCreateBulk) Exec(ctx context.Context) error
- func (iacb *IntegrationAttachmentCreateBulk) ExecX(ctx context.Context)
- func (iacb *IntegrationAttachmentCreateBulk) Save(ctx context.Context) ([]*IntegrationAttachment, error)
- func (iacb *IntegrationAttachmentCreateBulk) SaveX(ctx context.Context) []*IntegrationAttachment
- type IntegrationAttachmentDelete
- type IntegrationAttachmentDeleteOne
- type IntegrationAttachmentEdges
- type IntegrationAttachmentGroupBy
- func (iagb *IntegrationAttachmentGroupBy) Aggregate(fns ...AggregateFunc) *IntegrationAttachmentGroupBy
- func (s *IntegrationAttachmentGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *IntegrationAttachmentGroupBy) BoolX(ctx context.Context) bool
- func (s *IntegrationAttachmentGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *IntegrationAttachmentGroupBy) BoolsX(ctx context.Context) []bool
- func (s *IntegrationAttachmentGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *IntegrationAttachmentGroupBy) Float64X(ctx context.Context) float64
- func (s *IntegrationAttachmentGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *IntegrationAttachmentGroupBy) Float64sX(ctx context.Context) []float64
- func (s *IntegrationAttachmentGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *IntegrationAttachmentGroupBy) IntX(ctx context.Context) int
- func (s *IntegrationAttachmentGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *IntegrationAttachmentGroupBy) IntsX(ctx context.Context) []int
- func (iagb *IntegrationAttachmentGroupBy) Scan(ctx context.Context, v any) error
- func (s *IntegrationAttachmentGroupBy) ScanX(ctx context.Context, v any)
- func (s *IntegrationAttachmentGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *IntegrationAttachmentGroupBy) StringX(ctx context.Context) string
- func (s *IntegrationAttachmentGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *IntegrationAttachmentGroupBy) StringsX(ctx context.Context) []string
- type IntegrationAttachmentMutation
- func (m *IntegrationAttachmentMutation) AddField(name string, value ent.Value) error
- func (m *IntegrationAttachmentMutation) AddedEdges() []string
- func (m *IntegrationAttachmentMutation) AddedField(name string) (ent.Value, bool)
- func (m *IntegrationAttachmentMutation) AddedFields() []string
- func (m *IntegrationAttachmentMutation) AddedIDs(name string) []ent.Value
- func (m *IntegrationAttachmentMutation) ClearConfiguration()
- func (m *IntegrationAttachmentMutation) ClearDeletedAt()
- func (m *IntegrationAttachmentMutation) ClearEdge(name string) error
- func (m *IntegrationAttachmentMutation) ClearField(name string) error
- func (m *IntegrationAttachmentMutation) ClearIntegration()
- func (m *IntegrationAttachmentMutation) ClearWorkflow()
- func (m *IntegrationAttachmentMutation) ClearedEdges() []string
- func (m *IntegrationAttachmentMutation) ClearedFields() []string
- func (m IntegrationAttachmentMutation) Client() *Client
- func (m *IntegrationAttachmentMutation) Configuration() (r []byte, exists bool)
- func (m *IntegrationAttachmentMutation) ConfigurationCleared() bool
- func (m *IntegrationAttachmentMutation) CreatedAt() (r time.Time, exists bool)
- func (m *IntegrationAttachmentMutation) DeletedAt() (r time.Time, exists bool)
- func (m *IntegrationAttachmentMutation) DeletedAtCleared() bool
- func (m *IntegrationAttachmentMutation) EdgeCleared(name string) bool
- func (m *IntegrationAttachmentMutation) Field(name string) (ent.Value, bool)
- func (m *IntegrationAttachmentMutation) FieldCleared(name string) bool
- func (m *IntegrationAttachmentMutation) Fields() []string
- func (m *IntegrationAttachmentMutation) ID() (id uuid.UUID, exists bool)
- func (m *IntegrationAttachmentMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *IntegrationAttachmentMutation) IntegrationCleared() bool
- func (m *IntegrationAttachmentMutation) IntegrationID() (id uuid.UUID, exists bool)
- func (m *IntegrationAttachmentMutation) IntegrationIDs() (ids []uuid.UUID)
- func (m *IntegrationAttachmentMutation) OldConfiguration(ctx context.Context) (v []byte, err error)
- func (m *IntegrationAttachmentMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *IntegrationAttachmentMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *IntegrationAttachmentMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *IntegrationAttachmentMutation) Op() Op
- func (m *IntegrationAttachmentMutation) RemovedEdges() []string
- func (m *IntegrationAttachmentMutation) RemovedIDs(name string) []ent.Value
- func (m *IntegrationAttachmentMutation) ResetConfiguration()
- func (m *IntegrationAttachmentMutation) ResetCreatedAt()
- func (m *IntegrationAttachmentMutation) ResetDeletedAt()
- func (m *IntegrationAttachmentMutation) ResetEdge(name string) error
- func (m *IntegrationAttachmentMutation) ResetField(name string) error
- func (m *IntegrationAttachmentMutation) ResetIntegration()
- func (m *IntegrationAttachmentMutation) ResetWorkflow()
- func (m *IntegrationAttachmentMutation) SetConfiguration(b []byte)
- func (m *IntegrationAttachmentMutation) SetCreatedAt(t time.Time)
- func (m *IntegrationAttachmentMutation) SetDeletedAt(t time.Time)
- func (m *IntegrationAttachmentMutation) SetField(name string, value ent.Value) error
- func (m *IntegrationAttachmentMutation) SetID(id uuid.UUID)
- func (m *IntegrationAttachmentMutation) SetIntegrationID(id uuid.UUID)
- func (m *IntegrationAttachmentMutation) SetOp(op Op)
- func (m *IntegrationAttachmentMutation) SetWorkflowID(id uuid.UUID)
- func (m IntegrationAttachmentMutation) Tx() (*Tx, error)
- func (m *IntegrationAttachmentMutation) Type() string
- func (m *IntegrationAttachmentMutation) Where(ps ...predicate.IntegrationAttachment)
- func (m *IntegrationAttachmentMutation) WhereP(ps ...func(*sql.Selector))
- func (m *IntegrationAttachmentMutation) WorkflowCleared() bool
- func (m *IntegrationAttachmentMutation) WorkflowID() (id uuid.UUID, exists bool)
- func (m *IntegrationAttachmentMutation) WorkflowIDs() (ids []uuid.UUID)
- type IntegrationAttachmentQuery
- func (iaq *IntegrationAttachmentQuery) Aggregate(fns ...AggregateFunc) *IntegrationAttachmentSelect
- func (iaq *IntegrationAttachmentQuery) All(ctx context.Context) ([]*IntegrationAttachment, error)
- func (iaq *IntegrationAttachmentQuery) AllX(ctx context.Context) []*IntegrationAttachment
- func (iaq *IntegrationAttachmentQuery) Clone() *IntegrationAttachmentQuery
- func (iaq *IntegrationAttachmentQuery) Count(ctx context.Context) (int, error)
- func (iaq *IntegrationAttachmentQuery) CountX(ctx context.Context) int
- func (iaq *IntegrationAttachmentQuery) Exist(ctx context.Context) (bool, error)
- func (iaq *IntegrationAttachmentQuery) ExistX(ctx context.Context) bool
- func (iaq *IntegrationAttachmentQuery) First(ctx context.Context) (*IntegrationAttachment, error)
- func (iaq *IntegrationAttachmentQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (iaq *IntegrationAttachmentQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (iaq *IntegrationAttachmentQuery) FirstX(ctx context.Context) *IntegrationAttachment
- func (iaq *IntegrationAttachmentQuery) GroupBy(field string, fields ...string) *IntegrationAttachmentGroupBy
- func (iaq *IntegrationAttachmentQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (iaq *IntegrationAttachmentQuery) IDsX(ctx context.Context) []uuid.UUID
- func (iaq *IntegrationAttachmentQuery) Limit(limit int) *IntegrationAttachmentQuery
- func (iaq *IntegrationAttachmentQuery) Offset(offset int) *IntegrationAttachmentQuery
- func (iaq *IntegrationAttachmentQuery) Only(ctx context.Context) (*IntegrationAttachment, error)
- func (iaq *IntegrationAttachmentQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (iaq *IntegrationAttachmentQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (iaq *IntegrationAttachmentQuery) OnlyX(ctx context.Context) *IntegrationAttachment
- func (iaq *IntegrationAttachmentQuery) Order(o ...OrderFunc) *IntegrationAttachmentQuery
- func (iaq *IntegrationAttachmentQuery) QueryIntegration() *IntegrationQuery
- func (iaq *IntegrationAttachmentQuery) QueryWorkflow() *WorkflowQuery
- func (iaq *IntegrationAttachmentQuery) Select(fields ...string) *IntegrationAttachmentSelect
- func (iaq *IntegrationAttachmentQuery) Unique(unique bool) *IntegrationAttachmentQuery
- func (iaq *IntegrationAttachmentQuery) Where(ps ...predicate.IntegrationAttachment) *IntegrationAttachmentQuery
- func (iaq *IntegrationAttachmentQuery) WithIntegration(opts ...func(*IntegrationQuery)) *IntegrationAttachmentQuery
- func (iaq *IntegrationAttachmentQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *IntegrationAttachmentQuery
- type IntegrationAttachmentSelect
- func (ias *IntegrationAttachmentSelect) Aggregate(fns ...AggregateFunc) *IntegrationAttachmentSelect
- func (s *IntegrationAttachmentSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *IntegrationAttachmentSelect) BoolX(ctx context.Context) bool
- func (s *IntegrationAttachmentSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *IntegrationAttachmentSelect) BoolsX(ctx context.Context) []bool
- func (s *IntegrationAttachmentSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *IntegrationAttachmentSelect) Float64X(ctx context.Context) float64
- func (s *IntegrationAttachmentSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *IntegrationAttachmentSelect) Float64sX(ctx context.Context) []float64
- func (s *IntegrationAttachmentSelect) Int(ctx context.Context) (_ int, err error)
- func (s *IntegrationAttachmentSelect) IntX(ctx context.Context) int
- func (s *IntegrationAttachmentSelect) Ints(ctx context.Context) ([]int, error)
- func (s *IntegrationAttachmentSelect) IntsX(ctx context.Context) []int
- func (ias *IntegrationAttachmentSelect) Scan(ctx context.Context, v any) error
- func (s *IntegrationAttachmentSelect) ScanX(ctx context.Context, v any)
- func (s *IntegrationAttachmentSelect) String(ctx context.Context) (_ string, err error)
- func (s *IntegrationAttachmentSelect) StringX(ctx context.Context) string
- func (s *IntegrationAttachmentSelect) Strings(ctx context.Context) ([]string, error)
- func (s *IntegrationAttachmentSelect) StringsX(ctx context.Context) []string
- type IntegrationAttachmentUpdate
- func (iau *IntegrationAttachmentUpdate) ClearConfiguration() *IntegrationAttachmentUpdate
- func (iau *IntegrationAttachmentUpdate) ClearDeletedAt() *IntegrationAttachmentUpdate
- func (iau *IntegrationAttachmentUpdate) ClearIntegration() *IntegrationAttachmentUpdate
- func (iau *IntegrationAttachmentUpdate) ClearWorkflow() *IntegrationAttachmentUpdate
- func (iau *IntegrationAttachmentUpdate) Exec(ctx context.Context) error
- func (iau *IntegrationAttachmentUpdate) ExecX(ctx context.Context)
- func (iau *IntegrationAttachmentUpdate) Mutation() *IntegrationAttachmentMutation
- func (iau *IntegrationAttachmentUpdate) Save(ctx context.Context) (int, error)
- func (iau *IntegrationAttachmentUpdate) SaveX(ctx context.Context) int
- func (iau *IntegrationAttachmentUpdate) SetConfiguration(b []byte) *IntegrationAttachmentUpdate
- func (iau *IntegrationAttachmentUpdate) SetDeletedAt(t time.Time) *IntegrationAttachmentUpdate
- func (iau *IntegrationAttachmentUpdate) SetIntegration(i *Integration) *IntegrationAttachmentUpdate
- func (iau *IntegrationAttachmentUpdate) SetIntegrationID(id uuid.UUID) *IntegrationAttachmentUpdate
- func (iau *IntegrationAttachmentUpdate) SetNillableDeletedAt(t *time.Time) *IntegrationAttachmentUpdate
- func (iau *IntegrationAttachmentUpdate) SetWorkflow(w *Workflow) *IntegrationAttachmentUpdate
- func (iau *IntegrationAttachmentUpdate) SetWorkflowID(id uuid.UUID) *IntegrationAttachmentUpdate
- func (iau *IntegrationAttachmentUpdate) Where(ps ...predicate.IntegrationAttachment) *IntegrationAttachmentUpdate
- type IntegrationAttachmentUpdateOne
- func (iauo *IntegrationAttachmentUpdateOne) ClearConfiguration() *IntegrationAttachmentUpdateOne
- func (iauo *IntegrationAttachmentUpdateOne) ClearDeletedAt() *IntegrationAttachmentUpdateOne
- func (iauo *IntegrationAttachmentUpdateOne) ClearIntegration() *IntegrationAttachmentUpdateOne
- func (iauo *IntegrationAttachmentUpdateOne) ClearWorkflow() *IntegrationAttachmentUpdateOne
- func (iauo *IntegrationAttachmentUpdateOne) Exec(ctx context.Context) error
- func (iauo *IntegrationAttachmentUpdateOne) ExecX(ctx context.Context)
- func (iauo *IntegrationAttachmentUpdateOne) Mutation() *IntegrationAttachmentMutation
- func (iauo *IntegrationAttachmentUpdateOne) Save(ctx context.Context) (*IntegrationAttachment, error)
- func (iauo *IntegrationAttachmentUpdateOne) SaveX(ctx context.Context) *IntegrationAttachment
- func (iauo *IntegrationAttachmentUpdateOne) Select(field string, fields ...string) *IntegrationAttachmentUpdateOne
- func (iauo *IntegrationAttachmentUpdateOne) SetConfiguration(b []byte) *IntegrationAttachmentUpdateOne
- func (iauo *IntegrationAttachmentUpdateOne) SetDeletedAt(t time.Time) *IntegrationAttachmentUpdateOne
- func (iauo *IntegrationAttachmentUpdateOne) SetIntegration(i *Integration) *IntegrationAttachmentUpdateOne
- func (iauo *IntegrationAttachmentUpdateOne) SetIntegrationID(id uuid.UUID) *IntegrationAttachmentUpdateOne
- func (iauo *IntegrationAttachmentUpdateOne) SetNillableDeletedAt(t *time.Time) *IntegrationAttachmentUpdateOne
- func (iauo *IntegrationAttachmentUpdateOne) SetWorkflow(w *Workflow) *IntegrationAttachmentUpdateOne
- func (iauo *IntegrationAttachmentUpdateOne) SetWorkflowID(id uuid.UUID) *IntegrationAttachmentUpdateOne
- func (iauo *IntegrationAttachmentUpdateOne) Where(ps ...predicate.IntegrationAttachment) *IntegrationAttachmentUpdateOne
- type IntegrationAttachments
- type IntegrationClient
- func (c *IntegrationClient) Create() *IntegrationCreate
- func (c *IntegrationClient) CreateBulk(builders ...*IntegrationCreate) *IntegrationCreateBulk
- func (c *IntegrationClient) Delete() *IntegrationDelete
- func (c *IntegrationClient) DeleteOne(i *Integration) *IntegrationDeleteOne
- func (c *IntegrationClient) DeleteOneID(id uuid.UUID) *IntegrationDeleteOne
- func (c *IntegrationClient) Get(ctx context.Context, id uuid.UUID) (*Integration, error)
- func (c *IntegrationClient) GetX(ctx context.Context, id uuid.UUID) *Integration
- func (c *IntegrationClient) Hooks() []Hook
- func (c *IntegrationClient) Intercept(interceptors ...Interceptor)
- func (c *IntegrationClient) Interceptors() []Interceptor
- func (c *IntegrationClient) Query() *IntegrationQuery
- func (c *IntegrationClient) QueryAttachments(i *Integration) *IntegrationAttachmentQuery
- func (c *IntegrationClient) QueryOrganization(i *Integration) *OrganizationQuery
- func (c *IntegrationClient) Update() *IntegrationUpdate
- func (c *IntegrationClient) UpdateOne(i *Integration) *IntegrationUpdateOne
- func (c *IntegrationClient) UpdateOneID(id uuid.UUID) *IntegrationUpdateOne
- func (c *IntegrationClient) Use(hooks ...Hook)
- type IntegrationCreate
- func (ic *IntegrationCreate) AddAttachmentIDs(ids ...uuid.UUID) *IntegrationCreate
- func (ic *IntegrationCreate) AddAttachments(i ...*IntegrationAttachment) *IntegrationCreate
- func (ic *IntegrationCreate) Exec(ctx context.Context) error
- func (ic *IntegrationCreate) ExecX(ctx context.Context)
- func (ic *IntegrationCreate) Mutation() *IntegrationMutation
- func (ic *IntegrationCreate) Save(ctx context.Context) (*Integration, error)
- func (ic *IntegrationCreate) SaveX(ctx context.Context) *Integration
- func (ic *IntegrationCreate) SetConfiguration(b []byte) *IntegrationCreate
- func (ic *IntegrationCreate) SetCreatedAt(t time.Time) *IntegrationCreate
- func (ic *IntegrationCreate) SetDeletedAt(t time.Time) *IntegrationCreate
- func (ic *IntegrationCreate) SetDescription(s string) *IntegrationCreate
- func (ic *IntegrationCreate) SetID(u uuid.UUID) *IntegrationCreate
- func (ic *IntegrationCreate) SetKind(s string) *IntegrationCreate
- func (ic *IntegrationCreate) SetNillableCreatedAt(t *time.Time) *IntegrationCreate
- func (ic *IntegrationCreate) SetNillableDeletedAt(t *time.Time) *IntegrationCreate
- func (ic *IntegrationCreate) SetNillableDescription(s *string) *IntegrationCreate
- func (ic *IntegrationCreate) SetNillableID(u *uuid.UUID) *IntegrationCreate
- func (ic *IntegrationCreate) SetOrganization(o *Organization) *IntegrationCreate
- func (ic *IntegrationCreate) SetOrganizationID(id uuid.UUID) *IntegrationCreate
- func (ic *IntegrationCreate) SetSecretName(s string) *IntegrationCreate
- type IntegrationCreateBulk
- type IntegrationDelete
- type IntegrationDeleteOne
- type IntegrationEdges
- type IntegrationGroupBy
- func (igb *IntegrationGroupBy) Aggregate(fns ...AggregateFunc) *IntegrationGroupBy
- func (s *IntegrationGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *IntegrationGroupBy) BoolX(ctx context.Context) bool
- func (s *IntegrationGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *IntegrationGroupBy) BoolsX(ctx context.Context) []bool
- func (s *IntegrationGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *IntegrationGroupBy) Float64X(ctx context.Context) float64
- func (s *IntegrationGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *IntegrationGroupBy) Float64sX(ctx context.Context) []float64
- func (s *IntegrationGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *IntegrationGroupBy) IntX(ctx context.Context) int
- func (s *IntegrationGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *IntegrationGroupBy) IntsX(ctx context.Context) []int
- func (igb *IntegrationGroupBy) Scan(ctx context.Context, v any) error
- func (s *IntegrationGroupBy) ScanX(ctx context.Context, v any)
- func (s *IntegrationGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *IntegrationGroupBy) StringX(ctx context.Context) string
- func (s *IntegrationGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *IntegrationGroupBy) StringsX(ctx context.Context) []string
- type IntegrationMutation
- func (m *IntegrationMutation) AddAttachmentIDs(ids ...uuid.UUID)
- func (m *IntegrationMutation) AddField(name string, value ent.Value) error
- func (m *IntegrationMutation) AddedEdges() []string
- func (m *IntegrationMutation) AddedField(name string) (ent.Value, bool)
- func (m *IntegrationMutation) AddedFields() []string
- func (m *IntegrationMutation) AddedIDs(name string) []ent.Value
- func (m *IntegrationMutation) AttachmentsCleared() bool
- func (m *IntegrationMutation) AttachmentsIDs() (ids []uuid.UUID)
- func (m *IntegrationMutation) ClearAttachments()
- func (m *IntegrationMutation) ClearConfiguration()
- func (m *IntegrationMutation) ClearDeletedAt()
- func (m *IntegrationMutation) ClearDescription()
- func (m *IntegrationMutation) ClearEdge(name string) error
- func (m *IntegrationMutation) ClearField(name string) error
- func (m *IntegrationMutation) ClearOrganization()
- func (m *IntegrationMutation) ClearedEdges() []string
- func (m *IntegrationMutation) ClearedFields() []string
- func (m IntegrationMutation) Client() *Client
- func (m *IntegrationMutation) Configuration() (r []byte, exists bool)
- func (m *IntegrationMutation) ConfigurationCleared() bool
- func (m *IntegrationMutation) CreatedAt() (r time.Time, exists bool)
- func (m *IntegrationMutation) DeletedAt() (r time.Time, exists bool)
- func (m *IntegrationMutation) DeletedAtCleared() bool
- func (m *IntegrationMutation) Description() (r string, exists bool)
- func (m *IntegrationMutation) DescriptionCleared() bool
- func (m *IntegrationMutation) EdgeCleared(name string) bool
- func (m *IntegrationMutation) Field(name string) (ent.Value, bool)
- func (m *IntegrationMutation) FieldCleared(name string) bool
- func (m *IntegrationMutation) Fields() []string
- func (m *IntegrationMutation) ID() (id uuid.UUID, exists bool)
- func (m *IntegrationMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *IntegrationMutation) Kind() (r string, exists bool)
- func (m *IntegrationMutation) OldConfiguration(ctx context.Context) (v []byte, err error)
- func (m *IntegrationMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *IntegrationMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *IntegrationMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *IntegrationMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *IntegrationMutation) OldKind(ctx context.Context) (v string, err error)
- func (m *IntegrationMutation) OldSecretName(ctx context.Context) (v string, err error)
- func (m *IntegrationMutation) Op() Op
- func (m *IntegrationMutation) OrganizationCleared() bool
- func (m *IntegrationMutation) OrganizationID() (id uuid.UUID, exists bool)
- func (m *IntegrationMutation) OrganizationIDs() (ids []uuid.UUID)
- func (m *IntegrationMutation) RemoveAttachmentIDs(ids ...uuid.UUID)
- func (m *IntegrationMutation) RemovedAttachmentsIDs() (ids []uuid.UUID)
- func (m *IntegrationMutation) RemovedEdges() []string
- func (m *IntegrationMutation) RemovedIDs(name string) []ent.Value
- func (m *IntegrationMutation) ResetAttachments()
- func (m *IntegrationMutation) ResetConfiguration()
- func (m *IntegrationMutation) ResetCreatedAt()
- func (m *IntegrationMutation) ResetDeletedAt()
- func (m *IntegrationMutation) ResetDescription()
- func (m *IntegrationMutation) ResetEdge(name string) error
- func (m *IntegrationMutation) ResetField(name string) error
- func (m *IntegrationMutation) ResetKind()
- func (m *IntegrationMutation) ResetOrganization()
- func (m *IntegrationMutation) ResetSecretName()
- func (m *IntegrationMutation) SecretName() (r string, exists bool)
- func (m *IntegrationMutation) SetConfiguration(b []byte)
- func (m *IntegrationMutation) SetCreatedAt(t time.Time)
- func (m *IntegrationMutation) SetDeletedAt(t time.Time)
- func (m *IntegrationMutation) SetDescription(s string)
- func (m *IntegrationMutation) SetField(name string, value ent.Value) error
- func (m *IntegrationMutation) SetID(id uuid.UUID)
- func (m *IntegrationMutation) SetKind(s string)
- func (m *IntegrationMutation) SetOp(op Op)
- func (m *IntegrationMutation) SetOrganizationID(id uuid.UUID)
- func (m *IntegrationMutation) SetSecretName(s string)
- func (m IntegrationMutation) Tx() (*Tx, error)
- func (m *IntegrationMutation) Type() string
- func (m *IntegrationMutation) Where(ps ...predicate.Integration)
- func (m *IntegrationMutation) WhereP(ps ...func(*sql.Selector))
- type IntegrationQuery
- func (iq *IntegrationQuery) Aggregate(fns ...AggregateFunc) *IntegrationSelect
- func (iq *IntegrationQuery) All(ctx context.Context) ([]*Integration, error)
- func (iq *IntegrationQuery) AllX(ctx context.Context) []*Integration
- func (iq *IntegrationQuery) Clone() *IntegrationQuery
- func (iq *IntegrationQuery) Count(ctx context.Context) (int, error)
- func (iq *IntegrationQuery) CountX(ctx context.Context) int
- func (iq *IntegrationQuery) Exist(ctx context.Context) (bool, error)
- func (iq *IntegrationQuery) ExistX(ctx context.Context) bool
- func (iq *IntegrationQuery) First(ctx context.Context) (*Integration, error)
- func (iq *IntegrationQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (iq *IntegrationQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (iq *IntegrationQuery) FirstX(ctx context.Context) *Integration
- func (iq *IntegrationQuery) GroupBy(field string, fields ...string) *IntegrationGroupBy
- func (iq *IntegrationQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (iq *IntegrationQuery) IDsX(ctx context.Context) []uuid.UUID
- func (iq *IntegrationQuery) Limit(limit int) *IntegrationQuery
- func (iq *IntegrationQuery) Offset(offset int) *IntegrationQuery
- func (iq *IntegrationQuery) Only(ctx context.Context) (*Integration, error)
- func (iq *IntegrationQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (iq *IntegrationQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (iq *IntegrationQuery) OnlyX(ctx context.Context) *Integration
- func (iq *IntegrationQuery) Order(o ...OrderFunc) *IntegrationQuery
- func (iq *IntegrationQuery) QueryAttachments() *IntegrationAttachmentQuery
- func (iq *IntegrationQuery) QueryOrganization() *OrganizationQuery
- func (iq *IntegrationQuery) Select(fields ...string) *IntegrationSelect
- func (iq *IntegrationQuery) Unique(unique bool) *IntegrationQuery
- func (iq *IntegrationQuery) Where(ps ...predicate.Integration) *IntegrationQuery
- func (iq *IntegrationQuery) WithAttachments(opts ...func(*IntegrationAttachmentQuery)) *IntegrationQuery
- func (iq *IntegrationQuery) WithOrganization(opts ...func(*OrganizationQuery)) *IntegrationQuery
- type IntegrationSelect
- func (is *IntegrationSelect) Aggregate(fns ...AggregateFunc) *IntegrationSelect
- func (s *IntegrationSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *IntegrationSelect) BoolX(ctx context.Context) bool
- func (s *IntegrationSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *IntegrationSelect) BoolsX(ctx context.Context) []bool
- func (s *IntegrationSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *IntegrationSelect) Float64X(ctx context.Context) float64
- func (s *IntegrationSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *IntegrationSelect) Float64sX(ctx context.Context) []float64
- func (s *IntegrationSelect) Int(ctx context.Context) (_ int, err error)
- func (s *IntegrationSelect) IntX(ctx context.Context) int
- func (s *IntegrationSelect) Ints(ctx context.Context) ([]int, error)
- func (s *IntegrationSelect) IntsX(ctx context.Context) []int
- func (is *IntegrationSelect) Scan(ctx context.Context, v any) error
- func (s *IntegrationSelect) ScanX(ctx context.Context, v any)
- func (s *IntegrationSelect) String(ctx context.Context) (_ string, err error)
- func (s *IntegrationSelect) StringX(ctx context.Context) string
- func (s *IntegrationSelect) Strings(ctx context.Context) ([]string, error)
- func (s *IntegrationSelect) StringsX(ctx context.Context) []string
- type IntegrationUpdate
- func (iu *IntegrationUpdate) AddAttachmentIDs(ids ...uuid.UUID) *IntegrationUpdate
- func (iu *IntegrationUpdate) AddAttachments(i ...*IntegrationAttachment) *IntegrationUpdate
- func (iu *IntegrationUpdate) ClearAttachments() *IntegrationUpdate
- func (iu *IntegrationUpdate) ClearConfiguration() *IntegrationUpdate
- func (iu *IntegrationUpdate) ClearDeletedAt() *IntegrationUpdate
- func (iu *IntegrationUpdate) ClearDescription() *IntegrationUpdate
- func (iu *IntegrationUpdate) ClearOrganization() *IntegrationUpdate
- func (iu *IntegrationUpdate) Exec(ctx context.Context) error
- func (iu *IntegrationUpdate) ExecX(ctx context.Context)
- func (iu *IntegrationUpdate) Mutation() *IntegrationMutation
- func (iu *IntegrationUpdate) RemoveAttachmentIDs(ids ...uuid.UUID) *IntegrationUpdate
- func (iu *IntegrationUpdate) RemoveAttachments(i ...*IntegrationAttachment) *IntegrationUpdate
- func (iu *IntegrationUpdate) Save(ctx context.Context) (int, error)
- func (iu *IntegrationUpdate) SaveX(ctx context.Context) int
- func (iu *IntegrationUpdate) SetConfiguration(b []byte) *IntegrationUpdate
- func (iu *IntegrationUpdate) SetDeletedAt(t time.Time) *IntegrationUpdate
- func (iu *IntegrationUpdate) SetDescription(s string) *IntegrationUpdate
- func (iu *IntegrationUpdate) SetNillableDeletedAt(t *time.Time) *IntegrationUpdate
- func (iu *IntegrationUpdate) SetNillableDescription(s *string) *IntegrationUpdate
- func (iu *IntegrationUpdate) SetOrganization(o *Organization) *IntegrationUpdate
- func (iu *IntegrationUpdate) SetOrganizationID(id uuid.UUID) *IntegrationUpdate
- func (iu *IntegrationUpdate) Where(ps ...predicate.Integration) *IntegrationUpdate
- type IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) AddAttachmentIDs(ids ...uuid.UUID) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) AddAttachments(i ...*IntegrationAttachment) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) ClearAttachments() *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) ClearConfiguration() *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) ClearDeletedAt() *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) ClearDescription() *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) ClearOrganization() *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) Exec(ctx context.Context) error
- func (iuo *IntegrationUpdateOne) ExecX(ctx context.Context)
- func (iuo *IntegrationUpdateOne) Mutation() *IntegrationMutation
- func (iuo *IntegrationUpdateOne) RemoveAttachmentIDs(ids ...uuid.UUID) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) RemoveAttachments(i ...*IntegrationAttachment) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) Save(ctx context.Context) (*Integration, error)
- func (iuo *IntegrationUpdateOne) SaveX(ctx context.Context) *Integration
- func (iuo *IntegrationUpdateOne) Select(field string, fields ...string) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetConfiguration(b []byte) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetDeletedAt(t time.Time) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetDescription(s string) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetNillableDeletedAt(t *time.Time) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetNillableDescription(s *string) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetOrganization(o *Organization) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetOrganizationID(id uuid.UUID) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) Where(ps ...predicate.Integration) *IntegrationUpdateOne
- type Integrations
- type InterceptFunc
- type Interceptor
- type Membership
- type MembershipClient
- func (c *MembershipClient) Create() *MembershipCreate
- func (c *MembershipClient) CreateBulk(builders ...*MembershipCreate) *MembershipCreateBulk
- func (c *MembershipClient) Delete() *MembershipDelete
- func (c *MembershipClient) DeleteOne(m *Membership) *MembershipDeleteOne
- func (c *MembershipClient) DeleteOneID(id uuid.UUID) *MembershipDeleteOne
- func (c *MembershipClient) Get(ctx context.Context, id uuid.UUID) (*Membership, error)
- func (c *MembershipClient) GetX(ctx context.Context, id uuid.UUID) *Membership
- func (c *MembershipClient) Hooks() []Hook
- func (c *MembershipClient) Intercept(interceptors ...Interceptor)
- func (c *MembershipClient) Interceptors() []Interceptor
- func (c *MembershipClient) Query() *MembershipQuery
- func (c *MembershipClient) QueryOrganization(m *Membership) *OrganizationQuery
- func (c *MembershipClient) QueryUser(m *Membership) *UserQuery
- func (c *MembershipClient) Update() *MembershipUpdate
- func (c *MembershipClient) UpdateOne(m *Membership) *MembershipUpdateOne
- func (c *MembershipClient) UpdateOneID(id uuid.UUID) *MembershipUpdateOne
- func (c *MembershipClient) Use(hooks ...Hook)
- type MembershipCreate
- func (mc *MembershipCreate) Exec(ctx context.Context) error
- func (mc *MembershipCreate) ExecX(ctx context.Context)
- func (mc *MembershipCreate) Mutation() *MembershipMutation
- func (mc *MembershipCreate) Save(ctx context.Context) (*Membership, error)
- func (mc *MembershipCreate) SaveX(ctx context.Context) *Membership
- func (mc *MembershipCreate) SetCreatedAt(t time.Time) *MembershipCreate
- func (mc *MembershipCreate) SetCurrent(b bool) *MembershipCreate
- func (mc *MembershipCreate) SetID(u uuid.UUID) *MembershipCreate
- func (mc *MembershipCreate) SetNillableCreatedAt(t *time.Time) *MembershipCreate
- func (mc *MembershipCreate) SetNillableCurrent(b *bool) *MembershipCreate
- func (mc *MembershipCreate) SetNillableID(u *uuid.UUID) *MembershipCreate
- func (mc *MembershipCreate) SetNillableUpdatedAt(t *time.Time) *MembershipCreate
- func (mc *MembershipCreate) SetOrganization(o *Organization) *MembershipCreate
- func (mc *MembershipCreate) SetOrganizationID(id uuid.UUID) *MembershipCreate
- func (mc *MembershipCreate) SetUpdatedAt(t time.Time) *MembershipCreate
- func (mc *MembershipCreate) SetUser(u *User) *MembershipCreate
- func (mc *MembershipCreate) SetUserID(id uuid.UUID) *MembershipCreate
- type MembershipCreateBulk
- type MembershipDelete
- type MembershipDeleteOne
- type MembershipEdges
- type MembershipGroupBy
- func (mgb *MembershipGroupBy) Aggregate(fns ...AggregateFunc) *MembershipGroupBy
- func (s *MembershipGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *MembershipGroupBy) BoolX(ctx context.Context) bool
- func (s *MembershipGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *MembershipGroupBy) BoolsX(ctx context.Context) []bool
- func (s *MembershipGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *MembershipGroupBy) Float64X(ctx context.Context) float64
- func (s *MembershipGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *MembershipGroupBy) Float64sX(ctx context.Context) []float64
- func (s *MembershipGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *MembershipGroupBy) IntX(ctx context.Context) int
- func (s *MembershipGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *MembershipGroupBy) IntsX(ctx context.Context) []int
- func (mgb *MembershipGroupBy) Scan(ctx context.Context, v any) error
- func (s *MembershipGroupBy) ScanX(ctx context.Context, v any)
- func (s *MembershipGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *MembershipGroupBy) StringX(ctx context.Context) string
- func (s *MembershipGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *MembershipGroupBy) StringsX(ctx context.Context) []string
- type MembershipMutation
- func (m *MembershipMutation) AddField(name string, value ent.Value) error
- func (m *MembershipMutation) AddedEdges() []string
- func (m *MembershipMutation) AddedField(name string) (ent.Value, bool)
- func (m *MembershipMutation) AddedFields() []string
- func (m *MembershipMutation) AddedIDs(name string) []ent.Value
- func (m *MembershipMutation) ClearEdge(name string) error
- func (m *MembershipMutation) ClearField(name string) error
- func (m *MembershipMutation) ClearOrganization()
- func (m *MembershipMutation) ClearUser()
- func (m *MembershipMutation) ClearedEdges() []string
- func (m *MembershipMutation) ClearedFields() []string
- func (m MembershipMutation) Client() *Client
- func (m *MembershipMutation) CreatedAt() (r time.Time, exists bool)
- func (m *MembershipMutation) Current() (r bool, exists bool)
- func (m *MembershipMutation) EdgeCleared(name string) bool
- func (m *MembershipMutation) Field(name string) (ent.Value, bool)
- func (m *MembershipMutation) FieldCleared(name string) bool
- func (m *MembershipMutation) Fields() []string
- func (m *MembershipMutation) ID() (id uuid.UUID, exists bool)
- func (m *MembershipMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *MembershipMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *MembershipMutation) OldCurrent(ctx context.Context) (v bool, err error)
- func (m *MembershipMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *MembershipMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *MembershipMutation) Op() Op
- func (m *MembershipMutation) OrganizationCleared() bool
- func (m *MembershipMutation) OrganizationID() (id uuid.UUID, exists bool)
- func (m *MembershipMutation) OrganizationIDs() (ids []uuid.UUID)
- func (m *MembershipMutation) RemovedEdges() []string
- func (m *MembershipMutation) RemovedIDs(name string) []ent.Value
- func (m *MembershipMutation) ResetCreatedAt()
- func (m *MembershipMutation) ResetCurrent()
- func (m *MembershipMutation) ResetEdge(name string) error
- func (m *MembershipMutation) ResetField(name string) error
- func (m *MembershipMutation) ResetOrganization()
- func (m *MembershipMutation) ResetUpdatedAt()
- func (m *MembershipMutation) ResetUser()
- func (m *MembershipMutation) SetCreatedAt(t time.Time)
- func (m *MembershipMutation) SetCurrent(b bool)
- func (m *MembershipMutation) SetField(name string, value ent.Value) error
- func (m *MembershipMutation) SetID(id uuid.UUID)
- func (m *MembershipMutation) SetOp(op Op)
- func (m *MembershipMutation) SetOrganizationID(id uuid.UUID)
- func (m *MembershipMutation) SetUpdatedAt(t time.Time)
- func (m *MembershipMutation) SetUserID(id uuid.UUID)
- func (m MembershipMutation) Tx() (*Tx, error)
- func (m *MembershipMutation) Type() string
- func (m *MembershipMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *MembershipMutation) UserCleared() bool
- func (m *MembershipMutation) UserID() (id uuid.UUID, exists bool)
- func (m *MembershipMutation) UserIDs() (ids []uuid.UUID)
- func (m *MembershipMutation) Where(ps ...predicate.Membership)
- func (m *MembershipMutation) WhereP(ps ...func(*sql.Selector))
- type MembershipQuery
- func (mq *MembershipQuery) Aggregate(fns ...AggregateFunc) *MembershipSelect
- func (mq *MembershipQuery) All(ctx context.Context) ([]*Membership, error)
- func (mq *MembershipQuery) AllX(ctx context.Context) []*Membership
- func (mq *MembershipQuery) Clone() *MembershipQuery
- func (mq *MembershipQuery) Count(ctx context.Context) (int, error)
- func (mq *MembershipQuery) CountX(ctx context.Context) int
- func (mq *MembershipQuery) Exist(ctx context.Context) (bool, error)
- func (mq *MembershipQuery) ExistX(ctx context.Context) bool
- func (mq *MembershipQuery) First(ctx context.Context) (*Membership, error)
- func (mq *MembershipQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (mq *MembershipQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (mq *MembershipQuery) FirstX(ctx context.Context) *Membership
- func (mq *MembershipQuery) GroupBy(field string, fields ...string) *MembershipGroupBy
- func (mq *MembershipQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (mq *MembershipQuery) IDsX(ctx context.Context) []uuid.UUID
- func (mq *MembershipQuery) Limit(limit int) *MembershipQuery
- func (mq *MembershipQuery) Offset(offset int) *MembershipQuery
- func (mq *MembershipQuery) Only(ctx context.Context) (*Membership, error)
- func (mq *MembershipQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (mq *MembershipQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (mq *MembershipQuery) OnlyX(ctx context.Context) *Membership
- func (mq *MembershipQuery) Order(o ...OrderFunc) *MembershipQuery
- func (mq *MembershipQuery) QueryOrganization() *OrganizationQuery
- func (mq *MembershipQuery) QueryUser() *UserQuery
- func (mq *MembershipQuery) Select(fields ...string) *MembershipSelect
- func (mq *MembershipQuery) Unique(unique bool) *MembershipQuery
- func (mq *MembershipQuery) Where(ps ...predicate.Membership) *MembershipQuery
- func (mq *MembershipQuery) WithOrganization(opts ...func(*OrganizationQuery)) *MembershipQuery
- func (mq *MembershipQuery) WithUser(opts ...func(*UserQuery)) *MembershipQuery
- type MembershipSelect
- func (ms *MembershipSelect) Aggregate(fns ...AggregateFunc) *MembershipSelect
- func (s *MembershipSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *MembershipSelect) BoolX(ctx context.Context) bool
- func (s *MembershipSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *MembershipSelect) BoolsX(ctx context.Context) []bool
- func (s *MembershipSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *MembershipSelect) Float64X(ctx context.Context) float64
- func (s *MembershipSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *MembershipSelect) Float64sX(ctx context.Context) []float64
- func (s *MembershipSelect) Int(ctx context.Context) (_ int, err error)
- func (s *MembershipSelect) IntX(ctx context.Context) int
- func (s *MembershipSelect) Ints(ctx context.Context) ([]int, error)
- func (s *MembershipSelect) IntsX(ctx context.Context) []int
- func (ms *MembershipSelect) Scan(ctx context.Context, v any) error
- func (s *MembershipSelect) ScanX(ctx context.Context, v any)
- func (s *MembershipSelect) String(ctx context.Context) (_ string, err error)
- func (s *MembershipSelect) StringX(ctx context.Context) string
- func (s *MembershipSelect) Strings(ctx context.Context) ([]string, error)
- func (s *MembershipSelect) StringsX(ctx context.Context) []string
- type MembershipUpdate
- func (mu *MembershipUpdate) ClearOrganization() *MembershipUpdate
- func (mu *MembershipUpdate) ClearUser() *MembershipUpdate
- func (mu *MembershipUpdate) Exec(ctx context.Context) error
- func (mu *MembershipUpdate) ExecX(ctx context.Context)
- func (mu *MembershipUpdate) Mutation() *MembershipMutation
- func (mu *MembershipUpdate) Save(ctx context.Context) (int, error)
- func (mu *MembershipUpdate) SaveX(ctx context.Context) int
- func (mu *MembershipUpdate) SetCurrent(b bool) *MembershipUpdate
- func (mu *MembershipUpdate) SetNillableCurrent(b *bool) *MembershipUpdate
- func (mu *MembershipUpdate) SetNillableUpdatedAt(t *time.Time) *MembershipUpdate
- func (mu *MembershipUpdate) SetOrganization(o *Organization) *MembershipUpdate
- func (mu *MembershipUpdate) SetOrganizationID(id uuid.UUID) *MembershipUpdate
- func (mu *MembershipUpdate) SetUpdatedAt(t time.Time) *MembershipUpdate
- func (mu *MembershipUpdate) SetUser(u *User) *MembershipUpdate
- func (mu *MembershipUpdate) SetUserID(id uuid.UUID) *MembershipUpdate
- func (mu *MembershipUpdate) Where(ps ...predicate.Membership) *MembershipUpdate
- type MembershipUpdateOne
- func (muo *MembershipUpdateOne) ClearOrganization() *MembershipUpdateOne
- func (muo *MembershipUpdateOne) ClearUser() *MembershipUpdateOne
- func (muo *MembershipUpdateOne) Exec(ctx context.Context) error
- func (muo *MembershipUpdateOne) ExecX(ctx context.Context)
- func (muo *MembershipUpdateOne) Mutation() *MembershipMutation
- func (muo *MembershipUpdateOne) Save(ctx context.Context) (*Membership, error)
- func (muo *MembershipUpdateOne) SaveX(ctx context.Context) *Membership
- func (muo *MembershipUpdateOne) Select(field string, fields ...string) *MembershipUpdateOne
- func (muo *MembershipUpdateOne) SetCurrent(b bool) *MembershipUpdateOne
- func (muo *MembershipUpdateOne) SetNillableCurrent(b *bool) *MembershipUpdateOne
- func (muo *MembershipUpdateOne) SetNillableUpdatedAt(t *time.Time) *MembershipUpdateOne
- func (muo *MembershipUpdateOne) SetOrganization(o *Organization) *MembershipUpdateOne
- func (muo *MembershipUpdateOne) SetOrganizationID(id uuid.UUID) *MembershipUpdateOne
- func (muo *MembershipUpdateOne) SetUpdatedAt(t time.Time) *MembershipUpdateOne
- func (muo *MembershipUpdateOne) SetUser(u *User) *MembershipUpdateOne
- func (muo *MembershipUpdateOne) SetUserID(id uuid.UUID) *MembershipUpdateOne
- func (muo *MembershipUpdateOne) Where(ps ...predicate.Membership) *MembershipUpdateOne
- type Memberships
- type MutateFunc
- type Mutation
- type Mutator
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type OCIRepositories
- type OCIRepository
- type OCIRepositoryClient
- func (c *OCIRepositoryClient) Create() *OCIRepositoryCreate
- func (c *OCIRepositoryClient) CreateBulk(builders ...*OCIRepositoryCreate) *OCIRepositoryCreateBulk
- func (c *OCIRepositoryClient) Delete() *OCIRepositoryDelete
- func (c *OCIRepositoryClient) DeleteOne(or *OCIRepository) *OCIRepositoryDeleteOne
- func (c *OCIRepositoryClient) DeleteOneID(id uuid.UUID) *OCIRepositoryDeleteOne
- func (c *OCIRepositoryClient) Get(ctx context.Context, id uuid.UUID) (*OCIRepository, error)
- func (c *OCIRepositoryClient) GetX(ctx context.Context, id uuid.UUID) *OCIRepository
- func (c *OCIRepositoryClient) Hooks() []Hook
- func (c *OCIRepositoryClient) Intercept(interceptors ...Interceptor)
- func (c *OCIRepositoryClient) Interceptors() []Interceptor
- func (c *OCIRepositoryClient) Query() *OCIRepositoryQuery
- func (c *OCIRepositoryClient) QueryOrganization(or *OCIRepository) *OrganizationQuery
- func (c *OCIRepositoryClient) Update() *OCIRepositoryUpdate
- func (c *OCIRepositoryClient) UpdateOne(or *OCIRepository) *OCIRepositoryUpdateOne
- func (c *OCIRepositoryClient) UpdateOneID(id uuid.UUID) *OCIRepositoryUpdateOne
- func (c *OCIRepositoryClient) Use(hooks ...Hook)
- type OCIRepositoryCreate
- func (orc *OCIRepositoryCreate) Exec(ctx context.Context) error
- func (orc *OCIRepositoryCreate) ExecX(ctx context.Context)
- func (orc *OCIRepositoryCreate) Mutation() *OCIRepositoryMutation
- func (orc *OCIRepositoryCreate) Save(ctx context.Context) (*OCIRepository, error)
- func (orc *OCIRepositoryCreate) SaveX(ctx context.Context) *OCIRepository
- func (orc *OCIRepositoryCreate) SetCreatedAt(t time.Time) *OCIRepositoryCreate
- func (orc *OCIRepositoryCreate) SetID(u uuid.UUID) *OCIRepositoryCreate
- func (orc *OCIRepositoryCreate) SetNillableCreatedAt(t *time.Time) *OCIRepositoryCreate
- func (orc *OCIRepositoryCreate) SetNillableID(u *uuid.UUID) *OCIRepositoryCreate
- func (orc *OCIRepositoryCreate) SetNillableValidatedAt(t *time.Time) *OCIRepositoryCreate
- func (orc *OCIRepositoryCreate) SetNillableValidationStatus(brvs *biz.OCIRepoValidationStatus) *OCIRepositoryCreate
- func (orc *OCIRepositoryCreate) SetOrganization(o *Organization) *OCIRepositoryCreate
- func (orc *OCIRepositoryCreate) SetOrganizationID(id uuid.UUID) *OCIRepositoryCreate
- func (orc *OCIRepositoryCreate) SetRepo(s string) *OCIRepositoryCreate
- func (orc *OCIRepositoryCreate) SetSecretName(s string) *OCIRepositoryCreate
- func (orc *OCIRepositoryCreate) SetValidatedAt(t time.Time) *OCIRepositoryCreate
- func (orc *OCIRepositoryCreate) SetValidationStatus(brvs biz.OCIRepoValidationStatus) *OCIRepositoryCreate
- type OCIRepositoryCreateBulk
- func (orcb *OCIRepositoryCreateBulk) Exec(ctx context.Context) error
- func (orcb *OCIRepositoryCreateBulk) ExecX(ctx context.Context)
- func (orcb *OCIRepositoryCreateBulk) Save(ctx context.Context) ([]*OCIRepository, error)
- func (orcb *OCIRepositoryCreateBulk) SaveX(ctx context.Context) []*OCIRepository
- type OCIRepositoryDelete
- type OCIRepositoryDeleteOne
- type OCIRepositoryEdges
- type OCIRepositoryGroupBy
- func (orgb *OCIRepositoryGroupBy) Aggregate(fns ...AggregateFunc) *OCIRepositoryGroupBy
- func (s *OCIRepositoryGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *OCIRepositoryGroupBy) BoolX(ctx context.Context) bool
- func (s *OCIRepositoryGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *OCIRepositoryGroupBy) BoolsX(ctx context.Context) []bool
- func (s *OCIRepositoryGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *OCIRepositoryGroupBy) Float64X(ctx context.Context) float64
- func (s *OCIRepositoryGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *OCIRepositoryGroupBy) Float64sX(ctx context.Context) []float64
- func (s *OCIRepositoryGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *OCIRepositoryGroupBy) IntX(ctx context.Context) int
- func (s *OCIRepositoryGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *OCIRepositoryGroupBy) IntsX(ctx context.Context) []int
- func (orgb *OCIRepositoryGroupBy) Scan(ctx context.Context, v any) error
- func (s *OCIRepositoryGroupBy) ScanX(ctx context.Context, v any)
- func (s *OCIRepositoryGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *OCIRepositoryGroupBy) StringX(ctx context.Context) string
- func (s *OCIRepositoryGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *OCIRepositoryGroupBy) StringsX(ctx context.Context) []string
- type OCIRepositoryMutation
- func (m *OCIRepositoryMutation) AddField(name string, value ent.Value) error
- func (m *OCIRepositoryMutation) AddedEdges() []string
- func (m *OCIRepositoryMutation) AddedField(name string) (ent.Value, bool)
- func (m *OCIRepositoryMutation) AddedFields() []string
- func (m *OCIRepositoryMutation) AddedIDs(name string) []ent.Value
- func (m *OCIRepositoryMutation) ClearEdge(name string) error
- func (m *OCIRepositoryMutation) ClearField(name string) error
- func (m *OCIRepositoryMutation) ClearOrganization()
- func (m *OCIRepositoryMutation) ClearedEdges() []string
- func (m *OCIRepositoryMutation) ClearedFields() []string
- func (m OCIRepositoryMutation) Client() *Client
- func (m *OCIRepositoryMutation) CreatedAt() (r time.Time, exists bool)
- func (m *OCIRepositoryMutation) EdgeCleared(name string) bool
- func (m *OCIRepositoryMutation) Field(name string) (ent.Value, bool)
- func (m *OCIRepositoryMutation) FieldCleared(name string) bool
- func (m *OCIRepositoryMutation) Fields() []string
- func (m *OCIRepositoryMutation) ID() (id uuid.UUID, exists bool)
- func (m *OCIRepositoryMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *OCIRepositoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *OCIRepositoryMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *OCIRepositoryMutation) OldRepo(ctx context.Context) (v string, err error)
- func (m *OCIRepositoryMutation) OldSecretName(ctx context.Context) (v string, err error)
- func (m *OCIRepositoryMutation) OldValidatedAt(ctx context.Context) (v time.Time, err error)
- func (m *OCIRepositoryMutation) OldValidationStatus(ctx context.Context) (v biz.OCIRepoValidationStatus, err error)
- func (m *OCIRepositoryMutation) Op() Op
- func (m *OCIRepositoryMutation) OrganizationCleared() bool
- func (m *OCIRepositoryMutation) OrganizationID() (id uuid.UUID, exists bool)
- func (m *OCIRepositoryMutation) OrganizationIDs() (ids []uuid.UUID)
- func (m *OCIRepositoryMutation) RemovedEdges() []string
- func (m *OCIRepositoryMutation) RemovedIDs(name string) []ent.Value
- func (m *OCIRepositoryMutation) Repo() (r string, exists bool)
- func (m *OCIRepositoryMutation) ResetCreatedAt()
- func (m *OCIRepositoryMutation) ResetEdge(name string) error
- func (m *OCIRepositoryMutation) ResetField(name string) error
- func (m *OCIRepositoryMutation) ResetOrganization()
- func (m *OCIRepositoryMutation) ResetRepo()
- func (m *OCIRepositoryMutation) ResetSecretName()
- func (m *OCIRepositoryMutation) ResetValidatedAt()
- func (m *OCIRepositoryMutation) ResetValidationStatus()
- func (m *OCIRepositoryMutation) SecretName() (r string, exists bool)
- func (m *OCIRepositoryMutation) SetCreatedAt(t time.Time)
- func (m *OCIRepositoryMutation) SetField(name string, value ent.Value) error
- func (m *OCIRepositoryMutation) SetID(id uuid.UUID)
- func (m *OCIRepositoryMutation) SetOp(op Op)
- func (m *OCIRepositoryMutation) SetOrganizationID(id uuid.UUID)
- func (m *OCIRepositoryMutation) SetRepo(s string)
- func (m *OCIRepositoryMutation) SetSecretName(s string)
- func (m *OCIRepositoryMutation) SetValidatedAt(t time.Time)
- func (m *OCIRepositoryMutation) SetValidationStatus(brvs biz.OCIRepoValidationStatus)
- func (m OCIRepositoryMutation) Tx() (*Tx, error)
- func (m *OCIRepositoryMutation) Type() string
- func (m *OCIRepositoryMutation) ValidatedAt() (r time.Time, exists bool)
- func (m *OCIRepositoryMutation) ValidationStatus() (r biz.OCIRepoValidationStatus, exists bool)
- func (m *OCIRepositoryMutation) Where(ps ...predicate.OCIRepository)
- func (m *OCIRepositoryMutation) WhereP(ps ...func(*sql.Selector))
- type OCIRepositoryQuery
- func (orq *OCIRepositoryQuery) Aggregate(fns ...AggregateFunc) *OCIRepositorySelect
- func (orq *OCIRepositoryQuery) All(ctx context.Context) ([]*OCIRepository, error)
- func (orq *OCIRepositoryQuery) AllX(ctx context.Context) []*OCIRepository
- func (orq *OCIRepositoryQuery) Clone() *OCIRepositoryQuery
- func (orq *OCIRepositoryQuery) Count(ctx context.Context) (int, error)
- func (orq *OCIRepositoryQuery) CountX(ctx context.Context) int
- func (orq *OCIRepositoryQuery) Exist(ctx context.Context) (bool, error)
- func (orq *OCIRepositoryQuery) ExistX(ctx context.Context) bool
- func (orq *OCIRepositoryQuery) First(ctx context.Context) (*OCIRepository, error)
- func (orq *OCIRepositoryQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (orq *OCIRepositoryQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (orq *OCIRepositoryQuery) FirstX(ctx context.Context) *OCIRepository
- func (orq *OCIRepositoryQuery) GroupBy(field string, fields ...string) *OCIRepositoryGroupBy
- func (orq *OCIRepositoryQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (orq *OCIRepositoryQuery) IDsX(ctx context.Context) []uuid.UUID
- func (orq *OCIRepositoryQuery) Limit(limit int) *OCIRepositoryQuery
- func (orq *OCIRepositoryQuery) Offset(offset int) *OCIRepositoryQuery
- func (orq *OCIRepositoryQuery) Only(ctx context.Context) (*OCIRepository, error)
- func (orq *OCIRepositoryQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (orq *OCIRepositoryQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (orq *OCIRepositoryQuery) OnlyX(ctx context.Context) *OCIRepository
- func (orq *OCIRepositoryQuery) Order(o ...OrderFunc) *OCIRepositoryQuery
- func (orq *OCIRepositoryQuery) QueryOrganization() *OrganizationQuery
- func (orq *OCIRepositoryQuery) Select(fields ...string) *OCIRepositorySelect
- func (orq *OCIRepositoryQuery) Unique(unique bool) *OCIRepositoryQuery
- func (orq *OCIRepositoryQuery) Where(ps ...predicate.OCIRepository) *OCIRepositoryQuery
- func (orq *OCIRepositoryQuery) WithOrganization(opts ...func(*OrganizationQuery)) *OCIRepositoryQuery
- type OCIRepositorySelect
- func (ors *OCIRepositorySelect) Aggregate(fns ...AggregateFunc) *OCIRepositorySelect
- func (s *OCIRepositorySelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *OCIRepositorySelect) BoolX(ctx context.Context) bool
- func (s *OCIRepositorySelect) Bools(ctx context.Context) ([]bool, error)
- func (s *OCIRepositorySelect) BoolsX(ctx context.Context) []bool
- func (s *OCIRepositorySelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *OCIRepositorySelect) Float64X(ctx context.Context) float64
- func (s *OCIRepositorySelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *OCIRepositorySelect) Float64sX(ctx context.Context) []float64
- func (s *OCIRepositorySelect) Int(ctx context.Context) (_ int, err error)
- func (s *OCIRepositorySelect) IntX(ctx context.Context) int
- func (s *OCIRepositorySelect) Ints(ctx context.Context) ([]int, error)
- func (s *OCIRepositorySelect) IntsX(ctx context.Context) []int
- func (ors *OCIRepositorySelect) Scan(ctx context.Context, v any) error
- func (s *OCIRepositorySelect) ScanX(ctx context.Context, v any)
- func (s *OCIRepositorySelect) String(ctx context.Context) (_ string, err error)
- func (s *OCIRepositorySelect) StringX(ctx context.Context) string
- func (s *OCIRepositorySelect) Strings(ctx context.Context) ([]string, error)
- func (s *OCIRepositorySelect) StringsX(ctx context.Context) []string
- type OCIRepositoryUpdate
- func (oru *OCIRepositoryUpdate) ClearOrganization() *OCIRepositoryUpdate
- func (oru *OCIRepositoryUpdate) Exec(ctx context.Context) error
- func (oru *OCIRepositoryUpdate) ExecX(ctx context.Context)
- func (oru *OCIRepositoryUpdate) Mutation() *OCIRepositoryMutation
- func (oru *OCIRepositoryUpdate) Save(ctx context.Context) (int, error)
- func (oru *OCIRepositoryUpdate) SaveX(ctx context.Context) int
- func (oru *OCIRepositoryUpdate) SetNillableValidatedAt(t *time.Time) *OCIRepositoryUpdate
- func (oru *OCIRepositoryUpdate) SetNillableValidationStatus(brvs *biz.OCIRepoValidationStatus) *OCIRepositoryUpdate
- func (oru *OCIRepositoryUpdate) SetOrganization(o *Organization) *OCIRepositoryUpdate
- func (oru *OCIRepositoryUpdate) SetOrganizationID(id uuid.UUID) *OCIRepositoryUpdate
- func (oru *OCIRepositoryUpdate) SetRepo(s string) *OCIRepositoryUpdate
- func (oru *OCIRepositoryUpdate) SetSecretName(s string) *OCIRepositoryUpdate
- func (oru *OCIRepositoryUpdate) SetValidatedAt(t time.Time) *OCIRepositoryUpdate
- func (oru *OCIRepositoryUpdate) SetValidationStatus(brvs biz.OCIRepoValidationStatus) *OCIRepositoryUpdate
- func (oru *OCIRepositoryUpdate) Where(ps ...predicate.OCIRepository) *OCIRepositoryUpdate
- type OCIRepositoryUpdateOne
- func (oruo *OCIRepositoryUpdateOne) ClearOrganization() *OCIRepositoryUpdateOne
- func (oruo *OCIRepositoryUpdateOne) Exec(ctx context.Context) error
- func (oruo *OCIRepositoryUpdateOne) ExecX(ctx context.Context)
- func (oruo *OCIRepositoryUpdateOne) Mutation() *OCIRepositoryMutation
- func (oruo *OCIRepositoryUpdateOne) Save(ctx context.Context) (*OCIRepository, error)
- func (oruo *OCIRepositoryUpdateOne) SaveX(ctx context.Context) *OCIRepository
- func (oruo *OCIRepositoryUpdateOne) Select(field string, fields ...string) *OCIRepositoryUpdateOne
- func (oruo *OCIRepositoryUpdateOne) SetNillableValidatedAt(t *time.Time) *OCIRepositoryUpdateOne
- func (oruo *OCIRepositoryUpdateOne) SetNillableValidationStatus(brvs *biz.OCIRepoValidationStatus) *OCIRepositoryUpdateOne
- func (oruo *OCIRepositoryUpdateOne) SetOrganization(o *Organization) *OCIRepositoryUpdateOne
- func (oruo *OCIRepositoryUpdateOne) SetOrganizationID(id uuid.UUID) *OCIRepositoryUpdateOne
- func (oruo *OCIRepositoryUpdateOne) SetRepo(s string) *OCIRepositoryUpdateOne
- func (oruo *OCIRepositoryUpdateOne) SetSecretName(s string) *OCIRepositoryUpdateOne
- func (oruo *OCIRepositoryUpdateOne) SetValidatedAt(t time.Time) *OCIRepositoryUpdateOne
- func (oruo *OCIRepositoryUpdateOne) SetValidationStatus(brvs biz.OCIRepoValidationStatus) *OCIRepositoryUpdateOne
- func (oruo *OCIRepositoryUpdateOne) Where(ps ...predicate.OCIRepository) *OCIRepositoryUpdateOne
- type Op
- type Option
- type OrderFunc
- type Organization
- func (o *Organization) QueryIntegrations() *IntegrationQuery
- func (o *Organization) QueryMemberships() *MembershipQuery
- func (o *Organization) QueryOciRepositories() *OCIRepositoryQuery
- func (o *Organization) QueryWorkflowContracts() *WorkflowContractQuery
- func (o *Organization) QueryWorkflows() *WorkflowQuery
- func (o *Organization) String() string
- func (o *Organization) Unwrap() *Organization
- func (o *Organization) Update() *OrganizationUpdateOne
- type OrganizationClient
- func (c *OrganizationClient) Create() *OrganizationCreate
- func (c *OrganizationClient) CreateBulk(builders ...*OrganizationCreate) *OrganizationCreateBulk
- func (c *OrganizationClient) Delete() *OrganizationDelete
- func (c *OrganizationClient) DeleteOne(o *Organization) *OrganizationDeleteOne
- func (c *OrganizationClient) DeleteOneID(id uuid.UUID) *OrganizationDeleteOne
- func (c *OrganizationClient) Get(ctx context.Context, id uuid.UUID) (*Organization, error)
- func (c *OrganizationClient) GetX(ctx context.Context, id uuid.UUID) *Organization
- func (c *OrganizationClient) Hooks() []Hook
- func (c *OrganizationClient) Intercept(interceptors ...Interceptor)
- func (c *OrganizationClient) Interceptors() []Interceptor
- func (c *OrganizationClient) Query() *OrganizationQuery
- func (c *OrganizationClient) QueryIntegrations(o *Organization) *IntegrationQuery
- func (c *OrganizationClient) QueryMemberships(o *Organization) *MembershipQuery
- func (c *OrganizationClient) QueryOciRepositories(o *Organization) *OCIRepositoryQuery
- func (c *OrganizationClient) QueryWorkflowContracts(o *Organization) *WorkflowContractQuery
- func (c *OrganizationClient) QueryWorkflows(o *Organization) *WorkflowQuery
- func (c *OrganizationClient) Update() *OrganizationUpdate
- func (c *OrganizationClient) UpdateOne(o *Organization) *OrganizationUpdateOne
- func (c *OrganizationClient) UpdateOneID(id uuid.UUID) *OrganizationUpdateOne
- func (c *OrganizationClient) Use(hooks ...Hook)
- type OrganizationCreate
- func (oc *OrganizationCreate) AddIntegrationIDs(ids ...uuid.UUID) *OrganizationCreate
- func (oc *OrganizationCreate) AddIntegrations(i ...*Integration) *OrganizationCreate
- func (oc *OrganizationCreate) AddMembershipIDs(ids ...uuid.UUID) *OrganizationCreate
- func (oc *OrganizationCreate) AddMemberships(m ...*Membership) *OrganizationCreate
- func (oc *OrganizationCreate) AddOciRepositories(o ...*OCIRepository) *OrganizationCreate
- func (oc *OrganizationCreate) AddOciRepositoryIDs(ids ...uuid.UUID) *OrganizationCreate
- func (oc *OrganizationCreate) AddWorkflowContractIDs(ids ...uuid.UUID) *OrganizationCreate
- func (oc *OrganizationCreate) AddWorkflowContracts(w ...*WorkflowContract) *OrganizationCreate
- func (oc *OrganizationCreate) AddWorkflowIDs(ids ...uuid.UUID) *OrganizationCreate
- func (oc *OrganizationCreate) AddWorkflows(w ...*Workflow) *OrganizationCreate
- func (oc *OrganizationCreate) Exec(ctx context.Context) error
- func (oc *OrganizationCreate) ExecX(ctx context.Context)
- func (oc *OrganizationCreate) Mutation() *OrganizationMutation
- func (oc *OrganizationCreate) Save(ctx context.Context) (*Organization, error)
- func (oc *OrganizationCreate) SaveX(ctx context.Context) *Organization
- func (oc *OrganizationCreate) SetCreatedAt(t time.Time) *OrganizationCreate
- func (oc *OrganizationCreate) SetID(u uuid.UUID) *OrganizationCreate
- func (oc *OrganizationCreate) SetName(s string) *OrganizationCreate
- func (oc *OrganizationCreate) SetNillableCreatedAt(t *time.Time) *OrganizationCreate
- func (oc *OrganizationCreate) SetNillableID(u *uuid.UUID) *OrganizationCreate
- func (oc *OrganizationCreate) SetNillableName(s *string) *OrganizationCreate
- type OrganizationCreateBulk
- type OrganizationDelete
- type OrganizationDeleteOne
- type OrganizationEdges
- func (e OrganizationEdges) IntegrationsOrErr() ([]*Integration, error)
- func (e OrganizationEdges) MembershipsOrErr() ([]*Membership, error)
- func (e OrganizationEdges) OciRepositoriesOrErr() ([]*OCIRepository, error)
- func (e OrganizationEdges) WorkflowContractsOrErr() ([]*WorkflowContract, error)
- func (e OrganizationEdges) WorkflowsOrErr() ([]*Workflow, error)
- type OrganizationGroupBy
- func (ogb *OrganizationGroupBy) Aggregate(fns ...AggregateFunc) *OrganizationGroupBy
- func (s *OrganizationGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *OrganizationGroupBy) BoolX(ctx context.Context) bool
- func (s *OrganizationGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *OrganizationGroupBy) BoolsX(ctx context.Context) []bool
- func (s *OrganizationGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *OrganizationGroupBy) Float64X(ctx context.Context) float64
- func (s *OrganizationGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *OrganizationGroupBy) Float64sX(ctx context.Context) []float64
- func (s *OrganizationGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *OrganizationGroupBy) IntX(ctx context.Context) int
- func (s *OrganizationGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *OrganizationGroupBy) IntsX(ctx context.Context) []int
- func (ogb *OrganizationGroupBy) Scan(ctx context.Context, v any) error
- func (s *OrganizationGroupBy) ScanX(ctx context.Context, v any)
- func (s *OrganizationGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *OrganizationGroupBy) StringX(ctx context.Context) string
- func (s *OrganizationGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *OrganizationGroupBy) StringsX(ctx context.Context) []string
- type OrganizationMutation
- func (m *OrganizationMutation) AddField(name string, value ent.Value) error
- func (m *OrganizationMutation) AddIntegrationIDs(ids ...uuid.UUID)
- func (m *OrganizationMutation) AddMembershipIDs(ids ...uuid.UUID)
- func (m *OrganizationMutation) AddOciRepositoryIDs(ids ...uuid.UUID)
- func (m *OrganizationMutation) AddWorkflowContractIDs(ids ...uuid.UUID)
- func (m *OrganizationMutation) AddWorkflowIDs(ids ...uuid.UUID)
- func (m *OrganizationMutation) AddedEdges() []string
- func (m *OrganizationMutation) AddedField(name string) (ent.Value, bool)
- func (m *OrganizationMutation) AddedFields() []string
- func (m *OrganizationMutation) AddedIDs(name string) []ent.Value
- func (m *OrganizationMutation) ClearEdge(name string) error
- func (m *OrganizationMutation) ClearField(name string) error
- func (m *OrganizationMutation) ClearIntegrations()
- func (m *OrganizationMutation) ClearMemberships()
- func (m *OrganizationMutation) ClearOciRepositories()
- func (m *OrganizationMutation) ClearWorkflowContracts()
- func (m *OrganizationMutation) ClearWorkflows()
- func (m *OrganizationMutation) ClearedEdges() []string
- func (m *OrganizationMutation) ClearedFields() []string
- func (m OrganizationMutation) Client() *Client
- func (m *OrganizationMutation) CreatedAt() (r time.Time, exists bool)
- func (m *OrganizationMutation) EdgeCleared(name string) bool
- func (m *OrganizationMutation) Field(name string) (ent.Value, bool)
- func (m *OrganizationMutation) FieldCleared(name string) bool
- func (m *OrganizationMutation) Fields() []string
- func (m *OrganizationMutation) ID() (id uuid.UUID, exists bool)
- func (m *OrganizationMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *OrganizationMutation) IntegrationsCleared() bool
- func (m *OrganizationMutation) IntegrationsIDs() (ids []uuid.UUID)
- func (m *OrganizationMutation) MembershipsCleared() bool
- func (m *OrganizationMutation) MembershipsIDs() (ids []uuid.UUID)
- func (m *OrganizationMutation) Name() (r string, exists bool)
- func (m *OrganizationMutation) OciRepositoriesCleared() bool
- func (m *OrganizationMutation) OciRepositoriesIDs() (ids []uuid.UUID)
- func (m *OrganizationMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *OrganizationMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *OrganizationMutation) OldName(ctx context.Context) (v string, err error)
- func (m *OrganizationMutation) Op() Op
- func (m *OrganizationMutation) RemoveIntegrationIDs(ids ...uuid.UUID)
- func (m *OrganizationMutation) RemoveMembershipIDs(ids ...uuid.UUID)
- func (m *OrganizationMutation) RemoveOciRepositoryIDs(ids ...uuid.UUID)
- func (m *OrganizationMutation) RemoveWorkflowContractIDs(ids ...uuid.UUID)
- func (m *OrganizationMutation) RemoveWorkflowIDs(ids ...uuid.UUID)
- func (m *OrganizationMutation) RemovedEdges() []string
- func (m *OrganizationMutation) RemovedIDs(name string) []ent.Value
- func (m *OrganizationMutation) RemovedIntegrationsIDs() (ids []uuid.UUID)
- func (m *OrganizationMutation) RemovedMembershipsIDs() (ids []uuid.UUID)
- func (m *OrganizationMutation) RemovedOciRepositoriesIDs() (ids []uuid.UUID)
- func (m *OrganizationMutation) RemovedWorkflowContractsIDs() (ids []uuid.UUID)
- func (m *OrganizationMutation) RemovedWorkflowsIDs() (ids []uuid.UUID)
- func (m *OrganizationMutation) ResetCreatedAt()
- func (m *OrganizationMutation) ResetEdge(name string) error
- func (m *OrganizationMutation) ResetField(name string) error
- func (m *OrganizationMutation) ResetIntegrations()
- func (m *OrganizationMutation) ResetMemberships()
- func (m *OrganizationMutation) ResetName()
- func (m *OrganizationMutation) ResetOciRepositories()
- func (m *OrganizationMutation) ResetWorkflowContracts()
- func (m *OrganizationMutation) ResetWorkflows()
- func (m *OrganizationMutation) SetCreatedAt(t time.Time)
- func (m *OrganizationMutation) SetField(name string, value ent.Value) error
- func (m *OrganizationMutation) SetID(id uuid.UUID)
- func (m *OrganizationMutation) SetName(s string)
- func (m *OrganizationMutation) SetOp(op Op)
- func (m OrganizationMutation) Tx() (*Tx, error)
- func (m *OrganizationMutation) Type() string
- func (m *OrganizationMutation) Where(ps ...predicate.Organization)
- func (m *OrganizationMutation) WhereP(ps ...func(*sql.Selector))
- func (m *OrganizationMutation) WorkflowContractsCleared() bool
- func (m *OrganizationMutation) WorkflowContractsIDs() (ids []uuid.UUID)
- func (m *OrganizationMutation) WorkflowsCleared() bool
- func (m *OrganizationMutation) WorkflowsIDs() (ids []uuid.UUID)
- type OrganizationQuery
- func (oq *OrganizationQuery) Aggregate(fns ...AggregateFunc) *OrganizationSelect
- func (oq *OrganizationQuery) All(ctx context.Context) ([]*Organization, error)
- func (oq *OrganizationQuery) AllX(ctx context.Context) []*Organization
- func (oq *OrganizationQuery) Clone() *OrganizationQuery
- func (oq *OrganizationQuery) Count(ctx context.Context) (int, error)
- func (oq *OrganizationQuery) CountX(ctx context.Context) int
- func (oq *OrganizationQuery) Exist(ctx context.Context) (bool, error)
- func (oq *OrganizationQuery) ExistX(ctx context.Context) bool
- func (oq *OrganizationQuery) First(ctx context.Context) (*Organization, error)
- func (oq *OrganizationQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (oq *OrganizationQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (oq *OrganizationQuery) FirstX(ctx context.Context) *Organization
- func (oq *OrganizationQuery) GroupBy(field string, fields ...string) *OrganizationGroupBy
- func (oq *OrganizationQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (oq *OrganizationQuery) IDsX(ctx context.Context) []uuid.UUID
- func (oq *OrganizationQuery) Limit(limit int) *OrganizationQuery
- func (oq *OrganizationQuery) Offset(offset int) *OrganizationQuery
- func (oq *OrganizationQuery) Only(ctx context.Context) (*Organization, error)
- func (oq *OrganizationQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (oq *OrganizationQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (oq *OrganizationQuery) OnlyX(ctx context.Context) *Organization
- func (oq *OrganizationQuery) Order(o ...OrderFunc) *OrganizationQuery
- func (oq *OrganizationQuery) QueryIntegrations() *IntegrationQuery
- func (oq *OrganizationQuery) QueryMemberships() *MembershipQuery
- func (oq *OrganizationQuery) QueryOciRepositories() *OCIRepositoryQuery
- func (oq *OrganizationQuery) QueryWorkflowContracts() *WorkflowContractQuery
- func (oq *OrganizationQuery) QueryWorkflows() *WorkflowQuery
- func (oq *OrganizationQuery) Select(fields ...string) *OrganizationSelect
- func (oq *OrganizationQuery) Unique(unique bool) *OrganizationQuery
- func (oq *OrganizationQuery) Where(ps ...predicate.Organization) *OrganizationQuery
- func (oq *OrganizationQuery) WithIntegrations(opts ...func(*IntegrationQuery)) *OrganizationQuery
- func (oq *OrganizationQuery) WithMemberships(opts ...func(*MembershipQuery)) *OrganizationQuery
- func (oq *OrganizationQuery) WithOciRepositories(opts ...func(*OCIRepositoryQuery)) *OrganizationQuery
- func (oq *OrganizationQuery) WithWorkflowContracts(opts ...func(*WorkflowContractQuery)) *OrganizationQuery
- func (oq *OrganizationQuery) WithWorkflows(opts ...func(*WorkflowQuery)) *OrganizationQuery
- type OrganizationSelect
- func (os *OrganizationSelect) Aggregate(fns ...AggregateFunc) *OrganizationSelect
- func (s *OrganizationSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *OrganizationSelect) BoolX(ctx context.Context) bool
- func (s *OrganizationSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *OrganizationSelect) BoolsX(ctx context.Context) []bool
- func (s *OrganizationSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *OrganizationSelect) Float64X(ctx context.Context) float64
- func (s *OrganizationSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *OrganizationSelect) Float64sX(ctx context.Context) []float64
- func (s *OrganizationSelect) Int(ctx context.Context) (_ int, err error)
- func (s *OrganizationSelect) IntX(ctx context.Context) int
- func (s *OrganizationSelect) Ints(ctx context.Context) ([]int, error)
- func (s *OrganizationSelect) IntsX(ctx context.Context) []int
- func (os *OrganizationSelect) Scan(ctx context.Context, v any) error
- func (s *OrganizationSelect) ScanX(ctx context.Context, v any)
- func (s *OrganizationSelect) String(ctx context.Context) (_ string, err error)
- func (s *OrganizationSelect) StringX(ctx context.Context) string
- func (s *OrganizationSelect) Strings(ctx context.Context) ([]string, error)
- func (s *OrganizationSelect) StringsX(ctx context.Context) []string
- type OrganizationUpdate
- func (ou *OrganizationUpdate) AddIntegrationIDs(ids ...uuid.UUID) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddIntegrations(i ...*Integration) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddMembershipIDs(ids ...uuid.UUID) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddMemberships(m ...*Membership) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddOciRepositories(o ...*OCIRepository) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddOciRepositoryIDs(ids ...uuid.UUID) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddWorkflowContractIDs(ids ...uuid.UUID) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddWorkflowContracts(w ...*WorkflowContract) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddWorkflowIDs(ids ...uuid.UUID) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddWorkflows(w ...*Workflow) *OrganizationUpdate
- func (ou *OrganizationUpdate) ClearIntegrations() *OrganizationUpdate
- func (ou *OrganizationUpdate) ClearMemberships() *OrganizationUpdate
- func (ou *OrganizationUpdate) ClearOciRepositories() *OrganizationUpdate
- func (ou *OrganizationUpdate) ClearWorkflowContracts() *OrganizationUpdate
- func (ou *OrganizationUpdate) ClearWorkflows() *OrganizationUpdate
- func (ou *OrganizationUpdate) Exec(ctx context.Context) error
- func (ou *OrganizationUpdate) ExecX(ctx context.Context)
- func (ou *OrganizationUpdate) Mutation() *OrganizationMutation
- func (ou *OrganizationUpdate) RemoveIntegrationIDs(ids ...uuid.UUID) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveIntegrations(i ...*Integration) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveMembershipIDs(ids ...uuid.UUID) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveMemberships(m ...*Membership) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveOciRepositories(o ...*OCIRepository) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveOciRepositoryIDs(ids ...uuid.UUID) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveWorkflowContractIDs(ids ...uuid.UUID) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveWorkflowContracts(w ...*WorkflowContract) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveWorkflowIDs(ids ...uuid.UUID) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveWorkflows(w ...*Workflow) *OrganizationUpdate
- func (ou *OrganizationUpdate) Save(ctx context.Context) (int, error)
- func (ou *OrganizationUpdate) SaveX(ctx context.Context) int
- func (ou *OrganizationUpdate) SetName(s string) *OrganizationUpdate
- func (ou *OrganizationUpdate) SetNillableName(s *string) *OrganizationUpdate
- func (ou *OrganizationUpdate) Where(ps ...predicate.Organization) *OrganizationUpdate
- type OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddIntegrationIDs(ids ...uuid.UUID) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddIntegrations(i ...*Integration) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddMembershipIDs(ids ...uuid.UUID) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddMemberships(m ...*Membership) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddOciRepositories(o ...*OCIRepository) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddOciRepositoryIDs(ids ...uuid.UUID) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddWorkflowContractIDs(ids ...uuid.UUID) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddWorkflowContracts(w ...*WorkflowContract) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddWorkflowIDs(ids ...uuid.UUID) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddWorkflows(w ...*Workflow) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) ClearIntegrations() *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) ClearMemberships() *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) ClearOciRepositories() *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) ClearWorkflowContracts() *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) ClearWorkflows() *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) Exec(ctx context.Context) error
- func (ouo *OrganizationUpdateOne) ExecX(ctx context.Context)
- func (ouo *OrganizationUpdateOne) Mutation() *OrganizationMutation
- func (ouo *OrganizationUpdateOne) RemoveIntegrationIDs(ids ...uuid.UUID) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveIntegrations(i ...*Integration) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveMembershipIDs(ids ...uuid.UUID) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveMemberships(m ...*Membership) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveOciRepositories(o ...*OCIRepository) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveOciRepositoryIDs(ids ...uuid.UUID) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveWorkflowContractIDs(ids ...uuid.UUID) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveWorkflowContracts(w ...*WorkflowContract) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveWorkflowIDs(ids ...uuid.UUID) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveWorkflows(w ...*Workflow) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) Save(ctx context.Context) (*Organization, error)
- func (ouo *OrganizationUpdateOne) SaveX(ctx context.Context) *Organization
- func (ouo *OrganizationUpdateOne) Select(field string, fields ...string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) SetName(s string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) SetNillableName(s *string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) Where(ps ...predicate.Organization) *OrganizationUpdateOne
- type Organizations
- type Policy
- type Querier
- type QuerierFunc
- type Query
- type QueryContext
- type RobotAccount
- type RobotAccountClient
- func (c *RobotAccountClient) Create() *RobotAccountCreate
- func (c *RobotAccountClient) CreateBulk(builders ...*RobotAccountCreate) *RobotAccountCreateBulk
- func (c *RobotAccountClient) Delete() *RobotAccountDelete
- func (c *RobotAccountClient) DeleteOne(ra *RobotAccount) *RobotAccountDeleteOne
- func (c *RobotAccountClient) DeleteOneID(id uuid.UUID) *RobotAccountDeleteOne
- func (c *RobotAccountClient) Get(ctx context.Context, id uuid.UUID) (*RobotAccount, error)
- func (c *RobotAccountClient) GetX(ctx context.Context, id uuid.UUID) *RobotAccount
- func (c *RobotAccountClient) Hooks() []Hook
- func (c *RobotAccountClient) Intercept(interceptors ...Interceptor)
- func (c *RobotAccountClient) Interceptors() []Interceptor
- func (c *RobotAccountClient) Query() *RobotAccountQuery
- func (c *RobotAccountClient) QueryWorkflow(ra *RobotAccount) *WorkflowQuery
- func (c *RobotAccountClient) QueryWorkflowruns(ra *RobotAccount) *WorkflowRunQuery
- func (c *RobotAccountClient) Update() *RobotAccountUpdate
- func (c *RobotAccountClient) UpdateOne(ra *RobotAccount) *RobotAccountUpdateOne
- func (c *RobotAccountClient) UpdateOneID(id uuid.UUID) *RobotAccountUpdateOne
- func (c *RobotAccountClient) Use(hooks ...Hook)
- type RobotAccountCreate
- func (rac *RobotAccountCreate) AddWorkflowrunIDs(ids ...uuid.UUID) *RobotAccountCreate
- func (rac *RobotAccountCreate) AddWorkflowruns(w ...*WorkflowRun) *RobotAccountCreate
- func (rac *RobotAccountCreate) Exec(ctx context.Context) error
- func (rac *RobotAccountCreate) ExecX(ctx context.Context)
- func (rac *RobotAccountCreate) Mutation() *RobotAccountMutation
- func (rac *RobotAccountCreate) Save(ctx context.Context) (*RobotAccount, error)
- func (rac *RobotAccountCreate) SaveX(ctx context.Context) *RobotAccount
- func (rac *RobotAccountCreate) SetCreatedAt(t time.Time) *RobotAccountCreate
- func (rac *RobotAccountCreate) SetID(u uuid.UUID) *RobotAccountCreate
- func (rac *RobotAccountCreate) SetName(s string) *RobotAccountCreate
- func (rac *RobotAccountCreate) SetNillableCreatedAt(t *time.Time) *RobotAccountCreate
- func (rac *RobotAccountCreate) SetNillableID(u *uuid.UUID) *RobotAccountCreate
- func (rac *RobotAccountCreate) SetNillableRevokedAt(t *time.Time) *RobotAccountCreate
- func (rac *RobotAccountCreate) SetNillableWorkflowID(id *uuid.UUID) *RobotAccountCreate
- func (rac *RobotAccountCreate) SetRevokedAt(t time.Time) *RobotAccountCreate
- func (rac *RobotAccountCreate) SetWorkflow(w *Workflow) *RobotAccountCreate
- func (rac *RobotAccountCreate) SetWorkflowID(id uuid.UUID) *RobotAccountCreate
- type RobotAccountCreateBulk
- type RobotAccountDelete
- type RobotAccountDeleteOne
- type RobotAccountEdges
- type RobotAccountGroupBy
- func (ragb *RobotAccountGroupBy) Aggregate(fns ...AggregateFunc) *RobotAccountGroupBy
- func (s *RobotAccountGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *RobotAccountGroupBy) BoolX(ctx context.Context) bool
- func (s *RobotAccountGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *RobotAccountGroupBy) BoolsX(ctx context.Context) []bool
- func (s *RobotAccountGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *RobotAccountGroupBy) Float64X(ctx context.Context) float64
- func (s *RobotAccountGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *RobotAccountGroupBy) Float64sX(ctx context.Context) []float64
- func (s *RobotAccountGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *RobotAccountGroupBy) IntX(ctx context.Context) int
- func (s *RobotAccountGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *RobotAccountGroupBy) IntsX(ctx context.Context) []int
- func (ragb *RobotAccountGroupBy) Scan(ctx context.Context, v any) error
- func (s *RobotAccountGroupBy) ScanX(ctx context.Context, v any)
- func (s *RobotAccountGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *RobotAccountGroupBy) StringX(ctx context.Context) string
- func (s *RobotAccountGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *RobotAccountGroupBy) StringsX(ctx context.Context) []string
- type RobotAccountMutation
- func (m *RobotAccountMutation) AddField(name string, value ent.Value) error
- func (m *RobotAccountMutation) AddWorkflowrunIDs(ids ...uuid.UUID)
- func (m *RobotAccountMutation) AddedEdges() []string
- func (m *RobotAccountMutation) AddedField(name string) (ent.Value, bool)
- func (m *RobotAccountMutation) AddedFields() []string
- func (m *RobotAccountMutation) AddedIDs(name string) []ent.Value
- func (m *RobotAccountMutation) ClearEdge(name string) error
- func (m *RobotAccountMutation) ClearField(name string) error
- func (m *RobotAccountMutation) ClearRevokedAt()
- func (m *RobotAccountMutation) ClearWorkflow()
- func (m *RobotAccountMutation) ClearWorkflowruns()
- func (m *RobotAccountMutation) ClearedEdges() []string
- func (m *RobotAccountMutation) ClearedFields() []string
- func (m RobotAccountMutation) Client() *Client
- func (m *RobotAccountMutation) CreatedAt() (r time.Time, exists bool)
- func (m *RobotAccountMutation) EdgeCleared(name string) bool
- func (m *RobotAccountMutation) Field(name string) (ent.Value, bool)
- func (m *RobotAccountMutation) FieldCleared(name string) bool
- func (m *RobotAccountMutation) Fields() []string
- func (m *RobotAccountMutation) ID() (id uuid.UUID, exists bool)
- func (m *RobotAccountMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *RobotAccountMutation) Name() (r string, exists bool)
- func (m *RobotAccountMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *RobotAccountMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *RobotAccountMutation) OldName(ctx context.Context) (v string, err error)
- func (m *RobotAccountMutation) OldRevokedAt(ctx context.Context) (v time.Time, err error)
- func (m *RobotAccountMutation) Op() Op
- func (m *RobotAccountMutation) RemoveWorkflowrunIDs(ids ...uuid.UUID)
- func (m *RobotAccountMutation) RemovedEdges() []string
- func (m *RobotAccountMutation) RemovedIDs(name string) []ent.Value
- func (m *RobotAccountMutation) RemovedWorkflowrunsIDs() (ids []uuid.UUID)
- func (m *RobotAccountMutation) ResetCreatedAt()
- func (m *RobotAccountMutation) ResetEdge(name string) error
- func (m *RobotAccountMutation) ResetField(name string) error
- func (m *RobotAccountMutation) ResetName()
- func (m *RobotAccountMutation) ResetRevokedAt()
- func (m *RobotAccountMutation) ResetWorkflow()
- func (m *RobotAccountMutation) ResetWorkflowruns()
- func (m *RobotAccountMutation) RevokedAt() (r time.Time, exists bool)
- func (m *RobotAccountMutation) RevokedAtCleared() bool
- func (m *RobotAccountMutation) SetCreatedAt(t time.Time)
- func (m *RobotAccountMutation) SetField(name string, value ent.Value) error
- func (m *RobotAccountMutation) SetID(id uuid.UUID)
- func (m *RobotAccountMutation) SetName(s string)
- func (m *RobotAccountMutation) SetOp(op Op)
- func (m *RobotAccountMutation) SetRevokedAt(t time.Time)
- func (m *RobotAccountMutation) SetWorkflowID(id uuid.UUID)
- func (m RobotAccountMutation) Tx() (*Tx, error)
- func (m *RobotAccountMutation) Type() string
- func (m *RobotAccountMutation) Where(ps ...predicate.RobotAccount)
- func (m *RobotAccountMutation) WhereP(ps ...func(*sql.Selector))
- func (m *RobotAccountMutation) WorkflowCleared() bool
- func (m *RobotAccountMutation) WorkflowID() (id uuid.UUID, exists bool)
- func (m *RobotAccountMutation) WorkflowIDs() (ids []uuid.UUID)
- func (m *RobotAccountMutation) WorkflowrunsCleared() bool
- func (m *RobotAccountMutation) WorkflowrunsIDs() (ids []uuid.UUID)
- type RobotAccountQuery
- func (raq *RobotAccountQuery) Aggregate(fns ...AggregateFunc) *RobotAccountSelect
- func (raq *RobotAccountQuery) All(ctx context.Context) ([]*RobotAccount, error)
- func (raq *RobotAccountQuery) AllX(ctx context.Context) []*RobotAccount
- func (raq *RobotAccountQuery) Clone() *RobotAccountQuery
- func (raq *RobotAccountQuery) Count(ctx context.Context) (int, error)
- func (raq *RobotAccountQuery) CountX(ctx context.Context) int
- func (raq *RobotAccountQuery) Exist(ctx context.Context) (bool, error)
- func (raq *RobotAccountQuery) ExistX(ctx context.Context) bool
- func (raq *RobotAccountQuery) First(ctx context.Context) (*RobotAccount, error)
- func (raq *RobotAccountQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (raq *RobotAccountQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (raq *RobotAccountQuery) FirstX(ctx context.Context) *RobotAccount
- func (raq *RobotAccountQuery) GroupBy(field string, fields ...string) *RobotAccountGroupBy
- func (raq *RobotAccountQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (raq *RobotAccountQuery) IDsX(ctx context.Context) []uuid.UUID
- func (raq *RobotAccountQuery) Limit(limit int) *RobotAccountQuery
- func (raq *RobotAccountQuery) Offset(offset int) *RobotAccountQuery
- func (raq *RobotAccountQuery) Only(ctx context.Context) (*RobotAccount, error)
- func (raq *RobotAccountQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (raq *RobotAccountQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (raq *RobotAccountQuery) OnlyX(ctx context.Context) *RobotAccount
- func (raq *RobotAccountQuery) Order(o ...OrderFunc) *RobotAccountQuery
- func (raq *RobotAccountQuery) QueryWorkflow() *WorkflowQuery
- func (raq *RobotAccountQuery) QueryWorkflowruns() *WorkflowRunQuery
- func (raq *RobotAccountQuery) Select(fields ...string) *RobotAccountSelect
- func (raq *RobotAccountQuery) Unique(unique bool) *RobotAccountQuery
- func (raq *RobotAccountQuery) Where(ps ...predicate.RobotAccount) *RobotAccountQuery
- func (raq *RobotAccountQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *RobotAccountQuery
- func (raq *RobotAccountQuery) WithWorkflowruns(opts ...func(*WorkflowRunQuery)) *RobotAccountQuery
- type RobotAccountSelect
- func (ras *RobotAccountSelect) Aggregate(fns ...AggregateFunc) *RobotAccountSelect
- func (s *RobotAccountSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *RobotAccountSelect) BoolX(ctx context.Context) bool
- func (s *RobotAccountSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *RobotAccountSelect) BoolsX(ctx context.Context) []bool
- func (s *RobotAccountSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *RobotAccountSelect) Float64X(ctx context.Context) float64
- func (s *RobotAccountSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *RobotAccountSelect) Float64sX(ctx context.Context) []float64
- func (s *RobotAccountSelect) Int(ctx context.Context) (_ int, err error)
- func (s *RobotAccountSelect) IntX(ctx context.Context) int
- func (s *RobotAccountSelect) Ints(ctx context.Context) ([]int, error)
- func (s *RobotAccountSelect) IntsX(ctx context.Context) []int
- func (ras *RobotAccountSelect) Scan(ctx context.Context, v any) error
- func (s *RobotAccountSelect) ScanX(ctx context.Context, v any)
- func (s *RobotAccountSelect) String(ctx context.Context) (_ string, err error)
- func (s *RobotAccountSelect) StringX(ctx context.Context) string
- func (s *RobotAccountSelect) Strings(ctx context.Context) ([]string, error)
- func (s *RobotAccountSelect) StringsX(ctx context.Context) []string
- type RobotAccountUpdate
- func (rau *RobotAccountUpdate) AddWorkflowrunIDs(ids ...uuid.UUID) *RobotAccountUpdate
- func (rau *RobotAccountUpdate) AddWorkflowruns(w ...*WorkflowRun) *RobotAccountUpdate
- func (rau *RobotAccountUpdate) ClearRevokedAt() *RobotAccountUpdate
- func (rau *RobotAccountUpdate) ClearWorkflow() *RobotAccountUpdate
- func (rau *RobotAccountUpdate) ClearWorkflowruns() *RobotAccountUpdate
- func (rau *RobotAccountUpdate) Exec(ctx context.Context) error
- func (rau *RobotAccountUpdate) ExecX(ctx context.Context)
- func (rau *RobotAccountUpdate) Mutation() *RobotAccountMutation
- func (rau *RobotAccountUpdate) RemoveWorkflowrunIDs(ids ...uuid.UUID) *RobotAccountUpdate
- func (rau *RobotAccountUpdate) RemoveWorkflowruns(w ...*WorkflowRun) *RobotAccountUpdate
- func (rau *RobotAccountUpdate) Save(ctx context.Context) (int, error)
- func (rau *RobotAccountUpdate) SaveX(ctx context.Context) int
- func (rau *RobotAccountUpdate) SetName(s string) *RobotAccountUpdate
- func (rau *RobotAccountUpdate) SetNillableRevokedAt(t *time.Time) *RobotAccountUpdate
- func (rau *RobotAccountUpdate) SetNillableWorkflowID(id *uuid.UUID) *RobotAccountUpdate
- func (rau *RobotAccountUpdate) SetRevokedAt(t time.Time) *RobotAccountUpdate
- func (rau *RobotAccountUpdate) SetWorkflow(w *Workflow) *RobotAccountUpdate
- func (rau *RobotAccountUpdate) SetWorkflowID(id uuid.UUID) *RobotAccountUpdate
- func (rau *RobotAccountUpdate) Where(ps ...predicate.RobotAccount) *RobotAccountUpdate
- type RobotAccountUpdateOne
- func (rauo *RobotAccountUpdateOne) AddWorkflowrunIDs(ids ...uuid.UUID) *RobotAccountUpdateOne
- func (rauo *RobotAccountUpdateOne) AddWorkflowruns(w ...*WorkflowRun) *RobotAccountUpdateOne
- func (rauo *RobotAccountUpdateOne) ClearRevokedAt() *RobotAccountUpdateOne
- func (rauo *RobotAccountUpdateOne) ClearWorkflow() *RobotAccountUpdateOne
- func (rauo *RobotAccountUpdateOne) ClearWorkflowruns() *RobotAccountUpdateOne
- func (rauo *RobotAccountUpdateOne) Exec(ctx context.Context) error
- func (rauo *RobotAccountUpdateOne) ExecX(ctx context.Context)
- func (rauo *RobotAccountUpdateOne) Mutation() *RobotAccountMutation
- func (rauo *RobotAccountUpdateOne) RemoveWorkflowrunIDs(ids ...uuid.UUID) *RobotAccountUpdateOne
- func (rauo *RobotAccountUpdateOne) RemoveWorkflowruns(w ...*WorkflowRun) *RobotAccountUpdateOne
- func (rauo *RobotAccountUpdateOne) Save(ctx context.Context) (*RobotAccount, error)
- func (rauo *RobotAccountUpdateOne) SaveX(ctx context.Context) *RobotAccount
- func (rauo *RobotAccountUpdateOne) Select(field string, fields ...string) *RobotAccountUpdateOne
- func (rauo *RobotAccountUpdateOne) SetName(s string) *RobotAccountUpdateOne
- func (rauo *RobotAccountUpdateOne) SetNillableRevokedAt(t *time.Time) *RobotAccountUpdateOne
- func (rauo *RobotAccountUpdateOne) SetNillableWorkflowID(id *uuid.UUID) *RobotAccountUpdateOne
- func (rauo *RobotAccountUpdateOne) SetRevokedAt(t time.Time) *RobotAccountUpdateOne
- func (rauo *RobotAccountUpdateOne) SetWorkflow(w *Workflow) *RobotAccountUpdateOne
- func (rauo *RobotAccountUpdateOne) SetWorkflowID(id uuid.UUID) *RobotAccountUpdateOne
- func (rauo *RobotAccountUpdateOne) Where(ps ...predicate.RobotAccount) *RobotAccountUpdateOne
- type RobotAccounts
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type TraverseFunc
- type Traverser
- type Tx
- type User
- type UserClient
- func (c *UserClient) Create() *UserCreate
- func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk
- func (c *UserClient) Delete() *UserDelete
- func (c *UserClient) DeleteOne(u *User) *UserDeleteOne
- func (c *UserClient) DeleteOneID(id uuid.UUID) *UserDeleteOne
- func (c *UserClient) Get(ctx context.Context, id uuid.UUID) (*User, error)
- func (c *UserClient) GetX(ctx context.Context, id uuid.UUID) *User
- func (c *UserClient) Hooks() []Hook
- func (c *UserClient) Intercept(interceptors ...Interceptor)
- func (c *UserClient) Interceptors() []Interceptor
- func (c *UserClient) Query() *UserQuery
- func (c *UserClient) QueryMemberships(u *User) *MembershipQuery
- func (c *UserClient) Update() *UserUpdate
- func (c *UserClient) UpdateOne(u *User) *UserUpdateOne
- func (c *UserClient) UpdateOneID(id uuid.UUID) *UserUpdateOne
- func (c *UserClient) Use(hooks ...Hook)
- type UserCreate
- func (uc *UserCreate) AddMembershipIDs(ids ...uuid.UUID) *UserCreate
- func (uc *UserCreate) AddMemberships(m ...*Membership) *UserCreate
- func (uc *UserCreate) Exec(ctx context.Context) error
- func (uc *UserCreate) ExecX(ctx context.Context)
- func (uc *UserCreate) Mutation() *UserMutation
- func (uc *UserCreate) Save(ctx context.Context) (*User, error)
- func (uc *UserCreate) SaveX(ctx context.Context) *User
- func (uc *UserCreate) SetCreatedAt(t time.Time) *UserCreate
- func (uc *UserCreate) SetEmail(s string) *UserCreate
- func (uc *UserCreate) SetID(u uuid.UUID) *UserCreate
- func (uc *UserCreate) SetNillableCreatedAt(t *time.Time) *UserCreate
- func (uc *UserCreate) SetNillableID(u *uuid.UUID) *UserCreate
- type UserCreateBulk
- type UserDelete
- type UserDeleteOne
- type UserEdges
- type UserGroupBy
- func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy
- func (s *UserGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserGroupBy) BoolX(ctx context.Context) bool
- func (s *UserGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *UserGroupBy) BoolsX(ctx context.Context) []bool
- func (s *UserGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserGroupBy) Float64X(ctx context.Context) float64
- func (s *UserGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserGroupBy) Float64sX(ctx context.Context) []float64
- func (s *UserGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *UserGroupBy) IntX(ctx context.Context) int
- func (s *UserGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *UserGroupBy) IntsX(ctx context.Context) []int
- func (ugb *UserGroupBy) Scan(ctx context.Context, v any) error
- func (s *UserGroupBy) ScanX(ctx context.Context, v any)
- func (s *UserGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *UserGroupBy) StringX(ctx context.Context) string
- func (s *UserGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *UserGroupBy) StringsX(ctx context.Context) []string
- type UserMutation
- func (m *UserMutation) AddField(name string, value ent.Value) error
- func (m *UserMutation) AddMembershipIDs(ids ...uuid.UUID)
- func (m *UserMutation) AddedEdges() []string
- func (m *UserMutation) AddedField(name string) (ent.Value, bool)
- func (m *UserMutation) AddedFields() []string
- func (m *UserMutation) AddedIDs(name string) []ent.Value
- func (m *UserMutation) ClearEdge(name string) error
- func (m *UserMutation) ClearField(name string) error
- func (m *UserMutation) ClearMemberships()
- func (m *UserMutation) ClearedEdges() []string
- func (m *UserMutation) ClearedFields() []string
- func (m UserMutation) Client() *Client
- func (m *UserMutation) CreatedAt() (r time.Time, exists bool)
- func (m *UserMutation) EdgeCleared(name string) bool
- func (m *UserMutation) Email() (r string, exists bool)
- func (m *UserMutation) Field(name string) (ent.Value, bool)
- func (m *UserMutation) FieldCleared(name string) bool
- func (m *UserMutation) Fields() []string
- func (m *UserMutation) ID() (id uuid.UUID, exists bool)
- func (m *UserMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *UserMutation) MembershipsCleared() bool
- func (m *UserMutation) MembershipsIDs() (ids []uuid.UUID)
- func (m *UserMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *UserMutation) OldEmail(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *UserMutation) Op() Op
- func (m *UserMutation) RemoveMembershipIDs(ids ...uuid.UUID)
- func (m *UserMutation) RemovedEdges() []string
- func (m *UserMutation) RemovedIDs(name string) []ent.Value
- func (m *UserMutation) RemovedMembershipsIDs() (ids []uuid.UUID)
- func (m *UserMutation) ResetCreatedAt()
- func (m *UserMutation) ResetEdge(name string) error
- func (m *UserMutation) ResetEmail()
- func (m *UserMutation) ResetField(name string) error
- func (m *UserMutation) ResetMemberships()
- func (m *UserMutation) SetCreatedAt(t time.Time)
- func (m *UserMutation) SetEmail(s string)
- func (m *UserMutation) SetField(name string, value ent.Value) error
- func (m *UserMutation) SetID(id uuid.UUID)
- func (m *UserMutation) SetOp(op Op)
- func (m UserMutation) Tx() (*Tx, error)
- func (m *UserMutation) Type() string
- func (m *UserMutation) Where(ps ...predicate.User)
- func (m *UserMutation) WhereP(ps ...func(*sql.Selector))
- type UserQuery
- func (uq *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect
- func (uq *UserQuery) All(ctx context.Context) ([]*User, error)
- func (uq *UserQuery) AllX(ctx context.Context) []*User
- func (uq *UserQuery) Clone() *UserQuery
- func (uq *UserQuery) Count(ctx context.Context) (int, error)
- func (uq *UserQuery) CountX(ctx context.Context) int
- func (uq *UserQuery) Exist(ctx context.Context) (bool, error)
- func (uq *UserQuery) ExistX(ctx context.Context) bool
- func (uq *UserQuery) First(ctx context.Context) (*User, error)
- func (uq *UserQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (uq *UserQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (uq *UserQuery) FirstX(ctx context.Context) *User
- func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy
- func (uq *UserQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (uq *UserQuery) IDsX(ctx context.Context) []uuid.UUID
- func (uq *UserQuery) Limit(limit int) *UserQuery
- func (uq *UserQuery) Offset(offset int) *UserQuery
- func (uq *UserQuery) Only(ctx context.Context) (*User, error)
- func (uq *UserQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (uq *UserQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (uq *UserQuery) OnlyX(ctx context.Context) *User
- func (uq *UserQuery) Order(o ...OrderFunc) *UserQuery
- func (uq *UserQuery) QueryMemberships() *MembershipQuery
- func (uq *UserQuery) Select(fields ...string) *UserSelect
- func (uq *UserQuery) Unique(unique bool) *UserQuery
- func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery
- func (uq *UserQuery) WithMemberships(opts ...func(*MembershipQuery)) *UserQuery
- type UserSelect
- func (us *UserSelect) Aggregate(fns ...AggregateFunc) *UserSelect
- func (s *UserSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserSelect) BoolX(ctx context.Context) bool
- func (s *UserSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *UserSelect) BoolsX(ctx context.Context) []bool
- func (s *UserSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserSelect) Float64X(ctx context.Context) float64
- func (s *UserSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserSelect) Float64sX(ctx context.Context) []float64
- func (s *UserSelect) Int(ctx context.Context) (_ int, err error)
- func (s *UserSelect) IntX(ctx context.Context) int
- func (s *UserSelect) Ints(ctx context.Context) ([]int, error)
- func (s *UserSelect) IntsX(ctx context.Context) []int
- func (us *UserSelect) Scan(ctx context.Context, v any) error
- func (s *UserSelect) ScanX(ctx context.Context, v any)
- func (s *UserSelect) String(ctx context.Context) (_ string, err error)
- func (s *UserSelect) StringX(ctx context.Context) string
- func (s *UserSelect) Strings(ctx context.Context) ([]string, error)
- func (s *UserSelect) StringsX(ctx context.Context) []string
- type UserUpdate
- func (uu *UserUpdate) AddMembershipIDs(ids ...uuid.UUID) *UserUpdate
- func (uu *UserUpdate) AddMemberships(m ...*Membership) *UserUpdate
- func (uu *UserUpdate) ClearMemberships() *UserUpdate
- func (uu *UserUpdate) Exec(ctx context.Context) error
- func (uu *UserUpdate) ExecX(ctx context.Context)
- func (uu *UserUpdate) Mutation() *UserMutation
- func (uu *UserUpdate) RemoveMembershipIDs(ids ...uuid.UUID) *UserUpdate
- func (uu *UserUpdate) RemoveMemberships(m ...*Membership) *UserUpdate
- func (uu *UserUpdate) Save(ctx context.Context) (int, error)
- func (uu *UserUpdate) SaveX(ctx context.Context) int
- func (uu *UserUpdate) SetEmail(s string) *UserUpdate
- func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate
- type UserUpdateOne
- func (uuo *UserUpdateOne) AddMembershipIDs(ids ...uuid.UUID) *UserUpdateOne
- func (uuo *UserUpdateOne) AddMemberships(m ...*Membership) *UserUpdateOne
- func (uuo *UserUpdateOne) ClearMemberships() *UserUpdateOne
- func (uuo *UserUpdateOne) Exec(ctx context.Context) error
- func (uuo *UserUpdateOne) ExecX(ctx context.Context)
- func (uuo *UserUpdateOne) Mutation() *UserMutation
- func (uuo *UserUpdateOne) RemoveMembershipIDs(ids ...uuid.UUID) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveMemberships(m ...*Membership) *UserUpdateOne
- func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error)
- func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User
- func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetEmail(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) Where(ps ...predicate.User) *UserUpdateOne
- type Users
- type ValidationError
- type Value
- type Workflow
- func (w *Workflow) QueryContract() *WorkflowContractQuery
- func (w *Workflow) QueryIntegrationAttachments() *IntegrationAttachmentQuery
- func (w *Workflow) QueryOrganization() *OrganizationQuery
- func (w *Workflow) QueryRobotaccounts() *RobotAccountQuery
- func (w *Workflow) QueryWorkflowruns() *WorkflowRunQuery
- func (w *Workflow) String() string
- func (w *Workflow) Unwrap() *Workflow
- func (w *Workflow) Update() *WorkflowUpdateOne
- type WorkflowClient
- func (c *WorkflowClient) Create() *WorkflowCreate
- func (c *WorkflowClient) CreateBulk(builders ...*WorkflowCreate) *WorkflowCreateBulk
- func (c *WorkflowClient) Delete() *WorkflowDelete
- func (c *WorkflowClient) DeleteOne(w *Workflow) *WorkflowDeleteOne
- func (c *WorkflowClient) DeleteOneID(id uuid.UUID) *WorkflowDeleteOne
- func (c *WorkflowClient) Get(ctx context.Context, id uuid.UUID) (*Workflow, error)
- func (c *WorkflowClient) GetX(ctx context.Context, id uuid.UUID) *Workflow
- func (c *WorkflowClient) Hooks() []Hook
- func (c *WorkflowClient) Intercept(interceptors ...Interceptor)
- func (c *WorkflowClient) Interceptors() []Interceptor
- func (c *WorkflowClient) Query() *WorkflowQuery
- func (c *WorkflowClient) QueryContract(w *Workflow) *WorkflowContractQuery
- func (c *WorkflowClient) QueryIntegrationAttachments(w *Workflow) *IntegrationAttachmentQuery
- func (c *WorkflowClient) QueryOrganization(w *Workflow) *OrganizationQuery
- func (c *WorkflowClient) QueryRobotaccounts(w *Workflow) *RobotAccountQuery
- func (c *WorkflowClient) QueryWorkflowruns(w *Workflow) *WorkflowRunQuery
- func (c *WorkflowClient) Update() *WorkflowUpdate
- func (c *WorkflowClient) UpdateOne(w *Workflow) *WorkflowUpdateOne
- func (c *WorkflowClient) UpdateOneID(id uuid.UUID) *WorkflowUpdateOne
- func (c *WorkflowClient) Use(hooks ...Hook)
- type WorkflowContract
- func (wc *WorkflowContract) QueryOrganization() *OrganizationQuery
- func (wc *WorkflowContract) QueryVersions() *WorkflowContractVersionQuery
- func (wc *WorkflowContract) QueryWorkflows() *WorkflowQuery
- func (wc *WorkflowContract) String() string
- func (wc *WorkflowContract) Unwrap() *WorkflowContract
- func (wc *WorkflowContract) Update() *WorkflowContractUpdateOne
- type WorkflowContractClient
- func (c *WorkflowContractClient) Create() *WorkflowContractCreate
- func (c *WorkflowContractClient) CreateBulk(builders ...*WorkflowContractCreate) *WorkflowContractCreateBulk
- func (c *WorkflowContractClient) Delete() *WorkflowContractDelete
- func (c *WorkflowContractClient) DeleteOne(wc *WorkflowContract) *WorkflowContractDeleteOne
- func (c *WorkflowContractClient) DeleteOneID(id uuid.UUID) *WorkflowContractDeleteOne
- func (c *WorkflowContractClient) Get(ctx context.Context, id uuid.UUID) (*WorkflowContract, error)
- func (c *WorkflowContractClient) GetX(ctx context.Context, id uuid.UUID) *WorkflowContract
- func (c *WorkflowContractClient) Hooks() []Hook
- func (c *WorkflowContractClient) Intercept(interceptors ...Interceptor)
- func (c *WorkflowContractClient) Interceptors() []Interceptor
- func (c *WorkflowContractClient) Query() *WorkflowContractQuery
- func (c *WorkflowContractClient) QueryOrganization(wc *WorkflowContract) *OrganizationQuery
- func (c *WorkflowContractClient) QueryVersions(wc *WorkflowContract) *WorkflowContractVersionQuery
- func (c *WorkflowContractClient) QueryWorkflows(wc *WorkflowContract) *WorkflowQuery
- func (c *WorkflowContractClient) Update() *WorkflowContractUpdate
- func (c *WorkflowContractClient) UpdateOne(wc *WorkflowContract) *WorkflowContractUpdateOne
- func (c *WorkflowContractClient) UpdateOneID(id uuid.UUID) *WorkflowContractUpdateOne
- func (c *WorkflowContractClient) Use(hooks ...Hook)
- type WorkflowContractCreate
- func (wcc *WorkflowContractCreate) AddVersionIDs(ids ...uuid.UUID) *WorkflowContractCreate
- func (wcc *WorkflowContractCreate) AddVersions(w ...*WorkflowContractVersion) *WorkflowContractCreate
- func (wcc *WorkflowContractCreate) AddWorkflowIDs(ids ...uuid.UUID) *WorkflowContractCreate
- func (wcc *WorkflowContractCreate) AddWorkflows(w ...*Workflow) *WorkflowContractCreate
- func (wcc *WorkflowContractCreate) Exec(ctx context.Context) error
- func (wcc *WorkflowContractCreate) ExecX(ctx context.Context)
- func (wcc *WorkflowContractCreate) Mutation() *WorkflowContractMutation
- func (wcc *WorkflowContractCreate) Save(ctx context.Context) (*WorkflowContract, error)
- func (wcc *WorkflowContractCreate) SaveX(ctx context.Context) *WorkflowContract
- func (wcc *WorkflowContractCreate) SetCreatedAt(t time.Time) *WorkflowContractCreate
- func (wcc *WorkflowContractCreate) SetDeletedAt(t time.Time) *WorkflowContractCreate
- func (wcc *WorkflowContractCreate) SetID(u uuid.UUID) *WorkflowContractCreate
- func (wcc *WorkflowContractCreate) SetName(s string) *WorkflowContractCreate
- func (wcc *WorkflowContractCreate) SetNillableCreatedAt(t *time.Time) *WorkflowContractCreate
- func (wcc *WorkflowContractCreate) SetNillableDeletedAt(t *time.Time) *WorkflowContractCreate
- func (wcc *WorkflowContractCreate) SetNillableID(u *uuid.UUID) *WorkflowContractCreate
- func (wcc *WorkflowContractCreate) SetNillableOrganizationID(id *uuid.UUID) *WorkflowContractCreate
- func (wcc *WorkflowContractCreate) SetOrganization(o *Organization) *WorkflowContractCreate
- func (wcc *WorkflowContractCreate) SetOrganizationID(id uuid.UUID) *WorkflowContractCreate
- type WorkflowContractCreateBulk
- func (wccb *WorkflowContractCreateBulk) Exec(ctx context.Context) error
- func (wccb *WorkflowContractCreateBulk) ExecX(ctx context.Context)
- func (wccb *WorkflowContractCreateBulk) Save(ctx context.Context) ([]*WorkflowContract, error)
- func (wccb *WorkflowContractCreateBulk) SaveX(ctx context.Context) []*WorkflowContract
- type WorkflowContractDelete
- type WorkflowContractDeleteOne
- type WorkflowContractEdges
- type WorkflowContractGroupBy
- func (wcgb *WorkflowContractGroupBy) Aggregate(fns ...AggregateFunc) *WorkflowContractGroupBy
- func (s *WorkflowContractGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *WorkflowContractGroupBy) BoolX(ctx context.Context) bool
- func (s *WorkflowContractGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *WorkflowContractGroupBy) BoolsX(ctx context.Context) []bool
- func (s *WorkflowContractGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *WorkflowContractGroupBy) Float64X(ctx context.Context) float64
- func (s *WorkflowContractGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *WorkflowContractGroupBy) Float64sX(ctx context.Context) []float64
- func (s *WorkflowContractGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *WorkflowContractGroupBy) IntX(ctx context.Context) int
- func (s *WorkflowContractGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *WorkflowContractGroupBy) IntsX(ctx context.Context) []int
- func (wcgb *WorkflowContractGroupBy) Scan(ctx context.Context, v any) error
- func (s *WorkflowContractGroupBy) ScanX(ctx context.Context, v any)
- func (s *WorkflowContractGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *WorkflowContractGroupBy) StringX(ctx context.Context) string
- func (s *WorkflowContractGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *WorkflowContractGroupBy) StringsX(ctx context.Context) []string
- type WorkflowContractMutation
- func (m *WorkflowContractMutation) AddField(name string, value ent.Value) error
- func (m *WorkflowContractMutation) AddVersionIDs(ids ...uuid.UUID)
- func (m *WorkflowContractMutation) AddWorkflowIDs(ids ...uuid.UUID)
- func (m *WorkflowContractMutation) AddedEdges() []string
- func (m *WorkflowContractMutation) AddedField(name string) (ent.Value, bool)
- func (m *WorkflowContractMutation) AddedFields() []string
- func (m *WorkflowContractMutation) AddedIDs(name string) []ent.Value
- func (m *WorkflowContractMutation) ClearDeletedAt()
- func (m *WorkflowContractMutation) ClearEdge(name string) error
- func (m *WorkflowContractMutation) ClearField(name string) error
- func (m *WorkflowContractMutation) ClearOrganization()
- func (m *WorkflowContractMutation) ClearVersions()
- func (m *WorkflowContractMutation) ClearWorkflows()
- func (m *WorkflowContractMutation) ClearedEdges() []string
- func (m *WorkflowContractMutation) ClearedFields() []string
- func (m WorkflowContractMutation) Client() *Client
- func (m *WorkflowContractMutation) CreatedAt() (r time.Time, exists bool)
- func (m *WorkflowContractMutation) DeletedAt() (r time.Time, exists bool)
- func (m *WorkflowContractMutation) DeletedAtCleared() bool
- func (m *WorkflowContractMutation) EdgeCleared(name string) bool
- func (m *WorkflowContractMutation) Field(name string) (ent.Value, bool)
- func (m *WorkflowContractMutation) FieldCleared(name string) bool
- func (m *WorkflowContractMutation) Fields() []string
- func (m *WorkflowContractMutation) ID() (id uuid.UUID, exists bool)
- func (m *WorkflowContractMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *WorkflowContractMutation) Name() (r string, exists bool)
- func (m *WorkflowContractMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *WorkflowContractMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *WorkflowContractMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *WorkflowContractMutation) OldName(ctx context.Context) (v string, err error)
- func (m *WorkflowContractMutation) Op() Op
- func (m *WorkflowContractMutation) OrganizationCleared() bool
- func (m *WorkflowContractMutation) OrganizationID() (id uuid.UUID, exists bool)
- func (m *WorkflowContractMutation) OrganizationIDs() (ids []uuid.UUID)
- func (m *WorkflowContractMutation) RemoveVersionIDs(ids ...uuid.UUID)
- func (m *WorkflowContractMutation) RemoveWorkflowIDs(ids ...uuid.UUID)
- func (m *WorkflowContractMutation) RemovedEdges() []string
- func (m *WorkflowContractMutation) RemovedIDs(name string) []ent.Value
- func (m *WorkflowContractMutation) RemovedVersionsIDs() (ids []uuid.UUID)
- func (m *WorkflowContractMutation) RemovedWorkflowsIDs() (ids []uuid.UUID)
- func (m *WorkflowContractMutation) ResetCreatedAt()
- func (m *WorkflowContractMutation) ResetDeletedAt()
- func (m *WorkflowContractMutation) ResetEdge(name string) error
- func (m *WorkflowContractMutation) ResetField(name string) error
- func (m *WorkflowContractMutation) ResetName()
- func (m *WorkflowContractMutation) ResetOrganization()
- func (m *WorkflowContractMutation) ResetVersions()
- func (m *WorkflowContractMutation) ResetWorkflows()
- func (m *WorkflowContractMutation) SetCreatedAt(t time.Time)
- func (m *WorkflowContractMutation) SetDeletedAt(t time.Time)
- func (m *WorkflowContractMutation) SetField(name string, value ent.Value) error
- func (m *WorkflowContractMutation) SetID(id uuid.UUID)
- func (m *WorkflowContractMutation) SetName(s string)
- func (m *WorkflowContractMutation) SetOp(op Op)
- func (m *WorkflowContractMutation) SetOrganizationID(id uuid.UUID)
- func (m WorkflowContractMutation) Tx() (*Tx, error)
- func (m *WorkflowContractMutation) Type() string
- func (m *WorkflowContractMutation) VersionsCleared() bool
- func (m *WorkflowContractMutation) VersionsIDs() (ids []uuid.UUID)
- func (m *WorkflowContractMutation) Where(ps ...predicate.WorkflowContract)
- func (m *WorkflowContractMutation) WhereP(ps ...func(*sql.Selector))
- func (m *WorkflowContractMutation) WorkflowsCleared() bool
- func (m *WorkflowContractMutation) WorkflowsIDs() (ids []uuid.UUID)
- type WorkflowContractQuery
- func (wcq *WorkflowContractQuery) Aggregate(fns ...AggregateFunc) *WorkflowContractSelect
- func (wcq *WorkflowContractQuery) All(ctx context.Context) ([]*WorkflowContract, error)
- func (wcq *WorkflowContractQuery) AllX(ctx context.Context) []*WorkflowContract
- func (wcq *WorkflowContractQuery) Clone() *WorkflowContractQuery
- func (wcq *WorkflowContractQuery) Count(ctx context.Context) (int, error)
- func (wcq *WorkflowContractQuery) CountX(ctx context.Context) int
- func (wcq *WorkflowContractQuery) Exist(ctx context.Context) (bool, error)
- func (wcq *WorkflowContractQuery) ExistX(ctx context.Context) bool
- func (wcq *WorkflowContractQuery) First(ctx context.Context) (*WorkflowContract, error)
- func (wcq *WorkflowContractQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (wcq *WorkflowContractQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (wcq *WorkflowContractQuery) FirstX(ctx context.Context) *WorkflowContract
- func (wcq *WorkflowContractQuery) GroupBy(field string, fields ...string) *WorkflowContractGroupBy
- func (wcq *WorkflowContractQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (wcq *WorkflowContractQuery) IDsX(ctx context.Context) []uuid.UUID
- func (wcq *WorkflowContractQuery) Limit(limit int) *WorkflowContractQuery
- func (wcq *WorkflowContractQuery) Offset(offset int) *WorkflowContractQuery
- func (wcq *WorkflowContractQuery) Only(ctx context.Context) (*WorkflowContract, error)
- func (wcq *WorkflowContractQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (wcq *WorkflowContractQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (wcq *WorkflowContractQuery) OnlyX(ctx context.Context) *WorkflowContract
- func (wcq *WorkflowContractQuery) Order(o ...OrderFunc) *WorkflowContractQuery
- func (wcq *WorkflowContractQuery) QueryOrganization() *OrganizationQuery
- func (wcq *WorkflowContractQuery) QueryVersions() *WorkflowContractVersionQuery
- func (wcq *WorkflowContractQuery) QueryWorkflows() *WorkflowQuery
- func (wcq *WorkflowContractQuery) Select(fields ...string) *WorkflowContractSelect
- func (wcq *WorkflowContractQuery) Unique(unique bool) *WorkflowContractQuery
- func (wcq *WorkflowContractQuery) Where(ps ...predicate.WorkflowContract) *WorkflowContractQuery
- func (wcq *WorkflowContractQuery) WithOrganization(opts ...func(*OrganizationQuery)) *WorkflowContractQuery
- func (wcq *WorkflowContractQuery) WithVersions(opts ...func(*WorkflowContractVersionQuery)) *WorkflowContractQuery
- func (wcq *WorkflowContractQuery) WithWorkflows(opts ...func(*WorkflowQuery)) *WorkflowContractQuery
- type WorkflowContractSelect
- func (wcs *WorkflowContractSelect) Aggregate(fns ...AggregateFunc) *WorkflowContractSelect
- func (s *WorkflowContractSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *WorkflowContractSelect) BoolX(ctx context.Context) bool
- func (s *WorkflowContractSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *WorkflowContractSelect) BoolsX(ctx context.Context) []bool
- func (s *WorkflowContractSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *WorkflowContractSelect) Float64X(ctx context.Context) float64
- func (s *WorkflowContractSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *WorkflowContractSelect) Float64sX(ctx context.Context) []float64
- func (s *WorkflowContractSelect) Int(ctx context.Context) (_ int, err error)
- func (s *WorkflowContractSelect) IntX(ctx context.Context) int
- func (s *WorkflowContractSelect) Ints(ctx context.Context) ([]int, error)
- func (s *WorkflowContractSelect) IntsX(ctx context.Context) []int
- func (wcs *WorkflowContractSelect) Scan(ctx context.Context, v any) error
- func (s *WorkflowContractSelect) ScanX(ctx context.Context, v any)
- func (s *WorkflowContractSelect) String(ctx context.Context) (_ string, err error)
- func (s *WorkflowContractSelect) StringX(ctx context.Context) string
- func (s *WorkflowContractSelect) Strings(ctx context.Context) ([]string, error)
- func (s *WorkflowContractSelect) StringsX(ctx context.Context) []string
- type WorkflowContractUpdate
- func (wcu *WorkflowContractUpdate) AddVersionIDs(ids ...uuid.UUID) *WorkflowContractUpdate
- func (wcu *WorkflowContractUpdate) AddVersions(w ...*WorkflowContractVersion) *WorkflowContractUpdate
- func (wcu *WorkflowContractUpdate) AddWorkflowIDs(ids ...uuid.UUID) *WorkflowContractUpdate
- func (wcu *WorkflowContractUpdate) AddWorkflows(w ...*Workflow) *WorkflowContractUpdate
- func (wcu *WorkflowContractUpdate) ClearDeletedAt() *WorkflowContractUpdate
- func (wcu *WorkflowContractUpdate) ClearOrganization() *WorkflowContractUpdate
- func (wcu *WorkflowContractUpdate) ClearVersions() *WorkflowContractUpdate
- func (wcu *WorkflowContractUpdate) ClearWorkflows() *WorkflowContractUpdate
- func (wcu *WorkflowContractUpdate) Exec(ctx context.Context) error
- func (wcu *WorkflowContractUpdate) ExecX(ctx context.Context)
- func (wcu *WorkflowContractUpdate) Mutation() *WorkflowContractMutation
- func (wcu *WorkflowContractUpdate) RemoveVersionIDs(ids ...uuid.UUID) *WorkflowContractUpdate
- func (wcu *WorkflowContractUpdate) RemoveVersions(w ...*WorkflowContractVersion) *WorkflowContractUpdate
- func (wcu *WorkflowContractUpdate) RemoveWorkflowIDs(ids ...uuid.UUID) *WorkflowContractUpdate
- func (wcu *WorkflowContractUpdate) RemoveWorkflows(w ...*Workflow) *WorkflowContractUpdate
- func (wcu *WorkflowContractUpdate) Save(ctx context.Context) (int, error)
- func (wcu *WorkflowContractUpdate) SaveX(ctx context.Context) int
- func (wcu *WorkflowContractUpdate) SetDeletedAt(t time.Time) *WorkflowContractUpdate
- func (wcu *WorkflowContractUpdate) SetName(s string) *WorkflowContractUpdate
- func (wcu *WorkflowContractUpdate) SetNillableDeletedAt(t *time.Time) *WorkflowContractUpdate
- func (wcu *WorkflowContractUpdate) SetNillableOrganizationID(id *uuid.UUID) *WorkflowContractUpdate
- func (wcu *WorkflowContractUpdate) SetOrganization(o *Organization) *WorkflowContractUpdate
- func (wcu *WorkflowContractUpdate) SetOrganizationID(id uuid.UUID) *WorkflowContractUpdate
- func (wcu *WorkflowContractUpdate) Where(ps ...predicate.WorkflowContract) *WorkflowContractUpdate
- type WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) AddVersionIDs(ids ...uuid.UUID) *WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) AddVersions(w ...*WorkflowContractVersion) *WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) AddWorkflowIDs(ids ...uuid.UUID) *WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) AddWorkflows(w ...*Workflow) *WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) ClearDeletedAt() *WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) ClearOrganization() *WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) ClearVersions() *WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) ClearWorkflows() *WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) Exec(ctx context.Context) error
- func (wcuo *WorkflowContractUpdateOne) ExecX(ctx context.Context)
- func (wcuo *WorkflowContractUpdateOne) Mutation() *WorkflowContractMutation
- func (wcuo *WorkflowContractUpdateOne) RemoveVersionIDs(ids ...uuid.UUID) *WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) RemoveVersions(w ...*WorkflowContractVersion) *WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) RemoveWorkflowIDs(ids ...uuid.UUID) *WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) RemoveWorkflows(w ...*Workflow) *WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) Save(ctx context.Context) (*WorkflowContract, error)
- func (wcuo *WorkflowContractUpdateOne) SaveX(ctx context.Context) *WorkflowContract
- func (wcuo *WorkflowContractUpdateOne) Select(field string, fields ...string) *WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) SetDeletedAt(t time.Time) *WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) SetName(s string) *WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) SetNillableDeletedAt(t *time.Time) *WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) SetNillableOrganizationID(id *uuid.UUID) *WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) SetOrganization(o *Organization) *WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) SetOrganizationID(id uuid.UUID) *WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) Where(ps ...predicate.WorkflowContract) *WorkflowContractUpdateOne
- type WorkflowContractVersion
- type WorkflowContractVersionClient
- func (c *WorkflowContractVersionClient) Create() *WorkflowContractVersionCreate
- func (c *WorkflowContractVersionClient) CreateBulk(builders ...*WorkflowContractVersionCreate) *WorkflowContractVersionCreateBulk
- func (c *WorkflowContractVersionClient) Delete() *WorkflowContractVersionDelete
- func (c *WorkflowContractVersionClient) DeleteOne(wcv *WorkflowContractVersion) *WorkflowContractVersionDeleteOne
- func (c *WorkflowContractVersionClient) DeleteOneID(id uuid.UUID) *WorkflowContractVersionDeleteOne
- func (c *WorkflowContractVersionClient) Get(ctx context.Context, id uuid.UUID) (*WorkflowContractVersion, error)
- func (c *WorkflowContractVersionClient) GetX(ctx context.Context, id uuid.UUID) *WorkflowContractVersion
- func (c *WorkflowContractVersionClient) Hooks() []Hook
- func (c *WorkflowContractVersionClient) Intercept(interceptors ...Interceptor)
- func (c *WorkflowContractVersionClient) Interceptors() []Interceptor
- func (c *WorkflowContractVersionClient) Query() *WorkflowContractVersionQuery
- func (c *WorkflowContractVersionClient) QueryContract(wcv *WorkflowContractVersion) *WorkflowContractQuery
- func (c *WorkflowContractVersionClient) Update() *WorkflowContractVersionUpdate
- func (c *WorkflowContractVersionClient) UpdateOne(wcv *WorkflowContractVersion) *WorkflowContractVersionUpdateOne
- func (c *WorkflowContractVersionClient) UpdateOneID(id uuid.UUID) *WorkflowContractVersionUpdateOne
- func (c *WorkflowContractVersionClient) Use(hooks ...Hook)
- type WorkflowContractVersionCreate
- func (wcvc *WorkflowContractVersionCreate) Exec(ctx context.Context) error
- func (wcvc *WorkflowContractVersionCreate) ExecX(ctx context.Context)
- func (wcvc *WorkflowContractVersionCreate) Mutation() *WorkflowContractVersionMutation
- func (wcvc *WorkflowContractVersionCreate) Save(ctx context.Context) (*WorkflowContractVersion, error)
- func (wcvc *WorkflowContractVersionCreate) SaveX(ctx context.Context) *WorkflowContractVersion
- func (wcvc *WorkflowContractVersionCreate) SetBody(b []byte) *WorkflowContractVersionCreate
- func (wcvc *WorkflowContractVersionCreate) SetContract(w *WorkflowContract) *WorkflowContractVersionCreate
- func (wcvc *WorkflowContractVersionCreate) SetContractID(id uuid.UUID) *WorkflowContractVersionCreate
- func (wcvc *WorkflowContractVersionCreate) SetCreatedAt(t time.Time) *WorkflowContractVersionCreate
- func (wcvc *WorkflowContractVersionCreate) SetID(u uuid.UUID) *WorkflowContractVersionCreate
- func (wcvc *WorkflowContractVersionCreate) SetNillableContractID(id *uuid.UUID) *WorkflowContractVersionCreate
- func (wcvc *WorkflowContractVersionCreate) SetNillableCreatedAt(t *time.Time) *WorkflowContractVersionCreate
- func (wcvc *WorkflowContractVersionCreate) SetNillableID(u *uuid.UUID) *WorkflowContractVersionCreate
- func (wcvc *WorkflowContractVersionCreate) SetNillableRevision(i *int) *WorkflowContractVersionCreate
- func (wcvc *WorkflowContractVersionCreate) SetRevision(i int) *WorkflowContractVersionCreate
- type WorkflowContractVersionCreateBulk
- func (wcvcb *WorkflowContractVersionCreateBulk) Exec(ctx context.Context) error
- func (wcvcb *WorkflowContractVersionCreateBulk) ExecX(ctx context.Context)
- func (wcvcb *WorkflowContractVersionCreateBulk) Save(ctx context.Context) ([]*WorkflowContractVersion, error)
- func (wcvcb *WorkflowContractVersionCreateBulk) SaveX(ctx context.Context) []*WorkflowContractVersion
- type WorkflowContractVersionDelete
- type WorkflowContractVersionDeleteOne
- type WorkflowContractVersionEdges
- type WorkflowContractVersionGroupBy
- func (wcvgb *WorkflowContractVersionGroupBy) Aggregate(fns ...AggregateFunc) *WorkflowContractVersionGroupBy
- func (s *WorkflowContractVersionGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *WorkflowContractVersionGroupBy) BoolX(ctx context.Context) bool
- func (s *WorkflowContractVersionGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *WorkflowContractVersionGroupBy) BoolsX(ctx context.Context) []bool
- func (s *WorkflowContractVersionGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *WorkflowContractVersionGroupBy) Float64X(ctx context.Context) float64
- func (s *WorkflowContractVersionGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *WorkflowContractVersionGroupBy) Float64sX(ctx context.Context) []float64
- func (s *WorkflowContractVersionGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *WorkflowContractVersionGroupBy) IntX(ctx context.Context) int
- func (s *WorkflowContractVersionGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *WorkflowContractVersionGroupBy) IntsX(ctx context.Context) []int
- func (wcvgb *WorkflowContractVersionGroupBy) Scan(ctx context.Context, v any) error
- func (s *WorkflowContractVersionGroupBy) ScanX(ctx context.Context, v any)
- func (s *WorkflowContractVersionGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *WorkflowContractVersionGroupBy) StringX(ctx context.Context) string
- func (s *WorkflowContractVersionGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *WorkflowContractVersionGroupBy) StringsX(ctx context.Context) []string
- type WorkflowContractVersionMutation
- func (m *WorkflowContractVersionMutation) AddField(name string, value ent.Value) error
- func (m *WorkflowContractVersionMutation) AddRevision(i int)
- func (m *WorkflowContractVersionMutation) AddedEdges() []string
- func (m *WorkflowContractVersionMutation) AddedField(name string) (ent.Value, bool)
- func (m *WorkflowContractVersionMutation) AddedFields() []string
- func (m *WorkflowContractVersionMutation) AddedIDs(name string) []ent.Value
- func (m *WorkflowContractVersionMutation) AddedRevision() (r int, exists bool)
- func (m *WorkflowContractVersionMutation) Body() (r []byte, exists bool)
- func (m *WorkflowContractVersionMutation) ClearContract()
- func (m *WorkflowContractVersionMutation) ClearEdge(name string) error
- func (m *WorkflowContractVersionMutation) ClearField(name string) error
- func (m *WorkflowContractVersionMutation) ClearedEdges() []string
- func (m *WorkflowContractVersionMutation) ClearedFields() []string
- func (m WorkflowContractVersionMutation) Client() *Client
- func (m *WorkflowContractVersionMutation) ContractCleared() bool
- func (m *WorkflowContractVersionMutation) ContractID() (id uuid.UUID, exists bool)
- func (m *WorkflowContractVersionMutation) ContractIDs() (ids []uuid.UUID)
- func (m *WorkflowContractVersionMutation) CreatedAt() (r time.Time, exists bool)
- func (m *WorkflowContractVersionMutation) EdgeCleared(name string) bool
- func (m *WorkflowContractVersionMutation) Field(name string) (ent.Value, bool)
- func (m *WorkflowContractVersionMutation) FieldCleared(name string) bool
- func (m *WorkflowContractVersionMutation) Fields() []string
- func (m *WorkflowContractVersionMutation) ID() (id uuid.UUID, exists bool)
- func (m *WorkflowContractVersionMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *WorkflowContractVersionMutation) OldBody(ctx context.Context) (v []byte, err error)
- func (m *WorkflowContractVersionMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *WorkflowContractVersionMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *WorkflowContractVersionMutation) OldRevision(ctx context.Context) (v int, err error)
- func (m *WorkflowContractVersionMutation) Op() Op
- func (m *WorkflowContractVersionMutation) RemovedEdges() []string
- func (m *WorkflowContractVersionMutation) RemovedIDs(name string) []ent.Value
- func (m *WorkflowContractVersionMutation) ResetBody()
- func (m *WorkflowContractVersionMutation) ResetContract()
- func (m *WorkflowContractVersionMutation) ResetCreatedAt()
- func (m *WorkflowContractVersionMutation) ResetEdge(name string) error
- func (m *WorkflowContractVersionMutation) ResetField(name string) error
- func (m *WorkflowContractVersionMutation) ResetRevision()
- func (m *WorkflowContractVersionMutation) Revision() (r int, exists bool)
- func (m *WorkflowContractVersionMutation) SetBody(b []byte)
- func (m *WorkflowContractVersionMutation) SetContractID(id uuid.UUID)
- func (m *WorkflowContractVersionMutation) SetCreatedAt(t time.Time)
- func (m *WorkflowContractVersionMutation) SetField(name string, value ent.Value) error
- func (m *WorkflowContractVersionMutation) SetID(id uuid.UUID)
- func (m *WorkflowContractVersionMutation) SetOp(op Op)
- func (m *WorkflowContractVersionMutation) SetRevision(i int)
- func (m WorkflowContractVersionMutation) Tx() (*Tx, error)
- func (m *WorkflowContractVersionMutation) Type() string
- func (m *WorkflowContractVersionMutation) Where(ps ...predicate.WorkflowContractVersion)
- func (m *WorkflowContractVersionMutation) WhereP(ps ...func(*sql.Selector))
- type WorkflowContractVersionQuery
- func (wcvq *WorkflowContractVersionQuery) Aggregate(fns ...AggregateFunc) *WorkflowContractVersionSelect
- func (wcvq *WorkflowContractVersionQuery) All(ctx context.Context) ([]*WorkflowContractVersion, error)
- func (wcvq *WorkflowContractVersionQuery) AllX(ctx context.Context) []*WorkflowContractVersion
- func (wcvq *WorkflowContractVersionQuery) Clone() *WorkflowContractVersionQuery
- func (wcvq *WorkflowContractVersionQuery) Count(ctx context.Context) (int, error)
- func (wcvq *WorkflowContractVersionQuery) CountX(ctx context.Context) int
- func (wcvq *WorkflowContractVersionQuery) Exist(ctx context.Context) (bool, error)
- func (wcvq *WorkflowContractVersionQuery) ExistX(ctx context.Context) bool
- func (wcvq *WorkflowContractVersionQuery) First(ctx context.Context) (*WorkflowContractVersion, error)
- func (wcvq *WorkflowContractVersionQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (wcvq *WorkflowContractVersionQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (wcvq *WorkflowContractVersionQuery) FirstX(ctx context.Context) *WorkflowContractVersion
- func (wcvq *WorkflowContractVersionQuery) GroupBy(field string, fields ...string) *WorkflowContractVersionGroupBy
- func (wcvq *WorkflowContractVersionQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (wcvq *WorkflowContractVersionQuery) IDsX(ctx context.Context) []uuid.UUID
- func (wcvq *WorkflowContractVersionQuery) Limit(limit int) *WorkflowContractVersionQuery
- func (wcvq *WorkflowContractVersionQuery) Offset(offset int) *WorkflowContractVersionQuery
- func (wcvq *WorkflowContractVersionQuery) Only(ctx context.Context) (*WorkflowContractVersion, error)
- func (wcvq *WorkflowContractVersionQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (wcvq *WorkflowContractVersionQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (wcvq *WorkflowContractVersionQuery) OnlyX(ctx context.Context) *WorkflowContractVersion
- func (wcvq *WorkflowContractVersionQuery) Order(o ...OrderFunc) *WorkflowContractVersionQuery
- func (wcvq *WorkflowContractVersionQuery) QueryContract() *WorkflowContractQuery
- func (wcvq *WorkflowContractVersionQuery) Select(fields ...string) *WorkflowContractVersionSelect
- func (wcvq *WorkflowContractVersionQuery) Unique(unique bool) *WorkflowContractVersionQuery
- func (wcvq *WorkflowContractVersionQuery) Where(ps ...predicate.WorkflowContractVersion) *WorkflowContractVersionQuery
- func (wcvq *WorkflowContractVersionQuery) WithContract(opts ...func(*WorkflowContractQuery)) *WorkflowContractVersionQuery
- type WorkflowContractVersionSelect
- func (wcvs *WorkflowContractVersionSelect) Aggregate(fns ...AggregateFunc) *WorkflowContractVersionSelect
- func (s *WorkflowContractVersionSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *WorkflowContractVersionSelect) BoolX(ctx context.Context) bool
- func (s *WorkflowContractVersionSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *WorkflowContractVersionSelect) BoolsX(ctx context.Context) []bool
- func (s *WorkflowContractVersionSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *WorkflowContractVersionSelect) Float64X(ctx context.Context) float64
- func (s *WorkflowContractVersionSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *WorkflowContractVersionSelect) Float64sX(ctx context.Context) []float64
- func (s *WorkflowContractVersionSelect) Int(ctx context.Context) (_ int, err error)
- func (s *WorkflowContractVersionSelect) IntX(ctx context.Context) int
- func (s *WorkflowContractVersionSelect) Ints(ctx context.Context) ([]int, error)
- func (s *WorkflowContractVersionSelect) IntsX(ctx context.Context) []int
- func (wcvs *WorkflowContractVersionSelect) Scan(ctx context.Context, v any) error
- func (s *WorkflowContractVersionSelect) ScanX(ctx context.Context, v any)
- func (s *WorkflowContractVersionSelect) String(ctx context.Context) (_ string, err error)
- func (s *WorkflowContractVersionSelect) StringX(ctx context.Context) string
- func (s *WorkflowContractVersionSelect) Strings(ctx context.Context) ([]string, error)
- func (s *WorkflowContractVersionSelect) StringsX(ctx context.Context) []string
- type WorkflowContractVersionUpdate
- func (wcvu *WorkflowContractVersionUpdate) ClearContract() *WorkflowContractVersionUpdate
- func (wcvu *WorkflowContractVersionUpdate) Exec(ctx context.Context) error
- func (wcvu *WorkflowContractVersionUpdate) ExecX(ctx context.Context)
- func (wcvu *WorkflowContractVersionUpdate) Mutation() *WorkflowContractVersionMutation
- func (wcvu *WorkflowContractVersionUpdate) Save(ctx context.Context) (int, error)
- func (wcvu *WorkflowContractVersionUpdate) SaveX(ctx context.Context) int
- func (wcvu *WorkflowContractVersionUpdate) SetContract(w *WorkflowContract) *WorkflowContractVersionUpdate
- func (wcvu *WorkflowContractVersionUpdate) SetContractID(id uuid.UUID) *WorkflowContractVersionUpdate
- func (wcvu *WorkflowContractVersionUpdate) SetNillableContractID(id *uuid.UUID) *WorkflowContractVersionUpdate
- func (wcvu *WorkflowContractVersionUpdate) Where(ps ...predicate.WorkflowContractVersion) *WorkflowContractVersionUpdate
- type WorkflowContractVersionUpdateOne
- func (wcvuo *WorkflowContractVersionUpdateOne) ClearContract() *WorkflowContractVersionUpdateOne
- func (wcvuo *WorkflowContractVersionUpdateOne) Exec(ctx context.Context) error
- func (wcvuo *WorkflowContractVersionUpdateOne) ExecX(ctx context.Context)
- func (wcvuo *WorkflowContractVersionUpdateOne) Mutation() *WorkflowContractVersionMutation
- func (wcvuo *WorkflowContractVersionUpdateOne) Save(ctx context.Context) (*WorkflowContractVersion, error)
- func (wcvuo *WorkflowContractVersionUpdateOne) SaveX(ctx context.Context) *WorkflowContractVersion
- func (wcvuo *WorkflowContractVersionUpdateOne) Select(field string, fields ...string) *WorkflowContractVersionUpdateOne
- func (wcvuo *WorkflowContractVersionUpdateOne) SetContract(w *WorkflowContract) *WorkflowContractVersionUpdateOne
- func (wcvuo *WorkflowContractVersionUpdateOne) SetContractID(id uuid.UUID) *WorkflowContractVersionUpdateOne
- func (wcvuo *WorkflowContractVersionUpdateOne) SetNillableContractID(id *uuid.UUID) *WorkflowContractVersionUpdateOne
- func (wcvuo *WorkflowContractVersionUpdateOne) Where(ps ...predicate.WorkflowContractVersion) *WorkflowContractVersionUpdateOne
- type WorkflowContractVersions
- type WorkflowContracts
- type WorkflowCreate
- func (wc *WorkflowCreate) AddIntegrationAttachmentIDs(ids ...uuid.UUID) *WorkflowCreate
- func (wc *WorkflowCreate) AddIntegrationAttachments(i ...*IntegrationAttachment) *WorkflowCreate
- func (wc *WorkflowCreate) AddRobotaccountIDs(ids ...uuid.UUID) *WorkflowCreate
- func (wc *WorkflowCreate) AddRobotaccounts(r ...*RobotAccount) *WorkflowCreate
- func (wc *WorkflowCreate) AddWorkflowrunIDs(ids ...uuid.UUID) *WorkflowCreate
- func (wc *WorkflowCreate) AddWorkflowruns(w ...*WorkflowRun) *WorkflowCreate
- func (wc *WorkflowCreate) Exec(ctx context.Context) error
- func (wc *WorkflowCreate) ExecX(ctx context.Context)
- func (wc *WorkflowCreate) Mutation() *WorkflowMutation
- func (wc *WorkflowCreate) Save(ctx context.Context) (*Workflow, error)
- func (wc *WorkflowCreate) SaveX(ctx context.Context) *Workflow
- func (wc *WorkflowCreate) SetContract(w *WorkflowContract) *WorkflowCreate
- func (wc *WorkflowCreate) SetContractID(id uuid.UUID) *WorkflowCreate
- func (wc *WorkflowCreate) SetCreatedAt(t time.Time) *WorkflowCreate
- func (wc *WorkflowCreate) SetDeletedAt(t time.Time) *WorkflowCreate
- func (wc *WorkflowCreate) SetID(u uuid.UUID) *WorkflowCreate
- func (wc *WorkflowCreate) SetName(s string) *WorkflowCreate
- func (wc *WorkflowCreate) SetNillableCreatedAt(t *time.Time) *WorkflowCreate
- func (wc *WorkflowCreate) SetNillableDeletedAt(t *time.Time) *WorkflowCreate
- func (wc *WorkflowCreate) SetNillableID(u *uuid.UUID) *WorkflowCreate
- func (wc *WorkflowCreate) SetNillableProject(s *string) *WorkflowCreate
- func (wc *WorkflowCreate) SetNillableRunsCount(i *int) *WorkflowCreate
- func (wc *WorkflowCreate) SetNillableTeam(s *string) *WorkflowCreate
- func (wc *WorkflowCreate) SetOrganization(o *Organization) *WorkflowCreate
- func (wc *WorkflowCreate) SetOrganizationID(id uuid.UUID) *WorkflowCreate
- func (wc *WorkflowCreate) SetProject(s string) *WorkflowCreate
- func (wc *WorkflowCreate) SetRunsCount(i int) *WorkflowCreate
- func (wc *WorkflowCreate) SetTeam(s string) *WorkflowCreate
- type WorkflowCreateBulk
- type WorkflowDelete
- type WorkflowDeleteOne
- type WorkflowEdges
- func (e WorkflowEdges) ContractOrErr() (*WorkflowContract, error)
- func (e WorkflowEdges) IntegrationAttachmentsOrErr() ([]*IntegrationAttachment, error)
- func (e WorkflowEdges) OrganizationOrErr() (*Organization, error)
- func (e WorkflowEdges) RobotaccountsOrErr() ([]*RobotAccount, error)
- func (e WorkflowEdges) WorkflowrunsOrErr() ([]*WorkflowRun, error)
- type WorkflowGroupBy
- func (wgb *WorkflowGroupBy) Aggregate(fns ...AggregateFunc) *WorkflowGroupBy
- func (s *WorkflowGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *WorkflowGroupBy) BoolX(ctx context.Context) bool
- func (s *WorkflowGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *WorkflowGroupBy) BoolsX(ctx context.Context) []bool
- func (s *WorkflowGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *WorkflowGroupBy) Float64X(ctx context.Context) float64
- func (s *WorkflowGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *WorkflowGroupBy) Float64sX(ctx context.Context) []float64
- func (s *WorkflowGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *WorkflowGroupBy) IntX(ctx context.Context) int
- func (s *WorkflowGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *WorkflowGroupBy) IntsX(ctx context.Context) []int
- func (wgb *WorkflowGroupBy) Scan(ctx context.Context, v any) error
- func (s *WorkflowGroupBy) ScanX(ctx context.Context, v any)
- func (s *WorkflowGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *WorkflowGroupBy) StringX(ctx context.Context) string
- func (s *WorkflowGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *WorkflowGroupBy) StringsX(ctx context.Context) []string
- type WorkflowMutation
- func (m *WorkflowMutation) AddField(name string, value ent.Value) error
- func (m *WorkflowMutation) AddIntegrationAttachmentIDs(ids ...uuid.UUID)
- func (m *WorkflowMutation) AddRobotaccountIDs(ids ...uuid.UUID)
- func (m *WorkflowMutation) AddRunsCount(i int)
- func (m *WorkflowMutation) AddWorkflowrunIDs(ids ...uuid.UUID)
- func (m *WorkflowMutation) AddedEdges() []string
- func (m *WorkflowMutation) AddedField(name string) (ent.Value, bool)
- func (m *WorkflowMutation) AddedFields() []string
- func (m *WorkflowMutation) AddedIDs(name string) []ent.Value
- func (m *WorkflowMutation) AddedRunsCount() (r int, exists bool)
- func (m *WorkflowMutation) ClearContract()
- func (m *WorkflowMutation) ClearDeletedAt()
- func (m *WorkflowMutation) ClearEdge(name string) error
- func (m *WorkflowMutation) ClearField(name string) error
- func (m *WorkflowMutation) ClearIntegrationAttachments()
- func (m *WorkflowMutation) ClearOrganization()
- func (m *WorkflowMutation) ClearProject()
- func (m *WorkflowMutation) ClearRobotaccounts()
- func (m *WorkflowMutation) ClearTeam()
- func (m *WorkflowMutation) ClearWorkflowruns()
- func (m *WorkflowMutation) ClearedEdges() []string
- func (m *WorkflowMutation) ClearedFields() []string
- func (m WorkflowMutation) Client() *Client
- func (m *WorkflowMutation) ContractCleared() bool
- func (m *WorkflowMutation) ContractID() (id uuid.UUID, exists bool)
- func (m *WorkflowMutation) ContractIDs() (ids []uuid.UUID)
- func (m *WorkflowMutation) CreatedAt() (r time.Time, exists bool)
- func (m *WorkflowMutation) DeletedAt() (r time.Time, exists bool)
- func (m *WorkflowMutation) DeletedAtCleared() bool
- func (m *WorkflowMutation) EdgeCleared(name string) bool
- func (m *WorkflowMutation) Field(name string) (ent.Value, bool)
- func (m *WorkflowMutation) FieldCleared(name string) bool
- func (m *WorkflowMutation) Fields() []string
- func (m *WorkflowMutation) ID() (id uuid.UUID, exists bool)
- func (m *WorkflowMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *WorkflowMutation) IntegrationAttachmentsCleared() bool
- func (m *WorkflowMutation) IntegrationAttachmentsIDs() (ids []uuid.UUID)
- func (m *WorkflowMutation) Name() (r string, exists bool)
- func (m *WorkflowMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *WorkflowMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *WorkflowMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *WorkflowMutation) OldName(ctx context.Context) (v string, err error)
- func (m *WorkflowMutation) OldProject(ctx context.Context) (v string, err error)
- func (m *WorkflowMutation) OldRunsCount(ctx context.Context) (v int, err error)
- func (m *WorkflowMutation) OldTeam(ctx context.Context) (v string, err error)
- func (m *WorkflowMutation) Op() Op
- func (m *WorkflowMutation) OrganizationCleared() bool
- func (m *WorkflowMutation) OrganizationID() (id uuid.UUID, exists bool)
- func (m *WorkflowMutation) OrganizationIDs() (ids []uuid.UUID)
- func (m *WorkflowMutation) Project() (r string, exists bool)
- func (m *WorkflowMutation) ProjectCleared() bool
- func (m *WorkflowMutation) RemoveIntegrationAttachmentIDs(ids ...uuid.UUID)
- func (m *WorkflowMutation) RemoveRobotaccountIDs(ids ...uuid.UUID)
- func (m *WorkflowMutation) RemoveWorkflowrunIDs(ids ...uuid.UUID)
- func (m *WorkflowMutation) RemovedEdges() []string
- func (m *WorkflowMutation) RemovedIDs(name string) []ent.Value
- func (m *WorkflowMutation) RemovedIntegrationAttachmentsIDs() (ids []uuid.UUID)
- func (m *WorkflowMutation) RemovedRobotaccountsIDs() (ids []uuid.UUID)
- func (m *WorkflowMutation) RemovedWorkflowrunsIDs() (ids []uuid.UUID)
- func (m *WorkflowMutation) ResetContract()
- func (m *WorkflowMutation) ResetCreatedAt()
- func (m *WorkflowMutation) ResetDeletedAt()
- func (m *WorkflowMutation) ResetEdge(name string) error
- func (m *WorkflowMutation) ResetField(name string) error
- func (m *WorkflowMutation) ResetIntegrationAttachments()
- func (m *WorkflowMutation) ResetName()
- func (m *WorkflowMutation) ResetOrganization()
- func (m *WorkflowMutation) ResetProject()
- func (m *WorkflowMutation) ResetRobotaccounts()
- func (m *WorkflowMutation) ResetRunsCount()
- func (m *WorkflowMutation) ResetTeam()
- func (m *WorkflowMutation) ResetWorkflowruns()
- func (m *WorkflowMutation) RobotaccountsCleared() bool
- func (m *WorkflowMutation) RobotaccountsIDs() (ids []uuid.UUID)
- func (m *WorkflowMutation) RunsCount() (r int, exists bool)
- func (m *WorkflowMutation) SetContractID(id uuid.UUID)
- func (m *WorkflowMutation) SetCreatedAt(t time.Time)
- func (m *WorkflowMutation) SetDeletedAt(t time.Time)
- func (m *WorkflowMutation) SetField(name string, value ent.Value) error
- func (m *WorkflowMutation) SetID(id uuid.UUID)
- func (m *WorkflowMutation) SetName(s string)
- func (m *WorkflowMutation) SetOp(op Op)
- func (m *WorkflowMutation) SetOrganizationID(id uuid.UUID)
- func (m *WorkflowMutation) SetProject(s string)
- func (m *WorkflowMutation) SetRunsCount(i int)
- func (m *WorkflowMutation) SetTeam(s string)
- func (m *WorkflowMutation) Team() (r string, exists bool)
- func (m *WorkflowMutation) TeamCleared() bool
- func (m WorkflowMutation) Tx() (*Tx, error)
- func (m *WorkflowMutation) Type() string
- func (m *WorkflowMutation) Where(ps ...predicate.Workflow)
- func (m *WorkflowMutation) WhereP(ps ...func(*sql.Selector))
- func (m *WorkflowMutation) WorkflowrunsCleared() bool
- func (m *WorkflowMutation) WorkflowrunsIDs() (ids []uuid.UUID)
- type WorkflowQuery
- func (wq *WorkflowQuery) Aggregate(fns ...AggregateFunc) *WorkflowSelect
- func (wq *WorkflowQuery) All(ctx context.Context) ([]*Workflow, error)
- func (wq *WorkflowQuery) AllX(ctx context.Context) []*Workflow
- func (wq *WorkflowQuery) Clone() *WorkflowQuery
- func (wq *WorkflowQuery) Count(ctx context.Context) (int, error)
- func (wq *WorkflowQuery) CountX(ctx context.Context) int
- func (wq *WorkflowQuery) Exist(ctx context.Context) (bool, error)
- func (wq *WorkflowQuery) ExistX(ctx context.Context) bool
- func (wq *WorkflowQuery) First(ctx context.Context) (*Workflow, error)
- func (wq *WorkflowQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (wq *WorkflowQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (wq *WorkflowQuery) FirstX(ctx context.Context) *Workflow
- func (wq *WorkflowQuery) GroupBy(field string, fields ...string) *WorkflowGroupBy
- func (wq *WorkflowQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (wq *WorkflowQuery) IDsX(ctx context.Context) []uuid.UUID
- func (wq *WorkflowQuery) Limit(limit int) *WorkflowQuery
- func (wq *WorkflowQuery) Offset(offset int) *WorkflowQuery
- func (wq *WorkflowQuery) Only(ctx context.Context) (*Workflow, error)
- func (wq *WorkflowQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (wq *WorkflowQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (wq *WorkflowQuery) OnlyX(ctx context.Context) *Workflow
- func (wq *WorkflowQuery) Order(o ...OrderFunc) *WorkflowQuery
- func (wq *WorkflowQuery) QueryContract() *WorkflowContractQuery
- func (wq *WorkflowQuery) QueryIntegrationAttachments() *IntegrationAttachmentQuery
- func (wq *WorkflowQuery) QueryOrganization() *OrganizationQuery
- func (wq *WorkflowQuery) QueryRobotaccounts() *RobotAccountQuery
- func (wq *WorkflowQuery) QueryWorkflowruns() *WorkflowRunQuery
- func (wq *WorkflowQuery) Select(fields ...string) *WorkflowSelect
- func (wq *WorkflowQuery) Unique(unique bool) *WorkflowQuery
- func (wq *WorkflowQuery) Where(ps ...predicate.Workflow) *WorkflowQuery
- func (wq *WorkflowQuery) WithContract(opts ...func(*WorkflowContractQuery)) *WorkflowQuery
- func (wq *WorkflowQuery) WithIntegrationAttachments(opts ...func(*IntegrationAttachmentQuery)) *WorkflowQuery
- func (wq *WorkflowQuery) WithOrganization(opts ...func(*OrganizationQuery)) *WorkflowQuery
- func (wq *WorkflowQuery) WithRobotaccounts(opts ...func(*RobotAccountQuery)) *WorkflowQuery
- func (wq *WorkflowQuery) WithWorkflowruns(opts ...func(*WorkflowRunQuery)) *WorkflowQuery
- type WorkflowRun
- func (wr *WorkflowRun) QueryContractVersion() *WorkflowContractVersionQuery
- func (wr *WorkflowRun) QueryRobotaccount() *RobotAccountQuery
- func (wr *WorkflowRun) QueryWorkflow() *WorkflowQuery
- func (wr *WorkflowRun) String() string
- func (wr *WorkflowRun) Unwrap() *WorkflowRun
- func (wr *WorkflowRun) Update() *WorkflowRunUpdateOne
- type WorkflowRunClient
- func (c *WorkflowRunClient) Create() *WorkflowRunCreate
- func (c *WorkflowRunClient) CreateBulk(builders ...*WorkflowRunCreate) *WorkflowRunCreateBulk
- func (c *WorkflowRunClient) Delete() *WorkflowRunDelete
- func (c *WorkflowRunClient) DeleteOne(wr *WorkflowRun) *WorkflowRunDeleteOne
- func (c *WorkflowRunClient) DeleteOneID(id uuid.UUID) *WorkflowRunDeleteOne
- func (c *WorkflowRunClient) Get(ctx context.Context, id uuid.UUID) (*WorkflowRun, error)
- func (c *WorkflowRunClient) GetX(ctx context.Context, id uuid.UUID) *WorkflowRun
- func (c *WorkflowRunClient) Hooks() []Hook
- func (c *WorkflowRunClient) Intercept(interceptors ...Interceptor)
- func (c *WorkflowRunClient) Interceptors() []Interceptor
- func (c *WorkflowRunClient) Query() *WorkflowRunQuery
- func (c *WorkflowRunClient) QueryContractVersion(wr *WorkflowRun) *WorkflowContractVersionQuery
- func (c *WorkflowRunClient) QueryRobotaccount(wr *WorkflowRun) *RobotAccountQuery
- func (c *WorkflowRunClient) QueryWorkflow(wr *WorkflowRun) *WorkflowQuery
- func (c *WorkflowRunClient) Update() *WorkflowRunUpdate
- func (c *WorkflowRunClient) UpdateOne(wr *WorkflowRun) *WorkflowRunUpdateOne
- func (c *WorkflowRunClient) UpdateOneID(id uuid.UUID) *WorkflowRunUpdateOne
- func (c *WorkflowRunClient) Use(hooks ...Hook)
- type WorkflowRunCreate
- func (wrc *WorkflowRunCreate) Exec(ctx context.Context) error
- func (wrc *WorkflowRunCreate) ExecX(ctx context.Context)
- func (wrc *WorkflowRunCreate) Mutation() *WorkflowRunMutation
- func (wrc *WorkflowRunCreate) Save(ctx context.Context) (*WorkflowRun, error)
- func (wrc *WorkflowRunCreate) SaveX(ctx context.Context) *WorkflowRun
- func (wrc *WorkflowRunCreate) SetAttestation(d *dsse.Envelope) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetContractVersion(w *WorkflowContractVersion) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetContractVersionID(id uuid.UUID) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetCreatedAt(t time.Time) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetFinishedAt(t time.Time) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetID(u uuid.UUID) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetNillableContractVersionID(id *uuid.UUID) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetNillableCreatedAt(t *time.Time) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetNillableFinishedAt(t *time.Time) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetNillableID(u *uuid.UUID) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetNillableReason(s *string) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetNillableRobotaccountID(id *uuid.UUID) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetNillableRunURL(s *string) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetNillableRunnerType(s *string) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetNillableState(brs *biz.WorkflowRunStatus) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetNillableWorkflowID(id *uuid.UUID) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetReason(s string) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetRobotaccount(r *RobotAccount) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetRobotaccountID(id uuid.UUID) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetRunURL(s string) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetRunnerType(s string) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetState(brs biz.WorkflowRunStatus) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetWorkflow(w *Workflow) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetWorkflowID(id uuid.UUID) *WorkflowRunCreate
- type WorkflowRunCreateBulk
- type WorkflowRunDelete
- type WorkflowRunDeleteOne
- type WorkflowRunEdges
- type WorkflowRunGroupBy
- func (wrgb *WorkflowRunGroupBy) Aggregate(fns ...AggregateFunc) *WorkflowRunGroupBy
- func (s *WorkflowRunGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *WorkflowRunGroupBy) BoolX(ctx context.Context) bool
- func (s *WorkflowRunGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *WorkflowRunGroupBy) BoolsX(ctx context.Context) []bool
- func (s *WorkflowRunGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *WorkflowRunGroupBy) Float64X(ctx context.Context) float64
- func (s *WorkflowRunGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *WorkflowRunGroupBy) Float64sX(ctx context.Context) []float64
- func (s *WorkflowRunGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *WorkflowRunGroupBy) IntX(ctx context.Context) int
- func (s *WorkflowRunGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *WorkflowRunGroupBy) IntsX(ctx context.Context) []int
- func (wrgb *WorkflowRunGroupBy) Scan(ctx context.Context, v any) error
- func (s *WorkflowRunGroupBy) ScanX(ctx context.Context, v any)
- func (s *WorkflowRunGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *WorkflowRunGroupBy) StringX(ctx context.Context) string
- func (s *WorkflowRunGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *WorkflowRunGroupBy) StringsX(ctx context.Context) []string
- type WorkflowRunMutation
- func (m *WorkflowRunMutation) AddField(name string, value ent.Value) error
- func (m *WorkflowRunMutation) AddedEdges() []string
- func (m *WorkflowRunMutation) AddedField(name string) (ent.Value, bool)
- func (m *WorkflowRunMutation) AddedFields() []string
- func (m *WorkflowRunMutation) AddedIDs(name string) []ent.Value
- func (m *WorkflowRunMutation) Attestation() (r *dsse.Envelope, exists bool)
- func (m *WorkflowRunMutation) AttestationCleared() bool
- func (m *WorkflowRunMutation) ClearAttestation()
- func (m *WorkflowRunMutation) ClearContractVersion()
- func (m *WorkflowRunMutation) ClearEdge(name string) error
- func (m *WorkflowRunMutation) ClearField(name string) error
- func (m *WorkflowRunMutation) ClearFinishedAt()
- func (m *WorkflowRunMutation) ClearReason()
- func (m *WorkflowRunMutation) ClearRobotaccount()
- func (m *WorkflowRunMutation) ClearRunURL()
- func (m *WorkflowRunMutation) ClearRunnerType()
- func (m *WorkflowRunMutation) ClearWorkflow()
- func (m *WorkflowRunMutation) ClearedEdges() []string
- func (m *WorkflowRunMutation) ClearedFields() []string
- func (m WorkflowRunMutation) Client() *Client
- func (m *WorkflowRunMutation) ContractVersionCleared() bool
- func (m *WorkflowRunMutation) ContractVersionID() (id uuid.UUID, exists bool)
- func (m *WorkflowRunMutation) ContractVersionIDs() (ids []uuid.UUID)
- func (m *WorkflowRunMutation) CreatedAt() (r time.Time, exists bool)
- func (m *WorkflowRunMutation) EdgeCleared(name string) bool
- func (m *WorkflowRunMutation) Field(name string) (ent.Value, bool)
- func (m *WorkflowRunMutation) FieldCleared(name string) bool
- func (m *WorkflowRunMutation) Fields() []string
- func (m *WorkflowRunMutation) FinishedAt() (r time.Time, exists bool)
- func (m *WorkflowRunMutation) FinishedAtCleared() bool
- func (m *WorkflowRunMutation) ID() (id uuid.UUID, exists bool)
- func (m *WorkflowRunMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *WorkflowRunMutation) OldAttestation(ctx context.Context) (v *dsse.Envelope, err error)
- func (m *WorkflowRunMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *WorkflowRunMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *WorkflowRunMutation) OldFinishedAt(ctx context.Context) (v time.Time, err error)
- func (m *WorkflowRunMutation) OldReason(ctx context.Context) (v string, err error)
- func (m *WorkflowRunMutation) OldRunURL(ctx context.Context) (v string, err error)
- func (m *WorkflowRunMutation) OldRunnerType(ctx context.Context) (v string, err error)
- func (m *WorkflowRunMutation) OldState(ctx context.Context) (v biz.WorkflowRunStatus, err error)
- func (m *WorkflowRunMutation) Op() Op
- func (m *WorkflowRunMutation) Reason() (r string, exists bool)
- func (m *WorkflowRunMutation) ReasonCleared() bool
- func (m *WorkflowRunMutation) RemovedEdges() []string
- func (m *WorkflowRunMutation) RemovedIDs(name string) []ent.Value
- func (m *WorkflowRunMutation) ResetAttestation()
- func (m *WorkflowRunMutation) ResetContractVersion()
- func (m *WorkflowRunMutation) ResetCreatedAt()
- func (m *WorkflowRunMutation) ResetEdge(name string) error
- func (m *WorkflowRunMutation) ResetField(name string) error
- func (m *WorkflowRunMutation) ResetFinishedAt()
- func (m *WorkflowRunMutation) ResetReason()
- func (m *WorkflowRunMutation) ResetRobotaccount()
- func (m *WorkflowRunMutation) ResetRunURL()
- func (m *WorkflowRunMutation) ResetRunnerType()
- func (m *WorkflowRunMutation) ResetState()
- func (m *WorkflowRunMutation) ResetWorkflow()
- func (m *WorkflowRunMutation) RobotaccountCleared() bool
- func (m *WorkflowRunMutation) RobotaccountID() (id uuid.UUID, exists bool)
- func (m *WorkflowRunMutation) RobotaccountIDs() (ids []uuid.UUID)
- func (m *WorkflowRunMutation) RunURL() (r string, exists bool)
- func (m *WorkflowRunMutation) RunURLCleared() bool
- func (m *WorkflowRunMutation) RunnerType() (r string, exists bool)
- func (m *WorkflowRunMutation) RunnerTypeCleared() bool
- func (m *WorkflowRunMutation) SetAttestation(d *dsse.Envelope)
- func (m *WorkflowRunMutation) SetContractVersionID(id uuid.UUID)
- func (m *WorkflowRunMutation) SetCreatedAt(t time.Time)
- func (m *WorkflowRunMutation) SetField(name string, value ent.Value) error
- func (m *WorkflowRunMutation) SetFinishedAt(t time.Time)
- func (m *WorkflowRunMutation) SetID(id uuid.UUID)
- func (m *WorkflowRunMutation) SetOp(op Op)
- func (m *WorkflowRunMutation) SetReason(s string)
- func (m *WorkflowRunMutation) SetRobotaccountID(id uuid.UUID)
- func (m *WorkflowRunMutation) SetRunURL(s string)
- func (m *WorkflowRunMutation) SetRunnerType(s string)
- func (m *WorkflowRunMutation) SetState(brs biz.WorkflowRunStatus)
- func (m *WorkflowRunMutation) SetWorkflowID(id uuid.UUID)
- func (m *WorkflowRunMutation) State() (r biz.WorkflowRunStatus, exists bool)
- func (m WorkflowRunMutation) Tx() (*Tx, error)
- func (m *WorkflowRunMutation) Type() string
- func (m *WorkflowRunMutation) Where(ps ...predicate.WorkflowRun)
- func (m *WorkflowRunMutation) WhereP(ps ...func(*sql.Selector))
- func (m *WorkflowRunMutation) WorkflowCleared() bool
- func (m *WorkflowRunMutation) WorkflowID() (id uuid.UUID, exists bool)
- func (m *WorkflowRunMutation) WorkflowIDs() (ids []uuid.UUID)
- type WorkflowRunQuery
- func (wrq *WorkflowRunQuery) Aggregate(fns ...AggregateFunc) *WorkflowRunSelect
- func (wrq *WorkflowRunQuery) All(ctx context.Context) ([]*WorkflowRun, error)
- func (wrq *WorkflowRunQuery) AllX(ctx context.Context) []*WorkflowRun
- func (wrq *WorkflowRunQuery) Clone() *WorkflowRunQuery
- func (wrq *WorkflowRunQuery) Count(ctx context.Context) (int, error)
- func (wrq *WorkflowRunQuery) CountX(ctx context.Context) int
- func (wrq *WorkflowRunQuery) Exist(ctx context.Context) (bool, error)
- func (wrq *WorkflowRunQuery) ExistX(ctx context.Context) bool
- func (wrq *WorkflowRunQuery) First(ctx context.Context) (*WorkflowRun, error)
- func (wrq *WorkflowRunQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (wrq *WorkflowRunQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (wrq *WorkflowRunQuery) FirstX(ctx context.Context) *WorkflowRun
- func (wrq *WorkflowRunQuery) GroupBy(field string, fields ...string) *WorkflowRunGroupBy
- func (wrq *WorkflowRunQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (wrq *WorkflowRunQuery) IDsX(ctx context.Context) []uuid.UUID
- func (wrq *WorkflowRunQuery) Limit(limit int) *WorkflowRunQuery
- func (wrq *WorkflowRunQuery) Offset(offset int) *WorkflowRunQuery
- func (wrq *WorkflowRunQuery) Only(ctx context.Context) (*WorkflowRun, error)
- func (wrq *WorkflowRunQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (wrq *WorkflowRunQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (wrq *WorkflowRunQuery) OnlyX(ctx context.Context) *WorkflowRun
- func (wrq *WorkflowRunQuery) Order(o ...OrderFunc) *WorkflowRunQuery
- func (wrq *WorkflowRunQuery) QueryContractVersion() *WorkflowContractVersionQuery
- func (wrq *WorkflowRunQuery) QueryRobotaccount() *RobotAccountQuery
- func (wrq *WorkflowRunQuery) QueryWorkflow() *WorkflowQuery
- func (wrq *WorkflowRunQuery) Select(fields ...string) *WorkflowRunSelect
- func (wrq *WorkflowRunQuery) Unique(unique bool) *WorkflowRunQuery
- func (wrq *WorkflowRunQuery) Where(ps ...predicate.WorkflowRun) *WorkflowRunQuery
- func (wrq *WorkflowRunQuery) WithContractVersion(opts ...func(*WorkflowContractVersionQuery)) *WorkflowRunQuery
- func (wrq *WorkflowRunQuery) WithRobotaccount(opts ...func(*RobotAccountQuery)) *WorkflowRunQuery
- func (wrq *WorkflowRunQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *WorkflowRunQuery
- type WorkflowRunSelect
- func (wrs *WorkflowRunSelect) Aggregate(fns ...AggregateFunc) *WorkflowRunSelect
- func (s *WorkflowRunSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *WorkflowRunSelect) BoolX(ctx context.Context) bool
- func (s *WorkflowRunSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *WorkflowRunSelect) BoolsX(ctx context.Context) []bool
- func (s *WorkflowRunSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *WorkflowRunSelect) Float64X(ctx context.Context) float64
- func (s *WorkflowRunSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *WorkflowRunSelect) Float64sX(ctx context.Context) []float64
- func (s *WorkflowRunSelect) Int(ctx context.Context) (_ int, err error)
- func (s *WorkflowRunSelect) IntX(ctx context.Context) int
- func (s *WorkflowRunSelect) Ints(ctx context.Context) ([]int, error)
- func (s *WorkflowRunSelect) IntsX(ctx context.Context) []int
- func (wrs *WorkflowRunSelect) Scan(ctx context.Context, v any) error
- func (s *WorkflowRunSelect) ScanX(ctx context.Context, v any)
- func (s *WorkflowRunSelect) String(ctx context.Context) (_ string, err error)
- func (s *WorkflowRunSelect) StringX(ctx context.Context) string
- func (s *WorkflowRunSelect) Strings(ctx context.Context) ([]string, error)
- func (s *WorkflowRunSelect) StringsX(ctx context.Context) []string
- type WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) ClearAttestation() *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) ClearContractVersion() *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) ClearFinishedAt() *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) ClearReason() *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) ClearRobotaccount() *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) ClearRunURL() *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) ClearRunnerType() *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) ClearWorkflow() *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) Exec(ctx context.Context) error
- func (wru *WorkflowRunUpdate) ExecX(ctx context.Context)
- func (wru *WorkflowRunUpdate) Mutation() *WorkflowRunMutation
- func (wru *WorkflowRunUpdate) Save(ctx context.Context) (int, error)
- func (wru *WorkflowRunUpdate) SaveX(ctx context.Context) int
- func (wru *WorkflowRunUpdate) SetAttestation(d *dsse.Envelope) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetContractVersion(w *WorkflowContractVersion) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetContractVersionID(id uuid.UUID) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetFinishedAt(t time.Time) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetNillableContractVersionID(id *uuid.UUID) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetNillableFinishedAt(t *time.Time) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetNillableReason(s *string) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetNillableRobotaccountID(id *uuid.UUID) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetNillableRunURL(s *string) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetNillableRunnerType(s *string) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetNillableState(brs *biz.WorkflowRunStatus) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetNillableWorkflowID(id *uuid.UUID) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetReason(s string) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetRobotaccount(r *RobotAccount) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetRobotaccountID(id uuid.UUID) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetRunURL(s string) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetRunnerType(s string) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetState(brs biz.WorkflowRunStatus) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetWorkflow(w *Workflow) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetWorkflowID(id uuid.UUID) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) Where(ps ...predicate.WorkflowRun) *WorkflowRunUpdate
- type WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) ClearAttestation() *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) ClearContractVersion() *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) ClearFinishedAt() *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) ClearReason() *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) ClearRobotaccount() *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) ClearRunURL() *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) ClearRunnerType() *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) ClearWorkflow() *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) Exec(ctx context.Context) error
- func (wruo *WorkflowRunUpdateOne) ExecX(ctx context.Context)
- func (wruo *WorkflowRunUpdateOne) Mutation() *WorkflowRunMutation
- func (wruo *WorkflowRunUpdateOne) Save(ctx context.Context) (*WorkflowRun, error)
- func (wruo *WorkflowRunUpdateOne) SaveX(ctx context.Context) *WorkflowRun
- func (wruo *WorkflowRunUpdateOne) Select(field string, fields ...string) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetAttestation(d *dsse.Envelope) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetContractVersion(w *WorkflowContractVersion) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetContractVersionID(id uuid.UUID) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetFinishedAt(t time.Time) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetNillableContractVersionID(id *uuid.UUID) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetNillableFinishedAt(t *time.Time) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetNillableReason(s *string) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetNillableRobotaccountID(id *uuid.UUID) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetNillableRunURL(s *string) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetNillableRunnerType(s *string) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetNillableState(brs *biz.WorkflowRunStatus) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetNillableWorkflowID(id *uuid.UUID) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetReason(s string) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetRobotaccount(r *RobotAccount) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetRobotaccountID(id uuid.UUID) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetRunURL(s string) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetRunnerType(s string) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetState(brs biz.WorkflowRunStatus) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetWorkflow(w *Workflow) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetWorkflowID(id uuid.UUID) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) Where(ps ...predicate.WorkflowRun) *WorkflowRunUpdateOne
- type WorkflowRuns
- type WorkflowSelect
- func (ws *WorkflowSelect) Aggregate(fns ...AggregateFunc) *WorkflowSelect
- func (s *WorkflowSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *WorkflowSelect) BoolX(ctx context.Context) bool
- func (s *WorkflowSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *WorkflowSelect) BoolsX(ctx context.Context) []bool
- func (s *WorkflowSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *WorkflowSelect) Float64X(ctx context.Context) float64
- func (s *WorkflowSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *WorkflowSelect) Float64sX(ctx context.Context) []float64
- func (s *WorkflowSelect) Int(ctx context.Context) (_ int, err error)
- func (s *WorkflowSelect) IntX(ctx context.Context) int
- func (s *WorkflowSelect) Ints(ctx context.Context) ([]int, error)
- func (s *WorkflowSelect) IntsX(ctx context.Context) []int
- func (ws *WorkflowSelect) Scan(ctx context.Context, v any) error
- func (s *WorkflowSelect) ScanX(ctx context.Context, v any)
- func (s *WorkflowSelect) String(ctx context.Context) (_ string, err error)
- func (s *WorkflowSelect) StringX(ctx context.Context) string
- func (s *WorkflowSelect) Strings(ctx context.Context) ([]string, error)
- func (s *WorkflowSelect) StringsX(ctx context.Context) []string
- type WorkflowUpdate
- func (wu *WorkflowUpdate) AddIntegrationAttachmentIDs(ids ...uuid.UUID) *WorkflowUpdate
- func (wu *WorkflowUpdate) AddIntegrationAttachments(i ...*IntegrationAttachment) *WorkflowUpdate
- func (wu *WorkflowUpdate) AddRobotaccountIDs(ids ...uuid.UUID) *WorkflowUpdate
- func (wu *WorkflowUpdate) AddRobotaccounts(r ...*RobotAccount) *WorkflowUpdate
- func (wu *WorkflowUpdate) AddRunsCount(i int) *WorkflowUpdate
- func (wu *WorkflowUpdate) AddWorkflowrunIDs(ids ...uuid.UUID) *WorkflowUpdate
- func (wu *WorkflowUpdate) AddWorkflowruns(w ...*WorkflowRun) *WorkflowUpdate
- func (wu *WorkflowUpdate) ClearContract() *WorkflowUpdate
- func (wu *WorkflowUpdate) ClearDeletedAt() *WorkflowUpdate
- func (wu *WorkflowUpdate) ClearIntegrationAttachments() *WorkflowUpdate
- func (wu *WorkflowUpdate) ClearOrganization() *WorkflowUpdate
- func (wu *WorkflowUpdate) ClearProject() *WorkflowUpdate
- func (wu *WorkflowUpdate) ClearRobotaccounts() *WorkflowUpdate
- func (wu *WorkflowUpdate) ClearTeam() *WorkflowUpdate
- func (wu *WorkflowUpdate) ClearWorkflowruns() *WorkflowUpdate
- func (wu *WorkflowUpdate) Exec(ctx context.Context) error
- func (wu *WorkflowUpdate) ExecX(ctx context.Context)
- func (wu *WorkflowUpdate) Mutation() *WorkflowMutation
- func (wu *WorkflowUpdate) RemoveIntegrationAttachmentIDs(ids ...uuid.UUID) *WorkflowUpdate
- func (wu *WorkflowUpdate) RemoveIntegrationAttachments(i ...*IntegrationAttachment) *WorkflowUpdate
- func (wu *WorkflowUpdate) RemoveRobotaccountIDs(ids ...uuid.UUID) *WorkflowUpdate
- func (wu *WorkflowUpdate) RemoveRobotaccounts(r ...*RobotAccount) *WorkflowUpdate
- func (wu *WorkflowUpdate) RemoveWorkflowrunIDs(ids ...uuid.UUID) *WorkflowUpdate
- func (wu *WorkflowUpdate) RemoveWorkflowruns(w ...*WorkflowRun) *WorkflowUpdate
- func (wu *WorkflowUpdate) Save(ctx context.Context) (int, error)
- func (wu *WorkflowUpdate) SaveX(ctx context.Context) int
- func (wu *WorkflowUpdate) SetContract(w *WorkflowContract) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetContractID(id uuid.UUID) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetDeletedAt(t time.Time) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetName(s string) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetNillableDeletedAt(t *time.Time) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetNillableProject(s *string) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetNillableRunsCount(i *int) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetNillableTeam(s *string) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetOrganization(o *Organization) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetOrganizationID(id uuid.UUID) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetProject(s string) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetRunsCount(i int) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetTeam(s string) *WorkflowUpdate
- func (wu *WorkflowUpdate) Where(ps ...predicate.Workflow) *WorkflowUpdate
- type WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) AddIntegrationAttachmentIDs(ids ...uuid.UUID) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) AddIntegrationAttachments(i ...*IntegrationAttachment) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) AddRobotaccountIDs(ids ...uuid.UUID) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) AddRobotaccounts(r ...*RobotAccount) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) AddRunsCount(i int) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) AddWorkflowrunIDs(ids ...uuid.UUID) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) AddWorkflowruns(w ...*WorkflowRun) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) ClearContract() *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) ClearDeletedAt() *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) ClearIntegrationAttachments() *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) ClearOrganization() *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) ClearProject() *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) ClearRobotaccounts() *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) ClearTeam() *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) ClearWorkflowruns() *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) Exec(ctx context.Context) error
- func (wuo *WorkflowUpdateOne) ExecX(ctx context.Context)
- func (wuo *WorkflowUpdateOne) Mutation() *WorkflowMutation
- func (wuo *WorkflowUpdateOne) RemoveIntegrationAttachmentIDs(ids ...uuid.UUID) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) RemoveIntegrationAttachments(i ...*IntegrationAttachment) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) RemoveRobotaccountIDs(ids ...uuid.UUID) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) RemoveRobotaccounts(r ...*RobotAccount) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) RemoveWorkflowrunIDs(ids ...uuid.UUID) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) RemoveWorkflowruns(w ...*WorkflowRun) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) Save(ctx context.Context) (*Workflow, error)
- func (wuo *WorkflowUpdateOne) SaveX(ctx context.Context) *Workflow
- func (wuo *WorkflowUpdateOne) Select(field string, fields ...string) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetContract(w *WorkflowContract) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetContractID(id uuid.UUID) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetDeletedAt(t time.Time) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetName(s string) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetNillableDeletedAt(t *time.Time) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetNillableProject(s *string) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetNillableRunsCount(i *int) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetNillableTeam(s *string) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetOrganization(o *Organization) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetOrganizationID(id uuid.UUID) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetProject(s string) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetRunsCount(i int) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetTeam(s string) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) Where(ps ...predicate.Workflow) *WorkflowUpdateOne
- type Workflows
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeIntegration = "Integration" TypeIntegrationAttachment = "IntegrationAttachment" TypeMembership = "Membership" TypeOCIRepository = "OCIRepository" TypeOrganization = "Organization" TypeRobotAccount = "RobotAccount" TypeUser = "User" TypeWorkflow = "Workflow" TypeWorkflowContract = "WorkflowContract" TypeWorkflowContractVersion = "WorkflowContractVersion" TypeWorkflowRun = "WorkflowRun" )
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.
func NewTxContext ¶
NewTxContext returns a new context with the given Tx attached.
func ServeEntviz ¶
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 // Integration is the client for interacting with the Integration builders. Integration *IntegrationClient // IntegrationAttachment is the client for interacting with the IntegrationAttachment builders. IntegrationAttachment *IntegrationAttachmentClient // Membership is the client for interacting with the Membership builders. Membership *MembershipClient // OCIRepository is the client for interacting with the OCIRepository builders. OCIRepository *OCIRepositoryClient // Organization is the client for interacting with the Organization builders. Organization *OrganizationClient // RobotAccount is the client for interacting with the RobotAccount builders. RobotAccount *RobotAccountClient // User is the client for interacting with the User builders. User *UserClient // Workflow is the client for interacting with the Workflow builders. Workflow *WorkflowClient // WorkflowContract is the client for interacting with the WorkflowContract builders. WorkflowContract *WorkflowContractClient // WorkflowContractVersion is the client for interacting with the WorkflowContractVersion builders. WorkflowContractVersion *WorkflowContractVersionClient // WorkflowRun is the client for interacting with the WorkflowRun builders. WorkflowRun *WorkflowRunClient // 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(). Integration. Query(). Count(ctx)
func (*Client) Intercept ¶
func (c *Client) Intercept(interceptors ...Interceptor)
Intercept adds the query interceptors to all the entity clients. In order to add interceptors to a specific client, call: `client.Node.Intercept(...)`.
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(ctx 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 Integration ¶
type Integration struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // Kind holds the value of the "kind" field. Kind string `json:"kind,omitempty"` // Description holds the value of the "description" field. Description string `json:"description,omitempty"` // SecretName holds the value of the "secret_name" field. SecretName string `json:"secret_name,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // Configuration holds the value of the "configuration" field. Configuration []byte `json:"configuration,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt time.Time `json:"deleted_at,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the IntegrationQuery when eager-loading is set. Edges IntegrationEdges `json:"edges"` // contains filtered or unexported fields }
Integration is the model entity for the Integration schema.
func (*Integration) QueryAttachments ¶
func (i *Integration) QueryAttachments() *IntegrationAttachmentQuery
QueryAttachments queries the "attachments" edge of the Integration entity.
func (*Integration) QueryOrganization ¶
func (i *Integration) QueryOrganization() *OrganizationQuery
QueryOrganization queries the "organization" edge of the Integration entity.
func (*Integration) String ¶
func (i *Integration) String() string
String implements the fmt.Stringer.
func (*Integration) Unwrap ¶
func (i *Integration) Unwrap() *Integration
Unwrap unwraps the Integration 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 (*Integration) Update ¶
func (i *Integration) Update() *IntegrationUpdateOne
Update returns a builder for updating this Integration. Note that you need to call Integration.Unwrap() before calling this method if this Integration was returned from a transaction, and the transaction was committed or rolled back.
type IntegrationAttachment ¶
type IntegrationAttachment 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"` // Configuration holds the value of the "configuration" field. Configuration []byte `json:"configuration,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt time.Time `json:"deleted_at,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the IntegrationAttachmentQuery when eager-loading is set. Edges IntegrationAttachmentEdges `json:"edges"` // contains filtered or unexported fields }
IntegrationAttachment is the model entity for the IntegrationAttachment schema.
func (*IntegrationAttachment) QueryIntegration ¶
func (ia *IntegrationAttachment) QueryIntegration() *IntegrationQuery
QueryIntegration queries the "integration" edge of the IntegrationAttachment entity.
func (*IntegrationAttachment) QueryWorkflow ¶
func (ia *IntegrationAttachment) QueryWorkflow() *WorkflowQuery
QueryWorkflow queries the "workflow" edge of the IntegrationAttachment entity.
func (*IntegrationAttachment) String ¶
func (ia *IntegrationAttachment) String() string
String implements the fmt.Stringer.
func (*IntegrationAttachment) Unwrap ¶
func (ia *IntegrationAttachment) Unwrap() *IntegrationAttachment
Unwrap unwraps the IntegrationAttachment 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 (*IntegrationAttachment) Update ¶
func (ia *IntegrationAttachment) Update() *IntegrationAttachmentUpdateOne
Update returns a builder for updating this IntegrationAttachment. Note that you need to call IntegrationAttachment.Unwrap() before calling this method if this IntegrationAttachment was returned from a transaction, and the transaction was committed or rolled back.
type IntegrationAttachmentClient ¶
type IntegrationAttachmentClient struct {
// contains filtered or unexported fields
}
IntegrationAttachmentClient is a client for the IntegrationAttachment schema.
func NewIntegrationAttachmentClient ¶
func NewIntegrationAttachmentClient(c config) *IntegrationAttachmentClient
NewIntegrationAttachmentClient returns a client for the IntegrationAttachment from the given config.
func (*IntegrationAttachmentClient) Create ¶
func (c *IntegrationAttachmentClient) Create() *IntegrationAttachmentCreate
Create returns a builder for creating a IntegrationAttachment entity.
func (*IntegrationAttachmentClient) CreateBulk ¶
func (c *IntegrationAttachmentClient) CreateBulk(builders ...*IntegrationAttachmentCreate) *IntegrationAttachmentCreateBulk
CreateBulk returns a builder for creating a bulk of IntegrationAttachment entities.
func (*IntegrationAttachmentClient) Delete ¶
func (c *IntegrationAttachmentClient) Delete() *IntegrationAttachmentDelete
Delete returns a delete builder for IntegrationAttachment.
func (*IntegrationAttachmentClient) DeleteOne ¶
func (c *IntegrationAttachmentClient) DeleteOne(ia *IntegrationAttachment) *IntegrationAttachmentDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*IntegrationAttachmentClient) DeleteOneID ¶
func (c *IntegrationAttachmentClient) DeleteOneID(id uuid.UUID) *IntegrationAttachmentDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*IntegrationAttachmentClient) Get ¶
func (c *IntegrationAttachmentClient) Get(ctx context.Context, id uuid.UUID) (*IntegrationAttachment, error)
Get returns a IntegrationAttachment entity by its id.
func (*IntegrationAttachmentClient) GetX ¶
func (c *IntegrationAttachmentClient) GetX(ctx context.Context, id uuid.UUID) *IntegrationAttachment
GetX is like Get, but panics if an error occurs.
func (*IntegrationAttachmentClient) Hooks ¶
func (c *IntegrationAttachmentClient) Hooks() []Hook
Hooks returns the client hooks.
func (*IntegrationAttachmentClient) Intercept ¶
func (c *IntegrationAttachmentClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `integrationattachment.Intercept(f(g(h())))`.
func (*IntegrationAttachmentClient) Interceptors ¶
func (c *IntegrationAttachmentClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*IntegrationAttachmentClient) Query ¶
func (c *IntegrationAttachmentClient) Query() *IntegrationAttachmentQuery
Query returns a query builder for IntegrationAttachment.
func (*IntegrationAttachmentClient) QueryIntegration ¶
func (c *IntegrationAttachmentClient) QueryIntegration(ia *IntegrationAttachment) *IntegrationQuery
QueryIntegration queries the integration edge of a IntegrationAttachment.
func (*IntegrationAttachmentClient) QueryWorkflow ¶
func (c *IntegrationAttachmentClient) QueryWorkflow(ia *IntegrationAttachment) *WorkflowQuery
QueryWorkflow queries the workflow edge of a IntegrationAttachment.
func (*IntegrationAttachmentClient) Update ¶
func (c *IntegrationAttachmentClient) Update() *IntegrationAttachmentUpdate
Update returns an update builder for IntegrationAttachment.
func (*IntegrationAttachmentClient) UpdateOne ¶
func (c *IntegrationAttachmentClient) UpdateOne(ia *IntegrationAttachment) *IntegrationAttachmentUpdateOne
UpdateOne returns an update builder for the given entity.
func (*IntegrationAttachmentClient) UpdateOneID ¶
func (c *IntegrationAttachmentClient) UpdateOneID(id uuid.UUID) *IntegrationAttachmentUpdateOne
UpdateOneID returns an update builder for the given id.
func (*IntegrationAttachmentClient) Use ¶
func (c *IntegrationAttachmentClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `integrationattachment.Hooks(f(g(h())))`.
type IntegrationAttachmentCreate ¶
type IntegrationAttachmentCreate struct {
// contains filtered or unexported fields
}
IntegrationAttachmentCreate is the builder for creating a IntegrationAttachment entity.
func (*IntegrationAttachmentCreate) Exec ¶
func (iac *IntegrationAttachmentCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*IntegrationAttachmentCreate) ExecX ¶
func (iac *IntegrationAttachmentCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IntegrationAttachmentCreate) Mutation ¶
func (iac *IntegrationAttachmentCreate) Mutation() *IntegrationAttachmentMutation
Mutation returns the IntegrationAttachmentMutation object of the builder.
func (*IntegrationAttachmentCreate) Save ¶
func (iac *IntegrationAttachmentCreate) Save(ctx context.Context) (*IntegrationAttachment, error)
Save creates the IntegrationAttachment in the database.
func (*IntegrationAttachmentCreate) SaveX ¶
func (iac *IntegrationAttachmentCreate) SaveX(ctx context.Context) *IntegrationAttachment
SaveX calls Save and panics if Save returns an error.
func (*IntegrationAttachmentCreate) SetConfiguration ¶ added in v0.11.1
func (iac *IntegrationAttachmentCreate) SetConfiguration(b []byte) *IntegrationAttachmentCreate
SetConfiguration sets the "configuration" field.
func (*IntegrationAttachmentCreate) SetCreatedAt ¶
func (iac *IntegrationAttachmentCreate) SetCreatedAt(t time.Time) *IntegrationAttachmentCreate
SetCreatedAt sets the "created_at" field.
func (*IntegrationAttachmentCreate) SetDeletedAt ¶
func (iac *IntegrationAttachmentCreate) SetDeletedAt(t time.Time) *IntegrationAttachmentCreate
SetDeletedAt sets the "deleted_at" field.
func (*IntegrationAttachmentCreate) SetID ¶
func (iac *IntegrationAttachmentCreate) SetID(u uuid.UUID) *IntegrationAttachmentCreate
SetID sets the "id" field.
func (*IntegrationAttachmentCreate) SetIntegration ¶
func (iac *IntegrationAttachmentCreate) SetIntegration(i *Integration) *IntegrationAttachmentCreate
SetIntegration sets the "integration" edge to the Integration entity.
func (*IntegrationAttachmentCreate) SetIntegrationID ¶
func (iac *IntegrationAttachmentCreate) SetIntegrationID(id uuid.UUID) *IntegrationAttachmentCreate
SetIntegrationID sets the "integration" edge to the Integration entity by ID.
func (*IntegrationAttachmentCreate) SetNillableCreatedAt ¶
func (iac *IntegrationAttachmentCreate) SetNillableCreatedAt(t *time.Time) *IntegrationAttachmentCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*IntegrationAttachmentCreate) SetNillableDeletedAt ¶
func (iac *IntegrationAttachmentCreate) SetNillableDeletedAt(t *time.Time) *IntegrationAttachmentCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*IntegrationAttachmentCreate) SetNillableID ¶
func (iac *IntegrationAttachmentCreate) SetNillableID(u *uuid.UUID) *IntegrationAttachmentCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*IntegrationAttachmentCreate) SetWorkflow ¶
func (iac *IntegrationAttachmentCreate) SetWorkflow(w *Workflow) *IntegrationAttachmentCreate
SetWorkflow sets the "workflow" edge to the Workflow entity.
func (*IntegrationAttachmentCreate) SetWorkflowID ¶
func (iac *IntegrationAttachmentCreate) SetWorkflowID(id uuid.UUID) *IntegrationAttachmentCreate
SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.
type IntegrationAttachmentCreateBulk ¶
type IntegrationAttachmentCreateBulk struct {
// contains filtered or unexported fields
}
IntegrationAttachmentCreateBulk is the builder for creating many IntegrationAttachment entities in bulk.
func (*IntegrationAttachmentCreateBulk) Exec ¶
func (iacb *IntegrationAttachmentCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*IntegrationAttachmentCreateBulk) ExecX ¶
func (iacb *IntegrationAttachmentCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IntegrationAttachmentCreateBulk) Save ¶
func (iacb *IntegrationAttachmentCreateBulk) Save(ctx context.Context) ([]*IntegrationAttachment, error)
Save creates the IntegrationAttachment entities in the database.
func (*IntegrationAttachmentCreateBulk) SaveX ¶
func (iacb *IntegrationAttachmentCreateBulk) SaveX(ctx context.Context) []*IntegrationAttachment
SaveX is like Save, but panics if an error occurs.
type IntegrationAttachmentDelete ¶
type IntegrationAttachmentDelete struct {
// contains filtered or unexported fields
}
IntegrationAttachmentDelete is the builder for deleting a IntegrationAttachment entity.
func (*IntegrationAttachmentDelete) Exec ¶
func (iad *IntegrationAttachmentDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*IntegrationAttachmentDelete) ExecX ¶
func (iad *IntegrationAttachmentDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*IntegrationAttachmentDelete) Where ¶
func (iad *IntegrationAttachmentDelete) Where(ps ...predicate.IntegrationAttachment) *IntegrationAttachmentDelete
Where appends a list predicates to the IntegrationAttachmentDelete builder.
type IntegrationAttachmentDeleteOne ¶
type IntegrationAttachmentDeleteOne struct {
// contains filtered or unexported fields
}
IntegrationAttachmentDeleteOne is the builder for deleting a single IntegrationAttachment entity.
func (*IntegrationAttachmentDeleteOne) Exec ¶
func (iado *IntegrationAttachmentDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*IntegrationAttachmentDeleteOne) ExecX ¶
func (iado *IntegrationAttachmentDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IntegrationAttachmentDeleteOne) Where ¶
func (iado *IntegrationAttachmentDeleteOne) Where(ps ...predicate.IntegrationAttachment) *IntegrationAttachmentDeleteOne
Where appends a list predicates to the IntegrationAttachmentDelete builder.
type IntegrationAttachmentEdges ¶
type IntegrationAttachmentEdges struct { // Integration holds the value of the integration edge. Integration *Integration `json:"integration,omitempty"` // Workflow holds the value of the workflow edge. Workflow *Workflow `json:"workflow,omitempty"` // contains filtered or unexported fields }
IntegrationAttachmentEdges holds the relations/edges for other nodes in the graph.
func (IntegrationAttachmentEdges) IntegrationOrErr ¶
func (e IntegrationAttachmentEdges) IntegrationOrErr() (*Integration, error)
IntegrationOrErr returns the Integration value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (IntegrationAttachmentEdges) WorkflowOrErr ¶
func (e IntegrationAttachmentEdges) WorkflowOrErr() (*Workflow, error)
WorkflowOrErr returns the Workflow value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type IntegrationAttachmentGroupBy ¶
type IntegrationAttachmentGroupBy struct {
// contains filtered or unexported fields
}
IntegrationAttachmentGroupBy is the group-by builder for IntegrationAttachment entities.
func (*IntegrationAttachmentGroupBy) Aggregate ¶
func (iagb *IntegrationAttachmentGroupBy) Aggregate(fns ...AggregateFunc) *IntegrationAttachmentGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*IntegrationAttachmentGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*IntegrationAttachmentGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*IntegrationAttachmentGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*IntegrationAttachmentGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*IntegrationAttachmentGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*IntegrationAttachmentGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*IntegrationAttachmentGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*IntegrationAttachmentGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*IntegrationAttachmentGroupBy) Scan ¶
func (iagb *IntegrationAttachmentGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*IntegrationAttachmentGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*IntegrationAttachmentGroupBy) StringX ¶
StringX is like String, but panics if an error occurs.
type IntegrationAttachmentMutation ¶
type IntegrationAttachmentMutation struct {
// contains filtered or unexported fields
}
IntegrationAttachmentMutation represents an operation that mutates the IntegrationAttachment nodes in the graph.
func (*IntegrationAttachmentMutation) AddField ¶
func (m *IntegrationAttachmentMutation) 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 (*IntegrationAttachmentMutation) AddedEdges ¶
func (m *IntegrationAttachmentMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*IntegrationAttachmentMutation) AddedField ¶
func (m *IntegrationAttachmentMutation) 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 (*IntegrationAttachmentMutation) AddedFields ¶
func (m *IntegrationAttachmentMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*IntegrationAttachmentMutation) AddedIDs ¶
func (m *IntegrationAttachmentMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*IntegrationAttachmentMutation) ClearConfiguration ¶ added in v0.11.1
func (m *IntegrationAttachmentMutation) ClearConfiguration()
ClearConfiguration clears the value of the "configuration" field.
func (*IntegrationAttachmentMutation) ClearDeletedAt ¶
func (m *IntegrationAttachmentMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*IntegrationAttachmentMutation) ClearEdge ¶
func (m *IntegrationAttachmentMutation) 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 (*IntegrationAttachmentMutation) ClearField ¶
func (m *IntegrationAttachmentMutation) 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 (*IntegrationAttachmentMutation) ClearIntegration ¶
func (m *IntegrationAttachmentMutation) ClearIntegration()
ClearIntegration clears the "integration" edge to the Integration entity.
func (*IntegrationAttachmentMutation) ClearWorkflow ¶
func (m *IntegrationAttachmentMutation) ClearWorkflow()
ClearWorkflow clears the "workflow" edge to the Workflow entity.
func (*IntegrationAttachmentMutation) ClearedEdges ¶
func (m *IntegrationAttachmentMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*IntegrationAttachmentMutation) ClearedFields ¶
func (m *IntegrationAttachmentMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (IntegrationAttachmentMutation) Client ¶
func (m IntegrationAttachmentMutation) 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 (*IntegrationAttachmentMutation) Configuration ¶ added in v0.11.1
func (m *IntegrationAttachmentMutation) Configuration() (r []byte, exists bool)
Configuration returns the value of the "configuration" field in the mutation.
func (*IntegrationAttachmentMutation) ConfigurationCleared ¶ added in v0.11.1
func (m *IntegrationAttachmentMutation) ConfigurationCleared() bool
ConfigurationCleared returns if the "configuration" field was cleared in this mutation.
func (*IntegrationAttachmentMutation) CreatedAt ¶
func (m *IntegrationAttachmentMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*IntegrationAttachmentMutation) DeletedAt ¶
func (m *IntegrationAttachmentMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*IntegrationAttachmentMutation) DeletedAtCleared ¶
func (m *IntegrationAttachmentMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*IntegrationAttachmentMutation) EdgeCleared ¶
func (m *IntegrationAttachmentMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*IntegrationAttachmentMutation) Field ¶
func (m *IntegrationAttachmentMutation) 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 (*IntegrationAttachmentMutation) FieldCleared ¶
func (m *IntegrationAttachmentMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*IntegrationAttachmentMutation) Fields ¶
func (m *IntegrationAttachmentMutation) 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 (*IntegrationAttachmentMutation) ID ¶
func (m *IntegrationAttachmentMutation) 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 (*IntegrationAttachmentMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*IntegrationAttachmentMutation) IntegrationCleared ¶
func (m *IntegrationAttachmentMutation) IntegrationCleared() bool
IntegrationCleared reports if the "integration" edge to the Integration entity was cleared.
func (*IntegrationAttachmentMutation) IntegrationID ¶
func (m *IntegrationAttachmentMutation) IntegrationID() (id uuid.UUID, exists bool)
IntegrationID returns the "integration" edge ID in the mutation.
func (*IntegrationAttachmentMutation) IntegrationIDs ¶
func (m *IntegrationAttachmentMutation) IntegrationIDs() (ids []uuid.UUID)
IntegrationIDs returns the "integration" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use IntegrationID instead. It exists only for internal usage by the builders.
func (*IntegrationAttachmentMutation) OldConfiguration ¶ added in v0.11.1
func (m *IntegrationAttachmentMutation) OldConfiguration(ctx context.Context) (v []byte, err error)
OldConfiguration returns the old "configuration" field's value of the IntegrationAttachment entity. If the IntegrationAttachment 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 (*IntegrationAttachmentMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the IntegrationAttachment entity. If the IntegrationAttachment 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 (*IntegrationAttachmentMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the IntegrationAttachment entity. If the IntegrationAttachment 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 (*IntegrationAttachmentMutation) OldField ¶
func (m *IntegrationAttachmentMutation) OldField(ctx context.Context, name string) (ent.Value, error)
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 (*IntegrationAttachmentMutation) Op ¶
func (m *IntegrationAttachmentMutation) Op() Op
Op returns the operation name.
func (*IntegrationAttachmentMutation) RemovedEdges ¶
func (m *IntegrationAttachmentMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*IntegrationAttachmentMutation) RemovedIDs ¶
func (m *IntegrationAttachmentMutation) 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 (*IntegrationAttachmentMutation) ResetConfiguration ¶ added in v0.11.1
func (m *IntegrationAttachmentMutation) ResetConfiguration()
ResetConfiguration resets all changes to the "configuration" field.
func (*IntegrationAttachmentMutation) ResetCreatedAt ¶
func (m *IntegrationAttachmentMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*IntegrationAttachmentMutation) ResetDeletedAt ¶
func (m *IntegrationAttachmentMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*IntegrationAttachmentMutation) ResetEdge ¶
func (m *IntegrationAttachmentMutation) 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 (*IntegrationAttachmentMutation) ResetField ¶
func (m *IntegrationAttachmentMutation) 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 (*IntegrationAttachmentMutation) ResetIntegration ¶
func (m *IntegrationAttachmentMutation) ResetIntegration()
ResetIntegration resets all changes to the "integration" edge.
func (*IntegrationAttachmentMutation) ResetWorkflow ¶
func (m *IntegrationAttachmentMutation) ResetWorkflow()
ResetWorkflow resets all changes to the "workflow" edge.
func (*IntegrationAttachmentMutation) SetConfiguration ¶ added in v0.11.1
func (m *IntegrationAttachmentMutation) SetConfiguration(b []byte)
SetConfiguration sets the "configuration" field.
func (*IntegrationAttachmentMutation) SetCreatedAt ¶
func (m *IntegrationAttachmentMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*IntegrationAttachmentMutation) SetDeletedAt ¶
func (m *IntegrationAttachmentMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*IntegrationAttachmentMutation) SetField ¶
func (m *IntegrationAttachmentMutation) 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 (*IntegrationAttachmentMutation) SetID ¶
func (m *IntegrationAttachmentMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of IntegrationAttachment entities.
func (*IntegrationAttachmentMutation) SetIntegrationID ¶
func (m *IntegrationAttachmentMutation) SetIntegrationID(id uuid.UUID)
SetIntegrationID sets the "integration" edge to the Integration entity by id.
func (*IntegrationAttachmentMutation) SetOp ¶
func (m *IntegrationAttachmentMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*IntegrationAttachmentMutation) SetWorkflowID ¶
func (m *IntegrationAttachmentMutation) SetWorkflowID(id uuid.UUID)
SetWorkflowID sets the "workflow" edge to the Workflow entity by id.
func (IntegrationAttachmentMutation) Tx ¶
func (m IntegrationAttachmentMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*IntegrationAttachmentMutation) Type ¶
func (m *IntegrationAttachmentMutation) Type() string
Type returns the node type of this mutation (IntegrationAttachment).
func (*IntegrationAttachmentMutation) Where ¶
func (m *IntegrationAttachmentMutation) Where(ps ...predicate.IntegrationAttachment)
Where appends a list predicates to the IntegrationAttachmentMutation builder.
func (*IntegrationAttachmentMutation) WhereP ¶
func (m *IntegrationAttachmentMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the IntegrationAttachmentMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
func (*IntegrationAttachmentMutation) WorkflowCleared ¶
func (m *IntegrationAttachmentMutation) WorkflowCleared() bool
WorkflowCleared reports if the "workflow" edge to the Workflow entity was cleared.
func (*IntegrationAttachmentMutation) WorkflowID ¶
func (m *IntegrationAttachmentMutation) WorkflowID() (id uuid.UUID, exists bool)
WorkflowID returns the "workflow" edge ID in the mutation.
func (*IntegrationAttachmentMutation) WorkflowIDs ¶
func (m *IntegrationAttachmentMutation) WorkflowIDs() (ids []uuid.UUID)
WorkflowIDs returns the "workflow" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use WorkflowID instead. It exists only for internal usage by the builders.
type IntegrationAttachmentQuery ¶
type IntegrationAttachmentQuery struct {
// contains filtered or unexported fields
}
IntegrationAttachmentQuery is the builder for querying IntegrationAttachment entities.
func (*IntegrationAttachmentQuery) Aggregate ¶
func (iaq *IntegrationAttachmentQuery) Aggregate(fns ...AggregateFunc) *IntegrationAttachmentSelect
Aggregate returns a IntegrationAttachmentSelect configured with the given aggregations.
func (*IntegrationAttachmentQuery) All ¶
func (iaq *IntegrationAttachmentQuery) All(ctx context.Context) ([]*IntegrationAttachment, error)
All executes the query and returns a list of IntegrationAttachments.
func (*IntegrationAttachmentQuery) AllX ¶
func (iaq *IntegrationAttachmentQuery) AllX(ctx context.Context) []*IntegrationAttachment
AllX is like All, but panics if an error occurs.
func (*IntegrationAttachmentQuery) Clone ¶
func (iaq *IntegrationAttachmentQuery) Clone() *IntegrationAttachmentQuery
Clone returns a duplicate of the IntegrationAttachmentQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*IntegrationAttachmentQuery) Count ¶
func (iaq *IntegrationAttachmentQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*IntegrationAttachmentQuery) CountX ¶
func (iaq *IntegrationAttachmentQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*IntegrationAttachmentQuery) Exist ¶
func (iaq *IntegrationAttachmentQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*IntegrationAttachmentQuery) ExistX ¶
func (iaq *IntegrationAttachmentQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*IntegrationAttachmentQuery) First ¶
func (iaq *IntegrationAttachmentQuery) First(ctx context.Context) (*IntegrationAttachment, error)
First returns the first IntegrationAttachment entity from the query. Returns a *NotFoundError when no IntegrationAttachment was found.
func (*IntegrationAttachmentQuery) FirstID ¶
FirstID returns the first IntegrationAttachment ID from the query. Returns a *NotFoundError when no IntegrationAttachment ID was found.
func (*IntegrationAttachmentQuery) FirstIDX ¶
func (iaq *IntegrationAttachmentQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*IntegrationAttachmentQuery) FirstX ¶
func (iaq *IntegrationAttachmentQuery) FirstX(ctx context.Context) *IntegrationAttachment
FirstX is like First, but panics if an error occurs.
func (*IntegrationAttachmentQuery) GroupBy ¶
func (iaq *IntegrationAttachmentQuery) GroupBy(field string, fields ...string) *IntegrationAttachmentGroupBy
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.IntegrationAttachment.Query(). GroupBy(integrationattachment.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*IntegrationAttachmentQuery) IDs ¶
IDs executes the query and returns a list of IntegrationAttachment IDs.
func (*IntegrationAttachmentQuery) IDsX ¶
func (iaq *IntegrationAttachmentQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*IntegrationAttachmentQuery) Limit ¶
func (iaq *IntegrationAttachmentQuery) Limit(limit int) *IntegrationAttachmentQuery
Limit the number of records to be returned by this query.
func (*IntegrationAttachmentQuery) Offset ¶
func (iaq *IntegrationAttachmentQuery) Offset(offset int) *IntegrationAttachmentQuery
Offset to start from.
func (*IntegrationAttachmentQuery) Only ¶
func (iaq *IntegrationAttachmentQuery) Only(ctx context.Context) (*IntegrationAttachment, error)
Only returns a single IntegrationAttachment entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one IntegrationAttachment entity is found. Returns a *NotFoundError when no IntegrationAttachment entities are found.
func (*IntegrationAttachmentQuery) OnlyID ¶
OnlyID is like Only, but returns the only IntegrationAttachment ID in the query. Returns a *NotSingularError when more than one IntegrationAttachment ID is found. Returns a *NotFoundError when no entities are found.
func (*IntegrationAttachmentQuery) OnlyIDX ¶
func (iaq *IntegrationAttachmentQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*IntegrationAttachmentQuery) OnlyX ¶
func (iaq *IntegrationAttachmentQuery) OnlyX(ctx context.Context) *IntegrationAttachment
OnlyX is like Only, but panics if an error occurs.
func (*IntegrationAttachmentQuery) Order ¶
func (iaq *IntegrationAttachmentQuery) Order(o ...OrderFunc) *IntegrationAttachmentQuery
Order specifies how the records should be ordered.
func (*IntegrationAttachmentQuery) QueryIntegration ¶
func (iaq *IntegrationAttachmentQuery) QueryIntegration() *IntegrationQuery
QueryIntegration chains the current query on the "integration" edge.
func (*IntegrationAttachmentQuery) QueryWorkflow ¶
func (iaq *IntegrationAttachmentQuery) QueryWorkflow() *WorkflowQuery
QueryWorkflow chains the current query on the "workflow" edge.
func (*IntegrationAttachmentQuery) Select ¶
func (iaq *IntegrationAttachmentQuery) Select(fields ...string) *IntegrationAttachmentSelect
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.IntegrationAttachment.Query(). Select(integrationattachment.FieldCreatedAt). Scan(ctx, &v)
func (*IntegrationAttachmentQuery) Unique ¶
func (iaq *IntegrationAttachmentQuery) Unique(unique bool) *IntegrationAttachmentQuery
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 (*IntegrationAttachmentQuery) Where ¶
func (iaq *IntegrationAttachmentQuery) Where(ps ...predicate.IntegrationAttachment) *IntegrationAttachmentQuery
Where adds a new predicate for the IntegrationAttachmentQuery builder.
func (*IntegrationAttachmentQuery) WithIntegration ¶
func (iaq *IntegrationAttachmentQuery) WithIntegration(opts ...func(*IntegrationQuery)) *IntegrationAttachmentQuery
WithIntegration tells the query-builder to eager-load the nodes that are connected to the "integration" edge. The optional arguments are used to configure the query builder of the edge.
func (*IntegrationAttachmentQuery) WithWorkflow ¶
func (iaq *IntegrationAttachmentQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *IntegrationAttachmentQuery
WithWorkflow tells the query-builder to eager-load the nodes that are connected to the "workflow" edge. The optional arguments are used to configure the query builder of the edge.
type IntegrationAttachmentSelect ¶
type IntegrationAttachmentSelect struct { *IntegrationAttachmentQuery // contains filtered or unexported fields }
IntegrationAttachmentSelect is the builder for selecting fields of IntegrationAttachment entities.
func (*IntegrationAttachmentSelect) Aggregate ¶
func (ias *IntegrationAttachmentSelect) Aggregate(fns ...AggregateFunc) *IntegrationAttachmentSelect
Aggregate adds the given aggregation functions to the selector query.
func (*IntegrationAttachmentSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*IntegrationAttachmentSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*IntegrationAttachmentSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*IntegrationAttachmentSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*IntegrationAttachmentSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*IntegrationAttachmentSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*IntegrationAttachmentSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*IntegrationAttachmentSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*IntegrationAttachmentSelect) Scan ¶
func (ias *IntegrationAttachmentSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*IntegrationAttachmentSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*IntegrationAttachmentSelect) StringX ¶
StringX is like String, but panics if an error occurs.
type IntegrationAttachmentUpdate ¶
type IntegrationAttachmentUpdate struct {
// contains filtered or unexported fields
}
IntegrationAttachmentUpdate is the builder for updating IntegrationAttachment entities.
func (*IntegrationAttachmentUpdate) ClearConfiguration ¶ added in v0.11.1
func (iau *IntegrationAttachmentUpdate) ClearConfiguration() *IntegrationAttachmentUpdate
ClearConfiguration clears the value of the "configuration" field.
func (*IntegrationAttachmentUpdate) ClearDeletedAt ¶
func (iau *IntegrationAttachmentUpdate) ClearDeletedAt() *IntegrationAttachmentUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*IntegrationAttachmentUpdate) ClearIntegration ¶
func (iau *IntegrationAttachmentUpdate) ClearIntegration() *IntegrationAttachmentUpdate
ClearIntegration clears the "integration" edge to the Integration entity.
func (*IntegrationAttachmentUpdate) ClearWorkflow ¶
func (iau *IntegrationAttachmentUpdate) ClearWorkflow() *IntegrationAttachmentUpdate
ClearWorkflow clears the "workflow" edge to the Workflow entity.
func (*IntegrationAttachmentUpdate) Exec ¶
func (iau *IntegrationAttachmentUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*IntegrationAttachmentUpdate) ExecX ¶
func (iau *IntegrationAttachmentUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IntegrationAttachmentUpdate) Mutation ¶
func (iau *IntegrationAttachmentUpdate) Mutation() *IntegrationAttachmentMutation
Mutation returns the IntegrationAttachmentMutation object of the builder.
func (*IntegrationAttachmentUpdate) Save ¶
func (iau *IntegrationAttachmentUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*IntegrationAttachmentUpdate) SaveX ¶
func (iau *IntegrationAttachmentUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*IntegrationAttachmentUpdate) SetConfiguration ¶ added in v0.11.1
func (iau *IntegrationAttachmentUpdate) SetConfiguration(b []byte) *IntegrationAttachmentUpdate
SetConfiguration sets the "configuration" field.
func (*IntegrationAttachmentUpdate) SetDeletedAt ¶
func (iau *IntegrationAttachmentUpdate) SetDeletedAt(t time.Time) *IntegrationAttachmentUpdate
SetDeletedAt sets the "deleted_at" field.
func (*IntegrationAttachmentUpdate) SetIntegration ¶
func (iau *IntegrationAttachmentUpdate) SetIntegration(i *Integration) *IntegrationAttachmentUpdate
SetIntegration sets the "integration" edge to the Integration entity.
func (*IntegrationAttachmentUpdate) SetIntegrationID ¶
func (iau *IntegrationAttachmentUpdate) SetIntegrationID(id uuid.UUID) *IntegrationAttachmentUpdate
SetIntegrationID sets the "integration" edge to the Integration entity by ID.
func (*IntegrationAttachmentUpdate) SetNillableDeletedAt ¶
func (iau *IntegrationAttachmentUpdate) SetNillableDeletedAt(t *time.Time) *IntegrationAttachmentUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*IntegrationAttachmentUpdate) SetWorkflow ¶
func (iau *IntegrationAttachmentUpdate) SetWorkflow(w *Workflow) *IntegrationAttachmentUpdate
SetWorkflow sets the "workflow" edge to the Workflow entity.
func (*IntegrationAttachmentUpdate) SetWorkflowID ¶
func (iau *IntegrationAttachmentUpdate) SetWorkflowID(id uuid.UUID) *IntegrationAttachmentUpdate
SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.
func (*IntegrationAttachmentUpdate) Where ¶
func (iau *IntegrationAttachmentUpdate) Where(ps ...predicate.IntegrationAttachment) *IntegrationAttachmentUpdate
Where appends a list predicates to the IntegrationAttachmentUpdate builder.
type IntegrationAttachmentUpdateOne ¶
type IntegrationAttachmentUpdateOne struct {
// contains filtered or unexported fields
}
IntegrationAttachmentUpdateOne is the builder for updating a single IntegrationAttachment entity.
func (*IntegrationAttachmentUpdateOne) ClearConfiguration ¶ added in v0.11.1
func (iauo *IntegrationAttachmentUpdateOne) ClearConfiguration() *IntegrationAttachmentUpdateOne
ClearConfiguration clears the value of the "configuration" field.
func (*IntegrationAttachmentUpdateOne) ClearDeletedAt ¶
func (iauo *IntegrationAttachmentUpdateOne) ClearDeletedAt() *IntegrationAttachmentUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*IntegrationAttachmentUpdateOne) ClearIntegration ¶
func (iauo *IntegrationAttachmentUpdateOne) ClearIntegration() *IntegrationAttachmentUpdateOne
ClearIntegration clears the "integration" edge to the Integration entity.
func (*IntegrationAttachmentUpdateOne) ClearWorkflow ¶
func (iauo *IntegrationAttachmentUpdateOne) ClearWorkflow() *IntegrationAttachmentUpdateOne
ClearWorkflow clears the "workflow" edge to the Workflow entity.
func (*IntegrationAttachmentUpdateOne) Exec ¶
func (iauo *IntegrationAttachmentUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*IntegrationAttachmentUpdateOne) ExecX ¶
func (iauo *IntegrationAttachmentUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IntegrationAttachmentUpdateOne) Mutation ¶
func (iauo *IntegrationAttachmentUpdateOne) Mutation() *IntegrationAttachmentMutation
Mutation returns the IntegrationAttachmentMutation object of the builder.
func (*IntegrationAttachmentUpdateOne) Save ¶
func (iauo *IntegrationAttachmentUpdateOne) Save(ctx context.Context) (*IntegrationAttachment, error)
Save executes the query and returns the updated IntegrationAttachment entity.
func (*IntegrationAttachmentUpdateOne) SaveX ¶
func (iauo *IntegrationAttachmentUpdateOne) SaveX(ctx context.Context) *IntegrationAttachment
SaveX is like Save, but panics if an error occurs.
func (*IntegrationAttachmentUpdateOne) Select ¶
func (iauo *IntegrationAttachmentUpdateOne) Select(field string, fields ...string) *IntegrationAttachmentUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*IntegrationAttachmentUpdateOne) SetConfiguration ¶ added in v0.11.1
func (iauo *IntegrationAttachmentUpdateOne) SetConfiguration(b []byte) *IntegrationAttachmentUpdateOne
SetConfiguration sets the "configuration" field.
func (*IntegrationAttachmentUpdateOne) SetDeletedAt ¶
func (iauo *IntegrationAttachmentUpdateOne) SetDeletedAt(t time.Time) *IntegrationAttachmentUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*IntegrationAttachmentUpdateOne) SetIntegration ¶
func (iauo *IntegrationAttachmentUpdateOne) SetIntegration(i *Integration) *IntegrationAttachmentUpdateOne
SetIntegration sets the "integration" edge to the Integration entity.
func (*IntegrationAttachmentUpdateOne) SetIntegrationID ¶
func (iauo *IntegrationAttachmentUpdateOne) SetIntegrationID(id uuid.UUID) *IntegrationAttachmentUpdateOne
SetIntegrationID sets the "integration" edge to the Integration entity by ID.
func (*IntegrationAttachmentUpdateOne) SetNillableDeletedAt ¶
func (iauo *IntegrationAttachmentUpdateOne) SetNillableDeletedAt(t *time.Time) *IntegrationAttachmentUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*IntegrationAttachmentUpdateOne) SetWorkflow ¶
func (iauo *IntegrationAttachmentUpdateOne) SetWorkflow(w *Workflow) *IntegrationAttachmentUpdateOne
SetWorkflow sets the "workflow" edge to the Workflow entity.
func (*IntegrationAttachmentUpdateOne) SetWorkflowID ¶
func (iauo *IntegrationAttachmentUpdateOne) SetWorkflowID(id uuid.UUID) *IntegrationAttachmentUpdateOne
SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.
func (*IntegrationAttachmentUpdateOne) Where ¶
func (iauo *IntegrationAttachmentUpdateOne) Where(ps ...predicate.IntegrationAttachment) *IntegrationAttachmentUpdateOne
Where appends a list predicates to the IntegrationAttachmentUpdate builder.
type IntegrationAttachments ¶
type IntegrationAttachments []*IntegrationAttachment
IntegrationAttachments is a parsable slice of IntegrationAttachment.
type IntegrationClient ¶
type IntegrationClient struct {
// contains filtered or unexported fields
}
IntegrationClient is a client for the Integration schema.
func NewIntegrationClient ¶
func NewIntegrationClient(c config) *IntegrationClient
NewIntegrationClient returns a client for the Integration from the given config.
func (*IntegrationClient) Create ¶
func (c *IntegrationClient) Create() *IntegrationCreate
Create returns a builder for creating a Integration entity.
func (*IntegrationClient) CreateBulk ¶
func (c *IntegrationClient) CreateBulk(builders ...*IntegrationCreate) *IntegrationCreateBulk
CreateBulk returns a builder for creating a bulk of Integration entities.
func (*IntegrationClient) Delete ¶
func (c *IntegrationClient) Delete() *IntegrationDelete
Delete returns a delete builder for Integration.
func (*IntegrationClient) DeleteOne ¶
func (c *IntegrationClient) DeleteOne(i *Integration) *IntegrationDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*IntegrationClient) DeleteOneID ¶
func (c *IntegrationClient) DeleteOneID(id uuid.UUID) *IntegrationDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*IntegrationClient) Get ¶
func (c *IntegrationClient) Get(ctx context.Context, id uuid.UUID) (*Integration, error)
Get returns a Integration entity by its id.
func (*IntegrationClient) GetX ¶
func (c *IntegrationClient) GetX(ctx context.Context, id uuid.UUID) *Integration
GetX is like Get, but panics if an error occurs.
func (*IntegrationClient) Hooks ¶
func (c *IntegrationClient) Hooks() []Hook
Hooks returns the client hooks.
func (*IntegrationClient) Intercept ¶
func (c *IntegrationClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `integration.Intercept(f(g(h())))`.
func (*IntegrationClient) Interceptors ¶
func (c *IntegrationClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*IntegrationClient) Query ¶
func (c *IntegrationClient) Query() *IntegrationQuery
Query returns a query builder for Integration.
func (*IntegrationClient) QueryAttachments ¶
func (c *IntegrationClient) QueryAttachments(i *Integration) *IntegrationAttachmentQuery
QueryAttachments queries the attachments edge of a Integration.
func (*IntegrationClient) QueryOrganization ¶
func (c *IntegrationClient) QueryOrganization(i *Integration) *OrganizationQuery
QueryOrganization queries the organization edge of a Integration.
func (*IntegrationClient) Update ¶
func (c *IntegrationClient) Update() *IntegrationUpdate
Update returns an update builder for Integration.
func (*IntegrationClient) UpdateOne ¶
func (c *IntegrationClient) UpdateOne(i *Integration) *IntegrationUpdateOne
UpdateOne returns an update builder for the given entity.
func (*IntegrationClient) UpdateOneID ¶
func (c *IntegrationClient) UpdateOneID(id uuid.UUID) *IntegrationUpdateOne
UpdateOneID returns an update builder for the given id.
func (*IntegrationClient) Use ¶
func (c *IntegrationClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `integration.Hooks(f(g(h())))`.
type IntegrationCreate ¶
type IntegrationCreate struct {
// contains filtered or unexported fields
}
IntegrationCreate is the builder for creating a Integration entity.
func (*IntegrationCreate) AddAttachmentIDs ¶
func (ic *IntegrationCreate) AddAttachmentIDs(ids ...uuid.UUID) *IntegrationCreate
AddAttachmentIDs adds the "attachments" edge to the IntegrationAttachment entity by IDs.
func (*IntegrationCreate) AddAttachments ¶
func (ic *IntegrationCreate) AddAttachments(i ...*IntegrationAttachment) *IntegrationCreate
AddAttachments adds the "attachments" edges to the IntegrationAttachment entity.
func (*IntegrationCreate) Exec ¶
func (ic *IntegrationCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*IntegrationCreate) ExecX ¶
func (ic *IntegrationCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IntegrationCreate) Mutation ¶
func (ic *IntegrationCreate) Mutation() *IntegrationMutation
Mutation returns the IntegrationMutation object of the builder.
func (*IntegrationCreate) Save ¶
func (ic *IntegrationCreate) Save(ctx context.Context) (*Integration, error)
Save creates the Integration in the database.
func (*IntegrationCreate) SaveX ¶
func (ic *IntegrationCreate) SaveX(ctx context.Context) *Integration
SaveX calls Save and panics if Save returns an error.
func (*IntegrationCreate) SetConfiguration ¶ added in v0.11.1
func (ic *IntegrationCreate) SetConfiguration(b []byte) *IntegrationCreate
SetConfiguration sets the "configuration" field.
func (*IntegrationCreate) SetCreatedAt ¶
func (ic *IntegrationCreate) SetCreatedAt(t time.Time) *IntegrationCreate
SetCreatedAt sets the "created_at" field.
func (*IntegrationCreate) SetDeletedAt ¶
func (ic *IntegrationCreate) SetDeletedAt(t time.Time) *IntegrationCreate
SetDeletedAt sets the "deleted_at" field.
func (*IntegrationCreate) SetDescription ¶ added in v0.11.1
func (ic *IntegrationCreate) SetDescription(s string) *IntegrationCreate
SetDescription sets the "description" field.
func (*IntegrationCreate) SetID ¶
func (ic *IntegrationCreate) SetID(u uuid.UUID) *IntegrationCreate
SetID sets the "id" field.
func (*IntegrationCreate) SetKind ¶
func (ic *IntegrationCreate) SetKind(s string) *IntegrationCreate
SetKind sets the "kind" field.
func (*IntegrationCreate) SetNillableCreatedAt ¶
func (ic *IntegrationCreate) SetNillableCreatedAt(t *time.Time) *IntegrationCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*IntegrationCreate) SetNillableDeletedAt ¶
func (ic *IntegrationCreate) SetNillableDeletedAt(t *time.Time) *IntegrationCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*IntegrationCreate) SetNillableDescription ¶ added in v0.11.1
func (ic *IntegrationCreate) SetNillableDescription(s *string) *IntegrationCreate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*IntegrationCreate) SetNillableID ¶
func (ic *IntegrationCreate) SetNillableID(u *uuid.UUID) *IntegrationCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*IntegrationCreate) SetOrganization ¶
func (ic *IntegrationCreate) SetOrganization(o *Organization) *IntegrationCreate
SetOrganization sets the "organization" edge to the Organization entity.
func (*IntegrationCreate) SetOrganizationID ¶
func (ic *IntegrationCreate) SetOrganizationID(id uuid.UUID) *IntegrationCreate
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*IntegrationCreate) SetSecretName ¶
func (ic *IntegrationCreate) SetSecretName(s string) *IntegrationCreate
SetSecretName sets the "secret_name" field.
type IntegrationCreateBulk ¶
type IntegrationCreateBulk struct {
// contains filtered or unexported fields
}
IntegrationCreateBulk is the builder for creating many Integration entities in bulk.
func (*IntegrationCreateBulk) Exec ¶
func (icb *IntegrationCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*IntegrationCreateBulk) ExecX ¶
func (icb *IntegrationCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IntegrationCreateBulk) Save ¶
func (icb *IntegrationCreateBulk) Save(ctx context.Context) ([]*Integration, error)
Save creates the Integration entities in the database.
func (*IntegrationCreateBulk) SaveX ¶
func (icb *IntegrationCreateBulk) SaveX(ctx context.Context) []*Integration
SaveX is like Save, but panics if an error occurs.
type IntegrationDelete ¶
type IntegrationDelete struct {
// contains filtered or unexported fields
}
IntegrationDelete is the builder for deleting a Integration entity.
func (*IntegrationDelete) Exec ¶
func (id *IntegrationDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*IntegrationDelete) ExecX ¶
func (id *IntegrationDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*IntegrationDelete) Where ¶
func (id *IntegrationDelete) Where(ps ...predicate.Integration) *IntegrationDelete
Where appends a list predicates to the IntegrationDelete builder.
type IntegrationDeleteOne ¶
type IntegrationDeleteOne struct {
// contains filtered or unexported fields
}
IntegrationDeleteOne is the builder for deleting a single Integration entity.
func (*IntegrationDeleteOne) Exec ¶
func (ido *IntegrationDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*IntegrationDeleteOne) ExecX ¶
func (ido *IntegrationDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IntegrationDeleteOne) Where ¶
func (ido *IntegrationDeleteOne) Where(ps ...predicate.Integration) *IntegrationDeleteOne
Where appends a list predicates to the IntegrationDelete builder.
type IntegrationEdges ¶
type IntegrationEdges struct { // Attachments holds the value of the attachments edge. Attachments []*IntegrationAttachment `json:"attachments,omitempty"` // Organization holds the value of the organization edge. Organization *Organization `json:"organization,omitempty"` // contains filtered or unexported fields }
IntegrationEdges holds the relations/edges for other nodes in the graph.
func (IntegrationEdges) AttachmentsOrErr ¶
func (e IntegrationEdges) AttachmentsOrErr() ([]*IntegrationAttachment, error)
AttachmentsOrErr returns the Attachments value or an error if the edge was not loaded in eager-loading.
func (IntegrationEdges) OrganizationOrErr ¶
func (e IntegrationEdges) OrganizationOrErr() (*Organization, error)
OrganizationOrErr returns the Organization value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type IntegrationGroupBy ¶
type IntegrationGroupBy struct {
// contains filtered or unexported fields
}
IntegrationGroupBy is the group-by builder for Integration entities.
func (*IntegrationGroupBy) Aggregate ¶
func (igb *IntegrationGroupBy) Aggregate(fns ...AggregateFunc) *IntegrationGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*IntegrationGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*IntegrationGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*IntegrationGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*IntegrationGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*IntegrationGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*IntegrationGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*IntegrationGroupBy) Scan ¶
func (igb *IntegrationGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*IntegrationGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type IntegrationMutation ¶
type IntegrationMutation struct {
// contains filtered or unexported fields
}
IntegrationMutation represents an operation that mutates the Integration nodes in the graph.
func (*IntegrationMutation) AddAttachmentIDs ¶
func (m *IntegrationMutation) AddAttachmentIDs(ids ...uuid.UUID)
AddAttachmentIDs adds the "attachments" edge to the IntegrationAttachment entity by ids.
func (*IntegrationMutation) AddField ¶
func (m *IntegrationMutation) 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 (*IntegrationMutation) AddedEdges ¶
func (m *IntegrationMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*IntegrationMutation) AddedField ¶
func (m *IntegrationMutation) 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 (*IntegrationMutation) AddedFields ¶
func (m *IntegrationMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*IntegrationMutation) AddedIDs ¶
func (m *IntegrationMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*IntegrationMutation) AttachmentsCleared ¶
func (m *IntegrationMutation) AttachmentsCleared() bool
AttachmentsCleared reports if the "attachments" edge to the IntegrationAttachment entity was cleared.
func (*IntegrationMutation) AttachmentsIDs ¶
func (m *IntegrationMutation) AttachmentsIDs() (ids []uuid.UUID)
AttachmentsIDs returns the "attachments" edge IDs in the mutation.
func (*IntegrationMutation) ClearAttachments ¶
func (m *IntegrationMutation) ClearAttachments()
ClearAttachments clears the "attachments" edge to the IntegrationAttachment entity.
func (*IntegrationMutation) ClearConfiguration ¶ added in v0.11.1
func (m *IntegrationMutation) ClearConfiguration()
ClearConfiguration clears the value of the "configuration" field.
func (*IntegrationMutation) ClearDeletedAt ¶
func (m *IntegrationMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*IntegrationMutation) ClearDescription ¶ added in v0.11.1
func (m *IntegrationMutation) ClearDescription()
ClearDescription clears the value of the "description" field.
func (*IntegrationMutation) ClearEdge ¶
func (m *IntegrationMutation) 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 (*IntegrationMutation) ClearField ¶
func (m *IntegrationMutation) 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 (*IntegrationMutation) ClearOrganization ¶
func (m *IntegrationMutation) ClearOrganization()
ClearOrganization clears the "organization" edge to the Organization entity.
func (*IntegrationMutation) ClearedEdges ¶
func (m *IntegrationMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*IntegrationMutation) ClearedFields ¶
func (m *IntegrationMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (IntegrationMutation) Client ¶
func (m IntegrationMutation) 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 (*IntegrationMutation) Configuration ¶ added in v0.11.1
func (m *IntegrationMutation) Configuration() (r []byte, exists bool)
Configuration returns the value of the "configuration" field in the mutation.
func (*IntegrationMutation) ConfigurationCleared ¶ added in v0.11.1
func (m *IntegrationMutation) ConfigurationCleared() bool
ConfigurationCleared returns if the "configuration" field was cleared in this mutation.
func (*IntegrationMutation) CreatedAt ¶
func (m *IntegrationMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*IntegrationMutation) DeletedAt ¶
func (m *IntegrationMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*IntegrationMutation) DeletedAtCleared ¶
func (m *IntegrationMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*IntegrationMutation) Description ¶ added in v0.11.1
func (m *IntegrationMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*IntegrationMutation) DescriptionCleared ¶ added in v0.11.1
func (m *IntegrationMutation) DescriptionCleared() bool
DescriptionCleared returns if the "description" field was cleared in this mutation.
func (*IntegrationMutation) EdgeCleared ¶
func (m *IntegrationMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*IntegrationMutation) Field ¶
func (m *IntegrationMutation) 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 (*IntegrationMutation) FieldCleared ¶
func (m *IntegrationMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*IntegrationMutation) Fields ¶
func (m *IntegrationMutation) 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 (*IntegrationMutation) ID ¶
func (m *IntegrationMutation) 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 (*IntegrationMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*IntegrationMutation) Kind ¶
func (m *IntegrationMutation) Kind() (r string, exists bool)
Kind returns the value of the "kind" field in the mutation.
func (*IntegrationMutation) OldConfiguration ¶ added in v0.11.1
func (m *IntegrationMutation) OldConfiguration(ctx context.Context) (v []byte, err error)
OldConfiguration returns the old "configuration" field's value of the Integration entity. If the Integration 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 (*IntegrationMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Integration entity. If the Integration 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 (*IntegrationMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the Integration entity. If the Integration 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 (*IntegrationMutation) OldDescription ¶ added in v0.11.1
func (m *IntegrationMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the Integration entity. If the Integration 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 (*IntegrationMutation) 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 (*IntegrationMutation) OldKind ¶
func (m *IntegrationMutation) OldKind(ctx context.Context) (v string, err error)
OldKind returns the old "kind" field's value of the Integration entity. If the Integration 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 (*IntegrationMutation) OldSecretName ¶
func (m *IntegrationMutation) OldSecretName(ctx context.Context) (v string, err error)
OldSecretName returns the old "secret_name" field's value of the Integration entity. If the Integration 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 (*IntegrationMutation) Op ¶
func (m *IntegrationMutation) Op() Op
Op returns the operation name.
func (*IntegrationMutation) OrganizationCleared ¶
func (m *IntegrationMutation) OrganizationCleared() bool
OrganizationCleared reports if the "organization" edge to the Organization entity was cleared.
func (*IntegrationMutation) OrganizationID ¶
func (m *IntegrationMutation) OrganizationID() (id uuid.UUID, exists bool)
OrganizationID returns the "organization" edge ID in the mutation.
func (*IntegrationMutation) OrganizationIDs ¶
func (m *IntegrationMutation) OrganizationIDs() (ids []uuid.UUID)
OrganizationIDs returns the "organization" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OrganizationID instead. It exists only for internal usage by the builders.
func (*IntegrationMutation) RemoveAttachmentIDs ¶
func (m *IntegrationMutation) RemoveAttachmentIDs(ids ...uuid.UUID)
RemoveAttachmentIDs removes the "attachments" edge to the IntegrationAttachment entity by IDs.
func (*IntegrationMutation) RemovedAttachmentsIDs ¶
func (m *IntegrationMutation) RemovedAttachmentsIDs() (ids []uuid.UUID)
RemovedAttachments returns the removed IDs of the "attachments" edge to the IntegrationAttachment entity.
func (*IntegrationMutation) RemovedEdges ¶
func (m *IntegrationMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*IntegrationMutation) RemovedIDs ¶
func (m *IntegrationMutation) 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 (*IntegrationMutation) ResetAttachments ¶
func (m *IntegrationMutation) ResetAttachments()
ResetAttachments resets all changes to the "attachments" edge.
func (*IntegrationMutation) ResetConfiguration ¶ added in v0.11.1
func (m *IntegrationMutation) ResetConfiguration()
ResetConfiguration resets all changes to the "configuration" field.
func (*IntegrationMutation) ResetCreatedAt ¶
func (m *IntegrationMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*IntegrationMutation) ResetDeletedAt ¶
func (m *IntegrationMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*IntegrationMutation) ResetDescription ¶ added in v0.11.1
func (m *IntegrationMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*IntegrationMutation) ResetEdge ¶
func (m *IntegrationMutation) 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 (*IntegrationMutation) ResetField ¶
func (m *IntegrationMutation) 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 (*IntegrationMutation) ResetKind ¶
func (m *IntegrationMutation) ResetKind()
ResetKind resets all changes to the "kind" field.
func (*IntegrationMutation) ResetOrganization ¶
func (m *IntegrationMutation) ResetOrganization()
ResetOrganization resets all changes to the "organization" edge.
func (*IntegrationMutation) ResetSecretName ¶
func (m *IntegrationMutation) ResetSecretName()
ResetSecretName resets all changes to the "secret_name" field.
func (*IntegrationMutation) SecretName ¶
func (m *IntegrationMutation) SecretName() (r string, exists bool)
SecretName returns the value of the "secret_name" field in the mutation.
func (*IntegrationMutation) SetConfiguration ¶ added in v0.11.1
func (m *IntegrationMutation) SetConfiguration(b []byte)
SetConfiguration sets the "configuration" field.
func (*IntegrationMutation) SetCreatedAt ¶
func (m *IntegrationMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*IntegrationMutation) SetDeletedAt ¶
func (m *IntegrationMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*IntegrationMutation) SetDescription ¶ added in v0.11.1
func (m *IntegrationMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*IntegrationMutation) SetField ¶
func (m *IntegrationMutation) 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 (*IntegrationMutation) SetID ¶
func (m *IntegrationMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Integration entities.
func (*IntegrationMutation) SetKind ¶
func (m *IntegrationMutation) SetKind(s string)
SetKind sets the "kind" field.
func (*IntegrationMutation) SetOp ¶
func (m *IntegrationMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*IntegrationMutation) SetOrganizationID ¶
func (m *IntegrationMutation) SetOrganizationID(id uuid.UUID)
SetOrganizationID sets the "organization" edge to the Organization entity by id.
func (*IntegrationMutation) SetSecretName ¶
func (m *IntegrationMutation) SetSecretName(s string)
SetSecretName sets the "secret_name" field.
func (IntegrationMutation) Tx ¶
func (m IntegrationMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*IntegrationMutation) Type ¶
func (m *IntegrationMutation) Type() string
Type returns the node type of this mutation (Integration).
func (*IntegrationMutation) Where ¶
func (m *IntegrationMutation) Where(ps ...predicate.Integration)
Where appends a list predicates to the IntegrationMutation builder.
func (*IntegrationMutation) WhereP ¶
func (m *IntegrationMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the IntegrationMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type IntegrationQuery ¶
type IntegrationQuery struct {
// contains filtered or unexported fields
}
IntegrationQuery is the builder for querying Integration entities.
func (*IntegrationQuery) Aggregate ¶
func (iq *IntegrationQuery) Aggregate(fns ...AggregateFunc) *IntegrationSelect
Aggregate returns a IntegrationSelect configured with the given aggregations.
func (*IntegrationQuery) All ¶
func (iq *IntegrationQuery) All(ctx context.Context) ([]*Integration, error)
All executes the query and returns a list of Integrations.
func (*IntegrationQuery) AllX ¶
func (iq *IntegrationQuery) AllX(ctx context.Context) []*Integration
AllX is like All, but panics if an error occurs.
func (*IntegrationQuery) Clone ¶
func (iq *IntegrationQuery) Clone() *IntegrationQuery
Clone returns a duplicate of the IntegrationQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*IntegrationQuery) Count ¶
func (iq *IntegrationQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*IntegrationQuery) CountX ¶
func (iq *IntegrationQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*IntegrationQuery) Exist ¶
func (iq *IntegrationQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*IntegrationQuery) ExistX ¶
func (iq *IntegrationQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*IntegrationQuery) First ¶
func (iq *IntegrationQuery) First(ctx context.Context) (*Integration, error)
First returns the first Integration entity from the query. Returns a *NotFoundError when no Integration was found.
func (*IntegrationQuery) FirstID ¶
FirstID returns the first Integration ID from the query. Returns a *NotFoundError when no Integration ID was found.
func (*IntegrationQuery) FirstIDX ¶
func (iq *IntegrationQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*IntegrationQuery) FirstX ¶
func (iq *IntegrationQuery) FirstX(ctx context.Context) *Integration
FirstX is like First, but panics if an error occurs.
func (*IntegrationQuery) GroupBy ¶
func (iq *IntegrationQuery) GroupBy(field string, fields ...string) *IntegrationGroupBy
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 { Kind string `json:"kind,omitempty"` Count int `json:"count,omitempty"` } client.Integration.Query(). GroupBy(integration.FieldKind). Aggregate(ent.Count()). Scan(ctx, &v)
func (*IntegrationQuery) IDsX ¶
func (iq *IntegrationQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*IntegrationQuery) Limit ¶
func (iq *IntegrationQuery) Limit(limit int) *IntegrationQuery
Limit the number of records to be returned by this query.
func (*IntegrationQuery) Offset ¶
func (iq *IntegrationQuery) Offset(offset int) *IntegrationQuery
Offset to start from.
func (*IntegrationQuery) Only ¶
func (iq *IntegrationQuery) Only(ctx context.Context) (*Integration, error)
Only returns a single Integration entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Integration entity is found. Returns a *NotFoundError when no Integration entities are found.
func (*IntegrationQuery) OnlyID ¶
OnlyID is like Only, but returns the only Integration ID in the query. Returns a *NotSingularError when more than one Integration ID is found. Returns a *NotFoundError when no entities are found.
func (*IntegrationQuery) OnlyIDX ¶
func (iq *IntegrationQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*IntegrationQuery) OnlyX ¶
func (iq *IntegrationQuery) OnlyX(ctx context.Context) *Integration
OnlyX is like Only, but panics if an error occurs.
func (*IntegrationQuery) Order ¶
func (iq *IntegrationQuery) Order(o ...OrderFunc) *IntegrationQuery
Order specifies how the records should be ordered.
func (*IntegrationQuery) QueryAttachments ¶
func (iq *IntegrationQuery) QueryAttachments() *IntegrationAttachmentQuery
QueryAttachments chains the current query on the "attachments" edge.
func (*IntegrationQuery) QueryOrganization ¶
func (iq *IntegrationQuery) QueryOrganization() *OrganizationQuery
QueryOrganization chains the current query on the "organization" edge.
func (*IntegrationQuery) Select ¶
func (iq *IntegrationQuery) Select(fields ...string) *IntegrationSelect
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 { Kind string `json:"kind,omitempty"` } client.Integration.Query(). Select(integration.FieldKind). Scan(ctx, &v)
func (*IntegrationQuery) Unique ¶
func (iq *IntegrationQuery) Unique(unique bool) *IntegrationQuery
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 (*IntegrationQuery) Where ¶
func (iq *IntegrationQuery) Where(ps ...predicate.Integration) *IntegrationQuery
Where adds a new predicate for the IntegrationQuery builder.
func (*IntegrationQuery) WithAttachments ¶
func (iq *IntegrationQuery) WithAttachments(opts ...func(*IntegrationAttachmentQuery)) *IntegrationQuery
WithAttachments tells the query-builder to eager-load the nodes that are connected to the "attachments" edge. The optional arguments are used to configure the query builder of the edge.
func (*IntegrationQuery) WithOrganization ¶
func (iq *IntegrationQuery) WithOrganization(opts ...func(*OrganizationQuery)) *IntegrationQuery
WithOrganization tells the query-builder to eager-load the nodes that are connected to the "organization" edge. The optional arguments are used to configure the query builder of the edge.
type IntegrationSelect ¶
type IntegrationSelect struct { *IntegrationQuery // contains filtered or unexported fields }
IntegrationSelect is the builder for selecting fields of Integration entities.
func (*IntegrationSelect) Aggregate ¶
func (is *IntegrationSelect) Aggregate(fns ...AggregateFunc) *IntegrationSelect
Aggregate adds the given aggregation functions to the selector query.
func (*IntegrationSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*IntegrationSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*IntegrationSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*IntegrationSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*IntegrationSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*IntegrationSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*IntegrationSelect) Scan ¶
func (is *IntegrationSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*IntegrationSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type IntegrationUpdate ¶
type IntegrationUpdate struct {
// contains filtered or unexported fields
}
IntegrationUpdate is the builder for updating Integration entities.
func (*IntegrationUpdate) AddAttachmentIDs ¶
func (iu *IntegrationUpdate) AddAttachmentIDs(ids ...uuid.UUID) *IntegrationUpdate
AddAttachmentIDs adds the "attachments" edge to the IntegrationAttachment entity by IDs.
func (*IntegrationUpdate) AddAttachments ¶
func (iu *IntegrationUpdate) AddAttachments(i ...*IntegrationAttachment) *IntegrationUpdate
AddAttachments adds the "attachments" edges to the IntegrationAttachment entity.
func (*IntegrationUpdate) ClearAttachments ¶
func (iu *IntegrationUpdate) ClearAttachments() *IntegrationUpdate
ClearAttachments clears all "attachments" edges to the IntegrationAttachment entity.
func (*IntegrationUpdate) ClearConfiguration ¶ added in v0.11.1
func (iu *IntegrationUpdate) ClearConfiguration() *IntegrationUpdate
ClearConfiguration clears the value of the "configuration" field.
func (*IntegrationUpdate) ClearDeletedAt ¶
func (iu *IntegrationUpdate) ClearDeletedAt() *IntegrationUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*IntegrationUpdate) ClearDescription ¶ added in v0.11.1
func (iu *IntegrationUpdate) ClearDescription() *IntegrationUpdate
ClearDescription clears the value of the "description" field.
func (*IntegrationUpdate) ClearOrganization ¶
func (iu *IntegrationUpdate) ClearOrganization() *IntegrationUpdate
ClearOrganization clears the "organization" edge to the Organization entity.
func (*IntegrationUpdate) Exec ¶
func (iu *IntegrationUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*IntegrationUpdate) ExecX ¶
func (iu *IntegrationUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IntegrationUpdate) Mutation ¶
func (iu *IntegrationUpdate) Mutation() *IntegrationMutation
Mutation returns the IntegrationMutation object of the builder.
func (*IntegrationUpdate) RemoveAttachmentIDs ¶
func (iu *IntegrationUpdate) RemoveAttachmentIDs(ids ...uuid.UUID) *IntegrationUpdate
RemoveAttachmentIDs removes the "attachments" edge to IntegrationAttachment entities by IDs.
func (*IntegrationUpdate) RemoveAttachments ¶
func (iu *IntegrationUpdate) RemoveAttachments(i ...*IntegrationAttachment) *IntegrationUpdate
RemoveAttachments removes "attachments" edges to IntegrationAttachment entities.
func (*IntegrationUpdate) Save ¶
func (iu *IntegrationUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*IntegrationUpdate) SaveX ¶
func (iu *IntegrationUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*IntegrationUpdate) SetConfiguration ¶ added in v0.11.1
func (iu *IntegrationUpdate) SetConfiguration(b []byte) *IntegrationUpdate
SetConfiguration sets the "configuration" field.
func (*IntegrationUpdate) SetDeletedAt ¶
func (iu *IntegrationUpdate) SetDeletedAt(t time.Time) *IntegrationUpdate
SetDeletedAt sets the "deleted_at" field.
func (*IntegrationUpdate) SetDescription ¶ added in v0.11.1
func (iu *IntegrationUpdate) SetDescription(s string) *IntegrationUpdate
SetDescription sets the "description" field.
func (*IntegrationUpdate) SetNillableDeletedAt ¶
func (iu *IntegrationUpdate) SetNillableDeletedAt(t *time.Time) *IntegrationUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*IntegrationUpdate) SetNillableDescription ¶ added in v0.11.1
func (iu *IntegrationUpdate) SetNillableDescription(s *string) *IntegrationUpdate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*IntegrationUpdate) SetOrganization ¶
func (iu *IntegrationUpdate) SetOrganization(o *Organization) *IntegrationUpdate
SetOrganization sets the "organization" edge to the Organization entity.
func (*IntegrationUpdate) SetOrganizationID ¶
func (iu *IntegrationUpdate) SetOrganizationID(id uuid.UUID) *IntegrationUpdate
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*IntegrationUpdate) Where ¶
func (iu *IntegrationUpdate) Where(ps ...predicate.Integration) *IntegrationUpdate
Where appends a list predicates to the IntegrationUpdate builder.
type IntegrationUpdateOne ¶
type IntegrationUpdateOne struct {
// contains filtered or unexported fields
}
IntegrationUpdateOne is the builder for updating a single Integration entity.
func (*IntegrationUpdateOne) AddAttachmentIDs ¶
func (iuo *IntegrationUpdateOne) AddAttachmentIDs(ids ...uuid.UUID) *IntegrationUpdateOne
AddAttachmentIDs adds the "attachments" edge to the IntegrationAttachment entity by IDs.
func (*IntegrationUpdateOne) AddAttachments ¶
func (iuo *IntegrationUpdateOne) AddAttachments(i ...*IntegrationAttachment) *IntegrationUpdateOne
AddAttachments adds the "attachments" edges to the IntegrationAttachment entity.
func (*IntegrationUpdateOne) ClearAttachments ¶
func (iuo *IntegrationUpdateOne) ClearAttachments() *IntegrationUpdateOne
ClearAttachments clears all "attachments" edges to the IntegrationAttachment entity.
func (*IntegrationUpdateOne) ClearConfiguration ¶ added in v0.11.1
func (iuo *IntegrationUpdateOne) ClearConfiguration() *IntegrationUpdateOne
ClearConfiguration clears the value of the "configuration" field.
func (*IntegrationUpdateOne) ClearDeletedAt ¶
func (iuo *IntegrationUpdateOne) ClearDeletedAt() *IntegrationUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*IntegrationUpdateOne) ClearDescription ¶ added in v0.11.1
func (iuo *IntegrationUpdateOne) ClearDescription() *IntegrationUpdateOne
ClearDescription clears the value of the "description" field.
func (*IntegrationUpdateOne) ClearOrganization ¶
func (iuo *IntegrationUpdateOne) ClearOrganization() *IntegrationUpdateOne
ClearOrganization clears the "organization" edge to the Organization entity.
func (*IntegrationUpdateOne) Exec ¶
func (iuo *IntegrationUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*IntegrationUpdateOne) ExecX ¶
func (iuo *IntegrationUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IntegrationUpdateOne) Mutation ¶
func (iuo *IntegrationUpdateOne) Mutation() *IntegrationMutation
Mutation returns the IntegrationMutation object of the builder.
func (*IntegrationUpdateOne) RemoveAttachmentIDs ¶
func (iuo *IntegrationUpdateOne) RemoveAttachmentIDs(ids ...uuid.UUID) *IntegrationUpdateOne
RemoveAttachmentIDs removes the "attachments" edge to IntegrationAttachment entities by IDs.
func (*IntegrationUpdateOne) RemoveAttachments ¶
func (iuo *IntegrationUpdateOne) RemoveAttachments(i ...*IntegrationAttachment) *IntegrationUpdateOne
RemoveAttachments removes "attachments" edges to IntegrationAttachment entities.
func (*IntegrationUpdateOne) Save ¶
func (iuo *IntegrationUpdateOne) Save(ctx context.Context) (*Integration, error)
Save executes the query and returns the updated Integration entity.
func (*IntegrationUpdateOne) SaveX ¶
func (iuo *IntegrationUpdateOne) SaveX(ctx context.Context) *Integration
SaveX is like Save, but panics if an error occurs.
func (*IntegrationUpdateOne) Select ¶
func (iuo *IntegrationUpdateOne) Select(field string, fields ...string) *IntegrationUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*IntegrationUpdateOne) SetConfiguration ¶ added in v0.11.1
func (iuo *IntegrationUpdateOne) SetConfiguration(b []byte) *IntegrationUpdateOne
SetConfiguration sets the "configuration" field.
func (*IntegrationUpdateOne) SetDeletedAt ¶
func (iuo *IntegrationUpdateOne) SetDeletedAt(t time.Time) *IntegrationUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*IntegrationUpdateOne) SetDescription ¶ added in v0.11.1
func (iuo *IntegrationUpdateOne) SetDescription(s string) *IntegrationUpdateOne
SetDescription sets the "description" field.
func (*IntegrationUpdateOne) SetNillableDeletedAt ¶
func (iuo *IntegrationUpdateOne) SetNillableDeletedAt(t *time.Time) *IntegrationUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*IntegrationUpdateOne) SetNillableDescription ¶ added in v0.11.1
func (iuo *IntegrationUpdateOne) SetNillableDescription(s *string) *IntegrationUpdateOne
SetNillableDescription sets the "description" field if the given value is not nil.
func (*IntegrationUpdateOne) SetOrganization ¶
func (iuo *IntegrationUpdateOne) SetOrganization(o *Organization) *IntegrationUpdateOne
SetOrganization sets the "organization" edge to the Organization entity.
func (*IntegrationUpdateOne) SetOrganizationID ¶
func (iuo *IntegrationUpdateOne) SetOrganizationID(id uuid.UUID) *IntegrationUpdateOne
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*IntegrationUpdateOne) Where ¶
func (iuo *IntegrationUpdateOne) Where(ps ...predicate.Integration) *IntegrationUpdateOne
Where appends a list predicates to the IntegrationUpdate builder.
type Integrations ¶
type Integrations []*Integration
Integrations is a parsable slice of Integration.
type InterceptFunc ¶
type InterceptFunc = ent.InterceptFunc
ent aliases to avoid import conflicts in user's code.
type Interceptor ¶
type Interceptor = ent.Interceptor
ent aliases to avoid import conflicts in user's code.
type Membership ¶
type Membership struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // Current holds the value of the "current" field. Current bool `json:"current,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"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the MembershipQuery when eager-loading is set. Edges MembershipEdges `json:"edges"` // contains filtered or unexported fields }
Membership is the model entity for the Membership schema.
func (*Membership) QueryOrganization ¶
func (m *Membership) QueryOrganization() *OrganizationQuery
QueryOrganization queries the "organization" edge of the Membership entity.
func (*Membership) QueryUser ¶
func (m *Membership) QueryUser() *UserQuery
QueryUser queries the "user" edge of the Membership entity.
func (*Membership) String ¶
func (m *Membership) String() string
String implements the fmt.Stringer.
func (*Membership) Unwrap ¶
func (m *Membership) Unwrap() *Membership
Unwrap unwraps the Membership 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 (*Membership) Update ¶
func (m *Membership) Update() *MembershipUpdateOne
Update returns a builder for updating this Membership. Note that you need to call Membership.Unwrap() before calling this method if this Membership was returned from a transaction, and the transaction was committed or rolled back.
type MembershipClient ¶
type MembershipClient struct {
// contains filtered or unexported fields
}
MembershipClient is a client for the Membership schema.
func NewMembershipClient ¶
func NewMembershipClient(c config) *MembershipClient
NewMembershipClient returns a client for the Membership from the given config.
func (*MembershipClient) Create ¶
func (c *MembershipClient) Create() *MembershipCreate
Create returns a builder for creating a Membership entity.
func (*MembershipClient) CreateBulk ¶
func (c *MembershipClient) CreateBulk(builders ...*MembershipCreate) *MembershipCreateBulk
CreateBulk returns a builder for creating a bulk of Membership entities.
func (*MembershipClient) Delete ¶
func (c *MembershipClient) Delete() *MembershipDelete
Delete returns a delete builder for Membership.
func (*MembershipClient) DeleteOne ¶
func (c *MembershipClient) DeleteOne(m *Membership) *MembershipDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*MembershipClient) DeleteOneID ¶
func (c *MembershipClient) DeleteOneID(id uuid.UUID) *MembershipDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*MembershipClient) Get ¶
func (c *MembershipClient) Get(ctx context.Context, id uuid.UUID) (*Membership, error)
Get returns a Membership entity by its id.
func (*MembershipClient) GetX ¶
func (c *MembershipClient) GetX(ctx context.Context, id uuid.UUID) *Membership
GetX is like Get, but panics if an error occurs.
func (*MembershipClient) Hooks ¶
func (c *MembershipClient) Hooks() []Hook
Hooks returns the client hooks.
func (*MembershipClient) Intercept ¶
func (c *MembershipClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `membership.Intercept(f(g(h())))`.
func (*MembershipClient) Interceptors ¶
func (c *MembershipClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*MembershipClient) Query ¶
func (c *MembershipClient) Query() *MembershipQuery
Query returns a query builder for Membership.
func (*MembershipClient) QueryOrganization ¶
func (c *MembershipClient) QueryOrganization(m *Membership) *OrganizationQuery
QueryOrganization queries the organization edge of a Membership.
func (*MembershipClient) QueryUser ¶
func (c *MembershipClient) QueryUser(m *Membership) *UserQuery
QueryUser queries the user edge of a Membership.
func (*MembershipClient) Update ¶
func (c *MembershipClient) Update() *MembershipUpdate
Update returns an update builder for Membership.
func (*MembershipClient) UpdateOne ¶
func (c *MembershipClient) UpdateOne(m *Membership) *MembershipUpdateOne
UpdateOne returns an update builder for the given entity.
func (*MembershipClient) UpdateOneID ¶
func (c *MembershipClient) UpdateOneID(id uuid.UUID) *MembershipUpdateOne
UpdateOneID returns an update builder for the given id.
func (*MembershipClient) Use ¶
func (c *MembershipClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `membership.Hooks(f(g(h())))`.
type MembershipCreate ¶
type MembershipCreate struct {
// contains filtered or unexported fields
}
MembershipCreate is the builder for creating a Membership entity.
func (*MembershipCreate) Exec ¶
func (mc *MembershipCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*MembershipCreate) ExecX ¶
func (mc *MembershipCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MembershipCreate) Mutation ¶
func (mc *MembershipCreate) Mutation() *MembershipMutation
Mutation returns the MembershipMutation object of the builder.
func (*MembershipCreate) Save ¶
func (mc *MembershipCreate) Save(ctx context.Context) (*Membership, error)
Save creates the Membership in the database.
func (*MembershipCreate) SaveX ¶
func (mc *MembershipCreate) SaveX(ctx context.Context) *Membership
SaveX calls Save and panics if Save returns an error.
func (*MembershipCreate) SetCreatedAt ¶
func (mc *MembershipCreate) SetCreatedAt(t time.Time) *MembershipCreate
SetCreatedAt sets the "created_at" field.
func (*MembershipCreate) SetCurrent ¶
func (mc *MembershipCreate) SetCurrent(b bool) *MembershipCreate
SetCurrent sets the "current" field.
func (*MembershipCreate) SetID ¶
func (mc *MembershipCreate) SetID(u uuid.UUID) *MembershipCreate
SetID sets the "id" field.
func (*MembershipCreate) SetNillableCreatedAt ¶
func (mc *MembershipCreate) SetNillableCreatedAt(t *time.Time) *MembershipCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*MembershipCreate) SetNillableCurrent ¶
func (mc *MembershipCreate) SetNillableCurrent(b *bool) *MembershipCreate
SetNillableCurrent sets the "current" field if the given value is not nil.
func (*MembershipCreate) SetNillableID ¶
func (mc *MembershipCreate) SetNillableID(u *uuid.UUID) *MembershipCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*MembershipCreate) SetNillableUpdatedAt ¶
func (mc *MembershipCreate) SetNillableUpdatedAt(t *time.Time) *MembershipCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*MembershipCreate) SetOrganization ¶
func (mc *MembershipCreate) SetOrganization(o *Organization) *MembershipCreate
SetOrganization sets the "organization" edge to the Organization entity.
func (*MembershipCreate) SetOrganizationID ¶
func (mc *MembershipCreate) SetOrganizationID(id uuid.UUID) *MembershipCreate
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*MembershipCreate) SetUpdatedAt ¶
func (mc *MembershipCreate) SetUpdatedAt(t time.Time) *MembershipCreate
SetUpdatedAt sets the "updated_at" field.
func (*MembershipCreate) SetUser ¶
func (mc *MembershipCreate) SetUser(u *User) *MembershipCreate
SetUser sets the "user" edge to the User entity.
func (*MembershipCreate) SetUserID ¶
func (mc *MembershipCreate) SetUserID(id uuid.UUID) *MembershipCreate
SetUserID sets the "user" edge to the User entity by ID.
type MembershipCreateBulk ¶
type MembershipCreateBulk struct {
// contains filtered or unexported fields
}
MembershipCreateBulk is the builder for creating many Membership entities in bulk.
func (*MembershipCreateBulk) Exec ¶
func (mcb *MembershipCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*MembershipCreateBulk) ExecX ¶
func (mcb *MembershipCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MembershipCreateBulk) Save ¶
func (mcb *MembershipCreateBulk) Save(ctx context.Context) ([]*Membership, error)
Save creates the Membership entities in the database.
func (*MembershipCreateBulk) SaveX ¶
func (mcb *MembershipCreateBulk) SaveX(ctx context.Context) []*Membership
SaveX is like Save, but panics if an error occurs.
type MembershipDelete ¶
type MembershipDelete struct {
// contains filtered or unexported fields
}
MembershipDelete is the builder for deleting a Membership entity.
func (*MembershipDelete) Exec ¶
func (md *MembershipDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*MembershipDelete) ExecX ¶
func (md *MembershipDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*MembershipDelete) Where ¶
func (md *MembershipDelete) Where(ps ...predicate.Membership) *MembershipDelete
Where appends a list predicates to the MembershipDelete builder.
type MembershipDeleteOne ¶
type MembershipDeleteOne struct {
// contains filtered or unexported fields
}
MembershipDeleteOne is the builder for deleting a single Membership entity.
func (*MembershipDeleteOne) Exec ¶
func (mdo *MembershipDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*MembershipDeleteOne) ExecX ¶
func (mdo *MembershipDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MembershipDeleteOne) Where ¶
func (mdo *MembershipDeleteOne) Where(ps ...predicate.Membership) *MembershipDeleteOne
Where appends a list predicates to the MembershipDelete builder.
type MembershipEdges ¶
type MembershipEdges struct { // Organization holds the value of the organization edge. Organization *Organization `json:"organization,omitempty"` // User holds the value of the user edge. User *User `json:"user,omitempty"` // contains filtered or unexported fields }
MembershipEdges holds the relations/edges for other nodes in the graph.
func (MembershipEdges) OrganizationOrErr ¶
func (e MembershipEdges) OrganizationOrErr() (*Organization, error)
OrganizationOrErr returns the Organization value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (MembershipEdges) UserOrErr ¶
func (e MembershipEdges) UserOrErr() (*User, error)
UserOrErr returns the User value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type MembershipGroupBy ¶
type MembershipGroupBy struct {
// contains filtered or unexported fields
}
MembershipGroupBy is the group-by builder for Membership entities.
func (*MembershipGroupBy) Aggregate ¶
func (mgb *MembershipGroupBy) Aggregate(fns ...AggregateFunc) *MembershipGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*MembershipGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*MembershipGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*MembershipGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*MembershipGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*MembershipGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*MembershipGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*MembershipGroupBy) Scan ¶
func (mgb *MembershipGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*MembershipGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type MembershipMutation ¶
type MembershipMutation struct {
// contains filtered or unexported fields
}
MembershipMutation represents an operation that mutates the Membership nodes in the graph.
func (*MembershipMutation) AddField ¶
func (m *MembershipMutation) 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 (*MembershipMutation) AddedEdges ¶
func (m *MembershipMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*MembershipMutation) AddedField ¶
func (m *MembershipMutation) 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 (*MembershipMutation) AddedFields ¶
func (m *MembershipMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*MembershipMutation) AddedIDs ¶
func (m *MembershipMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*MembershipMutation) ClearEdge ¶
func (m *MembershipMutation) 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 (*MembershipMutation) ClearField ¶
func (m *MembershipMutation) 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 (*MembershipMutation) ClearOrganization ¶
func (m *MembershipMutation) ClearOrganization()
ClearOrganization clears the "organization" edge to the Organization entity.
func (*MembershipMutation) ClearUser ¶
func (m *MembershipMutation) ClearUser()
ClearUser clears the "user" edge to the User entity.
func (*MembershipMutation) ClearedEdges ¶
func (m *MembershipMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*MembershipMutation) ClearedFields ¶
func (m *MembershipMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (MembershipMutation) Client ¶
func (m MembershipMutation) 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 (*MembershipMutation) CreatedAt ¶
func (m *MembershipMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*MembershipMutation) Current ¶
func (m *MembershipMutation) Current() (r bool, exists bool)
Current returns the value of the "current" field in the mutation.
func (*MembershipMutation) EdgeCleared ¶
func (m *MembershipMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*MembershipMutation) Field ¶
func (m *MembershipMutation) 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 (*MembershipMutation) FieldCleared ¶
func (m *MembershipMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*MembershipMutation) Fields ¶
func (m *MembershipMutation) 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 (*MembershipMutation) ID ¶
func (m *MembershipMutation) 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 (*MembershipMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*MembershipMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Membership entity. If the Membership 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 (*MembershipMutation) OldCurrent ¶
func (m *MembershipMutation) OldCurrent(ctx context.Context) (v bool, err error)
OldCurrent returns the old "current" field's value of the Membership entity. If the Membership 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 (*MembershipMutation) 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 (*MembershipMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Membership entity. If the Membership 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 (*MembershipMutation) OrganizationCleared ¶
func (m *MembershipMutation) OrganizationCleared() bool
OrganizationCleared reports if the "organization" edge to the Organization entity was cleared.
func (*MembershipMutation) OrganizationID ¶
func (m *MembershipMutation) OrganizationID() (id uuid.UUID, exists bool)
OrganizationID returns the "organization" edge ID in the mutation.
func (*MembershipMutation) OrganizationIDs ¶
func (m *MembershipMutation) OrganizationIDs() (ids []uuid.UUID)
OrganizationIDs returns the "organization" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OrganizationID instead. It exists only for internal usage by the builders.
func (*MembershipMutation) RemovedEdges ¶
func (m *MembershipMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*MembershipMutation) RemovedIDs ¶
func (m *MembershipMutation) 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 (*MembershipMutation) ResetCreatedAt ¶
func (m *MembershipMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*MembershipMutation) ResetCurrent ¶
func (m *MembershipMutation) ResetCurrent()
ResetCurrent resets all changes to the "current" field.
func (*MembershipMutation) ResetEdge ¶
func (m *MembershipMutation) 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 (*MembershipMutation) ResetField ¶
func (m *MembershipMutation) 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 (*MembershipMutation) ResetOrganization ¶
func (m *MembershipMutation) ResetOrganization()
ResetOrganization resets all changes to the "organization" edge.
func (*MembershipMutation) ResetUpdatedAt ¶
func (m *MembershipMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*MembershipMutation) ResetUser ¶
func (m *MembershipMutation) ResetUser()
ResetUser resets all changes to the "user" edge.
func (*MembershipMutation) SetCreatedAt ¶
func (m *MembershipMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*MembershipMutation) SetCurrent ¶
func (m *MembershipMutation) SetCurrent(b bool)
SetCurrent sets the "current" field.
func (*MembershipMutation) SetField ¶
func (m *MembershipMutation) 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 (*MembershipMutation) SetID ¶
func (m *MembershipMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Membership entities.
func (*MembershipMutation) SetOp ¶
func (m *MembershipMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*MembershipMutation) SetOrganizationID ¶
func (m *MembershipMutation) SetOrganizationID(id uuid.UUID)
SetOrganizationID sets the "organization" edge to the Organization entity by id.
func (*MembershipMutation) SetUpdatedAt ¶
func (m *MembershipMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*MembershipMutation) SetUserID ¶
func (m *MembershipMutation) SetUserID(id uuid.UUID)
SetUserID sets the "user" edge to the User entity by id.
func (MembershipMutation) Tx ¶
func (m MembershipMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*MembershipMutation) Type ¶
func (m *MembershipMutation) Type() string
Type returns the node type of this mutation (Membership).
func (*MembershipMutation) UpdatedAt ¶
func (m *MembershipMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*MembershipMutation) UserCleared ¶
func (m *MembershipMutation) UserCleared() bool
UserCleared reports if the "user" edge to the User entity was cleared.
func (*MembershipMutation) UserID ¶
func (m *MembershipMutation) UserID() (id uuid.UUID, exists bool)
UserID returns the "user" edge ID in the mutation.
func (*MembershipMutation) UserIDs ¶
func (m *MembershipMutation) UserIDs() (ids []uuid.UUID)
UserIDs returns the "user" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use UserID instead. It exists only for internal usage by the builders.
func (*MembershipMutation) Where ¶
func (m *MembershipMutation) Where(ps ...predicate.Membership)
Where appends a list predicates to the MembershipMutation builder.
func (*MembershipMutation) WhereP ¶
func (m *MembershipMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the MembershipMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type MembershipQuery ¶
type MembershipQuery struct {
// contains filtered or unexported fields
}
MembershipQuery is the builder for querying Membership entities.
func (*MembershipQuery) Aggregate ¶
func (mq *MembershipQuery) Aggregate(fns ...AggregateFunc) *MembershipSelect
Aggregate returns a MembershipSelect configured with the given aggregations.
func (*MembershipQuery) All ¶
func (mq *MembershipQuery) All(ctx context.Context) ([]*Membership, error)
All executes the query and returns a list of Memberships.
func (*MembershipQuery) AllX ¶
func (mq *MembershipQuery) AllX(ctx context.Context) []*Membership
AllX is like All, but panics if an error occurs.
func (*MembershipQuery) Clone ¶
func (mq *MembershipQuery) Clone() *MembershipQuery
Clone returns a duplicate of the MembershipQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*MembershipQuery) Count ¶
func (mq *MembershipQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*MembershipQuery) CountX ¶
func (mq *MembershipQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*MembershipQuery) Exist ¶
func (mq *MembershipQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*MembershipQuery) ExistX ¶
func (mq *MembershipQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*MembershipQuery) First ¶
func (mq *MembershipQuery) First(ctx context.Context) (*Membership, error)
First returns the first Membership entity from the query. Returns a *NotFoundError when no Membership was found.
func (*MembershipQuery) FirstID ¶
FirstID returns the first Membership ID from the query. Returns a *NotFoundError when no Membership ID was found.
func (*MembershipQuery) FirstIDX ¶
func (mq *MembershipQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*MembershipQuery) FirstX ¶
func (mq *MembershipQuery) FirstX(ctx context.Context) *Membership
FirstX is like First, but panics if an error occurs.
func (*MembershipQuery) GroupBy ¶
func (mq *MembershipQuery) GroupBy(field string, fields ...string) *MembershipGroupBy
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 { Current bool `json:"current,omitempty"` Count int `json:"count,omitempty"` } client.Membership.Query(). GroupBy(membership.FieldCurrent). Aggregate(ent.Count()). Scan(ctx, &v)
func (*MembershipQuery) IDsX ¶
func (mq *MembershipQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*MembershipQuery) Limit ¶
func (mq *MembershipQuery) Limit(limit int) *MembershipQuery
Limit the number of records to be returned by this query.
func (*MembershipQuery) Offset ¶
func (mq *MembershipQuery) Offset(offset int) *MembershipQuery
Offset to start from.
func (*MembershipQuery) Only ¶
func (mq *MembershipQuery) Only(ctx context.Context) (*Membership, error)
Only returns a single Membership entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Membership entity is found. Returns a *NotFoundError when no Membership entities are found.
func (*MembershipQuery) OnlyID ¶
OnlyID is like Only, but returns the only Membership ID in the query. Returns a *NotSingularError when more than one Membership ID is found. Returns a *NotFoundError when no entities are found.
func (*MembershipQuery) OnlyIDX ¶
func (mq *MembershipQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*MembershipQuery) OnlyX ¶
func (mq *MembershipQuery) OnlyX(ctx context.Context) *Membership
OnlyX is like Only, but panics if an error occurs.
func (*MembershipQuery) Order ¶
func (mq *MembershipQuery) Order(o ...OrderFunc) *MembershipQuery
Order specifies how the records should be ordered.
func (*MembershipQuery) QueryOrganization ¶
func (mq *MembershipQuery) QueryOrganization() *OrganizationQuery
QueryOrganization chains the current query on the "organization" edge.
func (*MembershipQuery) QueryUser ¶
func (mq *MembershipQuery) QueryUser() *UserQuery
QueryUser chains the current query on the "user" edge.
func (*MembershipQuery) Select ¶
func (mq *MembershipQuery) Select(fields ...string) *MembershipSelect
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 { Current bool `json:"current,omitempty"` } client.Membership.Query(). Select(membership.FieldCurrent). Scan(ctx, &v)
func (*MembershipQuery) Unique ¶
func (mq *MembershipQuery) Unique(unique bool) *MembershipQuery
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 (*MembershipQuery) Where ¶
func (mq *MembershipQuery) Where(ps ...predicate.Membership) *MembershipQuery
Where adds a new predicate for the MembershipQuery builder.
func (*MembershipQuery) WithOrganization ¶
func (mq *MembershipQuery) WithOrganization(opts ...func(*OrganizationQuery)) *MembershipQuery
WithOrganization tells the query-builder to eager-load the nodes that are connected to the "organization" edge. The optional arguments are used to configure the query builder of the edge.
func (*MembershipQuery) WithUser ¶
func (mq *MembershipQuery) WithUser(opts ...func(*UserQuery)) *MembershipQuery
WithUser tells the query-builder to eager-load the nodes that are connected to the "user" edge. The optional arguments are used to configure the query builder of the edge.
type MembershipSelect ¶
type MembershipSelect struct { *MembershipQuery // contains filtered or unexported fields }
MembershipSelect is the builder for selecting fields of Membership entities.
func (*MembershipSelect) Aggregate ¶
func (ms *MembershipSelect) Aggregate(fns ...AggregateFunc) *MembershipSelect
Aggregate adds the given aggregation functions to the selector query.
func (*MembershipSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*MembershipSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*MembershipSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*MembershipSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*MembershipSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*MembershipSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*MembershipSelect) Scan ¶
func (ms *MembershipSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*MembershipSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type MembershipUpdate ¶
type MembershipUpdate struct {
// contains filtered or unexported fields
}
MembershipUpdate is the builder for updating Membership entities.
func (*MembershipUpdate) ClearOrganization ¶
func (mu *MembershipUpdate) ClearOrganization() *MembershipUpdate
ClearOrganization clears the "organization" edge to the Organization entity.
func (*MembershipUpdate) ClearUser ¶
func (mu *MembershipUpdate) ClearUser() *MembershipUpdate
ClearUser clears the "user" edge to the User entity.
func (*MembershipUpdate) Exec ¶
func (mu *MembershipUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*MembershipUpdate) ExecX ¶
func (mu *MembershipUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MembershipUpdate) Mutation ¶
func (mu *MembershipUpdate) Mutation() *MembershipMutation
Mutation returns the MembershipMutation object of the builder.
func (*MembershipUpdate) Save ¶
func (mu *MembershipUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*MembershipUpdate) SaveX ¶
func (mu *MembershipUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*MembershipUpdate) SetCurrent ¶
func (mu *MembershipUpdate) SetCurrent(b bool) *MembershipUpdate
SetCurrent sets the "current" field.
func (*MembershipUpdate) SetNillableCurrent ¶
func (mu *MembershipUpdate) SetNillableCurrent(b *bool) *MembershipUpdate
SetNillableCurrent sets the "current" field if the given value is not nil.
func (*MembershipUpdate) SetNillableUpdatedAt ¶
func (mu *MembershipUpdate) SetNillableUpdatedAt(t *time.Time) *MembershipUpdate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*MembershipUpdate) SetOrganization ¶
func (mu *MembershipUpdate) SetOrganization(o *Organization) *MembershipUpdate
SetOrganization sets the "organization" edge to the Organization entity.
func (*MembershipUpdate) SetOrganizationID ¶
func (mu *MembershipUpdate) SetOrganizationID(id uuid.UUID) *MembershipUpdate
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*MembershipUpdate) SetUpdatedAt ¶
func (mu *MembershipUpdate) SetUpdatedAt(t time.Time) *MembershipUpdate
SetUpdatedAt sets the "updated_at" field.
func (*MembershipUpdate) SetUser ¶
func (mu *MembershipUpdate) SetUser(u *User) *MembershipUpdate
SetUser sets the "user" edge to the User entity.
func (*MembershipUpdate) SetUserID ¶
func (mu *MembershipUpdate) SetUserID(id uuid.UUID) *MembershipUpdate
SetUserID sets the "user" edge to the User entity by ID.
func (*MembershipUpdate) Where ¶
func (mu *MembershipUpdate) Where(ps ...predicate.Membership) *MembershipUpdate
Where appends a list predicates to the MembershipUpdate builder.
type MembershipUpdateOne ¶
type MembershipUpdateOne struct {
// contains filtered or unexported fields
}
MembershipUpdateOne is the builder for updating a single Membership entity.
func (*MembershipUpdateOne) ClearOrganization ¶
func (muo *MembershipUpdateOne) ClearOrganization() *MembershipUpdateOne
ClearOrganization clears the "organization" edge to the Organization entity.
func (*MembershipUpdateOne) ClearUser ¶
func (muo *MembershipUpdateOne) ClearUser() *MembershipUpdateOne
ClearUser clears the "user" edge to the User entity.
func (*MembershipUpdateOne) Exec ¶
func (muo *MembershipUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*MembershipUpdateOne) ExecX ¶
func (muo *MembershipUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MembershipUpdateOne) Mutation ¶
func (muo *MembershipUpdateOne) Mutation() *MembershipMutation
Mutation returns the MembershipMutation object of the builder.
func (*MembershipUpdateOne) Save ¶
func (muo *MembershipUpdateOne) Save(ctx context.Context) (*Membership, error)
Save executes the query and returns the updated Membership entity.
func (*MembershipUpdateOne) SaveX ¶
func (muo *MembershipUpdateOne) SaveX(ctx context.Context) *Membership
SaveX is like Save, but panics if an error occurs.
func (*MembershipUpdateOne) Select ¶
func (muo *MembershipUpdateOne) Select(field string, fields ...string) *MembershipUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*MembershipUpdateOne) SetCurrent ¶
func (muo *MembershipUpdateOne) SetCurrent(b bool) *MembershipUpdateOne
SetCurrent sets the "current" field.
func (*MembershipUpdateOne) SetNillableCurrent ¶
func (muo *MembershipUpdateOne) SetNillableCurrent(b *bool) *MembershipUpdateOne
SetNillableCurrent sets the "current" field if the given value is not nil.
func (*MembershipUpdateOne) SetNillableUpdatedAt ¶
func (muo *MembershipUpdateOne) SetNillableUpdatedAt(t *time.Time) *MembershipUpdateOne
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*MembershipUpdateOne) SetOrganization ¶
func (muo *MembershipUpdateOne) SetOrganization(o *Organization) *MembershipUpdateOne
SetOrganization sets the "organization" edge to the Organization entity.
func (*MembershipUpdateOne) SetOrganizationID ¶
func (muo *MembershipUpdateOne) SetOrganizationID(id uuid.UUID) *MembershipUpdateOne
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*MembershipUpdateOne) SetUpdatedAt ¶
func (muo *MembershipUpdateOne) SetUpdatedAt(t time.Time) *MembershipUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*MembershipUpdateOne) SetUser ¶
func (muo *MembershipUpdateOne) SetUser(u *User) *MembershipUpdateOne
SetUser sets the "user" edge to the User entity.
func (*MembershipUpdateOne) SetUserID ¶
func (muo *MembershipUpdateOne) SetUserID(id uuid.UUID) *MembershipUpdateOne
SetUserID sets the "user" edge to the User entity by ID.
func (*MembershipUpdateOne) Where ¶
func (muo *MembershipUpdateOne) Where(ps ...predicate.Membership) *MembershipUpdateOne
Where appends a list predicates to the MembershipUpdate builder.
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 OCIRepositories ¶
type OCIRepositories []*OCIRepository
OCIRepositories is a parsable slice of OCIRepository.
type OCIRepository ¶
type OCIRepository struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // Repo holds the value of the "repo" field. Repo string `json:"repo,omitempty"` // SecretName holds the value of the "secret_name" field. SecretName string `json:"secret_name,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // ValidationStatus holds the value of the "validation_status" field. ValidationStatus biz.OCIRepoValidationStatus `json:"validation_status,omitempty"` // ValidatedAt holds the value of the "validated_at" field. ValidatedAt time.Time `json:"validated_at,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the OCIRepositoryQuery when eager-loading is set. Edges OCIRepositoryEdges `json:"edges"` // contains filtered or unexported fields }
OCIRepository is the model entity for the OCIRepository schema.
func (*OCIRepository) QueryOrganization ¶
func (or *OCIRepository) QueryOrganization() *OrganizationQuery
QueryOrganization queries the "organization" edge of the OCIRepository entity.
func (*OCIRepository) String ¶
func (or *OCIRepository) String() string
String implements the fmt.Stringer.
func (*OCIRepository) Unwrap ¶
func (or *OCIRepository) Unwrap() *OCIRepository
Unwrap unwraps the OCIRepository 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 (*OCIRepository) Update ¶
func (or *OCIRepository) Update() *OCIRepositoryUpdateOne
Update returns a builder for updating this OCIRepository. Note that you need to call OCIRepository.Unwrap() before calling this method if this OCIRepository was returned from a transaction, and the transaction was committed or rolled back.
type OCIRepositoryClient ¶
type OCIRepositoryClient struct {
// contains filtered or unexported fields
}
OCIRepositoryClient is a client for the OCIRepository schema.
func NewOCIRepositoryClient ¶
func NewOCIRepositoryClient(c config) *OCIRepositoryClient
NewOCIRepositoryClient returns a client for the OCIRepository from the given config.
func (*OCIRepositoryClient) Create ¶
func (c *OCIRepositoryClient) Create() *OCIRepositoryCreate
Create returns a builder for creating a OCIRepository entity.
func (*OCIRepositoryClient) CreateBulk ¶
func (c *OCIRepositoryClient) CreateBulk(builders ...*OCIRepositoryCreate) *OCIRepositoryCreateBulk
CreateBulk returns a builder for creating a bulk of OCIRepository entities.
func (*OCIRepositoryClient) Delete ¶
func (c *OCIRepositoryClient) Delete() *OCIRepositoryDelete
Delete returns a delete builder for OCIRepository.
func (*OCIRepositoryClient) DeleteOne ¶
func (c *OCIRepositoryClient) DeleteOne(or *OCIRepository) *OCIRepositoryDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*OCIRepositoryClient) DeleteOneID ¶
func (c *OCIRepositoryClient) DeleteOneID(id uuid.UUID) *OCIRepositoryDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*OCIRepositoryClient) Get ¶
func (c *OCIRepositoryClient) Get(ctx context.Context, id uuid.UUID) (*OCIRepository, error)
Get returns a OCIRepository entity by its id.
func (*OCIRepositoryClient) GetX ¶
func (c *OCIRepositoryClient) GetX(ctx context.Context, id uuid.UUID) *OCIRepository
GetX is like Get, but panics if an error occurs.
func (*OCIRepositoryClient) Hooks ¶
func (c *OCIRepositoryClient) Hooks() []Hook
Hooks returns the client hooks.
func (*OCIRepositoryClient) Intercept ¶
func (c *OCIRepositoryClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `ocirepository.Intercept(f(g(h())))`.
func (*OCIRepositoryClient) Interceptors ¶
func (c *OCIRepositoryClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*OCIRepositoryClient) Query ¶
func (c *OCIRepositoryClient) Query() *OCIRepositoryQuery
Query returns a query builder for OCIRepository.
func (*OCIRepositoryClient) QueryOrganization ¶
func (c *OCIRepositoryClient) QueryOrganization(or *OCIRepository) *OrganizationQuery
QueryOrganization queries the organization edge of a OCIRepository.
func (*OCIRepositoryClient) Update ¶
func (c *OCIRepositoryClient) Update() *OCIRepositoryUpdate
Update returns an update builder for OCIRepository.
func (*OCIRepositoryClient) UpdateOne ¶
func (c *OCIRepositoryClient) UpdateOne(or *OCIRepository) *OCIRepositoryUpdateOne
UpdateOne returns an update builder for the given entity.
func (*OCIRepositoryClient) UpdateOneID ¶
func (c *OCIRepositoryClient) UpdateOneID(id uuid.UUID) *OCIRepositoryUpdateOne
UpdateOneID returns an update builder for the given id.
func (*OCIRepositoryClient) Use ¶
func (c *OCIRepositoryClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `ocirepository.Hooks(f(g(h())))`.
type OCIRepositoryCreate ¶
type OCIRepositoryCreate struct {
// contains filtered or unexported fields
}
OCIRepositoryCreate is the builder for creating a OCIRepository entity.
func (*OCIRepositoryCreate) Exec ¶
func (orc *OCIRepositoryCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*OCIRepositoryCreate) ExecX ¶
func (orc *OCIRepositoryCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OCIRepositoryCreate) Mutation ¶
func (orc *OCIRepositoryCreate) Mutation() *OCIRepositoryMutation
Mutation returns the OCIRepositoryMutation object of the builder.
func (*OCIRepositoryCreate) Save ¶
func (orc *OCIRepositoryCreate) Save(ctx context.Context) (*OCIRepository, error)
Save creates the OCIRepository in the database.
func (*OCIRepositoryCreate) SaveX ¶
func (orc *OCIRepositoryCreate) SaveX(ctx context.Context) *OCIRepository
SaveX calls Save and panics if Save returns an error.
func (*OCIRepositoryCreate) SetCreatedAt ¶
func (orc *OCIRepositoryCreate) SetCreatedAt(t time.Time) *OCIRepositoryCreate
SetCreatedAt sets the "created_at" field.
func (*OCIRepositoryCreate) SetID ¶
func (orc *OCIRepositoryCreate) SetID(u uuid.UUID) *OCIRepositoryCreate
SetID sets the "id" field.
func (*OCIRepositoryCreate) SetNillableCreatedAt ¶
func (orc *OCIRepositoryCreate) SetNillableCreatedAt(t *time.Time) *OCIRepositoryCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*OCIRepositoryCreate) SetNillableID ¶
func (orc *OCIRepositoryCreate) SetNillableID(u *uuid.UUID) *OCIRepositoryCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*OCIRepositoryCreate) SetNillableValidatedAt ¶
func (orc *OCIRepositoryCreate) SetNillableValidatedAt(t *time.Time) *OCIRepositoryCreate
SetNillableValidatedAt sets the "validated_at" field if the given value is not nil.
func (*OCIRepositoryCreate) SetNillableValidationStatus ¶
func (orc *OCIRepositoryCreate) SetNillableValidationStatus(brvs *biz.OCIRepoValidationStatus) *OCIRepositoryCreate
SetNillableValidationStatus sets the "validation_status" field if the given value is not nil.
func (*OCIRepositoryCreate) SetOrganization ¶
func (orc *OCIRepositoryCreate) SetOrganization(o *Organization) *OCIRepositoryCreate
SetOrganization sets the "organization" edge to the Organization entity.
func (*OCIRepositoryCreate) SetOrganizationID ¶
func (orc *OCIRepositoryCreate) SetOrganizationID(id uuid.UUID) *OCIRepositoryCreate
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*OCIRepositoryCreate) SetRepo ¶
func (orc *OCIRepositoryCreate) SetRepo(s string) *OCIRepositoryCreate
SetRepo sets the "repo" field.
func (*OCIRepositoryCreate) SetSecretName ¶
func (orc *OCIRepositoryCreate) SetSecretName(s string) *OCIRepositoryCreate
SetSecretName sets the "secret_name" field.
func (*OCIRepositoryCreate) SetValidatedAt ¶
func (orc *OCIRepositoryCreate) SetValidatedAt(t time.Time) *OCIRepositoryCreate
SetValidatedAt sets the "validated_at" field.
func (*OCIRepositoryCreate) SetValidationStatus ¶
func (orc *OCIRepositoryCreate) SetValidationStatus(brvs biz.OCIRepoValidationStatus) *OCIRepositoryCreate
SetValidationStatus sets the "validation_status" field.
type OCIRepositoryCreateBulk ¶
type OCIRepositoryCreateBulk struct {
// contains filtered or unexported fields
}
OCIRepositoryCreateBulk is the builder for creating many OCIRepository entities in bulk.
func (*OCIRepositoryCreateBulk) Exec ¶
func (orcb *OCIRepositoryCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*OCIRepositoryCreateBulk) ExecX ¶
func (orcb *OCIRepositoryCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OCIRepositoryCreateBulk) Save ¶
func (orcb *OCIRepositoryCreateBulk) Save(ctx context.Context) ([]*OCIRepository, error)
Save creates the OCIRepository entities in the database.
func (*OCIRepositoryCreateBulk) SaveX ¶
func (orcb *OCIRepositoryCreateBulk) SaveX(ctx context.Context) []*OCIRepository
SaveX is like Save, but panics if an error occurs.
type OCIRepositoryDelete ¶
type OCIRepositoryDelete struct {
// contains filtered or unexported fields
}
OCIRepositoryDelete is the builder for deleting a OCIRepository entity.
func (*OCIRepositoryDelete) Exec ¶
func (ord *OCIRepositoryDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*OCIRepositoryDelete) ExecX ¶
func (ord *OCIRepositoryDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*OCIRepositoryDelete) Where ¶
func (ord *OCIRepositoryDelete) Where(ps ...predicate.OCIRepository) *OCIRepositoryDelete
Where appends a list predicates to the OCIRepositoryDelete builder.
type OCIRepositoryDeleteOne ¶
type OCIRepositoryDeleteOne struct {
// contains filtered or unexported fields
}
OCIRepositoryDeleteOne is the builder for deleting a single OCIRepository entity.
func (*OCIRepositoryDeleteOne) Exec ¶
func (ordo *OCIRepositoryDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*OCIRepositoryDeleteOne) ExecX ¶
func (ordo *OCIRepositoryDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OCIRepositoryDeleteOne) Where ¶
func (ordo *OCIRepositoryDeleteOne) Where(ps ...predicate.OCIRepository) *OCIRepositoryDeleteOne
Where appends a list predicates to the OCIRepositoryDelete builder.
type OCIRepositoryEdges ¶
type OCIRepositoryEdges struct { // Organization holds the value of the organization edge. Organization *Organization `json:"organization,omitempty"` // contains filtered or unexported fields }
OCIRepositoryEdges holds the relations/edges for other nodes in the graph.
func (OCIRepositoryEdges) OrganizationOrErr ¶
func (e OCIRepositoryEdges) OrganizationOrErr() (*Organization, error)
OrganizationOrErr returns the Organization value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type OCIRepositoryGroupBy ¶
type OCIRepositoryGroupBy struct {
// contains filtered or unexported fields
}
OCIRepositoryGroupBy is the group-by builder for OCIRepository entities.
func (*OCIRepositoryGroupBy) Aggregate ¶
func (orgb *OCIRepositoryGroupBy) Aggregate(fns ...AggregateFunc) *OCIRepositoryGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*OCIRepositoryGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OCIRepositoryGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OCIRepositoryGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OCIRepositoryGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OCIRepositoryGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OCIRepositoryGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OCIRepositoryGroupBy) Scan ¶
func (orgb *OCIRepositoryGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OCIRepositoryGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OCIRepositoryMutation ¶
type OCIRepositoryMutation struct {
// contains filtered or unexported fields
}
OCIRepositoryMutation represents an operation that mutates the OCIRepository nodes in the graph.
func (*OCIRepositoryMutation) AddField ¶
func (m *OCIRepositoryMutation) 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 (*OCIRepositoryMutation) AddedEdges ¶
func (m *OCIRepositoryMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*OCIRepositoryMutation) AddedField ¶
func (m *OCIRepositoryMutation) 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 (*OCIRepositoryMutation) AddedFields ¶
func (m *OCIRepositoryMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*OCIRepositoryMutation) AddedIDs ¶
func (m *OCIRepositoryMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*OCIRepositoryMutation) ClearEdge ¶
func (m *OCIRepositoryMutation) 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 (*OCIRepositoryMutation) ClearField ¶
func (m *OCIRepositoryMutation) 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 (*OCIRepositoryMutation) ClearOrganization ¶
func (m *OCIRepositoryMutation) ClearOrganization()
ClearOrganization clears the "organization" edge to the Organization entity.
func (*OCIRepositoryMutation) ClearedEdges ¶
func (m *OCIRepositoryMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*OCIRepositoryMutation) ClearedFields ¶
func (m *OCIRepositoryMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (OCIRepositoryMutation) Client ¶
func (m OCIRepositoryMutation) 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 (*OCIRepositoryMutation) CreatedAt ¶
func (m *OCIRepositoryMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*OCIRepositoryMutation) EdgeCleared ¶
func (m *OCIRepositoryMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*OCIRepositoryMutation) Field ¶
func (m *OCIRepositoryMutation) 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 (*OCIRepositoryMutation) FieldCleared ¶
func (m *OCIRepositoryMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*OCIRepositoryMutation) Fields ¶
func (m *OCIRepositoryMutation) 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 (*OCIRepositoryMutation) ID ¶
func (m *OCIRepositoryMutation) 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 (*OCIRepositoryMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*OCIRepositoryMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the OCIRepository entity. If the OCIRepository 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 (*OCIRepositoryMutation) 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 (*OCIRepositoryMutation) OldRepo ¶
func (m *OCIRepositoryMutation) OldRepo(ctx context.Context) (v string, err error)
OldRepo returns the old "repo" field's value of the OCIRepository entity. If the OCIRepository 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 (*OCIRepositoryMutation) OldSecretName ¶
func (m *OCIRepositoryMutation) OldSecretName(ctx context.Context) (v string, err error)
OldSecretName returns the old "secret_name" field's value of the OCIRepository entity. If the OCIRepository 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 (*OCIRepositoryMutation) OldValidatedAt ¶
OldValidatedAt returns the old "validated_at" field's value of the OCIRepository entity. If the OCIRepository 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 (*OCIRepositoryMutation) OldValidationStatus ¶
func (m *OCIRepositoryMutation) OldValidationStatus(ctx context.Context) (v biz.OCIRepoValidationStatus, err error)
OldValidationStatus returns the old "validation_status" field's value of the OCIRepository entity. If the OCIRepository 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 (*OCIRepositoryMutation) Op ¶
func (m *OCIRepositoryMutation) Op() Op
Op returns the operation name.
func (*OCIRepositoryMutation) OrganizationCleared ¶
func (m *OCIRepositoryMutation) OrganizationCleared() bool
OrganizationCleared reports if the "organization" edge to the Organization entity was cleared.
func (*OCIRepositoryMutation) OrganizationID ¶
func (m *OCIRepositoryMutation) OrganizationID() (id uuid.UUID, exists bool)
OrganizationID returns the "organization" edge ID in the mutation.
func (*OCIRepositoryMutation) OrganizationIDs ¶
func (m *OCIRepositoryMutation) OrganizationIDs() (ids []uuid.UUID)
OrganizationIDs returns the "organization" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OrganizationID instead. It exists only for internal usage by the builders.
func (*OCIRepositoryMutation) RemovedEdges ¶
func (m *OCIRepositoryMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*OCIRepositoryMutation) RemovedIDs ¶
func (m *OCIRepositoryMutation) 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 (*OCIRepositoryMutation) Repo ¶
func (m *OCIRepositoryMutation) Repo() (r string, exists bool)
Repo returns the value of the "repo" field in the mutation.
func (*OCIRepositoryMutation) ResetCreatedAt ¶
func (m *OCIRepositoryMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*OCIRepositoryMutation) ResetEdge ¶
func (m *OCIRepositoryMutation) 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 (*OCIRepositoryMutation) ResetField ¶
func (m *OCIRepositoryMutation) 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 (*OCIRepositoryMutation) ResetOrganization ¶
func (m *OCIRepositoryMutation) ResetOrganization()
ResetOrganization resets all changes to the "organization" edge.
func (*OCIRepositoryMutation) ResetRepo ¶
func (m *OCIRepositoryMutation) ResetRepo()
ResetRepo resets all changes to the "repo" field.
func (*OCIRepositoryMutation) ResetSecretName ¶
func (m *OCIRepositoryMutation) ResetSecretName()
ResetSecretName resets all changes to the "secret_name" field.
func (*OCIRepositoryMutation) ResetValidatedAt ¶
func (m *OCIRepositoryMutation) ResetValidatedAt()
ResetValidatedAt resets all changes to the "validated_at" field.
func (*OCIRepositoryMutation) ResetValidationStatus ¶
func (m *OCIRepositoryMutation) ResetValidationStatus()
ResetValidationStatus resets all changes to the "validation_status" field.
func (*OCIRepositoryMutation) SecretName ¶
func (m *OCIRepositoryMutation) SecretName() (r string, exists bool)
SecretName returns the value of the "secret_name" field in the mutation.
func (*OCIRepositoryMutation) SetCreatedAt ¶
func (m *OCIRepositoryMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*OCIRepositoryMutation) SetField ¶
func (m *OCIRepositoryMutation) 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 (*OCIRepositoryMutation) SetID ¶
func (m *OCIRepositoryMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of OCIRepository entities.
func (*OCIRepositoryMutation) SetOp ¶
func (m *OCIRepositoryMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*OCIRepositoryMutation) SetOrganizationID ¶
func (m *OCIRepositoryMutation) SetOrganizationID(id uuid.UUID)
SetOrganizationID sets the "organization" edge to the Organization entity by id.
func (*OCIRepositoryMutation) SetRepo ¶
func (m *OCIRepositoryMutation) SetRepo(s string)
SetRepo sets the "repo" field.
func (*OCIRepositoryMutation) SetSecretName ¶
func (m *OCIRepositoryMutation) SetSecretName(s string)
SetSecretName sets the "secret_name" field.
func (*OCIRepositoryMutation) SetValidatedAt ¶
func (m *OCIRepositoryMutation) SetValidatedAt(t time.Time)
SetValidatedAt sets the "validated_at" field.
func (*OCIRepositoryMutation) SetValidationStatus ¶
func (m *OCIRepositoryMutation) SetValidationStatus(brvs biz.OCIRepoValidationStatus)
SetValidationStatus sets the "validation_status" field.
func (OCIRepositoryMutation) Tx ¶
func (m OCIRepositoryMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*OCIRepositoryMutation) Type ¶
func (m *OCIRepositoryMutation) Type() string
Type returns the node type of this mutation (OCIRepository).
func (*OCIRepositoryMutation) ValidatedAt ¶
func (m *OCIRepositoryMutation) ValidatedAt() (r time.Time, exists bool)
ValidatedAt returns the value of the "validated_at" field in the mutation.
func (*OCIRepositoryMutation) ValidationStatus ¶
func (m *OCIRepositoryMutation) ValidationStatus() (r biz.OCIRepoValidationStatus, exists bool)
ValidationStatus returns the value of the "validation_status" field in the mutation.
func (*OCIRepositoryMutation) Where ¶
func (m *OCIRepositoryMutation) Where(ps ...predicate.OCIRepository)
Where appends a list predicates to the OCIRepositoryMutation builder.
func (*OCIRepositoryMutation) WhereP ¶
func (m *OCIRepositoryMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the OCIRepositoryMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type OCIRepositoryQuery ¶
type OCIRepositoryQuery struct {
// contains filtered or unexported fields
}
OCIRepositoryQuery is the builder for querying OCIRepository entities.
func (*OCIRepositoryQuery) Aggregate ¶
func (orq *OCIRepositoryQuery) Aggregate(fns ...AggregateFunc) *OCIRepositorySelect
Aggregate returns a OCIRepositorySelect configured with the given aggregations.
func (*OCIRepositoryQuery) All ¶
func (orq *OCIRepositoryQuery) All(ctx context.Context) ([]*OCIRepository, error)
All executes the query and returns a list of OCIRepositories.
func (*OCIRepositoryQuery) AllX ¶
func (orq *OCIRepositoryQuery) AllX(ctx context.Context) []*OCIRepository
AllX is like All, but panics if an error occurs.
func (*OCIRepositoryQuery) Clone ¶
func (orq *OCIRepositoryQuery) Clone() *OCIRepositoryQuery
Clone returns a duplicate of the OCIRepositoryQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*OCIRepositoryQuery) Count ¶
func (orq *OCIRepositoryQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*OCIRepositoryQuery) CountX ¶
func (orq *OCIRepositoryQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*OCIRepositoryQuery) Exist ¶
func (orq *OCIRepositoryQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*OCIRepositoryQuery) ExistX ¶
func (orq *OCIRepositoryQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*OCIRepositoryQuery) First ¶
func (orq *OCIRepositoryQuery) First(ctx context.Context) (*OCIRepository, error)
First returns the first OCIRepository entity from the query. Returns a *NotFoundError when no OCIRepository was found.
func (*OCIRepositoryQuery) FirstID ¶
FirstID returns the first OCIRepository ID from the query. Returns a *NotFoundError when no OCIRepository ID was found.
func (*OCIRepositoryQuery) FirstIDX ¶
func (orq *OCIRepositoryQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*OCIRepositoryQuery) FirstX ¶
func (orq *OCIRepositoryQuery) FirstX(ctx context.Context) *OCIRepository
FirstX is like First, but panics if an error occurs.
func (*OCIRepositoryQuery) GroupBy ¶
func (orq *OCIRepositoryQuery) GroupBy(field string, fields ...string) *OCIRepositoryGroupBy
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 { Repo string `json:"repo,omitempty"` Count int `json:"count,omitempty"` } client.OCIRepository.Query(). GroupBy(ocirepository.FieldRepo). Aggregate(ent.Count()). Scan(ctx, &v)
func (*OCIRepositoryQuery) IDsX ¶
func (orq *OCIRepositoryQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*OCIRepositoryQuery) Limit ¶
func (orq *OCIRepositoryQuery) Limit(limit int) *OCIRepositoryQuery
Limit the number of records to be returned by this query.
func (*OCIRepositoryQuery) Offset ¶
func (orq *OCIRepositoryQuery) Offset(offset int) *OCIRepositoryQuery
Offset to start from.
func (*OCIRepositoryQuery) Only ¶
func (orq *OCIRepositoryQuery) Only(ctx context.Context) (*OCIRepository, error)
Only returns a single OCIRepository entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one OCIRepository entity is found. Returns a *NotFoundError when no OCIRepository entities are found.
func (*OCIRepositoryQuery) OnlyID ¶
OnlyID is like Only, but returns the only OCIRepository ID in the query. Returns a *NotSingularError when more than one OCIRepository ID is found. Returns a *NotFoundError when no entities are found.
func (*OCIRepositoryQuery) OnlyIDX ¶
func (orq *OCIRepositoryQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*OCIRepositoryQuery) OnlyX ¶
func (orq *OCIRepositoryQuery) OnlyX(ctx context.Context) *OCIRepository
OnlyX is like Only, but panics if an error occurs.
func (*OCIRepositoryQuery) Order ¶
func (orq *OCIRepositoryQuery) Order(o ...OrderFunc) *OCIRepositoryQuery
Order specifies how the records should be ordered.
func (*OCIRepositoryQuery) QueryOrganization ¶
func (orq *OCIRepositoryQuery) QueryOrganization() *OrganizationQuery
QueryOrganization chains the current query on the "organization" edge.
func (*OCIRepositoryQuery) Select ¶
func (orq *OCIRepositoryQuery) Select(fields ...string) *OCIRepositorySelect
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 { Repo string `json:"repo,omitempty"` } client.OCIRepository.Query(). Select(ocirepository.FieldRepo). Scan(ctx, &v)
func (*OCIRepositoryQuery) Unique ¶
func (orq *OCIRepositoryQuery) Unique(unique bool) *OCIRepositoryQuery
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 (*OCIRepositoryQuery) Where ¶
func (orq *OCIRepositoryQuery) Where(ps ...predicate.OCIRepository) *OCIRepositoryQuery
Where adds a new predicate for the OCIRepositoryQuery builder.
func (*OCIRepositoryQuery) WithOrganization ¶
func (orq *OCIRepositoryQuery) WithOrganization(opts ...func(*OrganizationQuery)) *OCIRepositoryQuery
WithOrganization tells the query-builder to eager-load the nodes that are connected to the "organization" edge. The optional arguments are used to configure the query builder of the edge.
type OCIRepositorySelect ¶
type OCIRepositorySelect struct { *OCIRepositoryQuery // contains filtered or unexported fields }
OCIRepositorySelect is the builder for selecting fields of OCIRepository entities.
func (*OCIRepositorySelect) Aggregate ¶
func (ors *OCIRepositorySelect) Aggregate(fns ...AggregateFunc) *OCIRepositorySelect
Aggregate adds the given aggregation functions to the selector query.
func (*OCIRepositorySelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OCIRepositorySelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OCIRepositorySelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OCIRepositorySelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OCIRepositorySelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OCIRepositorySelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OCIRepositorySelect) Scan ¶
func (ors *OCIRepositorySelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OCIRepositorySelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OCIRepositoryUpdate ¶
type OCIRepositoryUpdate struct {
// contains filtered or unexported fields
}
OCIRepositoryUpdate is the builder for updating OCIRepository entities.
func (*OCIRepositoryUpdate) ClearOrganization ¶
func (oru *OCIRepositoryUpdate) ClearOrganization() *OCIRepositoryUpdate
ClearOrganization clears the "organization" edge to the Organization entity.
func (*OCIRepositoryUpdate) Exec ¶
func (oru *OCIRepositoryUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*OCIRepositoryUpdate) ExecX ¶
func (oru *OCIRepositoryUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OCIRepositoryUpdate) Mutation ¶
func (oru *OCIRepositoryUpdate) Mutation() *OCIRepositoryMutation
Mutation returns the OCIRepositoryMutation object of the builder.
func (*OCIRepositoryUpdate) Save ¶
func (oru *OCIRepositoryUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*OCIRepositoryUpdate) SaveX ¶
func (oru *OCIRepositoryUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*OCIRepositoryUpdate) SetNillableValidatedAt ¶
func (oru *OCIRepositoryUpdate) SetNillableValidatedAt(t *time.Time) *OCIRepositoryUpdate
SetNillableValidatedAt sets the "validated_at" field if the given value is not nil.
func (*OCIRepositoryUpdate) SetNillableValidationStatus ¶
func (oru *OCIRepositoryUpdate) SetNillableValidationStatus(brvs *biz.OCIRepoValidationStatus) *OCIRepositoryUpdate
SetNillableValidationStatus sets the "validation_status" field if the given value is not nil.
func (*OCIRepositoryUpdate) SetOrganization ¶
func (oru *OCIRepositoryUpdate) SetOrganization(o *Organization) *OCIRepositoryUpdate
SetOrganization sets the "organization" edge to the Organization entity.
func (*OCIRepositoryUpdate) SetOrganizationID ¶
func (oru *OCIRepositoryUpdate) SetOrganizationID(id uuid.UUID) *OCIRepositoryUpdate
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*OCIRepositoryUpdate) SetRepo ¶
func (oru *OCIRepositoryUpdate) SetRepo(s string) *OCIRepositoryUpdate
SetRepo sets the "repo" field.
func (*OCIRepositoryUpdate) SetSecretName ¶
func (oru *OCIRepositoryUpdate) SetSecretName(s string) *OCIRepositoryUpdate
SetSecretName sets the "secret_name" field.
func (*OCIRepositoryUpdate) SetValidatedAt ¶
func (oru *OCIRepositoryUpdate) SetValidatedAt(t time.Time) *OCIRepositoryUpdate
SetValidatedAt sets the "validated_at" field.
func (*OCIRepositoryUpdate) SetValidationStatus ¶
func (oru *OCIRepositoryUpdate) SetValidationStatus(brvs biz.OCIRepoValidationStatus) *OCIRepositoryUpdate
SetValidationStatus sets the "validation_status" field.
func (*OCIRepositoryUpdate) Where ¶
func (oru *OCIRepositoryUpdate) Where(ps ...predicate.OCIRepository) *OCIRepositoryUpdate
Where appends a list predicates to the OCIRepositoryUpdate builder.
type OCIRepositoryUpdateOne ¶
type OCIRepositoryUpdateOne struct {
// contains filtered or unexported fields
}
OCIRepositoryUpdateOne is the builder for updating a single OCIRepository entity.
func (*OCIRepositoryUpdateOne) ClearOrganization ¶
func (oruo *OCIRepositoryUpdateOne) ClearOrganization() *OCIRepositoryUpdateOne
ClearOrganization clears the "organization" edge to the Organization entity.
func (*OCIRepositoryUpdateOne) Exec ¶
func (oruo *OCIRepositoryUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*OCIRepositoryUpdateOne) ExecX ¶
func (oruo *OCIRepositoryUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OCIRepositoryUpdateOne) Mutation ¶
func (oruo *OCIRepositoryUpdateOne) Mutation() *OCIRepositoryMutation
Mutation returns the OCIRepositoryMutation object of the builder.
func (*OCIRepositoryUpdateOne) Save ¶
func (oruo *OCIRepositoryUpdateOne) Save(ctx context.Context) (*OCIRepository, error)
Save executes the query and returns the updated OCIRepository entity.
func (*OCIRepositoryUpdateOne) SaveX ¶
func (oruo *OCIRepositoryUpdateOne) SaveX(ctx context.Context) *OCIRepository
SaveX is like Save, but panics if an error occurs.
func (*OCIRepositoryUpdateOne) Select ¶
func (oruo *OCIRepositoryUpdateOne) Select(field string, fields ...string) *OCIRepositoryUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*OCIRepositoryUpdateOne) SetNillableValidatedAt ¶
func (oruo *OCIRepositoryUpdateOne) SetNillableValidatedAt(t *time.Time) *OCIRepositoryUpdateOne
SetNillableValidatedAt sets the "validated_at" field if the given value is not nil.
func (*OCIRepositoryUpdateOne) SetNillableValidationStatus ¶
func (oruo *OCIRepositoryUpdateOne) SetNillableValidationStatus(brvs *biz.OCIRepoValidationStatus) *OCIRepositoryUpdateOne
SetNillableValidationStatus sets the "validation_status" field if the given value is not nil.
func (*OCIRepositoryUpdateOne) SetOrganization ¶
func (oruo *OCIRepositoryUpdateOne) SetOrganization(o *Organization) *OCIRepositoryUpdateOne
SetOrganization sets the "organization" edge to the Organization entity.
func (*OCIRepositoryUpdateOne) SetOrganizationID ¶
func (oruo *OCIRepositoryUpdateOne) SetOrganizationID(id uuid.UUID) *OCIRepositoryUpdateOne
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*OCIRepositoryUpdateOne) SetRepo ¶
func (oruo *OCIRepositoryUpdateOne) SetRepo(s string) *OCIRepositoryUpdateOne
SetRepo sets the "repo" field.
func (*OCIRepositoryUpdateOne) SetSecretName ¶
func (oruo *OCIRepositoryUpdateOne) SetSecretName(s string) *OCIRepositoryUpdateOne
SetSecretName sets the "secret_name" field.
func (*OCIRepositoryUpdateOne) SetValidatedAt ¶
func (oruo *OCIRepositoryUpdateOne) SetValidatedAt(t time.Time) *OCIRepositoryUpdateOne
SetValidatedAt sets the "validated_at" field.
func (*OCIRepositoryUpdateOne) SetValidationStatus ¶
func (oruo *OCIRepositoryUpdateOne) SetValidationStatus(brvs biz.OCIRepoValidationStatus) *OCIRepositoryUpdateOne
SetValidationStatus sets the "validation_status" field.
func (*OCIRepositoryUpdateOne) Where ¶
func (oruo *OCIRepositoryUpdateOne) Where(ps ...predicate.OCIRepository) *OCIRepositoryUpdateOne
Where appends a list predicates to the OCIRepositoryUpdate builder.
type Organization ¶
type Organization struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the OrganizationQuery when eager-loading is set. Edges OrganizationEdges `json:"edges"` // contains filtered or unexported fields }
Organization is the model entity for the Organization schema.
func (*Organization) QueryIntegrations ¶
func (o *Organization) QueryIntegrations() *IntegrationQuery
QueryIntegrations queries the "integrations" edge of the Organization entity.
func (*Organization) QueryMemberships ¶
func (o *Organization) QueryMemberships() *MembershipQuery
QueryMemberships queries the "memberships" edge of the Organization entity.
func (*Organization) QueryOciRepositories ¶
func (o *Organization) QueryOciRepositories() *OCIRepositoryQuery
QueryOciRepositories queries the "oci_repositories" edge of the Organization entity.
func (*Organization) QueryWorkflowContracts ¶
func (o *Organization) QueryWorkflowContracts() *WorkflowContractQuery
QueryWorkflowContracts queries the "workflow_contracts" edge of the Organization entity.
func (*Organization) QueryWorkflows ¶
func (o *Organization) QueryWorkflows() *WorkflowQuery
QueryWorkflows queries the "workflows" edge of the Organization entity.
func (*Organization) String ¶
func (o *Organization) String() string
String implements the fmt.Stringer.
func (*Organization) Unwrap ¶
func (o *Organization) Unwrap() *Organization
Unwrap unwraps the Organization 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 (*Organization) Update ¶
func (o *Organization) Update() *OrganizationUpdateOne
Update returns a builder for updating this Organization. Note that you need to call Organization.Unwrap() before calling this method if this Organization was returned from a transaction, and the transaction was committed or rolled back.
type OrganizationClient ¶
type OrganizationClient struct {
// contains filtered or unexported fields
}
OrganizationClient is a client for the Organization schema.
func NewOrganizationClient ¶
func NewOrganizationClient(c config) *OrganizationClient
NewOrganizationClient returns a client for the Organization from the given config.
func (*OrganizationClient) Create ¶
func (c *OrganizationClient) Create() *OrganizationCreate
Create returns a builder for creating a Organization entity.
func (*OrganizationClient) CreateBulk ¶
func (c *OrganizationClient) CreateBulk(builders ...*OrganizationCreate) *OrganizationCreateBulk
CreateBulk returns a builder for creating a bulk of Organization entities.
func (*OrganizationClient) Delete ¶
func (c *OrganizationClient) Delete() *OrganizationDelete
Delete returns a delete builder for Organization.
func (*OrganizationClient) DeleteOne ¶
func (c *OrganizationClient) DeleteOne(o *Organization) *OrganizationDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*OrganizationClient) DeleteOneID ¶
func (c *OrganizationClient) DeleteOneID(id uuid.UUID) *OrganizationDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*OrganizationClient) Get ¶
func (c *OrganizationClient) Get(ctx context.Context, id uuid.UUID) (*Organization, error)
Get returns a Organization entity by its id.
func (*OrganizationClient) GetX ¶
func (c *OrganizationClient) GetX(ctx context.Context, id uuid.UUID) *Organization
GetX is like Get, but panics if an error occurs.
func (*OrganizationClient) Hooks ¶
func (c *OrganizationClient) Hooks() []Hook
Hooks returns the client hooks.
func (*OrganizationClient) Intercept ¶
func (c *OrganizationClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `organization.Intercept(f(g(h())))`.
func (*OrganizationClient) Interceptors ¶
func (c *OrganizationClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*OrganizationClient) Query ¶
func (c *OrganizationClient) Query() *OrganizationQuery
Query returns a query builder for Organization.
func (*OrganizationClient) QueryIntegrations ¶
func (c *OrganizationClient) QueryIntegrations(o *Organization) *IntegrationQuery
QueryIntegrations queries the integrations edge of a Organization.
func (*OrganizationClient) QueryMemberships ¶
func (c *OrganizationClient) QueryMemberships(o *Organization) *MembershipQuery
QueryMemberships queries the memberships edge of a Organization.
func (*OrganizationClient) QueryOciRepositories ¶
func (c *OrganizationClient) QueryOciRepositories(o *Organization) *OCIRepositoryQuery
QueryOciRepositories queries the oci_repositories edge of a Organization.
func (*OrganizationClient) QueryWorkflowContracts ¶
func (c *OrganizationClient) QueryWorkflowContracts(o *Organization) *WorkflowContractQuery
QueryWorkflowContracts queries the workflow_contracts edge of a Organization.
func (*OrganizationClient) QueryWorkflows ¶
func (c *OrganizationClient) QueryWorkflows(o *Organization) *WorkflowQuery
QueryWorkflows queries the workflows edge of a Organization.
func (*OrganizationClient) Update ¶
func (c *OrganizationClient) Update() *OrganizationUpdate
Update returns an update builder for Organization.
func (*OrganizationClient) UpdateOne ¶
func (c *OrganizationClient) UpdateOne(o *Organization) *OrganizationUpdateOne
UpdateOne returns an update builder for the given entity.
func (*OrganizationClient) UpdateOneID ¶
func (c *OrganizationClient) UpdateOneID(id uuid.UUID) *OrganizationUpdateOne
UpdateOneID returns an update builder for the given id.
func (*OrganizationClient) Use ¶
func (c *OrganizationClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `organization.Hooks(f(g(h())))`.
type OrganizationCreate ¶
type OrganizationCreate struct {
// contains filtered or unexported fields
}
OrganizationCreate is the builder for creating a Organization entity.
func (*OrganizationCreate) AddIntegrationIDs ¶
func (oc *OrganizationCreate) AddIntegrationIDs(ids ...uuid.UUID) *OrganizationCreate
AddIntegrationIDs adds the "integrations" edge to the Integration entity by IDs.
func (*OrganizationCreate) AddIntegrations ¶
func (oc *OrganizationCreate) AddIntegrations(i ...*Integration) *OrganizationCreate
AddIntegrations adds the "integrations" edges to the Integration entity.
func (*OrganizationCreate) AddMembershipIDs ¶
func (oc *OrganizationCreate) AddMembershipIDs(ids ...uuid.UUID) *OrganizationCreate
AddMembershipIDs adds the "memberships" edge to the Membership entity by IDs.
func (*OrganizationCreate) AddMemberships ¶
func (oc *OrganizationCreate) AddMemberships(m ...*Membership) *OrganizationCreate
AddMemberships adds the "memberships" edges to the Membership entity.
func (*OrganizationCreate) AddOciRepositories ¶
func (oc *OrganizationCreate) AddOciRepositories(o ...*OCIRepository) *OrganizationCreate
AddOciRepositories adds the "oci_repositories" edges to the OCIRepository entity.
func (*OrganizationCreate) AddOciRepositoryIDs ¶
func (oc *OrganizationCreate) AddOciRepositoryIDs(ids ...uuid.UUID) *OrganizationCreate
AddOciRepositoryIDs adds the "oci_repositories" edge to the OCIRepository entity by IDs.
func (*OrganizationCreate) AddWorkflowContractIDs ¶
func (oc *OrganizationCreate) AddWorkflowContractIDs(ids ...uuid.UUID) *OrganizationCreate
AddWorkflowContractIDs adds the "workflow_contracts" edge to the WorkflowContract entity by IDs.
func (*OrganizationCreate) AddWorkflowContracts ¶
func (oc *OrganizationCreate) AddWorkflowContracts(w ...*WorkflowContract) *OrganizationCreate
AddWorkflowContracts adds the "workflow_contracts" edges to the WorkflowContract entity.
func (*OrganizationCreate) AddWorkflowIDs ¶
func (oc *OrganizationCreate) AddWorkflowIDs(ids ...uuid.UUID) *OrganizationCreate
AddWorkflowIDs adds the "workflows" edge to the Workflow entity by IDs.
func (*OrganizationCreate) AddWorkflows ¶
func (oc *OrganizationCreate) AddWorkflows(w ...*Workflow) *OrganizationCreate
AddWorkflows adds the "workflows" edges to the Workflow entity.
func (*OrganizationCreate) Exec ¶
func (oc *OrganizationCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*OrganizationCreate) ExecX ¶
func (oc *OrganizationCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationCreate) Mutation ¶
func (oc *OrganizationCreate) Mutation() *OrganizationMutation
Mutation returns the OrganizationMutation object of the builder.
func (*OrganizationCreate) Save ¶
func (oc *OrganizationCreate) Save(ctx context.Context) (*Organization, error)
Save creates the Organization in the database.
func (*OrganizationCreate) SaveX ¶
func (oc *OrganizationCreate) SaveX(ctx context.Context) *Organization
SaveX calls Save and panics if Save returns an error.
func (*OrganizationCreate) SetCreatedAt ¶
func (oc *OrganizationCreate) SetCreatedAt(t time.Time) *OrganizationCreate
SetCreatedAt sets the "created_at" field.
func (*OrganizationCreate) SetID ¶
func (oc *OrganizationCreate) SetID(u uuid.UUID) *OrganizationCreate
SetID sets the "id" field.
func (*OrganizationCreate) SetName ¶
func (oc *OrganizationCreate) SetName(s string) *OrganizationCreate
SetName sets the "name" field.
func (*OrganizationCreate) SetNillableCreatedAt ¶
func (oc *OrganizationCreate) SetNillableCreatedAt(t *time.Time) *OrganizationCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*OrganizationCreate) SetNillableID ¶
func (oc *OrganizationCreate) SetNillableID(u *uuid.UUID) *OrganizationCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*OrganizationCreate) SetNillableName ¶
func (oc *OrganizationCreate) SetNillableName(s *string) *OrganizationCreate
SetNillableName sets the "name" field if the given value is not nil.
type OrganizationCreateBulk ¶
type OrganizationCreateBulk struct {
// contains filtered or unexported fields
}
OrganizationCreateBulk is the builder for creating many Organization entities in bulk.
func (*OrganizationCreateBulk) Exec ¶
func (ocb *OrganizationCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*OrganizationCreateBulk) ExecX ¶
func (ocb *OrganizationCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationCreateBulk) Save ¶
func (ocb *OrganizationCreateBulk) Save(ctx context.Context) ([]*Organization, error)
Save creates the Organization entities in the database.
func (*OrganizationCreateBulk) SaveX ¶
func (ocb *OrganizationCreateBulk) SaveX(ctx context.Context) []*Organization
SaveX is like Save, but panics if an error occurs.
type OrganizationDelete ¶
type OrganizationDelete struct {
// contains filtered or unexported fields
}
OrganizationDelete is the builder for deleting a Organization entity.
func (*OrganizationDelete) Exec ¶
func (od *OrganizationDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*OrganizationDelete) ExecX ¶
func (od *OrganizationDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationDelete) Where ¶
func (od *OrganizationDelete) Where(ps ...predicate.Organization) *OrganizationDelete
Where appends a list predicates to the OrganizationDelete builder.
type OrganizationDeleteOne ¶
type OrganizationDeleteOne struct {
// contains filtered or unexported fields
}
OrganizationDeleteOne is the builder for deleting a single Organization entity.
func (*OrganizationDeleteOne) Exec ¶
func (odo *OrganizationDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*OrganizationDeleteOne) ExecX ¶
func (odo *OrganizationDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationDeleteOne) Where ¶
func (odo *OrganizationDeleteOne) Where(ps ...predicate.Organization) *OrganizationDeleteOne
Where appends a list predicates to the OrganizationDelete builder.
type OrganizationEdges ¶
type OrganizationEdges struct { // Memberships holds the value of the memberships edge. Memberships []*Membership `json:"memberships,omitempty"` // WorkflowContracts holds the value of the workflow_contracts edge. WorkflowContracts []*WorkflowContract `json:"workflow_contracts,omitempty"` // Workflows holds the value of the workflows edge. Workflows []*Workflow `json:"workflows,omitempty"` // OciRepositories holds the value of the oci_repositories edge. OciRepositories []*OCIRepository `json:"oci_repositories,omitempty"` // Integrations holds the value of the integrations edge. Integrations []*Integration `json:"integrations,omitempty"` // contains filtered or unexported fields }
OrganizationEdges holds the relations/edges for other nodes in the graph.
func (OrganizationEdges) IntegrationsOrErr ¶
func (e OrganizationEdges) IntegrationsOrErr() ([]*Integration, error)
IntegrationsOrErr returns the Integrations value or an error if the edge was not loaded in eager-loading.
func (OrganizationEdges) MembershipsOrErr ¶
func (e OrganizationEdges) MembershipsOrErr() ([]*Membership, error)
MembershipsOrErr returns the Memberships value or an error if the edge was not loaded in eager-loading.
func (OrganizationEdges) OciRepositoriesOrErr ¶
func (e OrganizationEdges) OciRepositoriesOrErr() ([]*OCIRepository, error)
OciRepositoriesOrErr returns the OciRepositories value or an error if the edge was not loaded in eager-loading.
func (OrganizationEdges) WorkflowContractsOrErr ¶
func (e OrganizationEdges) WorkflowContractsOrErr() ([]*WorkflowContract, error)
WorkflowContractsOrErr returns the WorkflowContracts value or an error if the edge was not loaded in eager-loading.
func (OrganizationEdges) WorkflowsOrErr ¶
func (e OrganizationEdges) WorkflowsOrErr() ([]*Workflow, error)
WorkflowsOrErr returns the Workflows value or an error if the edge was not loaded in eager-loading.
type OrganizationGroupBy ¶
type OrganizationGroupBy struct {
// contains filtered or unexported fields
}
OrganizationGroupBy is the group-by builder for Organization entities.
func (*OrganizationGroupBy) Aggregate ¶
func (ogb *OrganizationGroupBy) Aggregate(fns ...AggregateFunc) *OrganizationGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*OrganizationGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OrganizationGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OrganizationGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OrganizationGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OrganizationGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OrganizationGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OrganizationGroupBy) Scan ¶
func (ogb *OrganizationGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OrganizationGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OrganizationMutation ¶
type OrganizationMutation struct {
// contains filtered or unexported fields
}
OrganizationMutation represents an operation that mutates the Organization nodes in the graph.
func (*OrganizationMutation) AddField ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) AddIntegrationIDs ¶
func (m *OrganizationMutation) AddIntegrationIDs(ids ...uuid.UUID)
AddIntegrationIDs adds the "integrations" edge to the Integration entity by ids.
func (*OrganizationMutation) AddMembershipIDs ¶
func (m *OrganizationMutation) AddMembershipIDs(ids ...uuid.UUID)
AddMembershipIDs adds the "memberships" edge to the Membership entity by ids.
func (*OrganizationMutation) AddOciRepositoryIDs ¶
func (m *OrganizationMutation) AddOciRepositoryIDs(ids ...uuid.UUID)
AddOciRepositoryIDs adds the "oci_repositories" edge to the OCIRepository entity by ids.
func (*OrganizationMutation) AddWorkflowContractIDs ¶
func (m *OrganizationMutation) AddWorkflowContractIDs(ids ...uuid.UUID)
AddWorkflowContractIDs adds the "workflow_contracts" edge to the WorkflowContract entity by ids.
func (*OrganizationMutation) AddWorkflowIDs ¶
func (m *OrganizationMutation) AddWorkflowIDs(ids ...uuid.UUID)
AddWorkflowIDs adds the "workflows" edge to the Workflow entity by ids.
func (*OrganizationMutation) AddedEdges ¶
func (m *OrganizationMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*OrganizationMutation) AddedField ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) AddedFields ¶
func (m *OrganizationMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*OrganizationMutation) AddedIDs ¶
func (m *OrganizationMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*OrganizationMutation) ClearEdge ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) ClearField ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) ClearIntegrations ¶
func (m *OrganizationMutation) ClearIntegrations()
ClearIntegrations clears the "integrations" edge to the Integration entity.
func (*OrganizationMutation) ClearMemberships ¶
func (m *OrganizationMutation) ClearMemberships()
ClearMemberships clears the "memberships" edge to the Membership entity.
func (*OrganizationMutation) ClearOciRepositories ¶
func (m *OrganizationMutation) ClearOciRepositories()
ClearOciRepositories clears the "oci_repositories" edge to the OCIRepository entity.
func (*OrganizationMutation) ClearWorkflowContracts ¶
func (m *OrganizationMutation) ClearWorkflowContracts()
ClearWorkflowContracts clears the "workflow_contracts" edge to the WorkflowContract entity.
func (*OrganizationMutation) ClearWorkflows ¶
func (m *OrganizationMutation) ClearWorkflows()
ClearWorkflows clears the "workflows" edge to the Workflow entity.
func (*OrganizationMutation) ClearedEdges ¶
func (m *OrganizationMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*OrganizationMutation) ClearedFields ¶
func (m *OrganizationMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (OrganizationMutation) Client ¶
func (m OrganizationMutation) 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 (*OrganizationMutation) CreatedAt ¶
func (m *OrganizationMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*OrganizationMutation) EdgeCleared ¶
func (m *OrganizationMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*OrganizationMutation) Field ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) FieldCleared ¶
func (m *OrganizationMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*OrganizationMutation) Fields ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) ID ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*OrganizationMutation) IntegrationsCleared ¶
func (m *OrganizationMutation) IntegrationsCleared() bool
IntegrationsCleared reports if the "integrations" edge to the Integration entity was cleared.
func (*OrganizationMutation) IntegrationsIDs ¶
func (m *OrganizationMutation) IntegrationsIDs() (ids []uuid.UUID)
IntegrationsIDs returns the "integrations" edge IDs in the mutation.
func (*OrganizationMutation) MembershipsCleared ¶
func (m *OrganizationMutation) MembershipsCleared() bool
MembershipsCleared reports if the "memberships" edge to the Membership entity was cleared.
func (*OrganizationMutation) MembershipsIDs ¶
func (m *OrganizationMutation) MembershipsIDs() (ids []uuid.UUID)
MembershipsIDs returns the "memberships" edge IDs in the mutation.
func (*OrganizationMutation) Name ¶
func (m *OrganizationMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*OrganizationMutation) OciRepositoriesCleared ¶
func (m *OrganizationMutation) OciRepositoriesCleared() bool
OciRepositoriesCleared reports if the "oci_repositories" edge to the OCIRepository entity was cleared.
func (*OrganizationMutation) OciRepositoriesIDs ¶
func (m *OrganizationMutation) OciRepositoriesIDs() (ids []uuid.UUID)
OciRepositoriesIDs returns the "oci_repositories" edge IDs in the mutation.
func (*OrganizationMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Organization entity. If the Organization 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 (*OrganizationMutation) 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 (*OrganizationMutation) OldName ¶
func (m *OrganizationMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Organization entity. If the Organization 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 (*OrganizationMutation) Op ¶
func (m *OrganizationMutation) Op() Op
Op returns the operation name.
func (*OrganizationMutation) RemoveIntegrationIDs ¶
func (m *OrganizationMutation) RemoveIntegrationIDs(ids ...uuid.UUID)
RemoveIntegrationIDs removes the "integrations" edge to the Integration entity by IDs.
func (*OrganizationMutation) RemoveMembershipIDs ¶
func (m *OrganizationMutation) RemoveMembershipIDs(ids ...uuid.UUID)
RemoveMembershipIDs removes the "memberships" edge to the Membership entity by IDs.
func (*OrganizationMutation) RemoveOciRepositoryIDs ¶
func (m *OrganizationMutation) RemoveOciRepositoryIDs(ids ...uuid.UUID)
RemoveOciRepositoryIDs removes the "oci_repositories" edge to the OCIRepository entity by IDs.
func (*OrganizationMutation) RemoveWorkflowContractIDs ¶
func (m *OrganizationMutation) RemoveWorkflowContractIDs(ids ...uuid.UUID)
RemoveWorkflowContractIDs removes the "workflow_contracts" edge to the WorkflowContract entity by IDs.
func (*OrganizationMutation) RemoveWorkflowIDs ¶
func (m *OrganizationMutation) RemoveWorkflowIDs(ids ...uuid.UUID)
RemoveWorkflowIDs removes the "workflows" edge to the Workflow entity by IDs.
func (*OrganizationMutation) RemovedEdges ¶
func (m *OrganizationMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*OrganizationMutation) RemovedIDs ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) RemovedIntegrationsIDs ¶
func (m *OrganizationMutation) RemovedIntegrationsIDs() (ids []uuid.UUID)
RemovedIntegrations returns the removed IDs of the "integrations" edge to the Integration entity.
func (*OrganizationMutation) RemovedMembershipsIDs ¶
func (m *OrganizationMutation) RemovedMembershipsIDs() (ids []uuid.UUID)
RemovedMemberships returns the removed IDs of the "memberships" edge to the Membership entity.
func (*OrganizationMutation) RemovedOciRepositoriesIDs ¶
func (m *OrganizationMutation) RemovedOciRepositoriesIDs() (ids []uuid.UUID)
RemovedOciRepositories returns the removed IDs of the "oci_repositories" edge to the OCIRepository entity.
func (*OrganizationMutation) RemovedWorkflowContractsIDs ¶
func (m *OrganizationMutation) RemovedWorkflowContractsIDs() (ids []uuid.UUID)
RemovedWorkflowContracts returns the removed IDs of the "workflow_contracts" edge to the WorkflowContract entity.
func (*OrganizationMutation) RemovedWorkflowsIDs ¶
func (m *OrganizationMutation) RemovedWorkflowsIDs() (ids []uuid.UUID)
RemovedWorkflows returns the removed IDs of the "workflows" edge to the Workflow entity.
func (*OrganizationMutation) ResetCreatedAt ¶
func (m *OrganizationMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*OrganizationMutation) ResetEdge ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) ResetField ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) ResetIntegrations ¶
func (m *OrganizationMutation) ResetIntegrations()
ResetIntegrations resets all changes to the "integrations" edge.
func (*OrganizationMutation) ResetMemberships ¶
func (m *OrganizationMutation) ResetMemberships()
ResetMemberships resets all changes to the "memberships" edge.
func (*OrganizationMutation) ResetName ¶
func (m *OrganizationMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*OrganizationMutation) ResetOciRepositories ¶
func (m *OrganizationMutation) ResetOciRepositories()
ResetOciRepositories resets all changes to the "oci_repositories" edge.
func (*OrganizationMutation) ResetWorkflowContracts ¶
func (m *OrganizationMutation) ResetWorkflowContracts()
ResetWorkflowContracts resets all changes to the "workflow_contracts" edge.
func (*OrganizationMutation) ResetWorkflows ¶
func (m *OrganizationMutation) ResetWorkflows()
ResetWorkflows resets all changes to the "workflows" edge.
func (*OrganizationMutation) SetCreatedAt ¶
func (m *OrganizationMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*OrganizationMutation) SetField ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) SetID ¶
func (m *OrganizationMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Organization entities.
func (*OrganizationMutation) SetName ¶
func (m *OrganizationMutation) SetName(s string)
SetName sets the "name" field.
func (*OrganizationMutation) SetOp ¶
func (m *OrganizationMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (OrganizationMutation) Tx ¶
func (m OrganizationMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*OrganizationMutation) Type ¶
func (m *OrganizationMutation) Type() string
Type returns the node type of this mutation (Organization).
func (*OrganizationMutation) Where ¶
func (m *OrganizationMutation) Where(ps ...predicate.Organization)
Where appends a list predicates to the OrganizationMutation builder.
func (*OrganizationMutation) WhereP ¶
func (m *OrganizationMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the OrganizationMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
func (*OrganizationMutation) WorkflowContractsCleared ¶
func (m *OrganizationMutation) WorkflowContractsCleared() bool
WorkflowContractsCleared reports if the "workflow_contracts" edge to the WorkflowContract entity was cleared.
func (*OrganizationMutation) WorkflowContractsIDs ¶
func (m *OrganizationMutation) WorkflowContractsIDs() (ids []uuid.UUID)
WorkflowContractsIDs returns the "workflow_contracts" edge IDs in the mutation.
func (*OrganizationMutation) WorkflowsCleared ¶
func (m *OrganizationMutation) WorkflowsCleared() bool
WorkflowsCleared reports if the "workflows" edge to the Workflow entity was cleared.
func (*OrganizationMutation) WorkflowsIDs ¶
func (m *OrganizationMutation) WorkflowsIDs() (ids []uuid.UUID)
WorkflowsIDs returns the "workflows" edge IDs in the mutation.
type OrganizationQuery ¶
type OrganizationQuery struct {
// contains filtered or unexported fields
}
OrganizationQuery is the builder for querying Organization entities.
func (*OrganizationQuery) Aggregate ¶
func (oq *OrganizationQuery) Aggregate(fns ...AggregateFunc) *OrganizationSelect
Aggregate returns a OrganizationSelect configured with the given aggregations.
func (*OrganizationQuery) All ¶
func (oq *OrganizationQuery) All(ctx context.Context) ([]*Organization, error)
All executes the query and returns a list of Organizations.
func (*OrganizationQuery) AllX ¶
func (oq *OrganizationQuery) AllX(ctx context.Context) []*Organization
AllX is like All, but panics if an error occurs.
func (*OrganizationQuery) Clone ¶
func (oq *OrganizationQuery) Clone() *OrganizationQuery
Clone returns a duplicate of the OrganizationQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*OrganizationQuery) Count ¶
func (oq *OrganizationQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*OrganizationQuery) CountX ¶
func (oq *OrganizationQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*OrganizationQuery) Exist ¶
func (oq *OrganizationQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*OrganizationQuery) ExistX ¶
func (oq *OrganizationQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*OrganizationQuery) First ¶
func (oq *OrganizationQuery) First(ctx context.Context) (*Organization, error)
First returns the first Organization entity from the query. Returns a *NotFoundError when no Organization was found.
func (*OrganizationQuery) FirstID ¶
FirstID returns the first Organization ID from the query. Returns a *NotFoundError when no Organization ID was found.
func (*OrganizationQuery) FirstIDX ¶
func (oq *OrganizationQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*OrganizationQuery) FirstX ¶
func (oq *OrganizationQuery) FirstX(ctx context.Context) *Organization
FirstX is like First, but panics if an error occurs.
func (*OrganizationQuery) GroupBy ¶
func (oq *OrganizationQuery) GroupBy(field string, fields ...string) *OrganizationGroupBy
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 { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.Organization.Query(). GroupBy(organization.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*OrganizationQuery) IDsX ¶
func (oq *OrganizationQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*OrganizationQuery) Limit ¶
func (oq *OrganizationQuery) Limit(limit int) *OrganizationQuery
Limit the number of records to be returned by this query.
func (*OrganizationQuery) Offset ¶
func (oq *OrganizationQuery) Offset(offset int) *OrganizationQuery
Offset to start from.
func (*OrganizationQuery) Only ¶
func (oq *OrganizationQuery) Only(ctx context.Context) (*Organization, error)
Only returns a single Organization entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Organization entity is found. Returns a *NotFoundError when no Organization entities are found.
func (*OrganizationQuery) OnlyID ¶
OnlyID is like Only, but returns the only Organization ID in the query. Returns a *NotSingularError when more than one Organization ID is found. Returns a *NotFoundError when no entities are found.
func (*OrganizationQuery) OnlyIDX ¶
func (oq *OrganizationQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*OrganizationQuery) OnlyX ¶
func (oq *OrganizationQuery) OnlyX(ctx context.Context) *Organization
OnlyX is like Only, but panics if an error occurs.
func (*OrganizationQuery) Order ¶
func (oq *OrganizationQuery) Order(o ...OrderFunc) *OrganizationQuery
Order specifies how the records should be ordered.
func (*OrganizationQuery) QueryIntegrations ¶
func (oq *OrganizationQuery) QueryIntegrations() *IntegrationQuery
QueryIntegrations chains the current query on the "integrations" edge.
func (*OrganizationQuery) QueryMemberships ¶
func (oq *OrganizationQuery) QueryMemberships() *MembershipQuery
QueryMemberships chains the current query on the "memberships" edge.
func (*OrganizationQuery) QueryOciRepositories ¶
func (oq *OrganizationQuery) QueryOciRepositories() *OCIRepositoryQuery
QueryOciRepositories chains the current query on the "oci_repositories" edge.
func (*OrganizationQuery) QueryWorkflowContracts ¶
func (oq *OrganizationQuery) QueryWorkflowContracts() *WorkflowContractQuery
QueryWorkflowContracts chains the current query on the "workflow_contracts" edge.
func (*OrganizationQuery) QueryWorkflows ¶
func (oq *OrganizationQuery) QueryWorkflows() *WorkflowQuery
QueryWorkflows chains the current query on the "workflows" edge.
func (*OrganizationQuery) Select ¶
func (oq *OrganizationQuery) Select(fields ...string) *OrganizationSelect
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 { Name string `json:"name,omitempty"` } client.Organization.Query(). Select(organization.FieldName). Scan(ctx, &v)
func (*OrganizationQuery) Unique ¶
func (oq *OrganizationQuery) Unique(unique bool) *OrganizationQuery
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 (*OrganizationQuery) Where ¶
func (oq *OrganizationQuery) Where(ps ...predicate.Organization) *OrganizationQuery
Where adds a new predicate for the OrganizationQuery builder.
func (*OrganizationQuery) WithIntegrations ¶
func (oq *OrganizationQuery) WithIntegrations(opts ...func(*IntegrationQuery)) *OrganizationQuery
WithIntegrations tells the query-builder to eager-load the nodes that are connected to the "integrations" edge. The optional arguments are used to configure the query builder of the edge.
func (*OrganizationQuery) WithMemberships ¶
func (oq *OrganizationQuery) WithMemberships(opts ...func(*MembershipQuery)) *OrganizationQuery
WithMemberships tells the query-builder to eager-load the nodes that are connected to the "memberships" edge. The optional arguments are used to configure the query builder of the edge.
func (*OrganizationQuery) WithOciRepositories ¶
func (oq *OrganizationQuery) WithOciRepositories(opts ...func(*OCIRepositoryQuery)) *OrganizationQuery
WithOciRepositories tells the query-builder to eager-load the nodes that are connected to the "oci_repositories" edge. The optional arguments are used to configure the query builder of the edge.
func (*OrganizationQuery) WithWorkflowContracts ¶
func (oq *OrganizationQuery) WithWorkflowContracts(opts ...func(*WorkflowContractQuery)) *OrganizationQuery
WithWorkflowContracts tells the query-builder to eager-load the nodes that are connected to the "workflow_contracts" edge. The optional arguments are used to configure the query builder of the edge.
func (*OrganizationQuery) WithWorkflows ¶
func (oq *OrganizationQuery) WithWorkflows(opts ...func(*WorkflowQuery)) *OrganizationQuery
WithWorkflows tells the query-builder to eager-load the nodes that are connected to the "workflows" edge. The optional arguments are used to configure the query builder of the edge.
type OrganizationSelect ¶
type OrganizationSelect struct { *OrganizationQuery // contains filtered or unexported fields }
OrganizationSelect is the builder for selecting fields of Organization entities.
func (*OrganizationSelect) Aggregate ¶
func (os *OrganizationSelect) Aggregate(fns ...AggregateFunc) *OrganizationSelect
Aggregate adds the given aggregation functions to the selector query.
func (*OrganizationSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OrganizationSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OrganizationSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OrganizationSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OrganizationSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OrganizationSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OrganizationSelect) Scan ¶
func (os *OrganizationSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OrganizationSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OrganizationUpdate ¶
type OrganizationUpdate struct {
// contains filtered or unexported fields
}
OrganizationUpdate is the builder for updating Organization entities.
func (*OrganizationUpdate) AddIntegrationIDs ¶
func (ou *OrganizationUpdate) AddIntegrationIDs(ids ...uuid.UUID) *OrganizationUpdate
AddIntegrationIDs adds the "integrations" edge to the Integration entity by IDs.
func (*OrganizationUpdate) AddIntegrations ¶
func (ou *OrganizationUpdate) AddIntegrations(i ...*Integration) *OrganizationUpdate
AddIntegrations adds the "integrations" edges to the Integration entity.
func (*OrganizationUpdate) AddMembershipIDs ¶
func (ou *OrganizationUpdate) AddMembershipIDs(ids ...uuid.UUID) *OrganizationUpdate
AddMembershipIDs adds the "memberships" edge to the Membership entity by IDs.
func (*OrganizationUpdate) AddMemberships ¶
func (ou *OrganizationUpdate) AddMemberships(m ...*Membership) *OrganizationUpdate
AddMemberships adds the "memberships" edges to the Membership entity.
func (*OrganizationUpdate) AddOciRepositories ¶
func (ou *OrganizationUpdate) AddOciRepositories(o ...*OCIRepository) *OrganizationUpdate
AddOciRepositories adds the "oci_repositories" edges to the OCIRepository entity.
func (*OrganizationUpdate) AddOciRepositoryIDs ¶
func (ou *OrganizationUpdate) AddOciRepositoryIDs(ids ...uuid.UUID) *OrganizationUpdate
AddOciRepositoryIDs adds the "oci_repositories" edge to the OCIRepository entity by IDs.
func (*OrganizationUpdate) AddWorkflowContractIDs ¶
func (ou *OrganizationUpdate) AddWorkflowContractIDs(ids ...uuid.UUID) *OrganizationUpdate
AddWorkflowContractIDs adds the "workflow_contracts" edge to the WorkflowContract entity by IDs.
func (*OrganizationUpdate) AddWorkflowContracts ¶
func (ou *OrganizationUpdate) AddWorkflowContracts(w ...*WorkflowContract) *OrganizationUpdate
AddWorkflowContracts adds the "workflow_contracts" edges to the WorkflowContract entity.
func (*OrganizationUpdate) AddWorkflowIDs ¶
func (ou *OrganizationUpdate) AddWorkflowIDs(ids ...uuid.UUID) *OrganizationUpdate
AddWorkflowIDs adds the "workflows" edge to the Workflow entity by IDs.
func (*OrganizationUpdate) AddWorkflows ¶
func (ou *OrganizationUpdate) AddWorkflows(w ...*Workflow) *OrganizationUpdate
AddWorkflows adds the "workflows" edges to the Workflow entity.
func (*OrganizationUpdate) ClearIntegrations ¶
func (ou *OrganizationUpdate) ClearIntegrations() *OrganizationUpdate
ClearIntegrations clears all "integrations" edges to the Integration entity.
func (*OrganizationUpdate) ClearMemberships ¶
func (ou *OrganizationUpdate) ClearMemberships() *OrganizationUpdate
ClearMemberships clears all "memberships" edges to the Membership entity.
func (*OrganizationUpdate) ClearOciRepositories ¶
func (ou *OrganizationUpdate) ClearOciRepositories() *OrganizationUpdate
ClearOciRepositories clears all "oci_repositories" edges to the OCIRepository entity.
func (*OrganizationUpdate) ClearWorkflowContracts ¶
func (ou *OrganizationUpdate) ClearWorkflowContracts() *OrganizationUpdate
ClearWorkflowContracts clears all "workflow_contracts" edges to the WorkflowContract entity.
func (*OrganizationUpdate) ClearWorkflows ¶
func (ou *OrganizationUpdate) ClearWorkflows() *OrganizationUpdate
ClearWorkflows clears all "workflows" edges to the Workflow entity.
func (*OrganizationUpdate) Exec ¶
func (ou *OrganizationUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*OrganizationUpdate) ExecX ¶
func (ou *OrganizationUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationUpdate) Mutation ¶
func (ou *OrganizationUpdate) Mutation() *OrganizationMutation
Mutation returns the OrganizationMutation object of the builder.
func (*OrganizationUpdate) RemoveIntegrationIDs ¶
func (ou *OrganizationUpdate) RemoveIntegrationIDs(ids ...uuid.UUID) *OrganizationUpdate
RemoveIntegrationIDs removes the "integrations" edge to Integration entities by IDs.
func (*OrganizationUpdate) RemoveIntegrations ¶
func (ou *OrganizationUpdate) RemoveIntegrations(i ...*Integration) *OrganizationUpdate
RemoveIntegrations removes "integrations" edges to Integration entities.
func (*OrganizationUpdate) RemoveMembershipIDs ¶
func (ou *OrganizationUpdate) RemoveMembershipIDs(ids ...uuid.UUID) *OrganizationUpdate
RemoveMembershipIDs removes the "memberships" edge to Membership entities by IDs.
func (*OrganizationUpdate) RemoveMemberships ¶
func (ou *OrganizationUpdate) RemoveMemberships(m ...*Membership) *OrganizationUpdate
RemoveMemberships removes "memberships" edges to Membership entities.
func (*OrganizationUpdate) RemoveOciRepositories ¶
func (ou *OrganizationUpdate) RemoveOciRepositories(o ...*OCIRepository) *OrganizationUpdate
RemoveOciRepositories removes "oci_repositories" edges to OCIRepository entities.
func (*OrganizationUpdate) RemoveOciRepositoryIDs ¶
func (ou *OrganizationUpdate) RemoveOciRepositoryIDs(ids ...uuid.UUID) *OrganizationUpdate
RemoveOciRepositoryIDs removes the "oci_repositories" edge to OCIRepository entities by IDs.
func (*OrganizationUpdate) RemoveWorkflowContractIDs ¶
func (ou *OrganizationUpdate) RemoveWorkflowContractIDs(ids ...uuid.UUID) *OrganizationUpdate
RemoveWorkflowContractIDs removes the "workflow_contracts" edge to WorkflowContract entities by IDs.
func (*OrganizationUpdate) RemoveWorkflowContracts ¶
func (ou *OrganizationUpdate) RemoveWorkflowContracts(w ...*WorkflowContract) *OrganizationUpdate
RemoveWorkflowContracts removes "workflow_contracts" edges to WorkflowContract entities.
func (*OrganizationUpdate) RemoveWorkflowIDs ¶
func (ou *OrganizationUpdate) RemoveWorkflowIDs(ids ...uuid.UUID) *OrganizationUpdate
RemoveWorkflowIDs removes the "workflows" edge to Workflow entities by IDs.
func (*OrganizationUpdate) RemoveWorkflows ¶
func (ou *OrganizationUpdate) RemoveWorkflows(w ...*Workflow) *OrganizationUpdate
RemoveWorkflows removes "workflows" edges to Workflow entities.
func (*OrganizationUpdate) Save ¶
func (ou *OrganizationUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*OrganizationUpdate) SaveX ¶
func (ou *OrganizationUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*OrganizationUpdate) SetName ¶
func (ou *OrganizationUpdate) SetName(s string) *OrganizationUpdate
SetName sets the "name" field.
func (*OrganizationUpdate) SetNillableName ¶
func (ou *OrganizationUpdate) SetNillableName(s *string) *OrganizationUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*OrganizationUpdate) Where ¶
func (ou *OrganizationUpdate) Where(ps ...predicate.Organization) *OrganizationUpdate
Where appends a list predicates to the OrganizationUpdate builder.
type OrganizationUpdateOne ¶
type OrganizationUpdateOne struct {
// contains filtered or unexported fields
}
OrganizationUpdateOne is the builder for updating a single Organization entity.
func (*OrganizationUpdateOne) AddIntegrationIDs ¶
func (ouo *OrganizationUpdateOne) AddIntegrationIDs(ids ...uuid.UUID) *OrganizationUpdateOne
AddIntegrationIDs adds the "integrations" edge to the Integration entity by IDs.
func (*OrganizationUpdateOne) AddIntegrations ¶
func (ouo *OrganizationUpdateOne) AddIntegrations(i ...*Integration) *OrganizationUpdateOne
AddIntegrations adds the "integrations" edges to the Integration entity.
func (*OrganizationUpdateOne) AddMembershipIDs ¶
func (ouo *OrganizationUpdateOne) AddMembershipIDs(ids ...uuid.UUID) *OrganizationUpdateOne
AddMembershipIDs adds the "memberships" edge to the Membership entity by IDs.
func (*OrganizationUpdateOne) AddMemberships ¶
func (ouo *OrganizationUpdateOne) AddMemberships(m ...*Membership) *OrganizationUpdateOne
AddMemberships adds the "memberships" edges to the Membership entity.
func (*OrganizationUpdateOne) AddOciRepositories ¶
func (ouo *OrganizationUpdateOne) AddOciRepositories(o ...*OCIRepository) *OrganizationUpdateOne
AddOciRepositories adds the "oci_repositories" edges to the OCIRepository entity.
func (*OrganizationUpdateOne) AddOciRepositoryIDs ¶
func (ouo *OrganizationUpdateOne) AddOciRepositoryIDs(ids ...uuid.UUID) *OrganizationUpdateOne
AddOciRepositoryIDs adds the "oci_repositories" edge to the OCIRepository entity by IDs.
func (*OrganizationUpdateOne) AddWorkflowContractIDs ¶
func (ouo *OrganizationUpdateOne) AddWorkflowContractIDs(ids ...uuid.UUID) *OrganizationUpdateOne
AddWorkflowContractIDs adds the "workflow_contracts" edge to the WorkflowContract entity by IDs.
func (*OrganizationUpdateOne) AddWorkflowContracts ¶
func (ouo *OrganizationUpdateOne) AddWorkflowContracts(w ...*WorkflowContract) *OrganizationUpdateOne
AddWorkflowContracts adds the "workflow_contracts" edges to the WorkflowContract entity.
func (*OrganizationUpdateOne) AddWorkflowIDs ¶
func (ouo *OrganizationUpdateOne) AddWorkflowIDs(ids ...uuid.UUID) *OrganizationUpdateOne
AddWorkflowIDs adds the "workflows" edge to the Workflow entity by IDs.
func (*OrganizationUpdateOne) AddWorkflows ¶
func (ouo *OrganizationUpdateOne) AddWorkflows(w ...*Workflow) *OrganizationUpdateOne
AddWorkflows adds the "workflows" edges to the Workflow entity.
func (*OrganizationUpdateOne) ClearIntegrations ¶
func (ouo *OrganizationUpdateOne) ClearIntegrations() *OrganizationUpdateOne
ClearIntegrations clears all "integrations" edges to the Integration entity.
func (*OrganizationUpdateOne) ClearMemberships ¶
func (ouo *OrganizationUpdateOne) ClearMemberships() *OrganizationUpdateOne
ClearMemberships clears all "memberships" edges to the Membership entity.
func (*OrganizationUpdateOne) ClearOciRepositories ¶
func (ouo *OrganizationUpdateOne) ClearOciRepositories() *OrganizationUpdateOne
ClearOciRepositories clears all "oci_repositories" edges to the OCIRepository entity.
func (*OrganizationUpdateOne) ClearWorkflowContracts ¶
func (ouo *OrganizationUpdateOne) ClearWorkflowContracts() *OrganizationUpdateOne
ClearWorkflowContracts clears all "workflow_contracts" edges to the WorkflowContract entity.
func (*OrganizationUpdateOne) ClearWorkflows ¶
func (ouo *OrganizationUpdateOne) ClearWorkflows() *OrganizationUpdateOne
ClearWorkflows clears all "workflows" edges to the Workflow entity.
func (*OrganizationUpdateOne) Exec ¶
func (ouo *OrganizationUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*OrganizationUpdateOne) ExecX ¶
func (ouo *OrganizationUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationUpdateOne) Mutation ¶
func (ouo *OrganizationUpdateOne) Mutation() *OrganizationMutation
Mutation returns the OrganizationMutation object of the builder.
func (*OrganizationUpdateOne) RemoveIntegrationIDs ¶
func (ouo *OrganizationUpdateOne) RemoveIntegrationIDs(ids ...uuid.UUID) *OrganizationUpdateOne
RemoveIntegrationIDs removes the "integrations" edge to Integration entities by IDs.
func (*OrganizationUpdateOne) RemoveIntegrations ¶
func (ouo *OrganizationUpdateOne) RemoveIntegrations(i ...*Integration) *OrganizationUpdateOne
RemoveIntegrations removes "integrations" edges to Integration entities.
func (*OrganizationUpdateOne) RemoveMembershipIDs ¶
func (ouo *OrganizationUpdateOne) RemoveMembershipIDs(ids ...uuid.UUID) *OrganizationUpdateOne
RemoveMembershipIDs removes the "memberships" edge to Membership entities by IDs.
func (*OrganizationUpdateOne) RemoveMemberships ¶
func (ouo *OrganizationUpdateOne) RemoveMemberships(m ...*Membership) *OrganizationUpdateOne
RemoveMemberships removes "memberships" edges to Membership entities.
func (*OrganizationUpdateOne) RemoveOciRepositories ¶
func (ouo *OrganizationUpdateOne) RemoveOciRepositories(o ...*OCIRepository) *OrganizationUpdateOne
RemoveOciRepositories removes "oci_repositories" edges to OCIRepository entities.
func (*OrganizationUpdateOne) RemoveOciRepositoryIDs ¶
func (ouo *OrganizationUpdateOne) RemoveOciRepositoryIDs(ids ...uuid.UUID) *OrganizationUpdateOne
RemoveOciRepositoryIDs removes the "oci_repositories" edge to OCIRepository entities by IDs.
func (*OrganizationUpdateOne) RemoveWorkflowContractIDs ¶
func (ouo *OrganizationUpdateOne) RemoveWorkflowContractIDs(ids ...uuid.UUID) *OrganizationUpdateOne
RemoveWorkflowContractIDs removes the "workflow_contracts" edge to WorkflowContract entities by IDs.
func (*OrganizationUpdateOne) RemoveWorkflowContracts ¶
func (ouo *OrganizationUpdateOne) RemoveWorkflowContracts(w ...*WorkflowContract) *OrganizationUpdateOne
RemoveWorkflowContracts removes "workflow_contracts" edges to WorkflowContract entities.
func (*OrganizationUpdateOne) RemoveWorkflowIDs ¶
func (ouo *OrganizationUpdateOne) RemoveWorkflowIDs(ids ...uuid.UUID) *OrganizationUpdateOne
RemoveWorkflowIDs removes the "workflows" edge to Workflow entities by IDs.
func (*OrganizationUpdateOne) RemoveWorkflows ¶
func (ouo *OrganizationUpdateOne) RemoveWorkflows(w ...*Workflow) *OrganizationUpdateOne
RemoveWorkflows removes "workflows" edges to Workflow entities.
func (*OrganizationUpdateOne) Save ¶
func (ouo *OrganizationUpdateOne) Save(ctx context.Context) (*Organization, error)
Save executes the query and returns the updated Organization entity.
func (*OrganizationUpdateOne) SaveX ¶
func (ouo *OrganizationUpdateOne) SaveX(ctx context.Context) *Organization
SaveX is like Save, but panics if an error occurs.
func (*OrganizationUpdateOne) Select ¶
func (ouo *OrganizationUpdateOne) Select(field string, fields ...string) *OrganizationUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*OrganizationUpdateOne) SetName ¶
func (ouo *OrganizationUpdateOne) SetName(s string) *OrganizationUpdateOne
SetName sets the "name" field.
func (*OrganizationUpdateOne) SetNillableName ¶
func (ouo *OrganizationUpdateOne) SetNillableName(s *string) *OrganizationUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*OrganizationUpdateOne) Where ¶
func (ouo *OrganizationUpdateOne) Where(ps ...predicate.Organization) *OrganizationUpdateOne
Where appends a list predicates to the OrganizationUpdate builder.
type Organizations ¶
type Organizations []*Organization
Organizations is a parsable slice of Organization.
type QuerierFunc ¶
type QuerierFunc = ent.QuerierFunc
ent aliases to avoid import conflicts in user's code.
type QueryContext ¶
type QueryContext = ent.QueryContext
ent aliases to avoid import conflicts in user's code.
type RobotAccount ¶
type RobotAccount struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // RevokedAt holds the value of the "revoked_at" field. RevokedAt time.Time `json:"revoked_at,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the RobotAccountQuery when eager-loading is set. Edges RobotAccountEdges `json:"edges"` // contains filtered or unexported fields }
RobotAccount is the model entity for the RobotAccount schema.
func (*RobotAccount) QueryWorkflow ¶
func (ra *RobotAccount) QueryWorkflow() *WorkflowQuery
QueryWorkflow queries the "workflow" edge of the RobotAccount entity.
func (*RobotAccount) QueryWorkflowruns ¶
func (ra *RobotAccount) QueryWorkflowruns() *WorkflowRunQuery
QueryWorkflowruns queries the "workflowruns" edge of the RobotAccount entity.
func (*RobotAccount) String ¶
func (ra *RobotAccount) String() string
String implements the fmt.Stringer.
func (*RobotAccount) Unwrap ¶
func (ra *RobotAccount) Unwrap() *RobotAccount
Unwrap unwraps the RobotAccount 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 (*RobotAccount) Update ¶
func (ra *RobotAccount) Update() *RobotAccountUpdateOne
Update returns a builder for updating this RobotAccount. Note that you need to call RobotAccount.Unwrap() before calling this method if this RobotAccount was returned from a transaction, and the transaction was committed or rolled back.
type RobotAccountClient ¶
type RobotAccountClient struct {
// contains filtered or unexported fields
}
RobotAccountClient is a client for the RobotAccount schema.
func NewRobotAccountClient ¶
func NewRobotAccountClient(c config) *RobotAccountClient
NewRobotAccountClient returns a client for the RobotAccount from the given config.
func (*RobotAccountClient) Create ¶
func (c *RobotAccountClient) Create() *RobotAccountCreate
Create returns a builder for creating a RobotAccount entity.
func (*RobotAccountClient) CreateBulk ¶
func (c *RobotAccountClient) CreateBulk(builders ...*RobotAccountCreate) *RobotAccountCreateBulk
CreateBulk returns a builder for creating a bulk of RobotAccount entities.
func (*RobotAccountClient) Delete ¶
func (c *RobotAccountClient) Delete() *RobotAccountDelete
Delete returns a delete builder for RobotAccount.
func (*RobotAccountClient) DeleteOne ¶
func (c *RobotAccountClient) DeleteOne(ra *RobotAccount) *RobotAccountDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*RobotAccountClient) DeleteOneID ¶
func (c *RobotAccountClient) DeleteOneID(id uuid.UUID) *RobotAccountDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*RobotAccountClient) Get ¶
func (c *RobotAccountClient) Get(ctx context.Context, id uuid.UUID) (*RobotAccount, error)
Get returns a RobotAccount entity by its id.
func (*RobotAccountClient) GetX ¶
func (c *RobotAccountClient) GetX(ctx context.Context, id uuid.UUID) *RobotAccount
GetX is like Get, but panics if an error occurs.
func (*RobotAccountClient) Hooks ¶
func (c *RobotAccountClient) Hooks() []Hook
Hooks returns the client hooks.
func (*RobotAccountClient) Intercept ¶
func (c *RobotAccountClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `robotaccount.Intercept(f(g(h())))`.
func (*RobotAccountClient) Interceptors ¶
func (c *RobotAccountClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*RobotAccountClient) Query ¶
func (c *RobotAccountClient) Query() *RobotAccountQuery
Query returns a query builder for RobotAccount.
func (*RobotAccountClient) QueryWorkflow ¶
func (c *RobotAccountClient) QueryWorkflow(ra *RobotAccount) *WorkflowQuery
QueryWorkflow queries the workflow edge of a RobotAccount.
func (*RobotAccountClient) QueryWorkflowruns ¶
func (c *RobotAccountClient) QueryWorkflowruns(ra *RobotAccount) *WorkflowRunQuery
QueryWorkflowruns queries the workflowruns edge of a RobotAccount.
func (*RobotAccountClient) Update ¶
func (c *RobotAccountClient) Update() *RobotAccountUpdate
Update returns an update builder for RobotAccount.
func (*RobotAccountClient) UpdateOne ¶
func (c *RobotAccountClient) UpdateOne(ra *RobotAccount) *RobotAccountUpdateOne
UpdateOne returns an update builder for the given entity.
func (*RobotAccountClient) UpdateOneID ¶
func (c *RobotAccountClient) UpdateOneID(id uuid.UUID) *RobotAccountUpdateOne
UpdateOneID returns an update builder for the given id.
func (*RobotAccountClient) Use ¶
func (c *RobotAccountClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `robotaccount.Hooks(f(g(h())))`.
type RobotAccountCreate ¶
type RobotAccountCreate struct {
// contains filtered or unexported fields
}
RobotAccountCreate is the builder for creating a RobotAccount entity.
func (*RobotAccountCreate) AddWorkflowrunIDs ¶
func (rac *RobotAccountCreate) AddWorkflowrunIDs(ids ...uuid.UUID) *RobotAccountCreate
AddWorkflowrunIDs adds the "workflowruns" edge to the WorkflowRun entity by IDs.
func (*RobotAccountCreate) AddWorkflowruns ¶
func (rac *RobotAccountCreate) AddWorkflowruns(w ...*WorkflowRun) *RobotAccountCreate
AddWorkflowruns adds the "workflowruns" edges to the WorkflowRun entity.
func (*RobotAccountCreate) Exec ¶
func (rac *RobotAccountCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*RobotAccountCreate) ExecX ¶
func (rac *RobotAccountCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*RobotAccountCreate) Mutation ¶
func (rac *RobotAccountCreate) Mutation() *RobotAccountMutation
Mutation returns the RobotAccountMutation object of the builder.
func (*RobotAccountCreate) Save ¶
func (rac *RobotAccountCreate) Save(ctx context.Context) (*RobotAccount, error)
Save creates the RobotAccount in the database.
func (*RobotAccountCreate) SaveX ¶
func (rac *RobotAccountCreate) SaveX(ctx context.Context) *RobotAccount
SaveX calls Save and panics if Save returns an error.
func (*RobotAccountCreate) SetCreatedAt ¶
func (rac *RobotAccountCreate) SetCreatedAt(t time.Time) *RobotAccountCreate
SetCreatedAt sets the "created_at" field.
func (*RobotAccountCreate) SetID ¶
func (rac *RobotAccountCreate) SetID(u uuid.UUID) *RobotAccountCreate
SetID sets the "id" field.
func (*RobotAccountCreate) SetName ¶
func (rac *RobotAccountCreate) SetName(s string) *RobotAccountCreate
SetName sets the "name" field.
func (*RobotAccountCreate) SetNillableCreatedAt ¶
func (rac *RobotAccountCreate) SetNillableCreatedAt(t *time.Time) *RobotAccountCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*RobotAccountCreate) SetNillableID ¶
func (rac *RobotAccountCreate) SetNillableID(u *uuid.UUID) *RobotAccountCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*RobotAccountCreate) SetNillableRevokedAt ¶
func (rac *RobotAccountCreate) SetNillableRevokedAt(t *time.Time) *RobotAccountCreate
SetNillableRevokedAt sets the "revoked_at" field if the given value is not nil.
func (*RobotAccountCreate) SetNillableWorkflowID ¶
func (rac *RobotAccountCreate) SetNillableWorkflowID(id *uuid.UUID) *RobotAccountCreate
SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.
func (*RobotAccountCreate) SetRevokedAt ¶
func (rac *RobotAccountCreate) SetRevokedAt(t time.Time) *RobotAccountCreate
SetRevokedAt sets the "revoked_at" field.
func (*RobotAccountCreate) SetWorkflow ¶
func (rac *RobotAccountCreate) SetWorkflow(w *Workflow) *RobotAccountCreate
SetWorkflow sets the "workflow" edge to the Workflow entity.
func (*RobotAccountCreate) SetWorkflowID ¶
func (rac *RobotAccountCreate) SetWorkflowID(id uuid.UUID) *RobotAccountCreate
SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.
type RobotAccountCreateBulk ¶
type RobotAccountCreateBulk struct {
// contains filtered or unexported fields
}
RobotAccountCreateBulk is the builder for creating many RobotAccount entities in bulk.
func (*RobotAccountCreateBulk) Exec ¶
func (racb *RobotAccountCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*RobotAccountCreateBulk) ExecX ¶
func (racb *RobotAccountCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*RobotAccountCreateBulk) Save ¶
func (racb *RobotAccountCreateBulk) Save(ctx context.Context) ([]*RobotAccount, error)
Save creates the RobotAccount entities in the database.
func (*RobotAccountCreateBulk) SaveX ¶
func (racb *RobotAccountCreateBulk) SaveX(ctx context.Context) []*RobotAccount
SaveX is like Save, but panics if an error occurs.
type RobotAccountDelete ¶
type RobotAccountDelete struct {
// contains filtered or unexported fields
}
RobotAccountDelete is the builder for deleting a RobotAccount entity.
func (*RobotAccountDelete) Exec ¶
func (rad *RobotAccountDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*RobotAccountDelete) ExecX ¶
func (rad *RobotAccountDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*RobotAccountDelete) Where ¶
func (rad *RobotAccountDelete) Where(ps ...predicate.RobotAccount) *RobotAccountDelete
Where appends a list predicates to the RobotAccountDelete builder.
type RobotAccountDeleteOne ¶
type RobotAccountDeleteOne struct {
// contains filtered or unexported fields
}
RobotAccountDeleteOne is the builder for deleting a single RobotAccount entity.
func (*RobotAccountDeleteOne) Exec ¶
func (rado *RobotAccountDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*RobotAccountDeleteOne) ExecX ¶
func (rado *RobotAccountDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*RobotAccountDeleteOne) Where ¶
func (rado *RobotAccountDeleteOne) Where(ps ...predicate.RobotAccount) *RobotAccountDeleteOne
Where appends a list predicates to the RobotAccountDelete builder.
type RobotAccountEdges ¶
type RobotAccountEdges struct { // Workflow holds the value of the workflow edge. Workflow *Workflow `json:"workflow,omitempty"` // Workflowruns holds the value of the workflowruns edge. Workflowruns []*WorkflowRun `json:"workflowruns,omitempty"` // contains filtered or unexported fields }
RobotAccountEdges holds the relations/edges for other nodes in the graph.
func (RobotAccountEdges) WorkflowOrErr ¶
func (e RobotAccountEdges) WorkflowOrErr() (*Workflow, error)
WorkflowOrErr returns the Workflow value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (RobotAccountEdges) WorkflowrunsOrErr ¶
func (e RobotAccountEdges) WorkflowrunsOrErr() ([]*WorkflowRun, error)
WorkflowrunsOrErr returns the Workflowruns value or an error if the edge was not loaded in eager-loading.
type RobotAccountGroupBy ¶
type RobotAccountGroupBy struct {
// contains filtered or unexported fields
}
RobotAccountGroupBy is the group-by builder for RobotAccount entities.
func (*RobotAccountGroupBy) Aggregate ¶
func (ragb *RobotAccountGroupBy) Aggregate(fns ...AggregateFunc) *RobotAccountGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*RobotAccountGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*RobotAccountGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*RobotAccountGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*RobotAccountGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*RobotAccountGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*RobotAccountGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*RobotAccountGroupBy) Scan ¶
func (ragb *RobotAccountGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*RobotAccountGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type RobotAccountMutation ¶
type RobotAccountMutation struct {
// contains filtered or unexported fields
}
RobotAccountMutation represents an operation that mutates the RobotAccount nodes in the graph.
func (*RobotAccountMutation) AddField ¶
func (m *RobotAccountMutation) 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 (*RobotAccountMutation) AddWorkflowrunIDs ¶
func (m *RobotAccountMutation) AddWorkflowrunIDs(ids ...uuid.UUID)
AddWorkflowrunIDs adds the "workflowruns" edge to the WorkflowRun entity by ids.
func (*RobotAccountMutation) AddedEdges ¶
func (m *RobotAccountMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*RobotAccountMutation) AddedField ¶
func (m *RobotAccountMutation) 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 (*RobotAccountMutation) AddedFields ¶
func (m *RobotAccountMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*RobotAccountMutation) AddedIDs ¶
func (m *RobotAccountMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*RobotAccountMutation) ClearEdge ¶
func (m *RobotAccountMutation) 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 (*RobotAccountMutation) ClearField ¶
func (m *RobotAccountMutation) 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 (*RobotAccountMutation) ClearRevokedAt ¶
func (m *RobotAccountMutation) ClearRevokedAt()
ClearRevokedAt clears the value of the "revoked_at" field.
func (*RobotAccountMutation) ClearWorkflow ¶
func (m *RobotAccountMutation) ClearWorkflow()
ClearWorkflow clears the "workflow" edge to the Workflow entity.
func (*RobotAccountMutation) ClearWorkflowruns ¶
func (m *RobotAccountMutation) ClearWorkflowruns()
ClearWorkflowruns clears the "workflowruns" edge to the WorkflowRun entity.
func (*RobotAccountMutation) ClearedEdges ¶
func (m *RobotAccountMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*RobotAccountMutation) ClearedFields ¶
func (m *RobotAccountMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (RobotAccountMutation) Client ¶
func (m RobotAccountMutation) 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 (*RobotAccountMutation) CreatedAt ¶
func (m *RobotAccountMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*RobotAccountMutation) EdgeCleared ¶
func (m *RobotAccountMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*RobotAccountMutation) Field ¶
func (m *RobotAccountMutation) 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 (*RobotAccountMutation) FieldCleared ¶
func (m *RobotAccountMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*RobotAccountMutation) Fields ¶
func (m *RobotAccountMutation) 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 (*RobotAccountMutation) ID ¶
func (m *RobotAccountMutation) 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 (*RobotAccountMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*RobotAccountMutation) Name ¶
func (m *RobotAccountMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*RobotAccountMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the RobotAccount entity. If the RobotAccount 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 (*RobotAccountMutation) 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 (*RobotAccountMutation) OldName ¶
func (m *RobotAccountMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the RobotAccount entity. If the RobotAccount 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 (*RobotAccountMutation) OldRevokedAt ¶
OldRevokedAt returns the old "revoked_at" field's value of the RobotAccount entity. If the RobotAccount 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 (*RobotAccountMutation) Op ¶
func (m *RobotAccountMutation) Op() Op
Op returns the operation name.
func (*RobotAccountMutation) RemoveWorkflowrunIDs ¶
func (m *RobotAccountMutation) RemoveWorkflowrunIDs(ids ...uuid.UUID)
RemoveWorkflowrunIDs removes the "workflowruns" edge to the WorkflowRun entity by IDs.
func (*RobotAccountMutation) RemovedEdges ¶
func (m *RobotAccountMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*RobotAccountMutation) RemovedIDs ¶
func (m *RobotAccountMutation) 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 (*RobotAccountMutation) RemovedWorkflowrunsIDs ¶
func (m *RobotAccountMutation) RemovedWorkflowrunsIDs() (ids []uuid.UUID)
RemovedWorkflowruns returns the removed IDs of the "workflowruns" edge to the WorkflowRun entity.
func (*RobotAccountMutation) ResetCreatedAt ¶
func (m *RobotAccountMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*RobotAccountMutation) ResetEdge ¶
func (m *RobotAccountMutation) 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 (*RobotAccountMutation) ResetField ¶
func (m *RobotAccountMutation) 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 (*RobotAccountMutation) ResetName ¶
func (m *RobotAccountMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*RobotAccountMutation) ResetRevokedAt ¶
func (m *RobotAccountMutation) ResetRevokedAt()
ResetRevokedAt resets all changes to the "revoked_at" field.
func (*RobotAccountMutation) ResetWorkflow ¶
func (m *RobotAccountMutation) ResetWorkflow()
ResetWorkflow resets all changes to the "workflow" edge.
func (*RobotAccountMutation) ResetWorkflowruns ¶
func (m *RobotAccountMutation) ResetWorkflowruns()
ResetWorkflowruns resets all changes to the "workflowruns" edge.
func (*RobotAccountMutation) RevokedAt ¶
func (m *RobotAccountMutation) RevokedAt() (r time.Time, exists bool)
RevokedAt returns the value of the "revoked_at" field in the mutation.
func (*RobotAccountMutation) RevokedAtCleared ¶
func (m *RobotAccountMutation) RevokedAtCleared() bool
RevokedAtCleared returns if the "revoked_at" field was cleared in this mutation.
func (*RobotAccountMutation) SetCreatedAt ¶
func (m *RobotAccountMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*RobotAccountMutation) SetField ¶
func (m *RobotAccountMutation) 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 (*RobotAccountMutation) SetID ¶
func (m *RobotAccountMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of RobotAccount entities.
func (*RobotAccountMutation) SetName ¶
func (m *RobotAccountMutation) SetName(s string)
SetName sets the "name" field.
func (*RobotAccountMutation) SetOp ¶
func (m *RobotAccountMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*RobotAccountMutation) SetRevokedAt ¶
func (m *RobotAccountMutation) SetRevokedAt(t time.Time)
SetRevokedAt sets the "revoked_at" field.
func (*RobotAccountMutation) SetWorkflowID ¶
func (m *RobotAccountMutation) SetWorkflowID(id uuid.UUID)
SetWorkflowID sets the "workflow" edge to the Workflow entity by id.
func (RobotAccountMutation) Tx ¶
func (m RobotAccountMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*RobotAccountMutation) Type ¶
func (m *RobotAccountMutation) Type() string
Type returns the node type of this mutation (RobotAccount).
func (*RobotAccountMutation) Where ¶
func (m *RobotAccountMutation) Where(ps ...predicate.RobotAccount)
Where appends a list predicates to the RobotAccountMutation builder.
func (*RobotAccountMutation) WhereP ¶
func (m *RobotAccountMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the RobotAccountMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
func (*RobotAccountMutation) WorkflowCleared ¶
func (m *RobotAccountMutation) WorkflowCleared() bool
WorkflowCleared reports if the "workflow" edge to the Workflow entity was cleared.
func (*RobotAccountMutation) WorkflowID ¶
func (m *RobotAccountMutation) WorkflowID() (id uuid.UUID, exists bool)
WorkflowID returns the "workflow" edge ID in the mutation.
func (*RobotAccountMutation) WorkflowIDs ¶
func (m *RobotAccountMutation) WorkflowIDs() (ids []uuid.UUID)
WorkflowIDs returns the "workflow" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use WorkflowID instead. It exists only for internal usage by the builders.
func (*RobotAccountMutation) WorkflowrunsCleared ¶
func (m *RobotAccountMutation) WorkflowrunsCleared() bool
WorkflowrunsCleared reports if the "workflowruns" edge to the WorkflowRun entity was cleared.
func (*RobotAccountMutation) WorkflowrunsIDs ¶
func (m *RobotAccountMutation) WorkflowrunsIDs() (ids []uuid.UUID)
WorkflowrunsIDs returns the "workflowruns" edge IDs in the mutation.
type RobotAccountQuery ¶
type RobotAccountQuery struct {
// contains filtered or unexported fields
}
RobotAccountQuery is the builder for querying RobotAccount entities.
func (*RobotAccountQuery) Aggregate ¶
func (raq *RobotAccountQuery) Aggregate(fns ...AggregateFunc) *RobotAccountSelect
Aggregate returns a RobotAccountSelect configured with the given aggregations.
func (*RobotAccountQuery) All ¶
func (raq *RobotAccountQuery) All(ctx context.Context) ([]*RobotAccount, error)
All executes the query and returns a list of RobotAccounts.
func (*RobotAccountQuery) AllX ¶
func (raq *RobotAccountQuery) AllX(ctx context.Context) []*RobotAccount
AllX is like All, but panics if an error occurs.
func (*RobotAccountQuery) Clone ¶
func (raq *RobotAccountQuery) Clone() *RobotAccountQuery
Clone returns a duplicate of the RobotAccountQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*RobotAccountQuery) Count ¶
func (raq *RobotAccountQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*RobotAccountQuery) CountX ¶
func (raq *RobotAccountQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*RobotAccountQuery) Exist ¶
func (raq *RobotAccountQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*RobotAccountQuery) ExistX ¶
func (raq *RobotAccountQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*RobotAccountQuery) First ¶
func (raq *RobotAccountQuery) First(ctx context.Context) (*RobotAccount, error)
First returns the first RobotAccount entity from the query. Returns a *NotFoundError when no RobotAccount was found.
func (*RobotAccountQuery) FirstID ¶
FirstID returns the first RobotAccount ID from the query. Returns a *NotFoundError when no RobotAccount ID was found.
func (*RobotAccountQuery) FirstIDX ¶
func (raq *RobotAccountQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*RobotAccountQuery) FirstX ¶
func (raq *RobotAccountQuery) FirstX(ctx context.Context) *RobotAccount
FirstX is like First, but panics if an error occurs.
func (*RobotAccountQuery) GroupBy ¶
func (raq *RobotAccountQuery) GroupBy(field string, fields ...string) *RobotAccountGroupBy
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 { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.RobotAccount.Query(). GroupBy(robotaccount.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*RobotAccountQuery) IDsX ¶
func (raq *RobotAccountQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*RobotAccountQuery) Limit ¶
func (raq *RobotAccountQuery) Limit(limit int) *RobotAccountQuery
Limit the number of records to be returned by this query.
func (*RobotAccountQuery) Offset ¶
func (raq *RobotAccountQuery) Offset(offset int) *RobotAccountQuery
Offset to start from.
func (*RobotAccountQuery) Only ¶
func (raq *RobotAccountQuery) Only(ctx context.Context) (*RobotAccount, error)
Only returns a single RobotAccount entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one RobotAccount entity is found. Returns a *NotFoundError when no RobotAccount entities are found.
func (*RobotAccountQuery) OnlyID ¶
OnlyID is like Only, but returns the only RobotAccount ID in the query. Returns a *NotSingularError when more than one RobotAccount ID is found. Returns a *NotFoundError when no entities are found.
func (*RobotAccountQuery) OnlyIDX ¶
func (raq *RobotAccountQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*RobotAccountQuery) OnlyX ¶
func (raq *RobotAccountQuery) OnlyX(ctx context.Context) *RobotAccount
OnlyX is like Only, but panics if an error occurs.
func (*RobotAccountQuery) Order ¶
func (raq *RobotAccountQuery) Order(o ...OrderFunc) *RobotAccountQuery
Order specifies how the records should be ordered.
func (*RobotAccountQuery) QueryWorkflow ¶
func (raq *RobotAccountQuery) QueryWorkflow() *WorkflowQuery
QueryWorkflow chains the current query on the "workflow" edge.
func (*RobotAccountQuery) QueryWorkflowruns ¶
func (raq *RobotAccountQuery) QueryWorkflowruns() *WorkflowRunQuery
QueryWorkflowruns chains the current query on the "workflowruns" edge.
func (*RobotAccountQuery) Select ¶
func (raq *RobotAccountQuery) Select(fields ...string) *RobotAccountSelect
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 { Name string `json:"name,omitempty"` } client.RobotAccount.Query(). Select(robotaccount.FieldName). Scan(ctx, &v)
func (*RobotAccountQuery) Unique ¶
func (raq *RobotAccountQuery) Unique(unique bool) *RobotAccountQuery
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 (*RobotAccountQuery) Where ¶
func (raq *RobotAccountQuery) Where(ps ...predicate.RobotAccount) *RobotAccountQuery
Where adds a new predicate for the RobotAccountQuery builder.
func (*RobotAccountQuery) WithWorkflow ¶
func (raq *RobotAccountQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *RobotAccountQuery
WithWorkflow tells the query-builder to eager-load the nodes that are connected to the "workflow" edge. The optional arguments are used to configure the query builder of the edge.
func (*RobotAccountQuery) WithWorkflowruns ¶
func (raq *RobotAccountQuery) WithWorkflowruns(opts ...func(*WorkflowRunQuery)) *RobotAccountQuery
WithWorkflowruns tells the query-builder to eager-load the nodes that are connected to the "workflowruns" edge. The optional arguments are used to configure the query builder of the edge.
type RobotAccountSelect ¶
type RobotAccountSelect struct { *RobotAccountQuery // contains filtered or unexported fields }
RobotAccountSelect is the builder for selecting fields of RobotAccount entities.
func (*RobotAccountSelect) Aggregate ¶
func (ras *RobotAccountSelect) Aggregate(fns ...AggregateFunc) *RobotAccountSelect
Aggregate adds the given aggregation functions to the selector query.
func (*RobotAccountSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*RobotAccountSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*RobotAccountSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*RobotAccountSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*RobotAccountSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*RobotAccountSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*RobotAccountSelect) Scan ¶
func (ras *RobotAccountSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*RobotAccountSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type RobotAccountUpdate ¶
type RobotAccountUpdate struct {
// contains filtered or unexported fields
}
RobotAccountUpdate is the builder for updating RobotAccount entities.
func (*RobotAccountUpdate) AddWorkflowrunIDs ¶
func (rau *RobotAccountUpdate) AddWorkflowrunIDs(ids ...uuid.UUID) *RobotAccountUpdate
AddWorkflowrunIDs adds the "workflowruns" edge to the WorkflowRun entity by IDs.
func (*RobotAccountUpdate) AddWorkflowruns ¶
func (rau *RobotAccountUpdate) AddWorkflowruns(w ...*WorkflowRun) *RobotAccountUpdate
AddWorkflowruns adds the "workflowruns" edges to the WorkflowRun entity.
func (*RobotAccountUpdate) ClearRevokedAt ¶
func (rau *RobotAccountUpdate) ClearRevokedAt() *RobotAccountUpdate
ClearRevokedAt clears the value of the "revoked_at" field.
func (*RobotAccountUpdate) ClearWorkflow ¶
func (rau *RobotAccountUpdate) ClearWorkflow() *RobotAccountUpdate
ClearWorkflow clears the "workflow" edge to the Workflow entity.
func (*RobotAccountUpdate) ClearWorkflowruns ¶
func (rau *RobotAccountUpdate) ClearWorkflowruns() *RobotAccountUpdate
ClearWorkflowruns clears all "workflowruns" edges to the WorkflowRun entity.
func (*RobotAccountUpdate) Exec ¶
func (rau *RobotAccountUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*RobotAccountUpdate) ExecX ¶
func (rau *RobotAccountUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*RobotAccountUpdate) Mutation ¶
func (rau *RobotAccountUpdate) Mutation() *RobotAccountMutation
Mutation returns the RobotAccountMutation object of the builder.
func (*RobotAccountUpdate) RemoveWorkflowrunIDs ¶
func (rau *RobotAccountUpdate) RemoveWorkflowrunIDs(ids ...uuid.UUID) *RobotAccountUpdate
RemoveWorkflowrunIDs removes the "workflowruns" edge to WorkflowRun entities by IDs.
func (*RobotAccountUpdate) RemoveWorkflowruns ¶
func (rau *RobotAccountUpdate) RemoveWorkflowruns(w ...*WorkflowRun) *RobotAccountUpdate
RemoveWorkflowruns removes "workflowruns" edges to WorkflowRun entities.
func (*RobotAccountUpdate) Save ¶
func (rau *RobotAccountUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*RobotAccountUpdate) SaveX ¶
func (rau *RobotAccountUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*RobotAccountUpdate) SetName ¶
func (rau *RobotAccountUpdate) SetName(s string) *RobotAccountUpdate
SetName sets the "name" field.
func (*RobotAccountUpdate) SetNillableRevokedAt ¶
func (rau *RobotAccountUpdate) SetNillableRevokedAt(t *time.Time) *RobotAccountUpdate
SetNillableRevokedAt sets the "revoked_at" field if the given value is not nil.
func (*RobotAccountUpdate) SetNillableWorkflowID ¶
func (rau *RobotAccountUpdate) SetNillableWorkflowID(id *uuid.UUID) *RobotAccountUpdate
SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.
func (*RobotAccountUpdate) SetRevokedAt ¶
func (rau *RobotAccountUpdate) SetRevokedAt(t time.Time) *RobotAccountUpdate
SetRevokedAt sets the "revoked_at" field.
func (*RobotAccountUpdate) SetWorkflow ¶
func (rau *RobotAccountUpdate) SetWorkflow(w *Workflow) *RobotAccountUpdate
SetWorkflow sets the "workflow" edge to the Workflow entity.
func (*RobotAccountUpdate) SetWorkflowID ¶
func (rau *RobotAccountUpdate) SetWorkflowID(id uuid.UUID) *RobotAccountUpdate
SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.
func (*RobotAccountUpdate) Where ¶
func (rau *RobotAccountUpdate) Where(ps ...predicate.RobotAccount) *RobotAccountUpdate
Where appends a list predicates to the RobotAccountUpdate builder.
type RobotAccountUpdateOne ¶
type RobotAccountUpdateOne struct {
// contains filtered or unexported fields
}
RobotAccountUpdateOne is the builder for updating a single RobotAccount entity.
func (*RobotAccountUpdateOne) AddWorkflowrunIDs ¶
func (rauo *RobotAccountUpdateOne) AddWorkflowrunIDs(ids ...uuid.UUID) *RobotAccountUpdateOne
AddWorkflowrunIDs adds the "workflowruns" edge to the WorkflowRun entity by IDs.
func (*RobotAccountUpdateOne) AddWorkflowruns ¶
func (rauo *RobotAccountUpdateOne) AddWorkflowruns(w ...*WorkflowRun) *RobotAccountUpdateOne
AddWorkflowruns adds the "workflowruns" edges to the WorkflowRun entity.
func (*RobotAccountUpdateOne) ClearRevokedAt ¶
func (rauo *RobotAccountUpdateOne) ClearRevokedAt() *RobotAccountUpdateOne
ClearRevokedAt clears the value of the "revoked_at" field.
func (*RobotAccountUpdateOne) ClearWorkflow ¶
func (rauo *RobotAccountUpdateOne) ClearWorkflow() *RobotAccountUpdateOne
ClearWorkflow clears the "workflow" edge to the Workflow entity.
func (*RobotAccountUpdateOne) ClearWorkflowruns ¶
func (rauo *RobotAccountUpdateOne) ClearWorkflowruns() *RobotAccountUpdateOne
ClearWorkflowruns clears all "workflowruns" edges to the WorkflowRun entity.
func (*RobotAccountUpdateOne) Exec ¶
func (rauo *RobotAccountUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*RobotAccountUpdateOne) ExecX ¶
func (rauo *RobotAccountUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*RobotAccountUpdateOne) Mutation ¶
func (rauo *RobotAccountUpdateOne) Mutation() *RobotAccountMutation
Mutation returns the RobotAccountMutation object of the builder.
func (*RobotAccountUpdateOne) RemoveWorkflowrunIDs ¶
func (rauo *RobotAccountUpdateOne) RemoveWorkflowrunIDs(ids ...uuid.UUID) *RobotAccountUpdateOne
RemoveWorkflowrunIDs removes the "workflowruns" edge to WorkflowRun entities by IDs.
func (*RobotAccountUpdateOne) RemoveWorkflowruns ¶
func (rauo *RobotAccountUpdateOne) RemoveWorkflowruns(w ...*WorkflowRun) *RobotAccountUpdateOne
RemoveWorkflowruns removes "workflowruns" edges to WorkflowRun entities.
func (*RobotAccountUpdateOne) Save ¶
func (rauo *RobotAccountUpdateOne) Save(ctx context.Context) (*RobotAccount, error)
Save executes the query and returns the updated RobotAccount entity.
func (*RobotAccountUpdateOne) SaveX ¶
func (rauo *RobotAccountUpdateOne) SaveX(ctx context.Context) *RobotAccount
SaveX is like Save, but panics if an error occurs.
func (*RobotAccountUpdateOne) Select ¶
func (rauo *RobotAccountUpdateOne) Select(field string, fields ...string) *RobotAccountUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*RobotAccountUpdateOne) SetName ¶
func (rauo *RobotAccountUpdateOne) SetName(s string) *RobotAccountUpdateOne
SetName sets the "name" field.
func (*RobotAccountUpdateOne) SetNillableRevokedAt ¶
func (rauo *RobotAccountUpdateOne) SetNillableRevokedAt(t *time.Time) *RobotAccountUpdateOne
SetNillableRevokedAt sets the "revoked_at" field if the given value is not nil.
func (*RobotAccountUpdateOne) SetNillableWorkflowID ¶
func (rauo *RobotAccountUpdateOne) SetNillableWorkflowID(id *uuid.UUID) *RobotAccountUpdateOne
SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.
func (*RobotAccountUpdateOne) SetRevokedAt ¶
func (rauo *RobotAccountUpdateOne) SetRevokedAt(t time.Time) *RobotAccountUpdateOne
SetRevokedAt sets the "revoked_at" field.
func (*RobotAccountUpdateOne) SetWorkflow ¶
func (rauo *RobotAccountUpdateOne) SetWorkflow(w *Workflow) *RobotAccountUpdateOne
SetWorkflow sets the "workflow" edge to the Workflow entity.
func (*RobotAccountUpdateOne) SetWorkflowID ¶
func (rauo *RobotAccountUpdateOne) SetWorkflowID(id uuid.UUID) *RobotAccountUpdateOne
SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.
func (*RobotAccountUpdateOne) Where ¶
func (rauo *RobotAccountUpdateOne) Where(ps ...predicate.RobotAccount) *RobotAccountUpdateOne
Where appends a list predicates to the RobotAccountUpdate builder.
type RobotAccounts ¶
type RobotAccounts []*RobotAccount
RobotAccounts is a parsable slice of RobotAccount.
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(ctx 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 Rollback method.
type TraverseFunc ¶
type TraverseFunc = ent.TraverseFunc
ent aliases to avoid import conflicts in user's code.
type Tx ¶
type Tx struct { // Integration is the client for interacting with the Integration builders. Integration *IntegrationClient // IntegrationAttachment is the client for interacting with the IntegrationAttachment builders. IntegrationAttachment *IntegrationAttachmentClient // Membership is the client for interacting with the Membership builders. Membership *MembershipClient // OCIRepository is the client for interacting with the OCIRepository builders. OCIRepository *OCIRepositoryClient // Organization is the client for interacting with the Organization builders. Organization *OrganizationClient // RobotAccount is the client for interacting with the RobotAccount builders. RobotAccount *RobotAccountClient // User is the client for interacting with the User builders. User *UserClient // Workflow is the client for interacting with the Workflow builders. Workflow *WorkflowClient // WorkflowContract is the client for interacting with the WorkflowContract builders. WorkflowContract *WorkflowContractClient // WorkflowContractVersion is the client for interacting with the WorkflowContractVersion builders. WorkflowContractVersion *WorkflowContractVersionClient // WorkflowRun is the client for interacting with the WorkflowRun builders. WorkflowRun *WorkflowRunClient // 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 User ¶
type User struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // Email holds the value of the "email" field. Email string `json:"email,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the UserQuery when eager-loading is set. Edges UserEdges `json:"edges"` // contains filtered or unexported fields }
User is the model entity for the User schema.
func (*User) QueryMemberships ¶
func (u *User) QueryMemberships() *MembershipQuery
QueryMemberships queries the "memberships" edge of the User entity.
func (*User) Unwrap ¶
Unwrap unwraps the User 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 (*User) Update ¶
func (u *User) Update() *UserUpdateOne
Update returns a builder for updating this User. Note that you need to call User.Unwrap() before calling this method if this User was returned from a transaction, and the transaction was committed or rolled back.
type UserClient ¶
type UserClient struct {
// contains filtered or unexported fields
}
UserClient is a client for the User schema.
func NewUserClient ¶
func NewUserClient(c config) *UserClient
NewUserClient returns a client for the User from the given config.
func (*UserClient) Create ¶
func (c *UserClient) Create() *UserCreate
Create returns a builder for creating a User entity.
func (*UserClient) CreateBulk ¶
func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk
CreateBulk returns a builder for creating a bulk of User entities.
func (*UserClient) Delete ¶
func (c *UserClient) Delete() *UserDelete
Delete returns a delete builder for User.
func (*UserClient) DeleteOne ¶
func (c *UserClient) DeleteOne(u *User) *UserDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*UserClient) DeleteOneID ¶
func (c *UserClient) DeleteOneID(id uuid.UUID) *UserDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*UserClient) Intercept ¶
func (c *UserClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`.
func (*UserClient) Interceptors ¶
func (c *UserClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*UserClient) Query ¶
func (c *UserClient) Query() *UserQuery
Query returns a query builder for User.
func (*UserClient) QueryMemberships ¶
func (c *UserClient) QueryMemberships(u *User) *MembershipQuery
QueryMemberships queries the memberships edge of a User.
func (*UserClient) Update ¶
func (c *UserClient) Update() *UserUpdate
Update returns an update builder for User.
func (*UserClient) UpdateOne ¶
func (c *UserClient) UpdateOne(u *User) *UserUpdateOne
UpdateOne returns an update builder for the given entity.
func (*UserClient) UpdateOneID ¶
func (c *UserClient) UpdateOneID(id uuid.UUID) *UserUpdateOne
UpdateOneID returns an update builder for the given id.
func (*UserClient) Use ¶
func (c *UserClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `user.Hooks(f(g(h())))`.
type UserCreate ¶
type UserCreate struct {
// contains filtered or unexported fields
}
UserCreate is the builder for creating a User entity.
func (*UserCreate) AddMembershipIDs ¶
func (uc *UserCreate) AddMembershipIDs(ids ...uuid.UUID) *UserCreate
AddMembershipIDs adds the "memberships" edge to the Membership entity by IDs.
func (*UserCreate) AddMemberships ¶
func (uc *UserCreate) AddMemberships(m ...*Membership) *UserCreate
AddMemberships adds the "memberships" edges to the Membership entity.
func (*UserCreate) Exec ¶
func (uc *UserCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCreate) ExecX ¶
func (uc *UserCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCreate) Mutation ¶
func (uc *UserCreate) Mutation() *UserMutation
Mutation returns the UserMutation object of the builder.
func (*UserCreate) Save ¶
func (uc *UserCreate) Save(ctx context.Context) (*User, error)
Save creates the User in the database.
func (*UserCreate) SaveX ¶
func (uc *UserCreate) SaveX(ctx context.Context) *User
SaveX calls Save and panics if Save returns an error.
func (*UserCreate) SetCreatedAt ¶
func (uc *UserCreate) SetCreatedAt(t time.Time) *UserCreate
SetCreatedAt sets the "created_at" field.
func (*UserCreate) SetEmail ¶
func (uc *UserCreate) SetEmail(s string) *UserCreate
SetEmail sets the "email" field.
func (*UserCreate) SetID ¶
func (uc *UserCreate) SetID(u uuid.UUID) *UserCreate
SetID sets the "id" field.
func (*UserCreate) SetNillableCreatedAt ¶
func (uc *UserCreate) SetNillableCreatedAt(t *time.Time) *UserCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*UserCreate) SetNillableID ¶
func (uc *UserCreate) SetNillableID(u *uuid.UUID) *UserCreate
SetNillableID sets the "id" field if the given value is not nil.
type UserCreateBulk ¶
type UserCreateBulk struct {
// contains filtered or unexported fields
}
UserCreateBulk is the builder for creating many User entities in bulk.
func (*UserCreateBulk) Exec ¶
func (ucb *UserCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCreateBulk) ExecX ¶
func (ucb *UserCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type UserDelete ¶
type UserDelete struct {
// contains filtered or unexported fields
}
UserDelete is the builder for deleting a User entity.
func (*UserDelete) Exec ¶
func (ud *UserDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*UserDelete) ExecX ¶
func (ud *UserDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*UserDelete) Where ¶
func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete
Where appends a list predicates to the UserDelete builder.
type UserDeleteOne ¶
type UserDeleteOne struct {
// contains filtered or unexported fields
}
UserDeleteOne is the builder for deleting a single User entity.
func (*UserDeleteOne) Exec ¶
func (udo *UserDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*UserDeleteOne) ExecX ¶
func (udo *UserDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserDeleteOne) Where ¶
func (udo *UserDeleteOne) Where(ps ...predicate.User) *UserDeleteOne
Where appends a list predicates to the UserDelete builder.
type UserEdges ¶
type UserEdges struct { // Memberships holds the value of the memberships edge. Memberships []*Membership `json:"memberships,omitempty"` // contains filtered or unexported fields }
UserEdges holds the relations/edges for other nodes in the graph.
func (UserEdges) MembershipsOrErr ¶
func (e UserEdges) MembershipsOrErr() ([]*Membership, error)
MembershipsOrErr returns the Memberships value or an error if the edge was not loaded in eager-loading.
type UserGroupBy ¶
type UserGroupBy struct {
// contains filtered or unexported fields
}
UserGroupBy is the group-by builder for User entities.
func (*UserGroupBy) Aggregate ¶
func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*UserGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Scan ¶
func (ugb *UserGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserMutation ¶
type UserMutation struct {
// contains filtered or unexported fields
}
UserMutation represents an operation that mutates the User nodes in the graph.
func (*UserMutation) AddField ¶
func (m *UserMutation) 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 (*UserMutation) AddMembershipIDs ¶
func (m *UserMutation) AddMembershipIDs(ids ...uuid.UUID)
AddMembershipIDs adds the "memberships" edge to the Membership entity by ids.
func (*UserMutation) AddedEdges ¶
func (m *UserMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*UserMutation) AddedField ¶
func (m *UserMutation) 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 (*UserMutation) AddedFields ¶
func (m *UserMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*UserMutation) AddedIDs ¶
func (m *UserMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*UserMutation) ClearEdge ¶
func (m *UserMutation) 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 (*UserMutation) ClearField ¶
func (m *UserMutation) 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 (*UserMutation) ClearMemberships ¶
func (m *UserMutation) ClearMemberships()
ClearMemberships clears the "memberships" edge to the Membership entity.
func (*UserMutation) ClearedEdges ¶
func (m *UserMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*UserMutation) ClearedFields ¶
func (m *UserMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (UserMutation) Client ¶
func (m UserMutation) 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 (*UserMutation) CreatedAt ¶
func (m *UserMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*UserMutation) EdgeCleared ¶
func (m *UserMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*UserMutation) Email ¶
func (m *UserMutation) Email() (r string, exists bool)
Email returns the value of the "email" field in the mutation.
func (*UserMutation) Field ¶
func (m *UserMutation) 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 (*UserMutation) FieldCleared ¶
func (m *UserMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*UserMutation) Fields ¶
func (m *UserMutation) 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 (*UserMutation) ID ¶
func (m *UserMutation) 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 (*UserMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*UserMutation) MembershipsCleared ¶
func (m *UserMutation) MembershipsCleared() bool
MembershipsCleared reports if the "memberships" edge to the Membership entity was cleared.
func (*UserMutation) MembershipsIDs ¶
func (m *UserMutation) MembershipsIDs() (ids []uuid.UUID)
MembershipsIDs returns the "memberships" edge IDs in the mutation.
func (*UserMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the User entity. If the User 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 (*UserMutation) OldEmail ¶
func (m *UserMutation) OldEmail(ctx context.Context) (v string, err error)
OldEmail returns the old "email" field's value of the User entity. If the User 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 (*UserMutation) 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 (*UserMutation) RemoveMembershipIDs ¶
func (m *UserMutation) RemoveMembershipIDs(ids ...uuid.UUID)
RemoveMembershipIDs removes the "memberships" edge to the Membership entity by IDs.
func (*UserMutation) RemovedEdges ¶
func (m *UserMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*UserMutation) RemovedIDs ¶
func (m *UserMutation) 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 (*UserMutation) RemovedMembershipsIDs ¶
func (m *UserMutation) RemovedMembershipsIDs() (ids []uuid.UUID)
RemovedMemberships returns the removed IDs of the "memberships" edge to the Membership entity.
func (*UserMutation) ResetCreatedAt ¶
func (m *UserMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*UserMutation) ResetEdge ¶
func (m *UserMutation) 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 (*UserMutation) ResetEmail ¶
func (m *UserMutation) ResetEmail()
ResetEmail resets all changes to the "email" field.
func (*UserMutation) ResetField ¶
func (m *UserMutation) 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 (*UserMutation) ResetMemberships ¶
func (m *UserMutation) ResetMemberships()
ResetMemberships resets all changes to the "memberships" edge.
func (*UserMutation) SetCreatedAt ¶
func (m *UserMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*UserMutation) SetEmail ¶
func (m *UserMutation) SetEmail(s string)
SetEmail sets the "email" field.
func (*UserMutation) SetField ¶
func (m *UserMutation) 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 (*UserMutation) SetID ¶
func (m *UserMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of User entities.
func (*UserMutation) SetOp ¶
func (m *UserMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (UserMutation) Tx ¶
func (m UserMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*UserMutation) Type ¶
func (m *UserMutation) Type() string
Type returns the node type of this mutation (User).
func (*UserMutation) Where ¶
func (m *UserMutation) Where(ps ...predicate.User)
Where appends a list predicates to the UserMutation builder.
func (*UserMutation) WhereP ¶
func (m *UserMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the UserMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type UserQuery ¶
type UserQuery struct {
// contains filtered or unexported fields
}
UserQuery is the builder for querying User entities.
func (*UserQuery) Aggregate ¶
func (uq *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect
Aggregate returns a UserSelect configured with the given aggregations.
func (*UserQuery) Clone ¶
Clone returns a duplicate of the UserQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*UserQuery) First ¶
First returns the first User entity from the query. Returns a *NotFoundError when no User was found.
func (*UserQuery) FirstID ¶
FirstID returns the first User ID from the query. Returns a *NotFoundError when no User ID was found.
func (*UserQuery) GroupBy ¶
func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy
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 { Email string `json:"email,omitempty"` Count int `json:"count,omitempty"` } client.User.Query(). GroupBy(user.FieldEmail). Aggregate(ent.Count()). Scan(ctx, &v)
func (*UserQuery) Only ¶
Only returns a single User entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one User entity is found. Returns a *NotFoundError when no User entities are found.
func (*UserQuery) OnlyID ¶
OnlyID is like Only, but returns the only User ID in the query. Returns a *NotSingularError when more than one User ID is found. Returns a *NotFoundError when no entities are found.
func (*UserQuery) QueryMemberships ¶
func (uq *UserQuery) QueryMemberships() *MembershipQuery
QueryMemberships chains the current query on the "memberships" edge.
func (*UserQuery) Select ¶
func (uq *UserQuery) Select(fields ...string) *UserSelect
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 { Email string `json:"email,omitempty"` } client.User.Query(). Select(user.FieldEmail). Scan(ctx, &v)
func (*UserQuery) 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 (*UserQuery) WithMemberships ¶
func (uq *UserQuery) WithMemberships(opts ...func(*MembershipQuery)) *UserQuery
WithMemberships tells the query-builder to eager-load the nodes that are connected to the "memberships" edge. The optional arguments are used to configure the query builder of the edge.
type UserSelect ¶
type UserSelect struct { *UserQuery // contains filtered or unexported fields }
UserSelect is the builder for selecting fields of User entities.
func (*UserSelect) Aggregate ¶
func (us *UserSelect) Aggregate(fns ...AggregateFunc) *UserSelect
Aggregate adds the given aggregation functions to the selector query.
func (*UserSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserSelect) Scan ¶
func (us *UserSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserUpdate ¶
type UserUpdate struct {
// contains filtered or unexported fields
}
UserUpdate is the builder for updating User entities.
func (*UserUpdate) AddMembershipIDs ¶
func (uu *UserUpdate) AddMembershipIDs(ids ...uuid.UUID) *UserUpdate
AddMembershipIDs adds the "memberships" edge to the Membership entity by IDs.
func (*UserUpdate) AddMemberships ¶
func (uu *UserUpdate) AddMemberships(m ...*Membership) *UserUpdate
AddMemberships adds the "memberships" edges to the Membership entity.
func (*UserUpdate) ClearMemberships ¶
func (uu *UserUpdate) ClearMemberships() *UserUpdate
ClearMemberships clears all "memberships" edges to the Membership entity.
func (*UserUpdate) Exec ¶
func (uu *UserUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserUpdate) ExecX ¶
func (uu *UserUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserUpdate) Mutation ¶
func (uu *UserUpdate) Mutation() *UserMutation
Mutation returns the UserMutation object of the builder.
func (*UserUpdate) RemoveMembershipIDs ¶
func (uu *UserUpdate) RemoveMembershipIDs(ids ...uuid.UUID) *UserUpdate
RemoveMembershipIDs removes the "memberships" edge to Membership entities by IDs.
func (*UserUpdate) RemoveMemberships ¶
func (uu *UserUpdate) RemoveMemberships(m ...*Membership) *UserUpdate
RemoveMemberships removes "memberships" edges to Membership entities.
func (*UserUpdate) Save ¶
func (uu *UserUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*UserUpdate) SaveX ¶
func (uu *UserUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*UserUpdate) SetEmail ¶
func (uu *UserUpdate) SetEmail(s string) *UserUpdate
SetEmail sets the "email" field.
func (*UserUpdate) Where ¶
func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate
Where appends a list predicates to the UserUpdate builder.
type UserUpdateOne ¶
type UserUpdateOne struct {
// contains filtered or unexported fields
}
UserUpdateOne is the builder for updating a single User entity.
func (*UserUpdateOne) AddMembershipIDs ¶
func (uuo *UserUpdateOne) AddMembershipIDs(ids ...uuid.UUID) *UserUpdateOne
AddMembershipIDs adds the "memberships" edge to the Membership entity by IDs.
func (*UserUpdateOne) AddMemberships ¶
func (uuo *UserUpdateOne) AddMemberships(m ...*Membership) *UserUpdateOne
AddMemberships adds the "memberships" edges to the Membership entity.
func (*UserUpdateOne) ClearMemberships ¶
func (uuo *UserUpdateOne) ClearMemberships() *UserUpdateOne
ClearMemberships clears all "memberships" edges to the Membership entity.
func (*UserUpdateOne) Exec ¶
func (uuo *UserUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*UserUpdateOne) ExecX ¶
func (uuo *UserUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserUpdateOne) Mutation ¶
func (uuo *UserUpdateOne) Mutation() *UserMutation
Mutation returns the UserMutation object of the builder.
func (*UserUpdateOne) RemoveMembershipIDs ¶
func (uuo *UserUpdateOne) RemoveMembershipIDs(ids ...uuid.UUID) *UserUpdateOne
RemoveMembershipIDs removes the "memberships" edge to Membership entities by IDs.
func (*UserUpdateOne) RemoveMemberships ¶
func (uuo *UserUpdateOne) RemoveMemberships(m ...*Membership) *UserUpdateOne
RemoveMemberships removes "memberships" edges to Membership entities.
func (*UserUpdateOne) Save ¶
func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error)
Save executes the query and returns the updated User entity.
func (*UserUpdateOne) SaveX ¶
func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User
SaveX is like Save, but panics if an error occurs.
func (*UserUpdateOne) Select ¶
func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*UserUpdateOne) SetEmail ¶
func (uuo *UserUpdateOne) SetEmail(s string) *UserUpdateOne
SetEmail sets the "email" field.
func (*UserUpdateOne) Where ¶
func (uuo *UserUpdateOne) Where(ps ...predicate.User) *UserUpdateOne
Where appends a list predicates to the UserUpdate builder.
type ValidationError ¶
type ValidationError struct { Name string // Field or edge name. // contains filtered or unexported fields }
ValidationError returns when validating a field or edge 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.
type Workflow ¶
type Workflow struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Project holds the value of the "project" field. Project string `json:"project,omitempty"` // Team holds the value of the "team" field. Team string `json:"team,omitempty"` // RunsCount holds the value of the "runs_count" field. RunsCount int `json:"runs_count,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt time.Time `json:"deleted_at,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the WorkflowQuery when eager-loading is set. Edges WorkflowEdges `json:"edges"` // contains filtered or unexported fields }
Workflow is the model entity for the Workflow schema.
func (*Workflow) QueryContract ¶
func (w *Workflow) QueryContract() *WorkflowContractQuery
QueryContract queries the "contract" edge of the Workflow entity.
func (*Workflow) QueryIntegrationAttachments ¶
func (w *Workflow) QueryIntegrationAttachments() *IntegrationAttachmentQuery
QueryIntegrationAttachments queries the "integration_attachments" edge of the Workflow entity.
func (*Workflow) QueryOrganization ¶
func (w *Workflow) QueryOrganization() *OrganizationQuery
QueryOrganization queries the "organization" edge of the Workflow entity.
func (*Workflow) QueryRobotaccounts ¶
func (w *Workflow) QueryRobotaccounts() *RobotAccountQuery
QueryRobotaccounts queries the "robotaccounts" edge of the Workflow entity.
func (*Workflow) QueryWorkflowruns ¶
func (w *Workflow) QueryWorkflowruns() *WorkflowRunQuery
QueryWorkflowruns queries the "workflowruns" edge of the Workflow entity.
func (*Workflow) Unwrap ¶
Unwrap unwraps the Workflow 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 (*Workflow) Update ¶
func (w *Workflow) Update() *WorkflowUpdateOne
Update returns a builder for updating this Workflow. Note that you need to call Workflow.Unwrap() before calling this method if this Workflow was returned from a transaction, and the transaction was committed or rolled back.
type WorkflowClient ¶
type WorkflowClient struct {
// contains filtered or unexported fields
}
WorkflowClient is a client for the Workflow schema.
func NewWorkflowClient ¶
func NewWorkflowClient(c config) *WorkflowClient
NewWorkflowClient returns a client for the Workflow from the given config.
func (*WorkflowClient) Create ¶
func (c *WorkflowClient) Create() *WorkflowCreate
Create returns a builder for creating a Workflow entity.
func (*WorkflowClient) CreateBulk ¶
func (c *WorkflowClient) CreateBulk(builders ...*WorkflowCreate) *WorkflowCreateBulk
CreateBulk returns a builder for creating a bulk of Workflow entities.
func (*WorkflowClient) Delete ¶
func (c *WorkflowClient) Delete() *WorkflowDelete
Delete returns a delete builder for Workflow.
func (*WorkflowClient) DeleteOne ¶
func (c *WorkflowClient) DeleteOne(w *Workflow) *WorkflowDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*WorkflowClient) DeleteOneID ¶
func (c *WorkflowClient) DeleteOneID(id uuid.UUID) *WorkflowDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*WorkflowClient) Hooks ¶
func (c *WorkflowClient) Hooks() []Hook
Hooks returns the client hooks.
func (*WorkflowClient) Intercept ¶
func (c *WorkflowClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `workflow.Intercept(f(g(h())))`.
func (*WorkflowClient) Interceptors ¶
func (c *WorkflowClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*WorkflowClient) Query ¶
func (c *WorkflowClient) Query() *WorkflowQuery
Query returns a query builder for Workflow.
func (*WorkflowClient) QueryContract ¶
func (c *WorkflowClient) QueryContract(w *Workflow) *WorkflowContractQuery
QueryContract queries the contract edge of a Workflow.
func (*WorkflowClient) QueryIntegrationAttachments ¶
func (c *WorkflowClient) QueryIntegrationAttachments(w *Workflow) *IntegrationAttachmentQuery
QueryIntegrationAttachments queries the integration_attachments edge of a Workflow.
func (*WorkflowClient) QueryOrganization ¶
func (c *WorkflowClient) QueryOrganization(w *Workflow) *OrganizationQuery
QueryOrganization queries the organization edge of a Workflow.
func (*WorkflowClient) QueryRobotaccounts ¶
func (c *WorkflowClient) QueryRobotaccounts(w *Workflow) *RobotAccountQuery
QueryRobotaccounts queries the robotaccounts edge of a Workflow.
func (*WorkflowClient) QueryWorkflowruns ¶
func (c *WorkflowClient) QueryWorkflowruns(w *Workflow) *WorkflowRunQuery
QueryWorkflowruns queries the workflowruns edge of a Workflow.
func (*WorkflowClient) Update ¶
func (c *WorkflowClient) Update() *WorkflowUpdate
Update returns an update builder for Workflow.
func (*WorkflowClient) UpdateOne ¶
func (c *WorkflowClient) UpdateOne(w *Workflow) *WorkflowUpdateOne
UpdateOne returns an update builder for the given entity.
func (*WorkflowClient) UpdateOneID ¶
func (c *WorkflowClient) UpdateOneID(id uuid.UUID) *WorkflowUpdateOne
UpdateOneID returns an update builder for the given id.
func (*WorkflowClient) Use ¶
func (c *WorkflowClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `workflow.Hooks(f(g(h())))`.
type WorkflowContract ¶
type WorkflowContract struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt time.Time `json:"deleted_at,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the WorkflowContractQuery when eager-loading is set. Edges WorkflowContractEdges `json:"edges"` // contains filtered or unexported fields }
WorkflowContract is the model entity for the WorkflowContract schema.
func (*WorkflowContract) QueryOrganization ¶
func (wc *WorkflowContract) QueryOrganization() *OrganizationQuery
QueryOrganization queries the "organization" edge of the WorkflowContract entity.
func (*WorkflowContract) QueryVersions ¶
func (wc *WorkflowContract) QueryVersions() *WorkflowContractVersionQuery
QueryVersions queries the "versions" edge of the WorkflowContract entity.
func (*WorkflowContract) QueryWorkflows ¶
func (wc *WorkflowContract) QueryWorkflows() *WorkflowQuery
QueryWorkflows queries the "workflows" edge of the WorkflowContract entity.
func (*WorkflowContract) String ¶
func (wc *WorkflowContract) String() string
String implements the fmt.Stringer.
func (*WorkflowContract) Unwrap ¶
func (wc *WorkflowContract) Unwrap() *WorkflowContract
Unwrap unwraps the WorkflowContract 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 (*WorkflowContract) Update ¶
func (wc *WorkflowContract) Update() *WorkflowContractUpdateOne
Update returns a builder for updating this WorkflowContract. Note that you need to call WorkflowContract.Unwrap() before calling this method if this WorkflowContract was returned from a transaction, and the transaction was committed or rolled back.
type WorkflowContractClient ¶
type WorkflowContractClient struct {
// contains filtered or unexported fields
}
WorkflowContractClient is a client for the WorkflowContract schema.
func NewWorkflowContractClient ¶
func NewWorkflowContractClient(c config) *WorkflowContractClient
NewWorkflowContractClient returns a client for the WorkflowContract from the given config.
func (*WorkflowContractClient) Create ¶
func (c *WorkflowContractClient) Create() *WorkflowContractCreate
Create returns a builder for creating a WorkflowContract entity.
func (*WorkflowContractClient) CreateBulk ¶
func (c *WorkflowContractClient) CreateBulk(builders ...*WorkflowContractCreate) *WorkflowContractCreateBulk
CreateBulk returns a builder for creating a bulk of WorkflowContract entities.
func (*WorkflowContractClient) Delete ¶
func (c *WorkflowContractClient) Delete() *WorkflowContractDelete
Delete returns a delete builder for WorkflowContract.
func (*WorkflowContractClient) DeleteOne ¶
func (c *WorkflowContractClient) DeleteOne(wc *WorkflowContract) *WorkflowContractDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*WorkflowContractClient) DeleteOneID ¶
func (c *WorkflowContractClient) DeleteOneID(id uuid.UUID) *WorkflowContractDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*WorkflowContractClient) Get ¶
func (c *WorkflowContractClient) Get(ctx context.Context, id uuid.UUID) (*WorkflowContract, error)
Get returns a WorkflowContract entity by its id.
func (*WorkflowContractClient) GetX ¶
func (c *WorkflowContractClient) GetX(ctx context.Context, id uuid.UUID) *WorkflowContract
GetX is like Get, but panics if an error occurs.
func (*WorkflowContractClient) Hooks ¶
func (c *WorkflowContractClient) Hooks() []Hook
Hooks returns the client hooks.
func (*WorkflowContractClient) Intercept ¶
func (c *WorkflowContractClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `workflowcontract.Intercept(f(g(h())))`.
func (*WorkflowContractClient) Interceptors ¶
func (c *WorkflowContractClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*WorkflowContractClient) Query ¶
func (c *WorkflowContractClient) Query() *WorkflowContractQuery
Query returns a query builder for WorkflowContract.
func (*WorkflowContractClient) QueryOrganization ¶
func (c *WorkflowContractClient) QueryOrganization(wc *WorkflowContract) *OrganizationQuery
QueryOrganization queries the organization edge of a WorkflowContract.
func (*WorkflowContractClient) QueryVersions ¶
func (c *WorkflowContractClient) QueryVersions(wc *WorkflowContract) *WorkflowContractVersionQuery
QueryVersions queries the versions edge of a WorkflowContract.
func (*WorkflowContractClient) QueryWorkflows ¶
func (c *WorkflowContractClient) QueryWorkflows(wc *WorkflowContract) *WorkflowQuery
QueryWorkflows queries the workflows edge of a WorkflowContract.
func (*WorkflowContractClient) Update ¶
func (c *WorkflowContractClient) Update() *WorkflowContractUpdate
Update returns an update builder for WorkflowContract.
func (*WorkflowContractClient) UpdateOne ¶
func (c *WorkflowContractClient) UpdateOne(wc *WorkflowContract) *WorkflowContractUpdateOne
UpdateOne returns an update builder for the given entity.
func (*WorkflowContractClient) UpdateOneID ¶
func (c *WorkflowContractClient) UpdateOneID(id uuid.UUID) *WorkflowContractUpdateOne
UpdateOneID returns an update builder for the given id.
func (*WorkflowContractClient) Use ¶
func (c *WorkflowContractClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `workflowcontract.Hooks(f(g(h())))`.
type WorkflowContractCreate ¶
type WorkflowContractCreate struct {
// contains filtered or unexported fields
}
WorkflowContractCreate is the builder for creating a WorkflowContract entity.
func (*WorkflowContractCreate) AddVersionIDs ¶
func (wcc *WorkflowContractCreate) AddVersionIDs(ids ...uuid.UUID) *WorkflowContractCreate
AddVersionIDs adds the "versions" edge to the WorkflowContractVersion entity by IDs.
func (*WorkflowContractCreate) AddVersions ¶
func (wcc *WorkflowContractCreate) AddVersions(w ...*WorkflowContractVersion) *WorkflowContractCreate
AddVersions adds the "versions" edges to the WorkflowContractVersion entity.
func (*WorkflowContractCreate) AddWorkflowIDs ¶
func (wcc *WorkflowContractCreate) AddWorkflowIDs(ids ...uuid.UUID) *WorkflowContractCreate
AddWorkflowIDs adds the "workflows" edge to the Workflow entity by IDs.
func (*WorkflowContractCreate) AddWorkflows ¶
func (wcc *WorkflowContractCreate) AddWorkflows(w ...*Workflow) *WorkflowContractCreate
AddWorkflows adds the "workflows" edges to the Workflow entity.
func (*WorkflowContractCreate) Exec ¶
func (wcc *WorkflowContractCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowContractCreate) ExecX ¶
func (wcc *WorkflowContractCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowContractCreate) Mutation ¶
func (wcc *WorkflowContractCreate) Mutation() *WorkflowContractMutation
Mutation returns the WorkflowContractMutation object of the builder.
func (*WorkflowContractCreate) Save ¶
func (wcc *WorkflowContractCreate) Save(ctx context.Context) (*WorkflowContract, error)
Save creates the WorkflowContract in the database.
func (*WorkflowContractCreate) SaveX ¶
func (wcc *WorkflowContractCreate) SaveX(ctx context.Context) *WorkflowContract
SaveX calls Save and panics if Save returns an error.
func (*WorkflowContractCreate) SetCreatedAt ¶
func (wcc *WorkflowContractCreate) SetCreatedAt(t time.Time) *WorkflowContractCreate
SetCreatedAt sets the "created_at" field.
func (*WorkflowContractCreate) SetDeletedAt ¶
func (wcc *WorkflowContractCreate) SetDeletedAt(t time.Time) *WorkflowContractCreate
SetDeletedAt sets the "deleted_at" field.
func (*WorkflowContractCreate) SetID ¶
func (wcc *WorkflowContractCreate) SetID(u uuid.UUID) *WorkflowContractCreate
SetID sets the "id" field.
func (*WorkflowContractCreate) SetName ¶
func (wcc *WorkflowContractCreate) SetName(s string) *WorkflowContractCreate
SetName sets the "name" field.
func (*WorkflowContractCreate) SetNillableCreatedAt ¶
func (wcc *WorkflowContractCreate) SetNillableCreatedAt(t *time.Time) *WorkflowContractCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*WorkflowContractCreate) SetNillableDeletedAt ¶
func (wcc *WorkflowContractCreate) SetNillableDeletedAt(t *time.Time) *WorkflowContractCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*WorkflowContractCreate) SetNillableID ¶
func (wcc *WorkflowContractCreate) SetNillableID(u *uuid.UUID) *WorkflowContractCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*WorkflowContractCreate) SetNillableOrganizationID ¶
func (wcc *WorkflowContractCreate) SetNillableOrganizationID(id *uuid.UUID) *WorkflowContractCreate
SetNillableOrganizationID sets the "organization" edge to the Organization entity by ID if the given value is not nil.
func (*WorkflowContractCreate) SetOrganization ¶
func (wcc *WorkflowContractCreate) SetOrganization(o *Organization) *WorkflowContractCreate
SetOrganization sets the "organization" edge to the Organization entity.
func (*WorkflowContractCreate) SetOrganizationID ¶
func (wcc *WorkflowContractCreate) SetOrganizationID(id uuid.UUID) *WorkflowContractCreate
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
type WorkflowContractCreateBulk ¶
type WorkflowContractCreateBulk struct {
// contains filtered or unexported fields
}
WorkflowContractCreateBulk is the builder for creating many WorkflowContract entities in bulk.
func (*WorkflowContractCreateBulk) Exec ¶
func (wccb *WorkflowContractCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowContractCreateBulk) ExecX ¶
func (wccb *WorkflowContractCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowContractCreateBulk) Save ¶
func (wccb *WorkflowContractCreateBulk) Save(ctx context.Context) ([]*WorkflowContract, error)
Save creates the WorkflowContract entities in the database.
func (*WorkflowContractCreateBulk) SaveX ¶
func (wccb *WorkflowContractCreateBulk) SaveX(ctx context.Context) []*WorkflowContract
SaveX is like Save, but panics if an error occurs.
type WorkflowContractDelete ¶
type WorkflowContractDelete struct {
// contains filtered or unexported fields
}
WorkflowContractDelete is the builder for deleting a WorkflowContract entity.
func (*WorkflowContractDelete) Exec ¶
func (wcd *WorkflowContractDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*WorkflowContractDelete) ExecX ¶
func (wcd *WorkflowContractDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowContractDelete) Where ¶
func (wcd *WorkflowContractDelete) Where(ps ...predicate.WorkflowContract) *WorkflowContractDelete
Where appends a list predicates to the WorkflowContractDelete builder.
type WorkflowContractDeleteOne ¶
type WorkflowContractDeleteOne struct {
// contains filtered or unexported fields
}
WorkflowContractDeleteOne is the builder for deleting a single WorkflowContract entity.
func (*WorkflowContractDeleteOne) Exec ¶
func (wcdo *WorkflowContractDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*WorkflowContractDeleteOne) ExecX ¶
func (wcdo *WorkflowContractDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowContractDeleteOne) Where ¶
func (wcdo *WorkflowContractDeleteOne) Where(ps ...predicate.WorkflowContract) *WorkflowContractDeleteOne
Where appends a list predicates to the WorkflowContractDelete builder.
type WorkflowContractEdges ¶
type WorkflowContractEdges struct { // Versions holds the value of the versions edge. Versions []*WorkflowContractVersion `json:"versions,omitempty"` // Organization holds the value of the organization edge. Organization *Organization `json:"organization,omitempty"` // Workflows holds the value of the workflows edge. Workflows []*Workflow `json:"workflows,omitempty"` // contains filtered or unexported fields }
WorkflowContractEdges holds the relations/edges for other nodes in the graph.
func (WorkflowContractEdges) OrganizationOrErr ¶
func (e WorkflowContractEdges) OrganizationOrErr() (*Organization, error)
OrganizationOrErr returns the Organization value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (WorkflowContractEdges) VersionsOrErr ¶
func (e WorkflowContractEdges) VersionsOrErr() ([]*WorkflowContractVersion, error)
VersionsOrErr returns the Versions value or an error if the edge was not loaded in eager-loading.
func (WorkflowContractEdges) WorkflowsOrErr ¶
func (e WorkflowContractEdges) WorkflowsOrErr() ([]*Workflow, error)
WorkflowsOrErr returns the Workflows value or an error if the edge was not loaded in eager-loading.
type WorkflowContractGroupBy ¶
type WorkflowContractGroupBy struct {
// contains filtered or unexported fields
}
WorkflowContractGroupBy is the group-by builder for WorkflowContract entities.
func (*WorkflowContractGroupBy) Aggregate ¶
func (wcgb *WorkflowContractGroupBy) Aggregate(fns ...AggregateFunc) *WorkflowContractGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*WorkflowContractGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WorkflowContractGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WorkflowContractGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WorkflowContractGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WorkflowContractGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*WorkflowContractGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WorkflowContractGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WorkflowContractGroupBy) Scan ¶
func (wcgb *WorkflowContractGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*WorkflowContractGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type WorkflowContractMutation ¶
type WorkflowContractMutation struct {
// contains filtered or unexported fields
}
WorkflowContractMutation represents an operation that mutates the WorkflowContract nodes in the graph.
func (*WorkflowContractMutation) AddField ¶
func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) AddVersionIDs ¶
func (m *WorkflowContractMutation) AddVersionIDs(ids ...uuid.UUID)
AddVersionIDs adds the "versions" edge to the WorkflowContractVersion entity by ids.
func (*WorkflowContractMutation) AddWorkflowIDs ¶
func (m *WorkflowContractMutation) AddWorkflowIDs(ids ...uuid.UUID)
AddWorkflowIDs adds the "workflows" edge to the Workflow entity by ids.
func (*WorkflowContractMutation) AddedEdges ¶
func (m *WorkflowContractMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*WorkflowContractMutation) AddedField ¶
func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) AddedFields ¶
func (m *WorkflowContractMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*WorkflowContractMutation) AddedIDs ¶
func (m *WorkflowContractMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*WorkflowContractMutation) ClearDeletedAt ¶
func (m *WorkflowContractMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*WorkflowContractMutation) ClearEdge ¶
func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) ClearField ¶
func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) ClearOrganization ¶
func (m *WorkflowContractMutation) ClearOrganization()
ClearOrganization clears the "organization" edge to the Organization entity.
func (*WorkflowContractMutation) ClearVersions ¶
func (m *WorkflowContractMutation) ClearVersions()
ClearVersions clears the "versions" edge to the WorkflowContractVersion entity.
func (*WorkflowContractMutation) ClearWorkflows ¶
func (m *WorkflowContractMutation) ClearWorkflows()
ClearWorkflows clears the "workflows" edge to the Workflow entity.
func (*WorkflowContractMutation) ClearedEdges ¶
func (m *WorkflowContractMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*WorkflowContractMutation) ClearedFields ¶
func (m *WorkflowContractMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (WorkflowContractMutation) Client ¶
func (m WorkflowContractMutation) 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 (*WorkflowContractMutation) CreatedAt ¶
func (m *WorkflowContractMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*WorkflowContractMutation) DeletedAt ¶
func (m *WorkflowContractMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*WorkflowContractMutation) DeletedAtCleared ¶
func (m *WorkflowContractMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*WorkflowContractMutation) EdgeCleared ¶
func (m *WorkflowContractMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*WorkflowContractMutation) Field ¶
func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) FieldCleared ¶
func (m *WorkflowContractMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*WorkflowContractMutation) Fields ¶
func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) ID ¶
func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*WorkflowContractMutation) Name ¶
func (m *WorkflowContractMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*WorkflowContractMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the WorkflowContract entity. If the WorkflowContract 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 (*WorkflowContractMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the WorkflowContract entity. If the WorkflowContract 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 (*WorkflowContractMutation) 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 (*WorkflowContractMutation) OldName ¶
func (m *WorkflowContractMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the WorkflowContract entity. If the WorkflowContract 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 (*WorkflowContractMutation) Op ¶
func (m *WorkflowContractMutation) Op() Op
Op returns the operation name.
func (*WorkflowContractMutation) OrganizationCleared ¶
func (m *WorkflowContractMutation) OrganizationCleared() bool
OrganizationCleared reports if the "organization" edge to the Organization entity was cleared.
func (*WorkflowContractMutation) OrganizationID ¶
func (m *WorkflowContractMutation) OrganizationID() (id uuid.UUID, exists bool)
OrganizationID returns the "organization" edge ID in the mutation.
func (*WorkflowContractMutation) OrganizationIDs ¶
func (m *WorkflowContractMutation) OrganizationIDs() (ids []uuid.UUID)
OrganizationIDs returns the "organization" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OrganizationID instead. It exists only for internal usage by the builders.
func (*WorkflowContractMutation) RemoveVersionIDs ¶
func (m *WorkflowContractMutation) RemoveVersionIDs(ids ...uuid.UUID)
RemoveVersionIDs removes the "versions" edge to the WorkflowContractVersion entity by IDs.
func (*WorkflowContractMutation) RemoveWorkflowIDs ¶
func (m *WorkflowContractMutation) RemoveWorkflowIDs(ids ...uuid.UUID)
RemoveWorkflowIDs removes the "workflows" edge to the Workflow entity by IDs.
func (*WorkflowContractMutation) RemovedEdges ¶
func (m *WorkflowContractMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*WorkflowContractMutation) RemovedIDs ¶
func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) RemovedVersionsIDs ¶
func (m *WorkflowContractMutation) RemovedVersionsIDs() (ids []uuid.UUID)
RemovedVersions returns the removed IDs of the "versions" edge to the WorkflowContractVersion entity.
func (*WorkflowContractMutation) RemovedWorkflowsIDs ¶
func (m *WorkflowContractMutation) RemovedWorkflowsIDs() (ids []uuid.UUID)
RemovedWorkflows returns the removed IDs of the "workflows" edge to the Workflow entity.
func (*WorkflowContractMutation) ResetCreatedAt ¶
func (m *WorkflowContractMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*WorkflowContractMutation) ResetDeletedAt ¶
func (m *WorkflowContractMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*WorkflowContractMutation) ResetEdge ¶
func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) ResetField ¶
func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) ResetName ¶
func (m *WorkflowContractMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*WorkflowContractMutation) ResetOrganization ¶
func (m *WorkflowContractMutation) ResetOrganization()
ResetOrganization resets all changes to the "organization" edge.
func (*WorkflowContractMutation) ResetVersions ¶
func (m *WorkflowContractMutation) ResetVersions()
ResetVersions resets all changes to the "versions" edge.
func (*WorkflowContractMutation) ResetWorkflows ¶
func (m *WorkflowContractMutation) ResetWorkflows()
ResetWorkflows resets all changes to the "workflows" edge.
func (*WorkflowContractMutation) SetCreatedAt ¶
func (m *WorkflowContractMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*WorkflowContractMutation) SetDeletedAt ¶
func (m *WorkflowContractMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*WorkflowContractMutation) SetField ¶
func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) SetID ¶
func (m *WorkflowContractMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of WorkflowContract entities.
func (*WorkflowContractMutation) SetName ¶
func (m *WorkflowContractMutation) SetName(s string)
SetName sets the "name" field.
func (*WorkflowContractMutation) SetOp ¶
func (m *WorkflowContractMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*WorkflowContractMutation) SetOrganizationID ¶
func (m *WorkflowContractMutation) SetOrganizationID(id uuid.UUID)
SetOrganizationID sets the "organization" edge to the Organization entity by id.
func (WorkflowContractMutation) Tx ¶
func (m WorkflowContractMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*WorkflowContractMutation) Type ¶
func (m *WorkflowContractMutation) Type() string
Type returns the node type of this mutation (WorkflowContract).
func (*WorkflowContractMutation) VersionsCleared ¶
func (m *WorkflowContractMutation) VersionsCleared() bool
VersionsCleared reports if the "versions" edge to the WorkflowContractVersion entity was cleared.
func (*WorkflowContractMutation) VersionsIDs ¶
func (m *WorkflowContractMutation) VersionsIDs() (ids []uuid.UUID)
VersionsIDs returns the "versions" edge IDs in the mutation.
func (*WorkflowContractMutation) Where ¶
func (m *WorkflowContractMutation) Where(ps ...predicate.WorkflowContract)
Where appends a list predicates to the WorkflowContractMutation builder.
func (*WorkflowContractMutation) WhereP ¶
func (m *WorkflowContractMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the WorkflowContractMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
func (*WorkflowContractMutation) WorkflowsCleared ¶
func (m *WorkflowContractMutation) WorkflowsCleared() bool
WorkflowsCleared reports if the "workflows" edge to the Workflow entity was cleared.
func (*WorkflowContractMutation) WorkflowsIDs ¶
func (m *WorkflowContractMutation) WorkflowsIDs() (ids []uuid.UUID)
WorkflowsIDs returns the "workflows" edge IDs in the mutation.
type WorkflowContractQuery ¶
type WorkflowContractQuery struct {
// contains filtered or unexported fields
}
WorkflowContractQuery is the builder for querying WorkflowContract entities.
func (*WorkflowContractQuery) Aggregate ¶
func (wcq *WorkflowContractQuery) Aggregate(fns ...AggregateFunc) *WorkflowContractSelect
Aggregate returns a WorkflowContractSelect configured with the given aggregations.
func (*WorkflowContractQuery) All ¶
func (wcq *WorkflowContractQuery) All(ctx context.Context) ([]*WorkflowContract, error)
All executes the query and returns a list of WorkflowContracts.
func (*WorkflowContractQuery) AllX ¶
func (wcq *WorkflowContractQuery) AllX(ctx context.Context) []*WorkflowContract
AllX is like All, but panics if an error occurs.
func (*WorkflowContractQuery) Clone ¶
func (wcq *WorkflowContractQuery) Clone() *WorkflowContractQuery
Clone returns a duplicate of the WorkflowContractQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*WorkflowContractQuery) Count ¶
func (wcq *WorkflowContractQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*WorkflowContractQuery) CountX ¶
func (wcq *WorkflowContractQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*WorkflowContractQuery) Exist ¶
func (wcq *WorkflowContractQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*WorkflowContractQuery) ExistX ¶
func (wcq *WorkflowContractQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*WorkflowContractQuery) First ¶
func (wcq *WorkflowContractQuery) First(ctx context.Context) (*WorkflowContract, error)
First returns the first WorkflowContract entity from the query. Returns a *NotFoundError when no WorkflowContract was found.
func (*WorkflowContractQuery) FirstID ¶
FirstID returns the first WorkflowContract ID from the query. Returns a *NotFoundError when no WorkflowContract ID was found.
func (*WorkflowContractQuery) FirstIDX ¶
func (wcq *WorkflowContractQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*WorkflowContractQuery) FirstX ¶
func (wcq *WorkflowContractQuery) FirstX(ctx context.Context) *WorkflowContract
FirstX is like First, but panics if an error occurs.
func (*WorkflowContractQuery) GroupBy ¶
func (wcq *WorkflowContractQuery) GroupBy(field string, fields ...string) *WorkflowContractGroupBy
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 { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.WorkflowContract.Query(). GroupBy(workflowcontract.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*WorkflowContractQuery) IDs ¶
IDs executes the query and returns a list of WorkflowContract IDs.
func (*WorkflowContractQuery) IDsX ¶
func (wcq *WorkflowContractQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*WorkflowContractQuery) Limit ¶
func (wcq *WorkflowContractQuery) Limit(limit int) *WorkflowContractQuery
Limit the number of records to be returned by this query.
func (*WorkflowContractQuery) Offset ¶
func (wcq *WorkflowContractQuery) Offset(offset int) *WorkflowContractQuery
Offset to start from.
func (*WorkflowContractQuery) Only ¶
func (wcq *WorkflowContractQuery) Only(ctx context.Context) (*WorkflowContract, error)
Only returns a single WorkflowContract entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one WorkflowContract entity is found. Returns a *NotFoundError when no WorkflowContract entities are found.
func (*WorkflowContractQuery) OnlyID ¶
OnlyID is like Only, but returns the only WorkflowContract ID in the query. Returns a *NotSingularError when more than one WorkflowContract ID is found. Returns a *NotFoundError when no entities are found.
func (*WorkflowContractQuery) OnlyIDX ¶
func (wcq *WorkflowContractQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*WorkflowContractQuery) OnlyX ¶
func (wcq *WorkflowContractQuery) OnlyX(ctx context.Context) *WorkflowContract
OnlyX is like Only, but panics if an error occurs.
func (*WorkflowContractQuery) Order ¶
func (wcq *WorkflowContractQuery) Order(o ...OrderFunc) *WorkflowContractQuery
Order specifies how the records should be ordered.
func (*WorkflowContractQuery) QueryOrganization ¶
func (wcq *WorkflowContractQuery) QueryOrganization() *OrganizationQuery
QueryOrganization chains the current query on the "organization" edge.
func (*WorkflowContractQuery) QueryVersions ¶
func (wcq *WorkflowContractQuery) QueryVersions() *WorkflowContractVersionQuery
QueryVersions chains the current query on the "versions" edge.
func (*WorkflowContractQuery) QueryWorkflows ¶
func (wcq *WorkflowContractQuery) QueryWorkflows() *WorkflowQuery
QueryWorkflows chains the current query on the "workflows" edge.
func (*WorkflowContractQuery) Select ¶
func (wcq *WorkflowContractQuery) Select(fields ...string) *WorkflowContractSelect
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 { Name string `json:"name,omitempty"` } client.WorkflowContract.Query(). Select(workflowcontract.FieldName). Scan(ctx, &v)
func (*WorkflowContractQuery) Unique ¶
func (wcq *WorkflowContractQuery) Unique(unique bool) *WorkflowContractQuery
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 (*WorkflowContractQuery) Where ¶
func (wcq *WorkflowContractQuery) Where(ps ...predicate.WorkflowContract) *WorkflowContractQuery
Where adds a new predicate for the WorkflowContractQuery builder.
func (*WorkflowContractQuery) WithOrganization ¶
func (wcq *WorkflowContractQuery) WithOrganization(opts ...func(*OrganizationQuery)) *WorkflowContractQuery
WithOrganization tells the query-builder to eager-load the nodes that are connected to the "organization" edge. The optional arguments are used to configure the query builder of the edge.
func (*WorkflowContractQuery) WithVersions ¶
func (wcq *WorkflowContractQuery) WithVersions(opts ...func(*WorkflowContractVersionQuery)) *WorkflowContractQuery
WithVersions tells the query-builder to eager-load the nodes that are connected to the "versions" edge. The optional arguments are used to configure the query builder of the edge.
func (*WorkflowContractQuery) WithWorkflows ¶
func (wcq *WorkflowContractQuery) WithWorkflows(opts ...func(*WorkflowQuery)) *WorkflowContractQuery
WithWorkflows tells the query-builder to eager-load the nodes that are connected to the "workflows" edge. The optional arguments are used to configure the query builder of the edge.
type WorkflowContractSelect ¶
type WorkflowContractSelect struct { *WorkflowContractQuery // contains filtered or unexported fields }
WorkflowContractSelect is the builder for selecting fields of WorkflowContract entities.
func (*WorkflowContractSelect) Aggregate ¶
func (wcs *WorkflowContractSelect) Aggregate(fns ...AggregateFunc) *WorkflowContractSelect
Aggregate adds the given aggregation functions to the selector query.
func (*WorkflowContractSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WorkflowContractSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WorkflowContractSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WorkflowContractSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WorkflowContractSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*WorkflowContractSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WorkflowContractSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WorkflowContractSelect) Scan ¶
func (wcs *WorkflowContractSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*WorkflowContractSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type WorkflowContractUpdate ¶
type WorkflowContractUpdate struct {
// contains filtered or unexported fields
}
WorkflowContractUpdate is the builder for updating WorkflowContract entities.
func (*WorkflowContractUpdate) AddVersionIDs ¶
func (wcu *WorkflowContractUpdate) AddVersionIDs(ids ...uuid.UUID) *WorkflowContractUpdate
AddVersionIDs adds the "versions" edge to the WorkflowContractVersion entity by IDs.
func (*WorkflowContractUpdate) AddVersions ¶
func (wcu *WorkflowContractUpdate) AddVersions(w ...*WorkflowContractVersion) *WorkflowContractUpdate
AddVersions adds the "versions" edges to the WorkflowContractVersion entity.
func (*WorkflowContractUpdate) AddWorkflowIDs ¶
func (wcu *WorkflowContractUpdate) AddWorkflowIDs(ids ...uuid.UUID) *WorkflowContractUpdate
AddWorkflowIDs adds the "workflows" edge to the Workflow entity by IDs.
func (*WorkflowContractUpdate) AddWorkflows ¶
func (wcu *WorkflowContractUpdate) AddWorkflows(w ...*Workflow) *WorkflowContractUpdate
AddWorkflows adds the "workflows" edges to the Workflow entity.
func (*WorkflowContractUpdate) ClearDeletedAt ¶
func (wcu *WorkflowContractUpdate) ClearDeletedAt() *WorkflowContractUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*WorkflowContractUpdate) ClearOrganization ¶
func (wcu *WorkflowContractUpdate) ClearOrganization() *WorkflowContractUpdate
ClearOrganization clears the "organization" edge to the Organization entity.
func (*WorkflowContractUpdate) ClearVersions ¶
func (wcu *WorkflowContractUpdate) ClearVersions() *WorkflowContractUpdate
ClearVersions clears all "versions" edges to the WorkflowContractVersion entity.
func (*WorkflowContractUpdate) ClearWorkflows ¶
func (wcu *WorkflowContractUpdate) ClearWorkflows() *WorkflowContractUpdate
ClearWorkflows clears all "workflows" edges to the Workflow entity.
func (*WorkflowContractUpdate) Exec ¶
func (wcu *WorkflowContractUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowContractUpdate) ExecX ¶
func (wcu *WorkflowContractUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowContractUpdate) Mutation ¶
func (wcu *WorkflowContractUpdate) Mutation() *WorkflowContractMutation
Mutation returns the WorkflowContractMutation object of the builder.
func (*WorkflowContractUpdate) RemoveVersionIDs ¶
func (wcu *WorkflowContractUpdate) RemoveVersionIDs(ids ...uuid.UUID) *WorkflowContractUpdate
RemoveVersionIDs removes the "versions" edge to WorkflowContractVersion entities by IDs.
func (*WorkflowContractUpdate) RemoveVersions ¶
func (wcu *WorkflowContractUpdate) RemoveVersions(w ...*WorkflowContractVersion) *WorkflowContractUpdate
RemoveVersions removes "versions" edges to WorkflowContractVersion entities.
func (*WorkflowContractUpdate) RemoveWorkflowIDs ¶
func (wcu *WorkflowContractUpdate) RemoveWorkflowIDs(ids ...uuid.UUID) *WorkflowContractUpdate
RemoveWorkflowIDs removes the "workflows" edge to Workflow entities by IDs.
func (*WorkflowContractUpdate) RemoveWorkflows ¶
func (wcu *WorkflowContractUpdate) RemoveWorkflows(w ...*Workflow) *WorkflowContractUpdate
RemoveWorkflows removes "workflows" edges to Workflow entities.
func (*WorkflowContractUpdate) Save ¶
func (wcu *WorkflowContractUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*WorkflowContractUpdate) SaveX ¶
func (wcu *WorkflowContractUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*WorkflowContractUpdate) SetDeletedAt ¶
func (wcu *WorkflowContractUpdate) SetDeletedAt(t time.Time) *WorkflowContractUpdate
SetDeletedAt sets the "deleted_at" field.
func (*WorkflowContractUpdate) SetName ¶
func (wcu *WorkflowContractUpdate) SetName(s string) *WorkflowContractUpdate
SetName sets the "name" field.
func (*WorkflowContractUpdate) SetNillableDeletedAt ¶
func (wcu *WorkflowContractUpdate) SetNillableDeletedAt(t *time.Time) *WorkflowContractUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*WorkflowContractUpdate) SetNillableOrganizationID ¶
func (wcu *WorkflowContractUpdate) SetNillableOrganizationID(id *uuid.UUID) *WorkflowContractUpdate
SetNillableOrganizationID sets the "organization" edge to the Organization entity by ID if the given value is not nil.
func (*WorkflowContractUpdate) SetOrganization ¶
func (wcu *WorkflowContractUpdate) SetOrganization(o *Organization) *WorkflowContractUpdate
SetOrganization sets the "organization" edge to the Organization entity.
func (*WorkflowContractUpdate) SetOrganizationID ¶
func (wcu *WorkflowContractUpdate) SetOrganizationID(id uuid.UUID) *WorkflowContractUpdate
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*WorkflowContractUpdate) Where ¶
func (wcu *WorkflowContractUpdate) Where(ps ...predicate.WorkflowContract) *WorkflowContractUpdate
Where appends a list predicates to the WorkflowContractUpdate builder.
type WorkflowContractUpdateOne ¶
type WorkflowContractUpdateOne struct {
// contains filtered or unexported fields
}
WorkflowContractUpdateOne is the builder for updating a single WorkflowContract entity.
func (*WorkflowContractUpdateOne) AddVersionIDs ¶
func (wcuo *WorkflowContractUpdateOne) AddVersionIDs(ids ...uuid.UUID) *WorkflowContractUpdateOne
AddVersionIDs adds the "versions" edge to the WorkflowContractVersion entity by IDs.
func (*WorkflowContractUpdateOne) AddVersions ¶
func (wcuo *WorkflowContractUpdateOne) AddVersions(w ...*WorkflowContractVersion) *WorkflowContractUpdateOne
AddVersions adds the "versions" edges to the WorkflowContractVersion entity.
func (*WorkflowContractUpdateOne) AddWorkflowIDs ¶
func (wcuo *WorkflowContractUpdateOne) AddWorkflowIDs(ids ...uuid.UUID) *WorkflowContractUpdateOne
AddWorkflowIDs adds the "workflows" edge to the Workflow entity by IDs.
func (*WorkflowContractUpdateOne) AddWorkflows ¶
func (wcuo *WorkflowContractUpdateOne) AddWorkflows(w ...*Workflow) *WorkflowContractUpdateOne
AddWorkflows adds the "workflows" edges to the Workflow entity.
func (*WorkflowContractUpdateOne) ClearDeletedAt ¶
func (wcuo *WorkflowContractUpdateOne) ClearDeletedAt() *WorkflowContractUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*WorkflowContractUpdateOne) ClearOrganization ¶
func (wcuo *WorkflowContractUpdateOne) ClearOrganization() *WorkflowContractUpdateOne
ClearOrganization clears the "organization" edge to the Organization entity.
func (*WorkflowContractUpdateOne) ClearVersions ¶
func (wcuo *WorkflowContractUpdateOne) ClearVersions() *WorkflowContractUpdateOne
ClearVersions clears all "versions" edges to the WorkflowContractVersion entity.
func (*WorkflowContractUpdateOne) ClearWorkflows ¶
func (wcuo *WorkflowContractUpdateOne) ClearWorkflows() *WorkflowContractUpdateOne
ClearWorkflows clears all "workflows" edges to the Workflow entity.
func (*WorkflowContractUpdateOne) Exec ¶
func (wcuo *WorkflowContractUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*WorkflowContractUpdateOne) ExecX ¶
func (wcuo *WorkflowContractUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowContractUpdateOne) Mutation ¶
func (wcuo *WorkflowContractUpdateOne) Mutation() *WorkflowContractMutation
Mutation returns the WorkflowContractMutation object of the builder.
func (*WorkflowContractUpdateOne) RemoveVersionIDs ¶
func (wcuo *WorkflowContractUpdateOne) RemoveVersionIDs(ids ...uuid.UUID) *WorkflowContractUpdateOne
RemoveVersionIDs removes the "versions" edge to WorkflowContractVersion entities by IDs.
func (*WorkflowContractUpdateOne) RemoveVersions ¶
func (wcuo *WorkflowContractUpdateOne) RemoveVersions(w ...*WorkflowContractVersion) *WorkflowContractUpdateOne
RemoveVersions removes "versions" edges to WorkflowContractVersion entities.
func (*WorkflowContractUpdateOne) RemoveWorkflowIDs ¶
func (wcuo *WorkflowContractUpdateOne) RemoveWorkflowIDs(ids ...uuid.UUID) *WorkflowContractUpdateOne
RemoveWorkflowIDs removes the "workflows" edge to Workflow entities by IDs.
func (*WorkflowContractUpdateOne) RemoveWorkflows ¶
func (wcuo *WorkflowContractUpdateOne) RemoveWorkflows(w ...*Workflow) *WorkflowContractUpdateOne
RemoveWorkflows removes "workflows" edges to Workflow entities.
func (*WorkflowContractUpdateOne) Save ¶
func (wcuo *WorkflowContractUpdateOne) Save(ctx context.Context) (*WorkflowContract, error)
Save executes the query and returns the updated WorkflowContract entity.
func (*WorkflowContractUpdateOne) SaveX ¶
func (wcuo *WorkflowContractUpdateOne) SaveX(ctx context.Context) *WorkflowContract
SaveX is like Save, but panics if an error occurs.
func (*WorkflowContractUpdateOne) Select ¶
func (wcuo *WorkflowContractUpdateOne) Select(field string, fields ...string) *WorkflowContractUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*WorkflowContractUpdateOne) SetDeletedAt ¶
func (wcuo *WorkflowContractUpdateOne) SetDeletedAt(t time.Time) *WorkflowContractUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*WorkflowContractUpdateOne) SetName ¶
func (wcuo *WorkflowContractUpdateOne) SetName(s string) *WorkflowContractUpdateOne
SetName sets the "name" field.
func (*WorkflowContractUpdateOne) SetNillableDeletedAt ¶
func (wcuo *WorkflowContractUpdateOne) SetNillableDeletedAt(t *time.Time) *WorkflowContractUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*WorkflowContractUpdateOne) SetNillableOrganizationID ¶
func (wcuo *WorkflowContractUpdateOne) SetNillableOrganizationID(id *uuid.UUID) *WorkflowContractUpdateOne
SetNillableOrganizationID sets the "organization" edge to the Organization entity by ID if the given value is not nil.
func (*WorkflowContractUpdateOne) SetOrganization ¶
func (wcuo *WorkflowContractUpdateOne) SetOrganization(o *Organization) *WorkflowContractUpdateOne
SetOrganization sets the "organization" edge to the Organization entity.
func (*WorkflowContractUpdateOne) SetOrganizationID ¶
func (wcuo *WorkflowContractUpdateOne) SetOrganizationID(id uuid.UUID) *WorkflowContractUpdateOne
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*WorkflowContractUpdateOne) Where ¶
func (wcuo *WorkflowContractUpdateOne) Where(ps ...predicate.WorkflowContract) *WorkflowContractUpdateOne
Where appends a list predicates to the WorkflowContractUpdate builder.
type WorkflowContractVersion ¶
type WorkflowContractVersion struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // Body holds the value of the "body" field. Body []byte `json:"body,omitempty"` // Revision holds the value of the "revision" field. Revision int `json:"revision,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the WorkflowContractVersionQuery when eager-loading is set. Edges WorkflowContractVersionEdges `json:"edges"` // contains filtered or unexported fields }
WorkflowContractVersion is the model entity for the WorkflowContractVersion schema.
func (*WorkflowContractVersion) QueryContract ¶
func (wcv *WorkflowContractVersion) QueryContract() *WorkflowContractQuery
QueryContract queries the "contract" edge of the WorkflowContractVersion entity.
func (*WorkflowContractVersion) String ¶
func (wcv *WorkflowContractVersion) String() string
String implements the fmt.Stringer.
func (*WorkflowContractVersion) Unwrap ¶
func (wcv *WorkflowContractVersion) Unwrap() *WorkflowContractVersion
Unwrap unwraps the WorkflowContractVersion 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 (*WorkflowContractVersion) Update ¶
func (wcv *WorkflowContractVersion) Update() *WorkflowContractVersionUpdateOne
Update returns a builder for updating this WorkflowContractVersion. Note that you need to call WorkflowContractVersion.Unwrap() before calling this method if this WorkflowContractVersion was returned from a transaction, and the transaction was committed or rolled back.
type WorkflowContractVersionClient ¶
type WorkflowContractVersionClient struct {
// contains filtered or unexported fields
}
WorkflowContractVersionClient is a client for the WorkflowContractVersion schema.
func NewWorkflowContractVersionClient ¶
func NewWorkflowContractVersionClient(c config) *WorkflowContractVersionClient
NewWorkflowContractVersionClient returns a client for the WorkflowContractVersion from the given config.
func (*WorkflowContractVersionClient) Create ¶
func (c *WorkflowContractVersionClient) Create() *WorkflowContractVersionCreate
Create returns a builder for creating a WorkflowContractVersion entity.
func (*WorkflowContractVersionClient) CreateBulk ¶
func (c *WorkflowContractVersionClient) CreateBulk(builders ...*WorkflowContractVersionCreate) *WorkflowContractVersionCreateBulk
CreateBulk returns a builder for creating a bulk of WorkflowContractVersion entities.
func (*WorkflowContractVersionClient) Delete ¶
func (c *WorkflowContractVersionClient) Delete() *WorkflowContractVersionDelete
Delete returns a delete builder for WorkflowContractVersion.
func (*WorkflowContractVersionClient) DeleteOne ¶
func (c *WorkflowContractVersionClient) DeleteOne(wcv *WorkflowContractVersion) *WorkflowContractVersionDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*WorkflowContractVersionClient) DeleteOneID ¶
func (c *WorkflowContractVersionClient) DeleteOneID(id uuid.UUID) *WorkflowContractVersionDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*WorkflowContractVersionClient) Get ¶
func (c *WorkflowContractVersionClient) Get(ctx context.Context, id uuid.UUID) (*WorkflowContractVersion, error)
Get returns a WorkflowContractVersion entity by its id.
func (*WorkflowContractVersionClient) GetX ¶
func (c *WorkflowContractVersionClient) GetX(ctx context.Context, id uuid.UUID) *WorkflowContractVersion
GetX is like Get, but panics if an error occurs.
func (*WorkflowContractVersionClient) Hooks ¶
func (c *WorkflowContractVersionClient) Hooks() []Hook
Hooks returns the client hooks.
func (*WorkflowContractVersionClient) Intercept ¶
func (c *WorkflowContractVersionClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `workflowcontractversion.Intercept(f(g(h())))`.
func (*WorkflowContractVersionClient) Interceptors ¶
func (c *WorkflowContractVersionClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*WorkflowContractVersionClient) Query ¶
func (c *WorkflowContractVersionClient) Query() *WorkflowContractVersionQuery
Query returns a query builder for WorkflowContractVersion.
func (*WorkflowContractVersionClient) QueryContract ¶
func (c *WorkflowContractVersionClient) QueryContract(wcv *WorkflowContractVersion) *WorkflowContractQuery
QueryContract queries the contract edge of a WorkflowContractVersion.
func (*WorkflowContractVersionClient) Update ¶
func (c *WorkflowContractVersionClient) Update() *WorkflowContractVersionUpdate
Update returns an update builder for WorkflowContractVersion.
func (*WorkflowContractVersionClient) UpdateOne ¶
func (c *WorkflowContractVersionClient) UpdateOne(wcv *WorkflowContractVersion) *WorkflowContractVersionUpdateOne
UpdateOne returns an update builder for the given entity.
func (*WorkflowContractVersionClient) UpdateOneID ¶
func (c *WorkflowContractVersionClient) UpdateOneID(id uuid.UUID) *WorkflowContractVersionUpdateOne
UpdateOneID returns an update builder for the given id.
func (*WorkflowContractVersionClient) Use ¶
func (c *WorkflowContractVersionClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `workflowcontractversion.Hooks(f(g(h())))`.
type WorkflowContractVersionCreate ¶
type WorkflowContractVersionCreate struct {
// contains filtered or unexported fields
}
WorkflowContractVersionCreate is the builder for creating a WorkflowContractVersion entity.
func (*WorkflowContractVersionCreate) Exec ¶
func (wcvc *WorkflowContractVersionCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowContractVersionCreate) ExecX ¶
func (wcvc *WorkflowContractVersionCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowContractVersionCreate) Mutation ¶
func (wcvc *WorkflowContractVersionCreate) Mutation() *WorkflowContractVersionMutation
Mutation returns the WorkflowContractVersionMutation object of the builder.
func (*WorkflowContractVersionCreate) Save ¶
func (wcvc *WorkflowContractVersionCreate) Save(ctx context.Context) (*WorkflowContractVersion, error)
Save creates the WorkflowContractVersion in the database.
func (*WorkflowContractVersionCreate) SaveX ¶
func (wcvc *WorkflowContractVersionCreate) SaveX(ctx context.Context) *WorkflowContractVersion
SaveX calls Save and panics if Save returns an error.
func (*WorkflowContractVersionCreate) SetBody ¶
func (wcvc *WorkflowContractVersionCreate) SetBody(b []byte) *WorkflowContractVersionCreate
SetBody sets the "body" field.
func (*WorkflowContractVersionCreate) SetContract ¶
func (wcvc *WorkflowContractVersionCreate) SetContract(w *WorkflowContract) *WorkflowContractVersionCreate
SetContract sets the "contract" edge to the WorkflowContract entity.
func (*WorkflowContractVersionCreate) SetContractID ¶
func (wcvc *WorkflowContractVersionCreate) SetContractID(id uuid.UUID) *WorkflowContractVersionCreate
SetContractID sets the "contract" edge to the WorkflowContract entity by ID.
func (*WorkflowContractVersionCreate) SetCreatedAt ¶
func (wcvc *WorkflowContractVersionCreate) SetCreatedAt(t time.Time) *WorkflowContractVersionCreate
SetCreatedAt sets the "created_at" field.
func (*WorkflowContractVersionCreate) SetID ¶
func (wcvc *WorkflowContractVersionCreate) SetID(u uuid.UUID) *WorkflowContractVersionCreate
SetID sets the "id" field.
func (*WorkflowContractVersionCreate) SetNillableContractID ¶
func (wcvc *WorkflowContractVersionCreate) SetNillableContractID(id *uuid.UUID) *WorkflowContractVersionCreate
SetNillableContractID sets the "contract" edge to the WorkflowContract entity by ID if the given value is not nil.
func (*WorkflowContractVersionCreate) SetNillableCreatedAt ¶
func (wcvc *WorkflowContractVersionCreate) SetNillableCreatedAt(t *time.Time) *WorkflowContractVersionCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*WorkflowContractVersionCreate) SetNillableID ¶
func (wcvc *WorkflowContractVersionCreate) SetNillableID(u *uuid.UUID) *WorkflowContractVersionCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*WorkflowContractVersionCreate) SetNillableRevision ¶
func (wcvc *WorkflowContractVersionCreate) SetNillableRevision(i *int) *WorkflowContractVersionCreate
SetNillableRevision sets the "revision" field if the given value is not nil.
func (*WorkflowContractVersionCreate) SetRevision ¶
func (wcvc *WorkflowContractVersionCreate) SetRevision(i int) *WorkflowContractVersionCreate
SetRevision sets the "revision" field.
type WorkflowContractVersionCreateBulk ¶
type WorkflowContractVersionCreateBulk struct {
// contains filtered or unexported fields
}
WorkflowContractVersionCreateBulk is the builder for creating many WorkflowContractVersion entities in bulk.
func (*WorkflowContractVersionCreateBulk) Exec ¶
func (wcvcb *WorkflowContractVersionCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowContractVersionCreateBulk) ExecX ¶
func (wcvcb *WorkflowContractVersionCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowContractVersionCreateBulk) Save ¶
func (wcvcb *WorkflowContractVersionCreateBulk) Save(ctx context.Context) ([]*WorkflowContractVersion, error)
Save creates the WorkflowContractVersion entities in the database.
func (*WorkflowContractVersionCreateBulk) SaveX ¶
func (wcvcb *WorkflowContractVersionCreateBulk) SaveX(ctx context.Context) []*WorkflowContractVersion
SaveX is like Save, but panics if an error occurs.
type WorkflowContractVersionDelete ¶
type WorkflowContractVersionDelete struct {
// contains filtered or unexported fields
}
WorkflowContractVersionDelete is the builder for deleting a WorkflowContractVersion entity.
func (*WorkflowContractVersionDelete) Exec ¶
func (wcvd *WorkflowContractVersionDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*WorkflowContractVersionDelete) ExecX ¶
func (wcvd *WorkflowContractVersionDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowContractVersionDelete) Where ¶
func (wcvd *WorkflowContractVersionDelete) Where(ps ...predicate.WorkflowContractVersion) *WorkflowContractVersionDelete
Where appends a list predicates to the WorkflowContractVersionDelete builder.
type WorkflowContractVersionDeleteOne ¶
type WorkflowContractVersionDeleteOne struct {
// contains filtered or unexported fields
}
WorkflowContractVersionDeleteOne is the builder for deleting a single WorkflowContractVersion entity.
func (*WorkflowContractVersionDeleteOne) Exec ¶
func (wcvdo *WorkflowContractVersionDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*WorkflowContractVersionDeleteOne) ExecX ¶
func (wcvdo *WorkflowContractVersionDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowContractVersionDeleteOne) Where ¶
func (wcvdo *WorkflowContractVersionDeleteOne) Where(ps ...predicate.WorkflowContractVersion) *WorkflowContractVersionDeleteOne
Where appends a list predicates to the WorkflowContractVersionDelete builder.
type WorkflowContractVersionEdges ¶
type WorkflowContractVersionEdges struct { // Contract holds the value of the contract edge. Contract *WorkflowContract `json:"contract,omitempty"` // contains filtered or unexported fields }
WorkflowContractVersionEdges holds the relations/edges for other nodes in the graph.
func (WorkflowContractVersionEdges) ContractOrErr ¶
func (e WorkflowContractVersionEdges) ContractOrErr() (*WorkflowContract, error)
ContractOrErr returns the Contract value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type WorkflowContractVersionGroupBy ¶
type WorkflowContractVersionGroupBy struct {
// contains filtered or unexported fields
}
WorkflowContractVersionGroupBy is the group-by builder for WorkflowContractVersion entities.
func (*WorkflowContractVersionGroupBy) Aggregate ¶
func (wcvgb *WorkflowContractVersionGroupBy) Aggregate(fns ...AggregateFunc) *WorkflowContractVersionGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*WorkflowContractVersionGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WorkflowContractVersionGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WorkflowContractVersionGroupBy) BoolsX ¶
BoolsX is like Bools, but panics if an error occurs.
func (*WorkflowContractVersionGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WorkflowContractVersionGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*WorkflowContractVersionGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WorkflowContractVersionGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*WorkflowContractVersionGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WorkflowContractVersionGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WorkflowContractVersionGroupBy) Scan ¶
func (wcvgb *WorkflowContractVersionGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*WorkflowContractVersionGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*WorkflowContractVersionGroupBy) StringX ¶
StringX is like String, but panics if an error occurs.
type WorkflowContractVersionMutation ¶
type WorkflowContractVersionMutation struct {
// contains filtered or unexported fields
}
WorkflowContractVersionMutation represents an operation that mutates the WorkflowContractVersion nodes in the graph.
func (*WorkflowContractVersionMutation) AddField ¶
func (m *WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) AddRevision ¶
func (m *WorkflowContractVersionMutation) AddRevision(i int)
AddRevision adds i to the "revision" field.
func (*WorkflowContractVersionMutation) AddedEdges ¶
func (m *WorkflowContractVersionMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*WorkflowContractVersionMutation) AddedField ¶
func (m *WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) AddedFields ¶
func (m *WorkflowContractVersionMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*WorkflowContractVersionMutation) AddedIDs ¶
func (m *WorkflowContractVersionMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*WorkflowContractVersionMutation) AddedRevision ¶
func (m *WorkflowContractVersionMutation) AddedRevision() (r int, exists bool)
AddedRevision returns the value that was added to the "revision" field in this mutation.
func (*WorkflowContractVersionMutation) Body ¶
func (m *WorkflowContractVersionMutation) Body() (r []byte, exists bool)
Body returns the value of the "body" field in the mutation.
func (*WorkflowContractVersionMutation) ClearContract ¶
func (m *WorkflowContractVersionMutation) ClearContract()
ClearContract clears the "contract" edge to the WorkflowContract entity.
func (*WorkflowContractVersionMutation) ClearEdge ¶
func (m *WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) ClearField ¶
func (m *WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) ClearedEdges ¶
func (m *WorkflowContractVersionMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*WorkflowContractVersionMutation) ClearedFields ¶
func (m *WorkflowContractVersionMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (WorkflowContractVersionMutation) Client ¶
func (m WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) ContractCleared ¶
func (m *WorkflowContractVersionMutation) ContractCleared() bool
ContractCleared reports if the "contract" edge to the WorkflowContract entity was cleared.
func (*WorkflowContractVersionMutation) ContractID ¶
func (m *WorkflowContractVersionMutation) ContractID() (id uuid.UUID, exists bool)
ContractID returns the "contract" edge ID in the mutation.
func (*WorkflowContractVersionMutation) ContractIDs ¶
func (m *WorkflowContractVersionMutation) ContractIDs() (ids []uuid.UUID)
ContractIDs returns the "contract" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ContractID instead. It exists only for internal usage by the builders.
func (*WorkflowContractVersionMutation) CreatedAt ¶
func (m *WorkflowContractVersionMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*WorkflowContractVersionMutation) EdgeCleared ¶
func (m *WorkflowContractVersionMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*WorkflowContractVersionMutation) Field ¶
func (m *WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) FieldCleared ¶
func (m *WorkflowContractVersionMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*WorkflowContractVersionMutation) Fields ¶
func (m *WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) ID ¶
func (m *WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*WorkflowContractVersionMutation) OldBody ¶
func (m *WorkflowContractVersionMutation) OldBody(ctx context.Context) (v []byte, err error)
OldBody returns the old "body" field's value of the WorkflowContractVersion entity. If the WorkflowContractVersion 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 (*WorkflowContractVersionMutation) OldCreatedAt ¶
func (m *WorkflowContractVersionMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
OldCreatedAt returns the old "created_at" field's value of the WorkflowContractVersion entity. If the WorkflowContractVersion 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 (*WorkflowContractVersionMutation) OldField ¶
func (m *WorkflowContractVersionMutation) OldField(ctx context.Context, name string) (ent.Value, error)
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 (*WorkflowContractVersionMutation) OldRevision ¶
func (m *WorkflowContractVersionMutation) OldRevision(ctx context.Context) (v int, err error)
OldRevision returns the old "revision" field's value of the WorkflowContractVersion entity. If the WorkflowContractVersion 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 (*WorkflowContractVersionMutation) Op ¶
func (m *WorkflowContractVersionMutation) Op() Op
Op returns the operation name.
func (*WorkflowContractVersionMutation) RemovedEdges ¶
func (m *WorkflowContractVersionMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*WorkflowContractVersionMutation) RemovedIDs ¶
func (m *WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) ResetBody ¶
func (m *WorkflowContractVersionMutation) ResetBody()
ResetBody resets all changes to the "body" field.
func (*WorkflowContractVersionMutation) ResetContract ¶
func (m *WorkflowContractVersionMutation) ResetContract()
ResetContract resets all changes to the "contract" edge.
func (*WorkflowContractVersionMutation) ResetCreatedAt ¶
func (m *WorkflowContractVersionMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*WorkflowContractVersionMutation) ResetEdge ¶
func (m *WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) ResetField ¶
func (m *WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) ResetRevision ¶
func (m *WorkflowContractVersionMutation) ResetRevision()
ResetRevision resets all changes to the "revision" field.
func (*WorkflowContractVersionMutation) Revision ¶
func (m *WorkflowContractVersionMutation) Revision() (r int, exists bool)
Revision returns the value of the "revision" field in the mutation.
func (*WorkflowContractVersionMutation) SetBody ¶
func (m *WorkflowContractVersionMutation) SetBody(b []byte)
SetBody sets the "body" field.
func (*WorkflowContractVersionMutation) SetContractID ¶
func (m *WorkflowContractVersionMutation) SetContractID(id uuid.UUID)
SetContractID sets the "contract" edge to the WorkflowContract entity by id.
func (*WorkflowContractVersionMutation) SetCreatedAt ¶
func (m *WorkflowContractVersionMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*WorkflowContractVersionMutation) SetField ¶
func (m *WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) SetID ¶
func (m *WorkflowContractVersionMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of WorkflowContractVersion entities.
func (*WorkflowContractVersionMutation) SetOp ¶
func (m *WorkflowContractVersionMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*WorkflowContractVersionMutation) SetRevision ¶
func (m *WorkflowContractVersionMutation) SetRevision(i int)
SetRevision sets the "revision" field.
func (WorkflowContractVersionMutation) Tx ¶
func (m WorkflowContractVersionMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*WorkflowContractVersionMutation) Type ¶
func (m *WorkflowContractVersionMutation) Type() string
Type returns the node type of this mutation (WorkflowContractVersion).
func (*WorkflowContractVersionMutation) Where ¶
func (m *WorkflowContractVersionMutation) Where(ps ...predicate.WorkflowContractVersion)
Where appends a list predicates to the WorkflowContractVersionMutation builder.
func (*WorkflowContractVersionMutation) WhereP ¶
func (m *WorkflowContractVersionMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the WorkflowContractVersionMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type WorkflowContractVersionQuery ¶
type WorkflowContractVersionQuery struct {
// contains filtered or unexported fields
}
WorkflowContractVersionQuery is the builder for querying WorkflowContractVersion entities.
func (*WorkflowContractVersionQuery) Aggregate ¶
func (wcvq *WorkflowContractVersionQuery) Aggregate(fns ...AggregateFunc) *WorkflowContractVersionSelect
Aggregate returns a WorkflowContractVersionSelect configured with the given aggregations.
func (*WorkflowContractVersionQuery) All ¶
func (wcvq *WorkflowContractVersionQuery) All(ctx context.Context) ([]*WorkflowContractVersion, error)
All executes the query and returns a list of WorkflowContractVersions.
func (*WorkflowContractVersionQuery) AllX ¶
func (wcvq *WorkflowContractVersionQuery) AllX(ctx context.Context) []*WorkflowContractVersion
AllX is like All, but panics if an error occurs.
func (*WorkflowContractVersionQuery) Clone ¶
func (wcvq *WorkflowContractVersionQuery) Clone() *WorkflowContractVersionQuery
Clone returns a duplicate of the WorkflowContractVersionQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*WorkflowContractVersionQuery) Count ¶
func (wcvq *WorkflowContractVersionQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*WorkflowContractVersionQuery) CountX ¶
func (wcvq *WorkflowContractVersionQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*WorkflowContractVersionQuery) Exist ¶
func (wcvq *WorkflowContractVersionQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*WorkflowContractVersionQuery) ExistX ¶
func (wcvq *WorkflowContractVersionQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*WorkflowContractVersionQuery) First ¶
func (wcvq *WorkflowContractVersionQuery) First(ctx context.Context) (*WorkflowContractVersion, error)
First returns the first WorkflowContractVersion entity from the query. Returns a *NotFoundError when no WorkflowContractVersion was found.
func (*WorkflowContractVersionQuery) FirstID ¶
FirstID returns the first WorkflowContractVersion ID from the query. Returns a *NotFoundError when no WorkflowContractVersion ID was found.
func (*WorkflowContractVersionQuery) FirstIDX ¶
func (wcvq *WorkflowContractVersionQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*WorkflowContractVersionQuery) FirstX ¶
func (wcvq *WorkflowContractVersionQuery) FirstX(ctx context.Context) *WorkflowContractVersion
FirstX is like First, but panics if an error occurs.
func (*WorkflowContractVersionQuery) GroupBy ¶
func (wcvq *WorkflowContractVersionQuery) GroupBy(field string, fields ...string) *WorkflowContractVersionGroupBy
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 { Body []byte `json:"body,omitempty"` Count int `json:"count,omitempty"` } client.WorkflowContractVersion.Query(). GroupBy(workflowcontractversion.FieldBody). Aggregate(ent.Count()). Scan(ctx, &v)
func (*WorkflowContractVersionQuery) IDs ¶
IDs executes the query and returns a list of WorkflowContractVersion IDs.
func (*WorkflowContractVersionQuery) IDsX ¶
func (wcvq *WorkflowContractVersionQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*WorkflowContractVersionQuery) Limit ¶
func (wcvq *WorkflowContractVersionQuery) Limit(limit int) *WorkflowContractVersionQuery
Limit the number of records to be returned by this query.
func (*WorkflowContractVersionQuery) Offset ¶
func (wcvq *WorkflowContractVersionQuery) Offset(offset int) *WorkflowContractVersionQuery
Offset to start from.
func (*WorkflowContractVersionQuery) Only ¶
func (wcvq *WorkflowContractVersionQuery) Only(ctx context.Context) (*WorkflowContractVersion, error)
Only returns a single WorkflowContractVersion entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one WorkflowContractVersion entity is found. Returns a *NotFoundError when no WorkflowContractVersion entities are found.
func (*WorkflowContractVersionQuery) OnlyID ¶
OnlyID is like Only, but returns the only WorkflowContractVersion ID in the query. Returns a *NotSingularError when more than one WorkflowContractVersion ID is found. Returns a *NotFoundError when no entities are found.
func (*WorkflowContractVersionQuery) OnlyIDX ¶
func (wcvq *WorkflowContractVersionQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*WorkflowContractVersionQuery) OnlyX ¶
func (wcvq *WorkflowContractVersionQuery) OnlyX(ctx context.Context) *WorkflowContractVersion
OnlyX is like Only, but panics if an error occurs.
func (*WorkflowContractVersionQuery) Order ¶
func (wcvq *WorkflowContractVersionQuery) Order(o ...OrderFunc) *WorkflowContractVersionQuery
Order specifies how the records should be ordered.
func (*WorkflowContractVersionQuery) QueryContract ¶
func (wcvq *WorkflowContractVersionQuery) QueryContract() *WorkflowContractQuery
QueryContract chains the current query on the "contract" edge.
func (*WorkflowContractVersionQuery) Select ¶
func (wcvq *WorkflowContractVersionQuery) Select(fields ...string) *WorkflowContractVersionSelect
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 { Body []byte `json:"body,omitempty"` } client.WorkflowContractVersion.Query(). Select(workflowcontractversion.FieldBody). Scan(ctx, &v)
func (*WorkflowContractVersionQuery) Unique ¶
func (wcvq *WorkflowContractVersionQuery) Unique(unique bool) *WorkflowContractVersionQuery
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 (*WorkflowContractVersionQuery) Where ¶
func (wcvq *WorkflowContractVersionQuery) Where(ps ...predicate.WorkflowContractVersion) *WorkflowContractVersionQuery
Where adds a new predicate for the WorkflowContractVersionQuery builder.
func (*WorkflowContractVersionQuery) WithContract ¶
func (wcvq *WorkflowContractVersionQuery) WithContract(opts ...func(*WorkflowContractQuery)) *WorkflowContractVersionQuery
WithContract tells the query-builder to eager-load the nodes that are connected to the "contract" edge. The optional arguments are used to configure the query builder of the edge.
type WorkflowContractVersionSelect ¶
type WorkflowContractVersionSelect struct { *WorkflowContractVersionQuery // contains filtered or unexported fields }
WorkflowContractVersionSelect is the builder for selecting fields of WorkflowContractVersion entities.
func (*WorkflowContractVersionSelect) Aggregate ¶
func (wcvs *WorkflowContractVersionSelect) Aggregate(fns ...AggregateFunc) *WorkflowContractVersionSelect
Aggregate adds the given aggregation functions to the selector query.
func (*WorkflowContractVersionSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WorkflowContractVersionSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WorkflowContractVersionSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WorkflowContractVersionSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*WorkflowContractVersionSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WorkflowContractVersionSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*WorkflowContractVersionSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WorkflowContractVersionSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WorkflowContractVersionSelect) Scan ¶
func (wcvs *WorkflowContractVersionSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*WorkflowContractVersionSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*WorkflowContractVersionSelect) StringX ¶
StringX is like String, but panics if an error occurs.
type WorkflowContractVersionUpdate ¶
type WorkflowContractVersionUpdate struct {
// contains filtered or unexported fields
}
WorkflowContractVersionUpdate is the builder for updating WorkflowContractVersion entities.
func (*WorkflowContractVersionUpdate) ClearContract ¶
func (wcvu *WorkflowContractVersionUpdate) ClearContract() *WorkflowContractVersionUpdate
ClearContract clears the "contract" edge to the WorkflowContract entity.
func (*WorkflowContractVersionUpdate) Exec ¶
func (wcvu *WorkflowContractVersionUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowContractVersionUpdate) ExecX ¶
func (wcvu *WorkflowContractVersionUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowContractVersionUpdate) Mutation ¶
func (wcvu *WorkflowContractVersionUpdate) Mutation() *WorkflowContractVersionMutation
Mutation returns the WorkflowContractVersionMutation object of the builder.
func (*WorkflowContractVersionUpdate) Save ¶
func (wcvu *WorkflowContractVersionUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*WorkflowContractVersionUpdate) SaveX ¶
func (wcvu *WorkflowContractVersionUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*WorkflowContractVersionUpdate) SetContract ¶
func (wcvu *WorkflowContractVersionUpdate) SetContract(w *WorkflowContract) *WorkflowContractVersionUpdate
SetContract sets the "contract" edge to the WorkflowContract entity.
func (*WorkflowContractVersionUpdate) SetContractID ¶
func (wcvu *WorkflowContractVersionUpdate) SetContractID(id uuid.UUID) *WorkflowContractVersionUpdate
SetContractID sets the "contract" edge to the WorkflowContract entity by ID.
func (*WorkflowContractVersionUpdate) SetNillableContractID ¶
func (wcvu *WorkflowContractVersionUpdate) SetNillableContractID(id *uuid.UUID) *WorkflowContractVersionUpdate
SetNillableContractID sets the "contract" edge to the WorkflowContract entity by ID if the given value is not nil.
func (*WorkflowContractVersionUpdate) Where ¶
func (wcvu *WorkflowContractVersionUpdate) Where(ps ...predicate.WorkflowContractVersion) *WorkflowContractVersionUpdate
Where appends a list predicates to the WorkflowContractVersionUpdate builder.
type WorkflowContractVersionUpdateOne ¶
type WorkflowContractVersionUpdateOne struct {
// contains filtered or unexported fields
}
WorkflowContractVersionUpdateOne is the builder for updating a single WorkflowContractVersion entity.
func (*WorkflowContractVersionUpdateOne) ClearContract ¶
func (wcvuo *WorkflowContractVersionUpdateOne) ClearContract() *WorkflowContractVersionUpdateOne
ClearContract clears the "contract" edge to the WorkflowContract entity.
func (*WorkflowContractVersionUpdateOne) Exec ¶
func (wcvuo *WorkflowContractVersionUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*WorkflowContractVersionUpdateOne) ExecX ¶
func (wcvuo *WorkflowContractVersionUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowContractVersionUpdateOne) Mutation ¶
func (wcvuo *WorkflowContractVersionUpdateOne) Mutation() *WorkflowContractVersionMutation
Mutation returns the WorkflowContractVersionMutation object of the builder.
func (*WorkflowContractVersionUpdateOne) Save ¶
func (wcvuo *WorkflowContractVersionUpdateOne) Save(ctx context.Context) (*WorkflowContractVersion, error)
Save executes the query and returns the updated WorkflowContractVersion entity.
func (*WorkflowContractVersionUpdateOne) SaveX ¶
func (wcvuo *WorkflowContractVersionUpdateOne) SaveX(ctx context.Context) *WorkflowContractVersion
SaveX is like Save, but panics if an error occurs.
func (*WorkflowContractVersionUpdateOne) Select ¶
func (wcvuo *WorkflowContractVersionUpdateOne) Select(field string, fields ...string) *WorkflowContractVersionUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*WorkflowContractVersionUpdateOne) SetContract ¶
func (wcvuo *WorkflowContractVersionUpdateOne) SetContract(w *WorkflowContract) *WorkflowContractVersionUpdateOne
SetContract sets the "contract" edge to the WorkflowContract entity.
func (*WorkflowContractVersionUpdateOne) SetContractID ¶
func (wcvuo *WorkflowContractVersionUpdateOne) SetContractID(id uuid.UUID) *WorkflowContractVersionUpdateOne
SetContractID sets the "contract" edge to the WorkflowContract entity by ID.
func (*WorkflowContractVersionUpdateOne) SetNillableContractID ¶
func (wcvuo *WorkflowContractVersionUpdateOne) SetNillableContractID(id *uuid.UUID) *WorkflowContractVersionUpdateOne
SetNillableContractID sets the "contract" edge to the WorkflowContract entity by ID if the given value is not nil.
func (*WorkflowContractVersionUpdateOne) Where ¶
func (wcvuo *WorkflowContractVersionUpdateOne) Where(ps ...predicate.WorkflowContractVersion) *WorkflowContractVersionUpdateOne
Where appends a list predicates to the WorkflowContractVersionUpdate builder.
type WorkflowContractVersions ¶
type WorkflowContractVersions []*WorkflowContractVersion
WorkflowContractVersions is a parsable slice of WorkflowContractVersion.
type WorkflowContracts ¶
type WorkflowContracts []*WorkflowContract
WorkflowContracts is a parsable slice of WorkflowContract.
type WorkflowCreate ¶
type WorkflowCreate struct {
// contains filtered or unexported fields
}
WorkflowCreate is the builder for creating a Workflow entity.
func (*WorkflowCreate) AddIntegrationAttachmentIDs ¶
func (wc *WorkflowCreate) AddIntegrationAttachmentIDs(ids ...uuid.UUID) *WorkflowCreate
AddIntegrationAttachmentIDs adds the "integration_attachments" edge to the IntegrationAttachment entity by IDs.
func (*WorkflowCreate) AddIntegrationAttachments ¶
func (wc *WorkflowCreate) AddIntegrationAttachments(i ...*IntegrationAttachment) *WorkflowCreate
AddIntegrationAttachments adds the "integration_attachments" edges to the IntegrationAttachment entity.
func (*WorkflowCreate) AddRobotaccountIDs ¶
func (wc *WorkflowCreate) AddRobotaccountIDs(ids ...uuid.UUID) *WorkflowCreate
AddRobotaccountIDs adds the "robotaccounts" edge to the RobotAccount entity by IDs.
func (*WorkflowCreate) AddRobotaccounts ¶
func (wc *WorkflowCreate) AddRobotaccounts(r ...*RobotAccount) *WorkflowCreate
AddRobotaccounts adds the "robotaccounts" edges to the RobotAccount entity.
func (*WorkflowCreate) AddWorkflowrunIDs ¶
func (wc *WorkflowCreate) AddWorkflowrunIDs(ids ...uuid.UUID) *WorkflowCreate
AddWorkflowrunIDs adds the "workflowruns" edge to the WorkflowRun entity by IDs.
func (*WorkflowCreate) AddWorkflowruns ¶
func (wc *WorkflowCreate) AddWorkflowruns(w ...*WorkflowRun) *WorkflowCreate
AddWorkflowruns adds the "workflowruns" edges to the WorkflowRun entity.
func (*WorkflowCreate) Exec ¶
func (wc *WorkflowCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowCreate) ExecX ¶
func (wc *WorkflowCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowCreate) Mutation ¶
func (wc *WorkflowCreate) Mutation() *WorkflowMutation
Mutation returns the WorkflowMutation object of the builder.
func (*WorkflowCreate) Save ¶
func (wc *WorkflowCreate) Save(ctx context.Context) (*Workflow, error)
Save creates the Workflow in the database.
func (*WorkflowCreate) SaveX ¶
func (wc *WorkflowCreate) SaveX(ctx context.Context) *Workflow
SaveX calls Save and panics if Save returns an error.
func (*WorkflowCreate) SetContract ¶
func (wc *WorkflowCreate) SetContract(w *WorkflowContract) *WorkflowCreate
SetContract sets the "contract" edge to the WorkflowContract entity.
func (*WorkflowCreate) SetContractID ¶
func (wc *WorkflowCreate) SetContractID(id uuid.UUID) *WorkflowCreate
SetContractID sets the "contract" edge to the WorkflowContract entity by ID.
func (*WorkflowCreate) SetCreatedAt ¶
func (wc *WorkflowCreate) SetCreatedAt(t time.Time) *WorkflowCreate
SetCreatedAt sets the "created_at" field.
func (*WorkflowCreate) SetDeletedAt ¶
func (wc *WorkflowCreate) SetDeletedAt(t time.Time) *WorkflowCreate
SetDeletedAt sets the "deleted_at" field.
func (*WorkflowCreate) SetID ¶
func (wc *WorkflowCreate) SetID(u uuid.UUID) *WorkflowCreate
SetID sets the "id" field.
func (*WorkflowCreate) SetName ¶
func (wc *WorkflowCreate) SetName(s string) *WorkflowCreate
SetName sets the "name" field.
func (*WorkflowCreate) SetNillableCreatedAt ¶
func (wc *WorkflowCreate) SetNillableCreatedAt(t *time.Time) *WorkflowCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*WorkflowCreate) SetNillableDeletedAt ¶
func (wc *WorkflowCreate) SetNillableDeletedAt(t *time.Time) *WorkflowCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*WorkflowCreate) SetNillableID ¶
func (wc *WorkflowCreate) SetNillableID(u *uuid.UUID) *WorkflowCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*WorkflowCreate) SetNillableProject ¶
func (wc *WorkflowCreate) SetNillableProject(s *string) *WorkflowCreate
SetNillableProject sets the "project" field if the given value is not nil.
func (*WorkflowCreate) SetNillableRunsCount ¶
func (wc *WorkflowCreate) SetNillableRunsCount(i *int) *WorkflowCreate
SetNillableRunsCount sets the "runs_count" field if the given value is not nil.
func (*WorkflowCreate) SetNillableTeam ¶
func (wc *WorkflowCreate) SetNillableTeam(s *string) *WorkflowCreate
SetNillableTeam sets the "team" field if the given value is not nil.
func (*WorkflowCreate) SetOrganization ¶
func (wc *WorkflowCreate) SetOrganization(o *Organization) *WorkflowCreate
SetOrganization sets the "organization" edge to the Organization entity.
func (*WorkflowCreate) SetOrganizationID ¶
func (wc *WorkflowCreate) SetOrganizationID(id uuid.UUID) *WorkflowCreate
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*WorkflowCreate) SetProject ¶
func (wc *WorkflowCreate) SetProject(s string) *WorkflowCreate
SetProject sets the "project" field.
func (*WorkflowCreate) SetRunsCount ¶
func (wc *WorkflowCreate) SetRunsCount(i int) *WorkflowCreate
SetRunsCount sets the "runs_count" field.
func (*WorkflowCreate) SetTeam ¶
func (wc *WorkflowCreate) SetTeam(s string) *WorkflowCreate
SetTeam sets the "team" field.
type WorkflowCreateBulk ¶
type WorkflowCreateBulk struct {
// contains filtered or unexported fields
}
WorkflowCreateBulk is the builder for creating many Workflow entities in bulk.
func (*WorkflowCreateBulk) Exec ¶
func (wcb *WorkflowCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowCreateBulk) ExecX ¶
func (wcb *WorkflowCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type WorkflowDelete ¶
type WorkflowDelete struct {
// contains filtered or unexported fields
}
WorkflowDelete is the builder for deleting a Workflow entity.
func (*WorkflowDelete) Exec ¶
func (wd *WorkflowDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*WorkflowDelete) ExecX ¶
func (wd *WorkflowDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowDelete) Where ¶
func (wd *WorkflowDelete) Where(ps ...predicate.Workflow) *WorkflowDelete
Where appends a list predicates to the WorkflowDelete builder.
type WorkflowDeleteOne ¶
type WorkflowDeleteOne struct {
// contains filtered or unexported fields
}
WorkflowDeleteOne is the builder for deleting a single Workflow entity.
func (*WorkflowDeleteOne) Exec ¶
func (wdo *WorkflowDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*WorkflowDeleteOne) ExecX ¶
func (wdo *WorkflowDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowDeleteOne) Where ¶
func (wdo *WorkflowDeleteOne) Where(ps ...predicate.Workflow) *WorkflowDeleteOne
Where appends a list predicates to the WorkflowDelete builder.
type WorkflowEdges ¶
type WorkflowEdges struct { // Robotaccounts holds the value of the robotaccounts edge. Robotaccounts []*RobotAccount `json:"robotaccounts,omitempty"` // Workflowruns holds the value of the workflowruns edge. Workflowruns []*WorkflowRun `json:"workflowruns,omitempty"` // Organization holds the value of the organization edge. Organization *Organization `json:"organization,omitempty"` // Contract holds the value of the contract edge. Contract *WorkflowContract `json:"contract,omitempty"` // IntegrationAttachments holds the value of the integration_attachments edge. IntegrationAttachments []*IntegrationAttachment `json:"integration_attachments,omitempty"` // contains filtered or unexported fields }
WorkflowEdges holds the relations/edges for other nodes in the graph.
func (WorkflowEdges) ContractOrErr ¶
func (e WorkflowEdges) ContractOrErr() (*WorkflowContract, error)
ContractOrErr returns the Contract value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (WorkflowEdges) IntegrationAttachmentsOrErr ¶
func (e WorkflowEdges) IntegrationAttachmentsOrErr() ([]*IntegrationAttachment, error)
IntegrationAttachmentsOrErr returns the IntegrationAttachments value or an error if the edge was not loaded in eager-loading.
func (WorkflowEdges) OrganizationOrErr ¶
func (e WorkflowEdges) OrganizationOrErr() (*Organization, error)
OrganizationOrErr returns the Organization value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (WorkflowEdges) RobotaccountsOrErr ¶
func (e WorkflowEdges) RobotaccountsOrErr() ([]*RobotAccount, error)
RobotaccountsOrErr returns the Robotaccounts value or an error if the edge was not loaded in eager-loading.
func (WorkflowEdges) WorkflowrunsOrErr ¶
func (e WorkflowEdges) WorkflowrunsOrErr() ([]*WorkflowRun, error)
WorkflowrunsOrErr returns the Workflowruns value or an error if the edge was not loaded in eager-loading.
type WorkflowGroupBy ¶
type WorkflowGroupBy struct {
// contains filtered or unexported fields
}
WorkflowGroupBy is the group-by builder for Workflow entities.
func (*WorkflowGroupBy) Aggregate ¶
func (wgb *WorkflowGroupBy) Aggregate(fns ...AggregateFunc) *WorkflowGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*WorkflowGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WorkflowGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WorkflowGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WorkflowGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WorkflowGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WorkflowGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WorkflowGroupBy) Scan ¶
func (wgb *WorkflowGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*WorkflowGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type WorkflowMutation ¶
type WorkflowMutation struct {
// contains filtered or unexported fields
}
WorkflowMutation represents an operation that mutates the Workflow nodes in the graph.
func (*WorkflowMutation) AddField ¶
func (m *WorkflowMutation) 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 (*WorkflowMutation) AddIntegrationAttachmentIDs ¶
func (m *WorkflowMutation) AddIntegrationAttachmentIDs(ids ...uuid.UUID)
AddIntegrationAttachmentIDs adds the "integration_attachments" edge to the IntegrationAttachment entity by ids.
func (*WorkflowMutation) AddRobotaccountIDs ¶
func (m *WorkflowMutation) AddRobotaccountIDs(ids ...uuid.UUID)
AddRobotaccountIDs adds the "robotaccounts" edge to the RobotAccount entity by ids.
func (*WorkflowMutation) AddRunsCount ¶
func (m *WorkflowMutation) AddRunsCount(i int)
AddRunsCount adds i to the "runs_count" field.
func (*WorkflowMutation) AddWorkflowrunIDs ¶
func (m *WorkflowMutation) AddWorkflowrunIDs(ids ...uuid.UUID)
AddWorkflowrunIDs adds the "workflowruns" edge to the WorkflowRun entity by ids.
func (*WorkflowMutation) AddedEdges ¶
func (m *WorkflowMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*WorkflowMutation) AddedField ¶
func (m *WorkflowMutation) 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 (*WorkflowMutation) AddedFields ¶
func (m *WorkflowMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*WorkflowMutation) AddedIDs ¶
func (m *WorkflowMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*WorkflowMutation) AddedRunsCount ¶
func (m *WorkflowMutation) AddedRunsCount() (r int, exists bool)
AddedRunsCount returns the value that was added to the "runs_count" field in this mutation.
func (*WorkflowMutation) ClearContract ¶
func (m *WorkflowMutation) ClearContract()
ClearContract clears the "contract" edge to the WorkflowContract entity.
func (*WorkflowMutation) ClearDeletedAt ¶
func (m *WorkflowMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*WorkflowMutation) ClearEdge ¶
func (m *WorkflowMutation) 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 (*WorkflowMutation) ClearField ¶
func (m *WorkflowMutation) 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 (*WorkflowMutation) ClearIntegrationAttachments ¶
func (m *WorkflowMutation) ClearIntegrationAttachments()
ClearIntegrationAttachments clears the "integration_attachments" edge to the IntegrationAttachment entity.
func (*WorkflowMutation) ClearOrganization ¶
func (m *WorkflowMutation) ClearOrganization()
ClearOrganization clears the "organization" edge to the Organization entity.
func (*WorkflowMutation) ClearProject ¶
func (m *WorkflowMutation) ClearProject()
ClearProject clears the value of the "project" field.
func (*WorkflowMutation) ClearRobotaccounts ¶
func (m *WorkflowMutation) ClearRobotaccounts()
ClearRobotaccounts clears the "robotaccounts" edge to the RobotAccount entity.
func (*WorkflowMutation) ClearTeam ¶
func (m *WorkflowMutation) ClearTeam()
ClearTeam clears the value of the "team" field.
func (*WorkflowMutation) ClearWorkflowruns ¶
func (m *WorkflowMutation) ClearWorkflowruns()
ClearWorkflowruns clears the "workflowruns" edge to the WorkflowRun entity.
func (*WorkflowMutation) ClearedEdges ¶
func (m *WorkflowMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*WorkflowMutation) ClearedFields ¶
func (m *WorkflowMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (WorkflowMutation) Client ¶
func (m WorkflowMutation) 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 (*WorkflowMutation) ContractCleared ¶
func (m *WorkflowMutation) ContractCleared() bool
ContractCleared reports if the "contract" edge to the WorkflowContract entity was cleared.
func (*WorkflowMutation) ContractID ¶
func (m *WorkflowMutation) ContractID() (id uuid.UUID, exists bool)
ContractID returns the "contract" edge ID in the mutation.
func (*WorkflowMutation) ContractIDs ¶
func (m *WorkflowMutation) ContractIDs() (ids []uuid.UUID)
ContractIDs returns the "contract" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ContractID instead. It exists only for internal usage by the builders.
func (*WorkflowMutation) CreatedAt ¶
func (m *WorkflowMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*WorkflowMutation) DeletedAt ¶
func (m *WorkflowMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*WorkflowMutation) DeletedAtCleared ¶
func (m *WorkflowMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*WorkflowMutation) EdgeCleared ¶
func (m *WorkflowMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*WorkflowMutation) Field ¶
func (m *WorkflowMutation) 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 (*WorkflowMutation) FieldCleared ¶
func (m *WorkflowMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*WorkflowMutation) Fields ¶
func (m *WorkflowMutation) 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 (*WorkflowMutation) ID ¶
func (m *WorkflowMutation) 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 (*WorkflowMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*WorkflowMutation) IntegrationAttachmentsCleared ¶
func (m *WorkflowMutation) IntegrationAttachmentsCleared() bool
IntegrationAttachmentsCleared reports if the "integration_attachments" edge to the IntegrationAttachment entity was cleared.
func (*WorkflowMutation) IntegrationAttachmentsIDs ¶
func (m *WorkflowMutation) IntegrationAttachmentsIDs() (ids []uuid.UUID)
IntegrationAttachmentsIDs returns the "integration_attachments" edge IDs in the mutation.
func (*WorkflowMutation) Name ¶
func (m *WorkflowMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*WorkflowMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Workflow entity. If the Workflow 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 (*WorkflowMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the Workflow entity. If the Workflow 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 (*WorkflowMutation) 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 (*WorkflowMutation) OldName ¶
func (m *WorkflowMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Workflow entity. If the Workflow 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 (*WorkflowMutation) OldProject ¶
func (m *WorkflowMutation) OldProject(ctx context.Context) (v string, err error)
OldProject returns the old "project" field's value of the Workflow entity. If the Workflow 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 (*WorkflowMutation) OldRunsCount ¶
func (m *WorkflowMutation) OldRunsCount(ctx context.Context) (v int, err error)
OldRunsCount returns the old "runs_count" field's value of the Workflow entity. If the Workflow 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 (*WorkflowMutation) OldTeam ¶
func (m *WorkflowMutation) OldTeam(ctx context.Context) (v string, err error)
OldTeam returns the old "team" field's value of the Workflow entity. If the Workflow 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 (*WorkflowMutation) OrganizationCleared ¶
func (m *WorkflowMutation) OrganizationCleared() bool
OrganizationCleared reports if the "organization" edge to the Organization entity was cleared.
func (*WorkflowMutation) OrganizationID ¶
func (m *WorkflowMutation) OrganizationID() (id uuid.UUID, exists bool)
OrganizationID returns the "organization" edge ID in the mutation.
func (*WorkflowMutation) OrganizationIDs ¶
func (m *WorkflowMutation) OrganizationIDs() (ids []uuid.UUID)
OrganizationIDs returns the "organization" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OrganizationID instead. It exists only for internal usage by the builders.
func (*WorkflowMutation) Project ¶
func (m *WorkflowMutation) Project() (r string, exists bool)
Project returns the value of the "project" field in the mutation.
func (*WorkflowMutation) ProjectCleared ¶
func (m *WorkflowMutation) ProjectCleared() bool
ProjectCleared returns if the "project" field was cleared in this mutation.
func (*WorkflowMutation) RemoveIntegrationAttachmentIDs ¶
func (m *WorkflowMutation) RemoveIntegrationAttachmentIDs(ids ...uuid.UUID)
RemoveIntegrationAttachmentIDs removes the "integration_attachments" edge to the IntegrationAttachment entity by IDs.
func (*WorkflowMutation) RemoveRobotaccountIDs ¶
func (m *WorkflowMutation) RemoveRobotaccountIDs(ids ...uuid.UUID)
RemoveRobotaccountIDs removes the "robotaccounts" edge to the RobotAccount entity by IDs.
func (*WorkflowMutation) RemoveWorkflowrunIDs ¶
func (m *WorkflowMutation) RemoveWorkflowrunIDs(ids ...uuid.UUID)
RemoveWorkflowrunIDs removes the "workflowruns" edge to the WorkflowRun entity by IDs.
func (*WorkflowMutation) RemovedEdges ¶
func (m *WorkflowMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*WorkflowMutation) RemovedIDs ¶
func (m *WorkflowMutation) 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 (*WorkflowMutation) RemovedIntegrationAttachmentsIDs ¶
func (m *WorkflowMutation) RemovedIntegrationAttachmentsIDs() (ids []uuid.UUID)
RemovedIntegrationAttachments returns the removed IDs of the "integration_attachments" edge to the IntegrationAttachment entity.
func (*WorkflowMutation) RemovedRobotaccountsIDs ¶
func (m *WorkflowMutation) RemovedRobotaccountsIDs() (ids []uuid.UUID)
RemovedRobotaccounts returns the removed IDs of the "robotaccounts" edge to the RobotAccount entity.
func (*WorkflowMutation) RemovedWorkflowrunsIDs ¶
func (m *WorkflowMutation) RemovedWorkflowrunsIDs() (ids []uuid.UUID)
RemovedWorkflowruns returns the removed IDs of the "workflowruns" edge to the WorkflowRun entity.
func (*WorkflowMutation) ResetContract ¶
func (m *WorkflowMutation) ResetContract()
ResetContract resets all changes to the "contract" edge.
func (*WorkflowMutation) ResetCreatedAt ¶
func (m *WorkflowMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*WorkflowMutation) ResetDeletedAt ¶
func (m *WorkflowMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*WorkflowMutation) ResetEdge ¶
func (m *WorkflowMutation) 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 (*WorkflowMutation) ResetField ¶
func (m *WorkflowMutation) 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 (*WorkflowMutation) ResetIntegrationAttachments ¶
func (m *WorkflowMutation) ResetIntegrationAttachments()
ResetIntegrationAttachments resets all changes to the "integration_attachments" edge.
func (*WorkflowMutation) ResetName ¶
func (m *WorkflowMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*WorkflowMutation) ResetOrganization ¶
func (m *WorkflowMutation) ResetOrganization()
ResetOrganization resets all changes to the "organization" edge.
func (*WorkflowMutation) ResetProject ¶
func (m *WorkflowMutation) ResetProject()
ResetProject resets all changes to the "project" field.
func (*WorkflowMutation) ResetRobotaccounts ¶
func (m *WorkflowMutation) ResetRobotaccounts()
ResetRobotaccounts resets all changes to the "robotaccounts" edge.
func (*WorkflowMutation) ResetRunsCount ¶
func (m *WorkflowMutation) ResetRunsCount()
ResetRunsCount resets all changes to the "runs_count" field.
func (*WorkflowMutation) ResetTeam ¶
func (m *WorkflowMutation) ResetTeam()
ResetTeam resets all changes to the "team" field.
func (*WorkflowMutation) ResetWorkflowruns ¶
func (m *WorkflowMutation) ResetWorkflowruns()
ResetWorkflowruns resets all changes to the "workflowruns" edge.
func (*WorkflowMutation) RobotaccountsCleared ¶
func (m *WorkflowMutation) RobotaccountsCleared() bool
RobotaccountsCleared reports if the "robotaccounts" edge to the RobotAccount entity was cleared.
func (*WorkflowMutation) RobotaccountsIDs ¶
func (m *WorkflowMutation) RobotaccountsIDs() (ids []uuid.UUID)
RobotaccountsIDs returns the "robotaccounts" edge IDs in the mutation.
func (*WorkflowMutation) RunsCount ¶
func (m *WorkflowMutation) RunsCount() (r int, exists bool)
RunsCount returns the value of the "runs_count" field in the mutation.
func (*WorkflowMutation) SetContractID ¶
func (m *WorkflowMutation) SetContractID(id uuid.UUID)
SetContractID sets the "contract" edge to the WorkflowContract entity by id.
func (*WorkflowMutation) SetCreatedAt ¶
func (m *WorkflowMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*WorkflowMutation) SetDeletedAt ¶
func (m *WorkflowMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*WorkflowMutation) SetField ¶
func (m *WorkflowMutation) 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 (*WorkflowMutation) SetID ¶
func (m *WorkflowMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Workflow entities.
func (*WorkflowMutation) SetName ¶
func (m *WorkflowMutation) SetName(s string)
SetName sets the "name" field.
func (*WorkflowMutation) SetOp ¶
func (m *WorkflowMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*WorkflowMutation) SetOrganizationID ¶
func (m *WorkflowMutation) SetOrganizationID(id uuid.UUID)
SetOrganizationID sets the "organization" edge to the Organization entity by id.
func (*WorkflowMutation) SetProject ¶
func (m *WorkflowMutation) SetProject(s string)
SetProject sets the "project" field.
func (*WorkflowMutation) SetRunsCount ¶
func (m *WorkflowMutation) SetRunsCount(i int)
SetRunsCount sets the "runs_count" field.
func (*WorkflowMutation) SetTeam ¶
func (m *WorkflowMutation) SetTeam(s string)
SetTeam sets the "team" field.
func (*WorkflowMutation) Team ¶
func (m *WorkflowMutation) Team() (r string, exists bool)
Team returns the value of the "team" field in the mutation.
func (*WorkflowMutation) TeamCleared ¶
func (m *WorkflowMutation) TeamCleared() bool
TeamCleared returns if the "team" field was cleared in this mutation.
func (WorkflowMutation) Tx ¶
func (m WorkflowMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*WorkflowMutation) Type ¶
func (m *WorkflowMutation) Type() string
Type returns the node type of this mutation (Workflow).
func (*WorkflowMutation) Where ¶
func (m *WorkflowMutation) Where(ps ...predicate.Workflow)
Where appends a list predicates to the WorkflowMutation builder.
func (*WorkflowMutation) WhereP ¶
func (m *WorkflowMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the WorkflowMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
func (*WorkflowMutation) WorkflowrunsCleared ¶
func (m *WorkflowMutation) WorkflowrunsCleared() bool
WorkflowrunsCleared reports if the "workflowruns" edge to the WorkflowRun entity was cleared.
func (*WorkflowMutation) WorkflowrunsIDs ¶
func (m *WorkflowMutation) WorkflowrunsIDs() (ids []uuid.UUID)
WorkflowrunsIDs returns the "workflowruns" edge IDs in the mutation.
type WorkflowQuery ¶
type WorkflowQuery struct {
// contains filtered or unexported fields
}
WorkflowQuery is the builder for querying Workflow entities.
func (*WorkflowQuery) Aggregate ¶
func (wq *WorkflowQuery) Aggregate(fns ...AggregateFunc) *WorkflowSelect
Aggregate returns a WorkflowSelect configured with the given aggregations.
func (*WorkflowQuery) All ¶
func (wq *WorkflowQuery) All(ctx context.Context) ([]*Workflow, error)
All executes the query and returns a list of Workflows.
func (*WorkflowQuery) AllX ¶
func (wq *WorkflowQuery) AllX(ctx context.Context) []*Workflow
AllX is like All, but panics if an error occurs.
func (*WorkflowQuery) Clone ¶
func (wq *WorkflowQuery) Clone() *WorkflowQuery
Clone returns a duplicate of the WorkflowQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*WorkflowQuery) Count ¶
func (wq *WorkflowQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*WorkflowQuery) CountX ¶
func (wq *WorkflowQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*WorkflowQuery) Exist ¶
func (wq *WorkflowQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*WorkflowQuery) ExistX ¶
func (wq *WorkflowQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*WorkflowQuery) First ¶
func (wq *WorkflowQuery) First(ctx context.Context) (*Workflow, error)
First returns the first Workflow entity from the query. Returns a *NotFoundError when no Workflow was found.
func (*WorkflowQuery) FirstID ¶
FirstID returns the first Workflow ID from the query. Returns a *NotFoundError when no Workflow ID was found.
func (*WorkflowQuery) FirstIDX ¶
func (wq *WorkflowQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*WorkflowQuery) FirstX ¶
func (wq *WorkflowQuery) FirstX(ctx context.Context) *Workflow
FirstX is like First, but panics if an error occurs.
func (*WorkflowQuery) GroupBy ¶
func (wq *WorkflowQuery) GroupBy(field string, fields ...string) *WorkflowGroupBy
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 { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.Workflow.Query(). GroupBy(workflow.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*WorkflowQuery) IDsX ¶
func (wq *WorkflowQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*WorkflowQuery) Limit ¶
func (wq *WorkflowQuery) Limit(limit int) *WorkflowQuery
Limit the number of records to be returned by this query.
func (*WorkflowQuery) Offset ¶
func (wq *WorkflowQuery) Offset(offset int) *WorkflowQuery
Offset to start from.
func (*WorkflowQuery) Only ¶
func (wq *WorkflowQuery) Only(ctx context.Context) (*Workflow, error)
Only returns a single Workflow entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Workflow entity is found. Returns a *NotFoundError when no Workflow entities are found.
func (*WorkflowQuery) OnlyID ¶
OnlyID is like Only, but returns the only Workflow ID in the query. Returns a *NotSingularError when more than one Workflow ID is found. Returns a *NotFoundError when no entities are found.
func (*WorkflowQuery) OnlyIDX ¶
func (wq *WorkflowQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*WorkflowQuery) OnlyX ¶
func (wq *WorkflowQuery) OnlyX(ctx context.Context) *Workflow
OnlyX is like Only, but panics if an error occurs.
func (*WorkflowQuery) Order ¶
func (wq *WorkflowQuery) Order(o ...OrderFunc) *WorkflowQuery
Order specifies how the records should be ordered.
func (*WorkflowQuery) QueryContract ¶
func (wq *WorkflowQuery) QueryContract() *WorkflowContractQuery
QueryContract chains the current query on the "contract" edge.
func (*WorkflowQuery) QueryIntegrationAttachments ¶
func (wq *WorkflowQuery) QueryIntegrationAttachments() *IntegrationAttachmentQuery
QueryIntegrationAttachments chains the current query on the "integration_attachments" edge.
func (*WorkflowQuery) QueryOrganization ¶
func (wq *WorkflowQuery) QueryOrganization() *OrganizationQuery
QueryOrganization chains the current query on the "organization" edge.
func (*WorkflowQuery) QueryRobotaccounts ¶
func (wq *WorkflowQuery) QueryRobotaccounts() *RobotAccountQuery
QueryRobotaccounts chains the current query on the "robotaccounts" edge.
func (*WorkflowQuery) QueryWorkflowruns ¶
func (wq *WorkflowQuery) QueryWorkflowruns() *WorkflowRunQuery
QueryWorkflowruns chains the current query on the "workflowruns" edge.
func (*WorkflowQuery) Select ¶
func (wq *WorkflowQuery) Select(fields ...string) *WorkflowSelect
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 { Name string `json:"name,omitempty"` } client.Workflow.Query(). Select(workflow.FieldName). Scan(ctx, &v)
func (*WorkflowQuery) Unique ¶
func (wq *WorkflowQuery) Unique(unique bool) *WorkflowQuery
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 (*WorkflowQuery) Where ¶
func (wq *WorkflowQuery) Where(ps ...predicate.Workflow) *WorkflowQuery
Where adds a new predicate for the WorkflowQuery builder.
func (*WorkflowQuery) WithContract ¶
func (wq *WorkflowQuery) WithContract(opts ...func(*WorkflowContractQuery)) *WorkflowQuery
WithContract tells the query-builder to eager-load the nodes that are connected to the "contract" edge. The optional arguments are used to configure the query builder of the edge.
func (*WorkflowQuery) WithIntegrationAttachments ¶
func (wq *WorkflowQuery) WithIntegrationAttachments(opts ...func(*IntegrationAttachmentQuery)) *WorkflowQuery
WithIntegrationAttachments tells the query-builder to eager-load the nodes that are connected to the "integration_attachments" edge. The optional arguments are used to configure the query builder of the edge.
func (*WorkflowQuery) WithOrganization ¶
func (wq *WorkflowQuery) WithOrganization(opts ...func(*OrganizationQuery)) *WorkflowQuery
WithOrganization tells the query-builder to eager-load the nodes that are connected to the "organization" edge. The optional arguments are used to configure the query builder of the edge.
func (*WorkflowQuery) WithRobotaccounts ¶
func (wq *WorkflowQuery) WithRobotaccounts(opts ...func(*RobotAccountQuery)) *WorkflowQuery
WithRobotaccounts tells the query-builder to eager-load the nodes that are connected to the "robotaccounts" edge. The optional arguments are used to configure the query builder of the edge.
func (*WorkflowQuery) WithWorkflowruns ¶
func (wq *WorkflowQuery) WithWorkflowruns(opts ...func(*WorkflowRunQuery)) *WorkflowQuery
WithWorkflowruns tells the query-builder to eager-load the nodes that are connected to the "workflowruns" edge. The optional arguments are used to configure the query builder of the edge.
type WorkflowRun ¶
type WorkflowRun 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"` // FinishedAt holds the value of the "finished_at" field. FinishedAt time.Time `json:"finished_at,omitempty"` // State holds the value of the "state" field. State biz.WorkflowRunStatus `json:"state,omitempty"` // Reason holds the value of the "reason" field. Reason string `json:"reason,omitempty"` // RunURL holds the value of the "run_url" field. RunURL string `json:"run_url,omitempty"` // RunnerType holds the value of the "runner_type" field. RunnerType string `json:"runner_type,omitempty"` // Attestation holds the value of the "attestation" field. Attestation *dsse.Envelope `json:"attestation,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the WorkflowRunQuery when eager-loading is set. Edges WorkflowRunEdges `json:"edges"` // contains filtered or unexported fields }
WorkflowRun is the model entity for the WorkflowRun schema.
func (*WorkflowRun) QueryContractVersion ¶
func (wr *WorkflowRun) QueryContractVersion() *WorkflowContractVersionQuery
QueryContractVersion queries the "contract_version" edge of the WorkflowRun entity.
func (*WorkflowRun) QueryRobotaccount ¶
func (wr *WorkflowRun) QueryRobotaccount() *RobotAccountQuery
QueryRobotaccount queries the "robotaccount" edge of the WorkflowRun entity.
func (*WorkflowRun) QueryWorkflow ¶
func (wr *WorkflowRun) QueryWorkflow() *WorkflowQuery
QueryWorkflow queries the "workflow" edge of the WorkflowRun entity.
func (*WorkflowRun) String ¶
func (wr *WorkflowRun) String() string
String implements the fmt.Stringer.
func (*WorkflowRun) Unwrap ¶
func (wr *WorkflowRun) Unwrap() *WorkflowRun
Unwrap unwraps the WorkflowRun 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 (*WorkflowRun) Update ¶
func (wr *WorkflowRun) Update() *WorkflowRunUpdateOne
Update returns a builder for updating this WorkflowRun. Note that you need to call WorkflowRun.Unwrap() before calling this method if this WorkflowRun was returned from a transaction, and the transaction was committed or rolled back.
type WorkflowRunClient ¶
type WorkflowRunClient struct {
// contains filtered or unexported fields
}
WorkflowRunClient is a client for the WorkflowRun schema.
func NewWorkflowRunClient ¶
func NewWorkflowRunClient(c config) *WorkflowRunClient
NewWorkflowRunClient returns a client for the WorkflowRun from the given config.
func (*WorkflowRunClient) Create ¶
func (c *WorkflowRunClient) Create() *WorkflowRunCreate
Create returns a builder for creating a WorkflowRun entity.
func (*WorkflowRunClient) CreateBulk ¶
func (c *WorkflowRunClient) CreateBulk(builders ...*WorkflowRunCreate) *WorkflowRunCreateBulk
CreateBulk returns a builder for creating a bulk of WorkflowRun entities.
func (*WorkflowRunClient) Delete ¶
func (c *WorkflowRunClient) Delete() *WorkflowRunDelete
Delete returns a delete builder for WorkflowRun.
func (*WorkflowRunClient) DeleteOne ¶
func (c *WorkflowRunClient) DeleteOne(wr *WorkflowRun) *WorkflowRunDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*WorkflowRunClient) DeleteOneID ¶
func (c *WorkflowRunClient) DeleteOneID(id uuid.UUID) *WorkflowRunDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*WorkflowRunClient) Get ¶
func (c *WorkflowRunClient) Get(ctx context.Context, id uuid.UUID) (*WorkflowRun, error)
Get returns a WorkflowRun entity by its id.
func (*WorkflowRunClient) GetX ¶
func (c *WorkflowRunClient) GetX(ctx context.Context, id uuid.UUID) *WorkflowRun
GetX is like Get, but panics if an error occurs.
func (*WorkflowRunClient) Hooks ¶
func (c *WorkflowRunClient) Hooks() []Hook
Hooks returns the client hooks.
func (*WorkflowRunClient) Intercept ¶
func (c *WorkflowRunClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `workflowrun.Intercept(f(g(h())))`.
func (*WorkflowRunClient) Interceptors ¶
func (c *WorkflowRunClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*WorkflowRunClient) Query ¶
func (c *WorkflowRunClient) Query() *WorkflowRunQuery
Query returns a query builder for WorkflowRun.
func (*WorkflowRunClient) QueryContractVersion ¶
func (c *WorkflowRunClient) QueryContractVersion(wr *WorkflowRun) *WorkflowContractVersionQuery
QueryContractVersion queries the contract_version edge of a WorkflowRun.
func (*WorkflowRunClient) QueryRobotaccount ¶
func (c *WorkflowRunClient) QueryRobotaccount(wr *WorkflowRun) *RobotAccountQuery
QueryRobotaccount queries the robotaccount edge of a WorkflowRun.
func (*WorkflowRunClient) QueryWorkflow ¶
func (c *WorkflowRunClient) QueryWorkflow(wr *WorkflowRun) *WorkflowQuery
QueryWorkflow queries the workflow edge of a WorkflowRun.
func (*WorkflowRunClient) Update ¶
func (c *WorkflowRunClient) Update() *WorkflowRunUpdate
Update returns an update builder for WorkflowRun.
func (*WorkflowRunClient) UpdateOne ¶
func (c *WorkflowRunClient) UpdateOne(wr *WorkflowRun) *WorkflowRunUpdateOne
UpdateOne returns an update builder for the given entity.
func (*WorkflowRunClient) UpdateOneID ¶
func (c *WorkflowRunClient) UpdateOneID(id uuid.UUID) *WorkflowRunUpdateOne
UpdateOneID returns an update builder for the given id.
func (*WorkflowRunClient) Use ¶
func (c *WorkflowRunClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `workflowrun.Hooks(f(g(h())))`.
type WorkflowRunCreate ¶
type WorkflowRunCreate struct {
// contains filtered or unexported fields
}
WorkflowRunCreate is the builder for creating a WorkflowRun entity.
func (*WorkflowRunCreate) Exec ¶
func (wrc *WorkflowRunCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowRunCreate) ExecX ¶
func (wrc *WorkflowRunCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowRunCreate) Mutation ¶
func (wrc *WorkflowRunCreate) Mutation() *WorkflowRunMutation
Mutation returns the WorkflowRunMutation object of the builder.
func (*WorkflowRunCreate) Save ¶
func (wrc *WorkflowRunCreate) Save(ctx context.Context) (*WorkflowRun, error)
Save creates the WorkflowRun in the database.
func (*WorkflowRunCreate) SaveX ¶
func (wrc *WorkflowRunCreate) SaveX(ctx context.Context) *WorkflowRun
SaveX calls Save and panics if Save returns an error.
func (*WorkflowRunCreate) SetAttestation ¶ added in v0.11.1
func (wrc *WorkflowRunCreate) SetAttestation(d *dsse.Envelope) *WorkflowRunCreate
SetAttestation sets the "attestation" field.
func (*WorkflowRunCreate) SetContractVersion ¶
func (wrc *WorkflowRunCreate) SetContractVersion(w *WorkflowContractVersion) *WorkflowRunCreate
SetContractVersion sets the "contract_version" edge to the WorkflowContractVersion entity.
func (*WorkflowRunCreate) SetContractVersionID ¶
func (wrc *WorkflowRunCreate) SetContractVersionID(id uuid.UUID) *WorkflowRunCreate
SetContractVersionID sets the "contract_version" edge to the WorkflowContractVersion entity by ID.
func (*WorkflowRunCreate) SetCreatedAt ¶
func (wrc *WorkflowRunCreate) SetCreatedAt(t time.Time) *WorkflowRunCreate
SetCreatedAt sets the "created_at" field.
func (*WorkflowRunCreate) SetFinishedAt ¶
func (wrc *WorkflowRunCreate) SetFinishedAt(t time.Time) *WorkflowRunCreate
SetFinishedAt sets the "finished_at" field.
func (*WorkflowRunCreate) SetID ¶
func (wrc *WorkflowRunCreate) SetID(u uuid.UUID) *WorkflowRunCreate
SetID sets the "id" field.
func (*WorkflowRunCreate) SetNillableContractVersionID ¶
func (wrc *WorkflowRunCreate) SetNillableContractVersionID(id *uuid.UUID) *WorkflowRunCreate
SetNillableContractVersionID sets the "contract_version" edge to the WorkflowContractVersion entity by ID if the given value is not nil.
func (*WorkflowRunCreate) SetNillableCreatedAt ¶
func (wrc *WorkflowRunCreate) SetNillableCreatedAt(t *time.Time) *WorkflowRunCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*WorkflowRunCreate) SetNillableFinishedAt ¶
func (wrc *WorkflowRunCreate) SetNillableFinishedAt(t *time.Time) *WorkflowRunCreate
SetNillableFinishedAt sets the "finished_at" field if the given value is not nil.
func (*WorkflowRunCreate) SetNillableID ¶
func (wrc *WorkflowRunCreate) SetNillableID(u *uuid.UUID) *WorkflowRunCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*WorkflowRunCreate) SetNillableReason ¶
func (wrc *WorkflowRunCreate) SetNillableReason(s *string) *WorkflowRunCreate
SetNillableReason sets the "reason" field if the given value is not nil.
func (*WorkflowRunCreate) SetNillableRobotaccountID ¶
func (wrc *WorkflowRunCreate) SetNillableRobotaccountID(id *uuid.UUID) *WorkflowRunCreate
SetNillableRobotaccountID sets the "robotaccount" edge to the RobotAccount entity by ID if the given value is not nil.
func (*WorkflowRunCreate) SetNillableRunURL ¶
func (wrc *WorkflowRunCreate) SetNillableRunURL(s *string) *WorkflowRunCreate
SetNillableRunURL sets the "run_url" field if the given value is not nil.
func (*WorkflowRunCreate) SetNillableRunnerType ¶
func (wrc *WorkflowRunCreate) SetNillableRunnerType(s *string) *WorkflowRunCreate
SetNillableRunnerType sets the "runner_type" field if the given value is not nil.
func (*WorkflowRunCreate) SetNillableState ¶
func (wrc *WorkflowRunCreate) SetNillableState(brs *biz.WorkflowRunStatus) *WorkflowRunCreate
SetNillableState sets the "state" field if the given value is not nil.
func (*WorkflowRunCreate) SetNillableWorkflowID ¶
func (wrc *WorkflowRunCreate) SetNillableWorkflowID(id *uuid.UUID) *WorkflowRunCreate
SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.
func (*WorkflowRunCreate) SetReason ¶
func (wrc *WorkflowRunCreate) SetReason(s string) *WorkflowRunCreate
SetReason sets the "reason" field.
func (*WorkflowRunCreate) SetRobotaccount ¶
func (wrc *WorkflowRunCreate) SetRobotaccount(r *RobotAccount) *WorkflowRunCreate
SetRobotaccount sets the "robotaccount" edge to the RobotAccount entity.
func (*WorkflowRunCreate) SetRobotaccountID ¶
func (wrc *WorkflowRunCreate) SetRobotaccountID(id uuid.UUID) *WorkflowRunCreate
SetRobotaccountID sets the "robotaccount" edge to the RobotAccount entity by ID.
func (*WorkflowRunCreate) SetRunURL ¶
func (wrc *WorkflowRunCreate) SetRunURL(s string) *WorkflowRunCreate
SetRunURL sets the "run_url" field.
func (*WorkflowRunCreate) SetRunnerType ¶
func (wrc *WorkflowRunCreate) SetRunnerType(s string) *WorkflowRunCreate
SetRunnerType sets the "runner_type" field.
func (*WorkflowRunCreate) SetState ¶
func (wrc *WorkflowRunCreate) SetState(brs biz.WorkflowRunStatus) *WorkflowRunCreate
SetState sets the "state" field.
func (*WorkflowRunCreate) SetWorkflow ¶
func (wrc *WorkflowRunCreate) SetWorkflow(w *Workflow) *WorkflowRunCreate
SetWorkflow sets the "workflow" edge to the Workflow entity.
func (*WorkflowRunCreate) SetWorkflowID ¶
func (wrc *WorkflowRunCreate) SetWorkflowID(id uuid.UUID) *WorkflowRunCreate
SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.
type WorkflowRunCreateBulk ¶
type WorkflowRunCreateBulk struct {
// contains filtered or unexported fields
}
WorkflowRunCreateBulk is the builder for creating many WorkflowRun entities in bulk.
func (*WorkflowRunCreateBulk) Exec ¶
func (wrcb *WorkflowRunCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowRunCreateBulk) ExecX ¶
func (wrcb *WorkflowRunCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowRunCreateBulk) Save ¶
func (wrcb *WorkflowRunCreateBulk) Save(ctx context.Context) ([]*WorkflowRun, error)
Save creates the WorkflowRun entities in the database.
func (*WorkflowRunCreateBulk) SaveX ¶
func (wrcb *WorkflowRunCreateBulk) SaveX(ctx context.Context) []*WorkflowRun
SaveX is like Save, but panics if an error occurs.
type WorkflowRunDelete ¶
type WorkflowRunDelete struct {
// contains filtered or unexported fields
}
WorkflowRunDelete is the builder for deleting a WorkflowRun entity.
func (*WorkflowRunDelete) Exec ¶
func (wrd *WorkflowRunDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*WorkflowRunDelete) ExecX ¶
func (wrd *WorkflowRunDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowRunDelete) Where ¶
func (wrd *WorkflowRunDelete) Where(ps ...predicate.WorkflowRun) *WorkflowRunDelete
Where appends a list predicates to the WorkflowRunDelete builder.
type WorkflowRunDeleteOne ¶
type WorkflowRunDeleteOne struct {
// contains filtered or unexported fields
}
WorkflowRunDeleteOne is the builder for deleting a single WorkflowRun entity.
func (*WorkflowRunDeleteOne) Exec ¶
func (wrdo *WorkflowRunDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*WorkflowRunDeleteOne) ExecX ¶
func (wrdo *WorkflowRunDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowRunDeleteOne) Where ¶
func (wrdo *WorkflowRunDeleteOne) Where(ps ...predicate.WorkflowRun) *WorkflowRunDeleteOne
Where appends a list predicates to the WorkflowRunDelete builder.
type WorkflowRunEdges ¶
type WorkflowRunEdges struct { // Workflow holds the value of the workflow edge. Workflow *Workflow `json:"workflow,omitempty"` // Robotaccount holds the value of the robotaccount edge. Robotaccount *RobotAccount `json:"robotaccount,omitempty"` // ContractVersion holds the value of the contract_version edge. ContractVersion *WorkflowContractVersion `json:"contract_version,omitempty"` // contains filtered or unexported fields }
WorkflowRunEdges holds the relations/edges for other nodes in the graph.
func (WorkflowRunEdges) ContractVersionOrErr ¶
func (e WorkflowRunEdges) ContractVersionOrErr() (*WorkflowContractVersion, error)
ContractVersionOrErr returns the ContractVersion value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (WorkflowRunEdges) RobotaccountOrErr ¶
func (e WorkflowRunEdges) RobotaccountOrErr() (*RobotAccount, error)
RobotaccountOrErr returns the Robotaccount value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (WorkflowRunEdges) WorkflowOrErr ¶
func (e WorkflowRunEdges) WorkflowOrErr() (*Workflow, error)
WorkflowOrErr returns the Workflow value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type WorkflowRunGroupBy ¶
type WorkflowRunGroupBy struct {
// contains filtered or unexported fields
}
WorkflowRunGroupBy is the group-by builder for WorkflowRun entities.
func (*WorkflowRunGroupBy) Aggregate ¶
func (wrgb *WorkflowRunGroupBy) Aggregate(fns ...AggregateFunc) *WorkflowRunGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*WorkflowRunGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WorkflowRunGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WorkflowRunGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WorkflowRunGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WorkflowRunGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WorkflowRunGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WorkflowRunGroupBy) Scan ¶
func (wrgb *WorkflowRunGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*WorkflowRunGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type WorkflowRunMutation ¶
type WorkflowRunMutation struct {
// contains filtered or unexported fields
}
WorkflowRunMutation represents an operation that mutates the WorkflowRun nodes in the graph.
func (*WorkflowRunMutation) AddField ¶
func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) AddedEdges ¶
func (m *WorkflowRunMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*WorkflowRunMutation) AddedField ¶
func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) AddedFields ¶
func (m *WorkflowRunMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*WorkflowRunMutation) AddedIDs ¶
func (m *WorkflowRunMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*WorkflowRunMutation) Attestation ¶ added in v0.11.1
func (m *WorkflowRunMutation) Attestation() (r *dsse.Envelope, exists bool)
Attestation returns the value of the "attestation" field in the mutation.
func (*WorkflowRunMutation) AttestationCleared ¶ added in v0.11.1
func (m *WorkflowRunMutation) AttestationCleared() bool
AttestationCleared returns if the "attestation" field was cleared in this mutation.
func (*WorkflowRunMutation) ClearAttestation ¶ added in v0.11.1
func (m *WorkflowRunMutation) ClearAttestation()
ClearAttestation clears the value of the "attestation" field.
func (*WorkflowRunMutation) ClearContractVersion ¶
func (m *WorkflowRunMutation) ClearContractVersion()
ClearContractVersion clears the "contract_version" edge to the WorkflowContractVersion entity.
func (*WorkflowRunMutation) ClearEdge ¶
func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) ClearField ¶
func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) ClearFinishedAt ¶
func (m *WorkflowRunMutation) ClearFinishedAt()
ClearFinishedAt clears the value of the "finished_at" field.
func (*WorkflowRunMutation) ClearReason ¶
func (m *WorkflowRunMutation) ClearReason()
ClearReason clears the value of the "reason" field.
func (*WorkflowRunMutation) ClearRobotaccount ¶
func (m *WorkflowRunMutation) ClearRobotaccount()
ClearRobotaccount clears the "robotaccount" edge to the RobotAccount entity.
func (*WorkflowRunMutation) ClearRunURL ¶
func (m *WorkflowRunMutation) ClearRunURL()
ClearRunURL clears the value of the "run_url" field.
func (*WorkflowRunMutation) ClearRunnerType ¶
func (m *WorkflowRunMutation) ClearRunnerType()
ClearRunnerType clears the value of the "runner_type" field.
func (*WorkflowRunMutation) ClearWorkflow ¶
func (m *WorkflowRunMutation) ClearWorkflow()
ClearWorkflow clears the "workflow" edge to the Workflow entity.
func (*WorkflowRunMutation) ClearedEdges ¶
func (m *WorkflowRunMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*WorkflowRunMutation) ClearedFields ¶
func (m *WorkflowRunMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (WorkflowRunMutation) Client ¶
func (m WorkflowRunMutation) 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 (*WorkflowRunMutation) ContractVersionCleared ¶
func (m *WorkflowRunMutation) ContractVersionCleared() bool
ContractVersionCleared reports if the "contract_version" edge to the WorkflowContractVersion entity was cleared.
func (*WorkflowRunMutation) ContractVersionID ¶
func (m *WorkflowRunMutation) ContractVersionID() (id uuid.UUID, exists bool)
ContractVersionID returns the "contract_version" edge ID in the mutation.
func (*WorkflowRunMutation) ContractVersionIDs ¶
func (m *WorkflowRunMutation) ContractVersionIDs() (ids []uuid.UUID)
ContractVersionIDs returns the "contract_version" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ContractVersionID instead. It exists only for internal usage by the builders.
func (*WorkflowRunMutation) CreatedAt ¶
func (m *WorkflowRunMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*WorkflowRunMutation) EdgeCleared ¶
func (m *WorkflowRunMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*WorkflowRunMutation) Field ¶
func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) FieldCleared ¶
func (m *WorkflowRunMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*WorkflowRunMutation) Fields ¶
func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) FinishedAt ¶
func (m *WorkflowRunMutation) FinishedAt() (r time.Time, exists bool)
FinishedAt returns the value of the "finished_at" field in the mutation.
func (*WorkflowRunMutation) FinishedAtCleared ¶
func (m *WorkflowRunMutation) FinishedAtCleared() bool
FinishedAtCleared returns if the "finished_at" field was cleared in this mutation.
func (*WorkflowRunMutation) ID ¶
func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*WorkflowRunMutation) OldAttestation ¶ added in v0.11.1
OldAttestation returns the old "attestation" field's value of the WorkflowRun entity. If the WorkflowRun 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 (*WorkflowRunMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the WorkflowRun entity. If the WorkflowRun 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 (*WorkflowRunMutation) 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 (*WorkflowRunMutation) OldFinishedAt ¶
OldFinishedAt returns the old "finished_at" field's value of the WorkflowRun entity. If the WorkflowRun 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 (*WorkflowRunMutation) OldReason ¶
func (m *WorkflowRunMutation) OldReason(ctx context.Context) (v string, err error)
OldReason returns the old "reason" field's value of the WorkflowRun entity. If the WorkflowRun 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 (*WorkflowRunMutation) OldRunURL ¶
func (m *WorkflowRunMutation) OldRunURL(ctx context.Context) (v string, err error)
OldRunURL returns the old "run_url" field's value of the WorkflowRun entity. If the WorkflowRun 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 (*WorkflowRunMutation) OldRunnerType ¶
func (m *WorkflowRunMutation) OldRunnerType(ctx context.Context) (v string, err error)
OldRunnerType returns the old "runner_type" field's value of the WorkflowRun entity. If the WorkflowRun 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 (*WorkflowRunMutation) OldState ¶
func (m *WorkflowRunMutation) OldState(ctx context.Context) (v biz.WorkflowRunStatus, err error)
OldState returns the old "state" field's value of the WorkflowRun entity. If the WorkflowRun 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 (*WorkflowRunMutation) Op ¶
func (m *WorkflowRunMutation) Op() Op
Op returns the operation name.
func (*WorkflowRunMutation) Reason ¶
func (m *WorkflowRunMutation) Reason() (r string, exists bool)
Reason returns the value of the "reason" field in the mutation.
func (*WorkflowRunMutation) ReasonCleared ¶
func (m *WorkflowRunMutation) ReasonCleared() bool
ReasonCleared returns if the "reason" field was cleared in this mutation.
func (*WorkflowRunMutation) RemovedEdges ¶
func (m *WorkflowRunMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*WorkflowRunMutation) RemovedIDs ¶
func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) ResetAttestation ¶ added in v0.11.1
func (m *WorkflowRunMutation) ResetAttestation()
ResetAttestation resets all changes to the "attestation" field.
func (*WorkflowRunMutation) ResetContractVersion ¶
func (m *WorkflowRunMutation) ResetContractVersion()
ResetContractVersion resets all changes to the "contract_version" edge.
func (*WorkflowRunMutation) ResetCreatedAt ¶
func (m *WorkflowRunMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*WorkflowRunMutation) ResetEdge ¶
func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) ResetField ¶
func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) ResetFinishedAt ¶
func (m *WorkflowRunMutation) ResetFinishedAt()
ResetFinishedAt resets all changes to the "finished_at" field.
func (*WorkflowRunMutation) ResetReason ¶
func (m *WorkflowRunMutation) ResetReason()
ResetReason resets all changes to the "reason" field.
func (*WorkflowRunMutation) ResetRobotaccount ¶
func (m *WorkflowRunMutation) ResetRobotaccount()
ResetRobotaccount resets all changes to the "robotaccount" edge.
func (*WorkflowRunMutation) ResetRunURL ¶
func (m *WorkflowRunMutation) ResetRunURL()
ResetRunURL resets all changes to the "run_url" field.
func (*WorkflowRunMutation) ResetRunnerType ¶
func (m *WorkflowRunMutation) ResetRunnerType()
ResetRunnerType resets all changes to the "runner_type" field.
func (*WorkflowRunMutation) ResetState ¶
func (m *WorkflowRunMutation) ResetState()
ResetState resets all changes to the "state" field.
func (*WorkflowRunMutation) ResetWorkflow ¶
func (m *WorkflowRunMutation) ResetWorkflow()
ResetWorkflow resets all changes to the "workflow" edge.
func (*WorkflowRunMutation) RobotaccountCleared ¶
func (m *WorkflowRunMutation) RobotaccountCleared() bool
RobotaccountCleared reports if the "robotaccount" edge to the RobotAccount entity was cleared.
func (*WorkflowRunMutation) RobotaccountID ¶
func (m *WorkflowRunMutation) RobotaccountID() (id uuid.UUID, exists bool)
RobotaccountID returns the "robotaccount" edge ID in the mutation.
func (*WorkflowRunMutation) RobotaccountIDs ¶
func (m *WorkflowRunMutation) RobotaccountIDs() (ids []uuid.UUID)
RobotaccountIDs returns the "robotaccount" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use RobotaccountID instead. It exists only for internal usage by the builders.
func (*WorkflowRunMutation) RunURL ¶
func (m *WorkflowRunMutation) RunURL() (r string, exists bool)
RunURL returns the value of the "run_url" field in the mutation.
func (*WorkflowRunMutation) RunURLCleared ¶
func (m *WorkflowRunMutation) RunURLCleared() bool
RunURLCleared returns if the "run_url" field was cleared in this mutation.
func (*WorkflowRunMutation) RunnerType ¶
func (m *WorkflowRunMutation) RunnerType() (r string, exists bool)
RunnerType returns the value of the "runner_type" field in the mutation.
func (*WorkflowRunMutation) RunnerTypeCleared ¶
func (m *WorkflowRunMutation) RunnerTypeCleared() bool
RunnerTypeCleared returns if the "runner_type" field was cleared in this mutation.
func (*WorkflowRunMutation) SetAttestation ¶ added in v0.11.1
func (m *WorkflowRunMutation) SetAttestation(d *dsse.Envelope)
SetAttestation sets the "attestation" field.
func (*WorkflowRunMutation) SetContractVersionID ¶
func (m *WorkflowRunMutation) SetContractVersionID(id uuid.UUID)
SetContractVersionID sets the "contract_version" edge to the WorkflowContractVersion entity by id.
func (*WorkflowRunMutation) SetCreatedAt ¶
func (m *WorkflowRunMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*WorkflowRunMutation) SetField ¶
func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) SetFinishedAt ¶
func (m *WorkflowRunMutation) SetFinishedAt(t time.Time)
SetFinishedAt sets the "finished_at" field.
func (*WorkflowRunMutation) SetID ¶
func (m *WorkflowRunMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of WorkflowRun entities.
func (*WorkflowRunMutation) SetOp ¶
func (m *WorkflowRunMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*WorkflowRunMutation) SetReason ¶
func (m *WorkflowRunMutation) SetReason(s string)
SetReason sets the "reason" field.
func (*WorkflowRunMutation) SetRobotaccountID ¶
func (m *WorkflowRunMutation) SetRobotaccountID(id uuid.UUID)
SetRobotaccountID sets the "robotaccount" edge to the RobotAccount entity by id.
func (*WorkflowRunMutation) SetRunURL ¶
func (m *WorkflowRunMutation) SetRunURL(s string)
SetRunURL sets the "run_url" field.
func (*WorkflowRunMutation) SetRunnerType ¶
func (m *WorkflowRunMutation) SetRunnerType(s string)
SetRunnerType sets the "runner_type" field.
func (*WorkflowRunMutation) SetState ¶
func (m *WorkflowRunMutation) SetState(brs biz.WorkflowRunStatus)
SetState sets the "state" field.
func (*WorkflowRunMutation) SetWorkflowID ¶
func (m *WorkflowRunMutation) SetWorkflowID(id uuid.UUID)
SetWorkflowID sets the "workflow" edge to the Workflow entity by id.
func (*WorkflowRunMutation) State ¶
func (m *WorkflowRunMutation) State() (r biz.WorkflowRunStatus, exists bool)
State returns the value of the "state" field in the mutation.
func (WorkflowRunMutation) Tx ¶
func (m WorkflowRunMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*WorkflowRunMutation) Type ¶
func (m *WorkflowRunMutation) Type() string
Type returns the node type of this mutation (WorkflowRun).
func (*WorkflowRunMutation) Where ¶
func (m *WorkflowRunMutation) Where(ps ...predicate.WorkflowRun)
Where appends a list predicates to the WorkflowRunMutation builder.
func (*WorkflowRunMutation) WhereP ¶
func (m *WorkflowRunMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the WorkflowRunMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
func (*WorkflowRunMutation) WorkflowCleared ¶
func (m *WorkflowRunMutation) WorkflowCleared() bool
WorkflowCleared reports if the "workflow" edge to the Workflow entity was cleared.
func (*WorkflowRunMutation) WorkflowID ¶
func (m *WorkflowRunMutation) WorkflowID() (id uuid.UUID, exists bool)
WorkflowID returns the "workflow" edge ID in the mutation.
func (*WorkflowRunMutation) WorkflowIDs ¶
func (m *WorkflowRunMutation) WorkflowIDs() (ids []uuid.UUID)
WorkflowIDs returns the "workflow" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use WorkflowID instead. It exists only for internal usage by the builders.
type WorkflowRunQuery ¶
type WorkflowRunQuery struct {
// contains filtered or unexported fields
}
WorkflowRunQuery is the builder for querying WorkflowRun entities.
func (*WorkflowRunQuery) Aggregate ¶
func (wrq *WorkflowRunQuery) Aggregate(fns ...AggregateFunc) *WorkflowRunSelect
Aggregate returns a WorkflowRunSelect configured with the given aggregations.
func (*WorkflowRunQuery) All ¶
func (wrq *WorkflowRunQuery) All(ctx context.Context) ([]*WorkflowRun, error)
All executes the query and returns a list of WorkflowRuns.
func (*WorkflowRunQuery) AllX ¶
func (wrq *WorkflowRunQuery) AllX(ctx context.Context) []*WorkflowRun
AllX is like All, but panics if an error occurs.
func (*WorkflowRunQuery) Clone ¶
func (wrq *WorkflowRunQuery) Clone() *WorkflowRunQuery
Clone returns a duplicate of the WorkflowRunQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*WorkflowRunQuery) Count ¶
func (wrq *WorkflowRunQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*WorkflowRunQuery) CountX ¶
func (wrq *WorkflowRunQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*WorkflowRunQuery) Exist ¶
func (wrq *WorkflowRunQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*WorkflowRunQuery) ExistX ¶
func (wrq *WorkflowRunQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*WorkflowRunQuery) First ¶
func (wrq *WorkflowRunQuery) First(ctx context.Context) (*WorkflowRun, error)
First returns the first WorkflowRun entity from the query. Returns a *NotFoundError when no WorkflowRun was found.
func (*WorkflowRunQuery) FirstID ¶
FirstID returns the first WorkflowRun ID from the query. Returns a *NotFoundError when no WorkflowRun ID was found.
func (*WorkflowRunQuery) FirstIDX ¶
func (wrq *WorkflowRunQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*WorkflowRunQuery) FirstX ¶
func (wrq *WorkflowRunQuery) FirstX(ctx context.Context) *WorkflowRun
FirstX is like First, but panics if an error occurs.
func (*WorkflowRunQuery) GroupBy ¶
func (wrq *WorkflowRunQuery) GroupBy(field string, fields ...string) *WorkflowRunGroupBy
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.WorkflowRun.Query(). GroupBy(workflowrun.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*WorkflowRunQuery) IDsX ¶
func (wrq *WorkflowRunQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*WorkflowRunQuery) Limit ¶
func (wrq *WorkflowRunQuery) Limit(limit int) *WorkflowRunQuery
Limit the number of records to be returned by this query.
func (*WorkflowRunQuery) Offset ¶
func (wrq *WorkflowRunQuery) Offset(offset int) *WorkflowRunQuery
Offset to start from.
func (*WorkflowRunQuery) Only ¶
func (wrq *WorkflowRunQuery) Only(ctx context.Context) (*WorkflowRun, error)
Only returns a single WorkflowRun entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one WorkflowRun entity is found. Returns a *NotFoundError when no WorkflowRun entities are found.
func (*WorkflowRunQuery) OnlyID ¶
OnlyID is like Only, but returns the only WorkflowRun ID in the query. Returns a *NotSingularError when more than one WorkflowRun ID is found. Returns a *NotFoundError when no entities are found.
func (*WorkflowRunQuery) OnlyIDX ¶
func (wrq *WorkflowRunQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*WorkflowRunQuery) OnlyX ¶
func (wrq *WorkflowRunQuery) OnlyX(ctx context.Context) *WorkflowRun
OnlyX is like Only, but panics if an error occurs.
func (*WorkflowRunQuery) Order ¶
func (wrq *WorkflowRunQuery) Order(o ...OrderFunc) *WorkflowRunQuery
Order specifies how the records should be ordered.
func (*WorkflowRunQuery) QueryContractVersion ¶
func (wrq *WorkflowRunQuery) QueryContractVersion() *WorkflowContractVersionQuery
QueryContractVersion chains the current query on the "contract_version" edge.
func (*WorkflowRunQuery) QueryRobotaccount ¶
func (wrq *WorkflowRunQuery) QueryRobotaccount() *RobotAccountQuery
QueryRobotaccount chains the current query on the "robotaccount" edge.
func (*WorkflowRunQuery) QueryWorkflow ¶
func (wrq *WorkflowRunQuery) QueryWorkflow() *WorkflowQuery
QueryWorkflow chains the current query on the "workflow" edge.
func (*WorkflowRunQuery) Select ¶
func (wrq *WorkflowRunQuery) Select(fields ...string) *WorkflowRunSelect
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.WorkflowRun.Query(). Select(workflowrun.FieldCreatedAt). Scan(ctx, &v)
func (*WorkflowRunQuery) Unique ¶
func (wrq *WorkflowRunQuery) Unique(unique bool) *WorkflowRunQuery
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 (*WorkflowRunQuery) Where ¶
func (wrq *WorkflowRunQuery) Where(ps ...predicate.WorkflowRun) *WorkflowRunQuery
Where adds a new predicate for the WorkflowRunQuery builder.
func (*WorkflowRunQuery) WithContractVersion ¶
func (wrq *WorkflowRunQuery) WithContractVersion(opts ...func(*WorkflowContractVersionQuery)) *WorkflowRunQuery
WithContractVersion tells the query-builder to eager-load the nodes that are connected to the "contract_version" edge. The optional arguments are used to configure the query builder of the edge.
func (*WorkflowRunQuery) WithRobotaccount ¶
func (wrq *WorkflowRunQuery) WithRobotaccount(opts ...func(*RobotAccountQuery)) *WorkflowRunQuery
WithRobotaccount tells the query-builder to eager-load the nodes that are connected to the "robotaccount" edge. The optional arguments are used to configure the query builder of the edge.
func (*WorkflowRunQuery) WithWorkflow ¶
func (wrq *WorkflowRunQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *WorkflowRunQuery
WithWorkflow tells the query-builder to eager-load the nodes that are connected to the "workflow" edge. The optional arguments are used to configure the query builder of the edge.
type WorkflowRunSelect ¶
type WorkflowRunSelect struct { *WorkflowRunQuery // contains filtered or unexported fields }
WorkflowRunSelect is the builder for selecting fields of WorkflowRun entities.
func (*WorkflowRunSelect) Aggregate ¶
func (wrs *WorkflowRunSelect) Aggregate(fns ...AggregateFunc) *WorkflowRunSelect
Aggregate adds the given aggregation functions to the selector query.
func (*WorkflowRunSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WorkflowRunSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WorkflowRunSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WorkflowRunSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WorkflowRunSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WorkflowRunSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WorkflowRunSelect) Scan ¶
func (wrs *WorkflowRunSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*WorkflowRunSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type WorkflowRunUpdate ¶
type WorkflowRunUpdate struct {
// contains filtered or unexported fields
}
WorkflowRunUpdate is the builder for updating WorkflowRun entities.
func (*WorkflowRunUpdate) ClearAttestation ¶ added in v0.11.1
func (wru *WorkflowRunUpdate) ClearAttestation() *WorkflowRunUpdate
ClearAttestation clears the value of the "attestation" field.
func (*WorkflowRunUpdate) ClearContractVersion ¶
func (wru *WorkflowRunUpdate) ClearContractVersion() *WorkflowRunUpdate
ClearContractVersion clears the "contract_version" edge to the WorkflowContractVersion entity.
func (*WorkflowRunUpdate) ClearFinishedAt ¶
func (wru *WorkflowRunUpdate) ClearFinishedAt() *WorkflowRunUpdate
ClearFinishedAt clears the value of the "finished_at" field.
func (*WorkflowRunUpdate) ClearReason ¶
func (wru *WorkflowRunUpdate) ClearReason() *WorkflowRunUpdate
ClearReason clears the value of the "reason" field.
func (*WorkflowRunUpdate) ClearRobotaccount ¶
func (wru *WorkflowRunUpdate) ClearRobotaccount() *WorkflowRunUpdate
ClearRobotaccount clears the "robotaccount" edge to the RobotAccount entity.
func (*WorkflowRunUpdate) ClearRunURL ¶
func (wru *WorkflowRunUpdate) ClearRunURL() *WorkflowRunUpdate
ClearRunURL clears the value of the "run_url" field.
func (*WorkflowRunUpdate) ClearRunnerType ¶
func (wru *WorkflowRunUpdate) ClearRunnerType() *WorkflowRunUpdate
ClearRunnerType clears the value of the "runner_type" field.
func (*WorkflowRunUpdate) ClearWorkflow ¶
func (wru *WorkflowRunUpdate) ClearWorkflow() *WorkflowRunUpdate
ClearWorkflow clears the "workflow" edge to the Workflow entity.
func (*WorkflowRunUpdate) Exec ¶
func (wru *WorkflowRunUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowRunUpdate) ExecX ¶
func (wru *WorkflowRunUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowRunUpdate) Mutation ¶
func (wru *WorkflowRunUpdate) Mutation() *WorkflowRunMutation
Mutation returns the WorkflowRunMutation object of the builder.
func (*WorkflowRunUpdate) Save ¶
func (wru *WorkflowRunUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*WorkflowRunUpdate) SaveX ¶
func (wru *WorkflowRunUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*WorkflowRunUpdate) SetAttestation ¶ added in v0.11.1
func (wru *WorkflowRunUpdate) SetAttestation(d *dsse.Envelope) *WorkflowRunUpdate
SetAttestation sets the "attestation" field.
func (*WorkflowRunUpdate) SetContractVersion ¶
func (wru *WorkflowRunUpdate) SetContractVersion(w *WorkflowContractVersion) *WorkflowRunUpdate
SetContractVersion sets the "contract_version" edge to the WorkflowContractVersion entity.
func (*WorkflowRunUpdate) SetContractVersionID ¶
func (wru *WorkflowRunUpdate) SetContractVersionID(id uuid.UUID) *WorkflowRunUpdate
SetContractVersionID sets the "contract_version" edge to the WorkflowContractVersion entity by ID.
func (*WorkflowRunUpdate) SetFinishedAt ¶
func (wru *WorkflowRunUpdate) SetFinishedAt(t time.Time) *WorkflowRunUpdate
SetFinishedAt sets the "finished_at" field.
func (*WorkflowRunUpdate) SetNillableContractVersionID ¶
func (wru *WorkflowRunUpdate) SetNillableContractVersionID(id *uuid.UUID) *WorkflowRunUpdate
SetNillableContractVersionID sets the "contract_version" edge to the WorkflowContractVersion entity by ID if the given value is not nil.
func (*WorkflowRunUpdate) SetNillableFinishedAt ¶
func (wru *WorkflowRunUpdate) SetNillableFinishedAt(t *time.Time) *WorkflowRunUpdate
SetNillableFinishedAt sets the "finished_at" field if the given value is not nil.
func (*WorkflowRunUpdate) SetNillableReason ¶
func (wru *WorkflowRunUpdate) SetNillableReason(s *string) *WorkflowRunUpdate
SetNillableReason sets the "reason" field if the given value is not nil.
func (*WorkflowRunUpdate) SetNillableRobotaccountID ¶
func (wru *WorkflowRunUpdate) SetNillableRobotaccountID(id *uuid.UUID) *WorkflowRunUpdate
SetNillableRobotaccountID sets the "robotaccount" edge to the RobotAccount entity by ID if the given value is not nil.
func (*WorkflowRunUpdate) SetNillableRunURL ¶
func (wru *WorkflowRunUpdate) SetNillableRunURL(s *string) *WorkflowRunUpdate
SetNillableRunURL sets the "run_url" field if the given value is not nil.
func (*WorkflowRunUpdate) SetNillableRunnerType ¶
func (wru *WorkflowRunUpdate) SetNillableRunnerType(s *string) *WorkflowRunUpdate
SetNillableRunnerType sets the "runner_type" field if the given value is not nil.
func (*WorkflowRunUpdate) SetNillableState ¶
func (wru *WorkflowRunUpdate) SetNillableState(brs *biz.WorkflowRunStatus) *WorkflowRunUpdate
SetNillableState sets the "state" field if the given value is not nil.
func (*WorkflowRunUpdate) SetNillableWorkflowID ¶
func (wru *WorkflowRunUpdate) SetNillableWorkflowID(id *uuid.UUID) *WorkflowRunUpdate
SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.
func (*WorkflowRunUpdate) SetReason ¶
func (wru *WorkflowRunUpdate) SetReason(s string) *WorkflowRunUpdate
SetReason sets the "reason" field.
func (*WorkflowRunUpdate) SetRobotaccount ¶
func (wru *WorkflowRunUpdate) SetRobotaccount(r *RobotAccount) *WorkflowRunUpdate
SetRobotaccount sets the "robotaccount" edge to the RobotAccount entity.
func (*WorkflowRunUpdate) SetRobotaccountID ¶
func (wru *WorkflowRunUpdate) SetRobotaccountID(id uuid.UUID) *WorkflowRunUpdate
SetRobotaccountID sets the "robotaccount" edge to the RobotAccount entity by ID.
func (*WorkflowRunUpdate) SetRunURL ¶
func (wru *WorkflowRunUpdate) SetRunURL(s string) *WorkflowRunUpdate
SetRunURL sets the "run_url" field.
func (*WorkflowRunUpdate) SetRunnerType ¶
func (wru *WorkflowRunUpdate) SetRunnerType(s string) *WorkflowRunUpdate
SetRunnerType sets the "runner_type" field.
func (*WorkflowRunUpdate) SetState ¶
func (wru *WorkflowRunUpdate) SetState(brs biz.WorkflowRunStatus) *WorkflowRunUpdate
SetState sets the "state" field.
func (*WorkflowRunUpdate) SetWorkflow ¶
func (wru *WorkflowRunUpdate) SetWorkflow(w *Workflow) *WorkflowRunUpdate
SetWorkflow sets the "workflow" edge to the Workflow entity.
func (*WorkflowRunUpdate) SetWorkflowID ¶
func (wru *WorkflowRunUpdate) SetWorkflowID(id uuid.UUID) *WorkflowRunUpdate
SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.
func (*WorkflowRunUpdate) Where ¶
func (wru *WorkflowRunUpdate) Where(ps ...predicate.WorkflowRun) *WorkflowRunUpdate
Where appends a list predicates to the WorkflowRunUpdate builder.
type WorkflowRunUpdateOne ¶
type WorkflowRunUpdateOne struct {
// contains filtered or unexported fields
}
WorkflowRunUpdateOne is the builder for updating a single WorkflowRun entity.
func (*WorkflowRunUpdateOne) ClearAttestation ¶ added in v0.11.1
func (wruo *WorkflowRunUpdateOne) ClearAttestation() *WorkflowRunUpdateOne
ClearAttestation clears the value of the "attestation" field.
func (*WorkflowRunUpdateOne) ClearContractVersion ¶
func (wruo *WorkflowRunUpdateOne) ClearContractVersion() *WorkflowRunUpdateOne
ClearContractVersion clears the "contract_version" edge to the WorkflowContractVersion entity.
func (*WorkflowRunUpdateOne) ClearFinishedAt ¶
func (wruo *WorkflowRunUpdateOne) ClearFinishedAt() *WorkflowRunUpdateOne
ClearFinishedAt clears the value of the "finished_at" field.
func (*WorkflowRunUpdateOne) ClearReason ¶
func (wruo *WorkflowRunUpdateOne) ClearReason() *WorkflowRunUpdateOne
ClearReason clears the value of the "reason" field.
func (*WorkflowRunUpdateOne) ClearRobotaccount ¶
func (wruo *WorkflowRunUpdateOne) ClearRobotaccount() *WorkflowRunUpdateOne
ClearRobotaccount clears the "robotaccount" edge to the RobotAccount entity.
func (*WorkflowRunUpdateOne) ClearRunURL ¶
func (wruo *WorkflowRunUpdateOne) ClearRunURL() *WorkflowRunUpdateOne
ClearRunURL clears the value of the "run_url" field.
func (*WorkflowRunUpdateOne) ClearRunnerType ¶
func (wruo *WorkflowRunUpdateOne) ClearRunnerType() *WorkflowRunUpdateOne
ClearRunnerType clears the value of the "runner_type" field.
func (*WorkflowRunUpdateOne) ClearWorkflow ¶
func (wruo *WorkflowRunUpdateOne) ClearWorkflow() *WorkflowRunUpdateOne
ClearWorkflow clears the "workflow" edge to the Workflow entity.
func (*WorkflowRunUpdateOne) Exec ¶
func (wruo *WorkflowRunUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*WorkflowRunUpdateOne) ExecX ¶
func (wruo *WorkflowRunUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowRunUpdateOne) Mutation ¶
func (wruo *WorkflowRunUpdateOne) Mutation() *WorkflowRunMutation
Mutation returns the WorkflowRunMutation object of the builder.
func (*WorkflowRunUpdateOne) Save ¶
func (wruo *WorkflowRunUpdateOne) Save(ctx context.Context) (*WorkflowRun, error)
Save executes the query and returns the updated WorkflowRun entity.
func (*WorkflowRunUpdateOne) SaveX ¶
func (wruo *WorkflowRunUpdateOne) SaveX(ctx context.Context) *WorkflowRun
SaveX is like Save, but panics if an error occurs.
func (*WorkflowRunUpdateOne) Select ¶
func (wruo *WorkflowRunUpdateOne) Select(field string, fields ...string) *WorkflowRunUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*WorkflowRunUpdateOne) SetAttestation ¶ added in v0.11.1
func (wruo *WorkflowRunUpdateOne) SetAttestation(d *dsse.Envelope) *WorkflowRunUpdateOne
SetAttestation sets the "attestation" field.
func (*WorkflowRunUpdateOne) SetContractVersion ¶
func (wruo *WorkflowRunUpdateOne) SetContractVersion(w *WorkflowContractVersion) *WorkflowRunUpdateOne
SetContractVersion sets the "contract_version" edge to the WorkflowContractVersion entity.
func (*WorkflowRunUpdateOne) SetContractVersionID ¶
func (wruo *WorkflowRunUpdateOne) SetContractVersionID(id uuid.UUID) *WorkflowRunUpdateOne
SetContractVersionID sets the "contract_version" edge to the WorkflowContractVersion entity by ID.
func (*WorkflowRunUpdateOne) SetFinishedAt ¶
func (wruo *WorkflowRunUpdateOne) SetFinishedAt(t time.Time) *WorkflowRunUpdateOne
SetFinishedAt sets the "finished_at" field.
func (*WorkflowRunUpdateOne) SetNillableContractVersionID ¶
func (wruo *WorkflowRunUpdateOne) SetNillableContractVersionID(id *uuid.UUID) *WorkflowRunUpdateOne
SetNillableContractVersionID sets the "contract_version" edge to the WorkflowContractVersion entity by ID if the given value is not nil.
func (*WorkflowRunUpdateOne) SetNillableFinishedAt ¶
func (wruo *WorkflowRunUpdateOne) SetNillableFinishedAt(t *time.Time) *WorkflowRunUpdateOne
SetNillableFinishedAt sets the "finished_at" field if the given value is not nil.
func (*WorkflowRunUpdateOne) SetNillableReason ¶
func (wruo *WorkflowRunUpdateOne) SetNillableReason(s *string) *WorkflowRunUpdateOne
SetNillableReason sets the "reason" field if the given value is not nil.
func (*WorkflowRunUpdateOne) SetNillableRobotaccountID ¶
func (wruo *WorkflowRunUpdateOne) SetNillableRobotaccountID(id *uuid.UUID) *WorkflowRunUpdateOne
SetNillableRobotaccountID sets the "robotaccount" edge to the RobotAccount entity by ID if the given value is not nil.
func (*WorkflowRunUpdateOne) SetNillableRunURL ¶
func (wruo *WorkflowRunUpdateOne) SetNillableRunURL(s *string) *WorkflowRunUpdateOne
SetNillableRunURL sets the "run_url" field if the given value is not nil.
func (*WorkflowRunUpdateOne) SetNillableRunnerType ¶
func (wruo *WorkflowRunUpdateOne) SetNillableRunnerType(s *string) *WorkflowRunUpdateOne
SetNillableRunnerType sets the "runner_type" field if the given value is not nil.
func (*WorkflowRunUpdateOne) SetNillableState ¶
func (wruo *WorkflowRunUpdateOne) SetNillableState(brs *biz.WorkflowRunStatus) *WorkflowRunUpdateOne
SetNillableState sets the "state" field if the given value is not nil.
func (*WorkflowRunUpdateOne) SetNillableWorkflowID ¶
func (wruo *WorkflowRunUpdateOne) SetNillableWorkflowID(id *uuid.UUID) *WorkflowRunUpdateOne
SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.
func (*WorkflowRunUpdateOne) SetReason ¶
func (wruo *WorkflowRunUpdateOne) SetReason(s string) *WorkflowRunUpdateOne
SetReason sets the "reason" field.
func (*WorkflowRunUpdateOne) SetRobotaccount ¶
func (wruo *WorkflowRunUpdateOne) SetRobotaccount(r *RobotAccount) *WorkflowRunUpdateOne
SetRobotaccount sets the "robotaccount" edge to the RobotAccount entity.
func (*WorkflowRunUpdateOne) SetRobotaccountID ¶
func (wruo *WorkflowRunUpdateOne) SetRobotaccountID(id uuid.UUID) *WorkflowRunUpdateOne
SetRobotaccountID sets the "robotaccount" edge to the RobotAccount entity by ID.
func (*WorkflowRunUpdateOne) SetRunURL ¶
func (wruo *WorkflowRunUpdateOne) SetRunURL(s string) *WorkflowRunUpdateOne
SetRunURL sets the "run_url" field.
func (*WorkflowRunUpdateOne) SetRunnerType ¶
func (wruo *WorkflowRunUpdateOne) SetRunnerType(s string) *WorkflowRunUpdateOne
SetRunnerType sets the "runner_type" field.
func (*WorkflowRunUpdateOne) SetState ¶
func (wruo *WorkflowRunUpdateOne) SetState(brs biz.WorkflowRunStatus) *WorkflowRunUpdateOne
SetState sets the "state" field.
func (*WorkflowRunUpdateOne) SetWorkflow ¶
func (wruo *WorkflowRunUpdateOne) SetWorkflow(w *Workflow) *WorkflowRunUpdateOne
SetWorkflow sets the "workflow" edge to the Workflow entity.
func (*WorkflowRunUpdateOne) SetWorkflowID ¶
func (wruo *WorkflowRunUpdateOne) SetWorkflowID(id uuid.UUID) *WorkflowRunUpdateOne
SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.
func (*WorkflowRunUpdateOne) Where ¶
func (wruo *WorkflowRunUpdateOne) Where(ps ...predicate.WorkflowRun) *WorkflowRunUpdateOne
Where appends a list predicates to the WorkflowRunUpdate builder.
type WorkflowRuns ¶
type WorkflowRuns []*WorkflowRun
WorkflowRuns is a parsable slice of WorkflowRun.
type WorkflowSelect ¶
type WorkflowSelect struct { *WorkflowQuery // contains filtered or unexported fields }
WorkflowSelect is the builder for selecting fields of Workflow entities.
func (*WorkflowSelect) Aggregate ¶
func (ws *WorkflowSelect) Aggregate(fns ...AggregateFunc) *WorkflowSelect
Aggregate adds the given aggregation functions to the selector query.
func (*WorkflowSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WorkflowSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WorkflowSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WorkflowSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WorkflowSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WorkflowSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WorkflowSelect) Scan ¶
func (ws *WorkflowSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*WorkflowSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type WorkflowUpdate ¶
type WorkflowUpdate struct {
// contains filtered or unexported fields
}
WorkflowUpdate is the builder for updating Workflow entities.
func (*WorkflowUpdate) AddIntegrationAttachmentIDs ¶
func (wu *WorkflowUpdate) AddIntegrationAttachmentIDs(ids ...uuid.UUID) *WorkflowUpdate
AddIntegrationAttachmentIDs adds the "integration_attachments" edge to the IntegrationAttachment entity by IDs.
func (*WorkflowUpdate) AddIntegrationAttachments ¶
func (wu *WorkflowUpdate) AddIntegrationAttachments(i ...*IntegrationAttachment) *WorkflowUpdate
AddIntegrationAttachments adds the "integration_attachments" edges to the IntegrationAttachment entity.
func (*WorkflowUpdate) AddRobotaccountIDs ¶
func (wu *WorkflowUpdate) AddRobotaccountIDs(ids ...uuid.UUID) *WorkflowUpdate
AddRobotaccountIDs adds the "robotaccounts" edge to the RobotAccount entity by IDs.
func (*WorkflowUpdate) AddRobotaccounts ¶
func (wu *WorkflowUpdate) AddRobotaccounts(r ...*RobotAccount) *WorkflowUpdate
AddRobotaccounts adds the "robotaccounts" edges to the RobotAccount entity.
func (*WorkflowUpdate) AddRunsCount ¶
func (wu *WorkflowUpdate) AddRunsCount(i int) *WorkflowUpdate
AddRunsCount adds i to the "runs_count" field.
func (*WorkflowUpdate) AddWorkflowrunIDs ¶
func (wu *WorkflowUpdate) AddWorkflowrunIDs(ids ...uuid.UUID) *WorkflowUpdate
AddWorkflowrunIDs adds the "workflowruns" edge to the WorkflowRun entity by IDs.
func (*WorkflowUpdate) AddWorkflowruns ¶
func (wu *WorkflowUpdate) AddWorkflowruns(w ...*WorkflowRun) *WorkflowUpdate
AddWorkflowruns adds the "workflowruns" edges to the WorkflowRun entity.
func (*WorkflowUpdate) ClearContract ¶
func (wu *WorkflowUpdate) ClearContract() *WorkflowUpdate
ClearContract clears the "contract" edge to the WorkflowContract entity.
func (*WorkflowUpdate) ClearDeletedAt ¶
func (wu *WorkflowUpdate) ClearDeletedAt() *WorkflowUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*WorkflowUpdate) ClearIntegrationAttachments ¶
func (wu *WorkflowUpdate) ClearIntegrationAttachments() *WorkflowUpdate
ClearIntegrationAttachments clears all "integration_attachments" edges to the IntegrationAttachment entity.
func (*WorkflowUpdate) ClearOrganization ¶
func (wu *WorkflowUpdate) ClearOrganization() *WorkflowUpdate
ClearOrganization clears the "organization" edge to the Organization entity.
func (*WorkflowUpdate) ClearProject ¶
func (wu *WorkflowUpdate) ClearProject() *WorkflowUpdate
ClearProject clears the value of the "project" field.
func (*WorkflowUpdate) ClearRobotaccounts ¶
func (wu *WorkflowUpdate) ClearRobotaccounts() *WorkflowUpdate
ClearRobotaccounts clears all "robotaccounts" edges to the RobotAccount entity.
func (*WorkflowUpdate) ClearTeam ¶
func (wu *WorkflowUpdate) ClearTeam() *WorkflowUpdate
ClearTeam clears the value of the "team" field.
func (*WorkflowUpdate) ClearWorkflowruns ¶
func (wu *WorkflowUpdate) ClearWorkflowruns() *WorkflowUpdate
ClearWorkflowruns clears all "workflowruns" edges to the WorkflowRun entity.
func (*WorkflowUpdate) Exec ¶
func (wu *WorkflowUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowUpdate) ExecX ¶
func (wu *WorkflowUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowUpdate) Mutation ¶
func (wu *WorkflowUpdate) Mutation() *WorkflowMutation
Mutation returns the WorkflowMutation object of the builder.
func (*WorkflowUpdate) RemoveIntegrationAttachmentIDs ¶
func (wu *WorkflowUpdate) RemoveIntegrationAttachmentIDs(ids ...uuid.UUID) *WorkflowUpdate
RemoveIntegrationAttachmentIDs removes the "integration_attachments" edge to IntegrationAttachment entities by IDs.
func (*WorkflowUpdate) RemoveIntegrationAttachments ¶
func (wu *WorkflowUpdate) RemoveIntegrationAttachments(i ...*IntegrationAttachment) *WorkflowUpdate
RemoveIntegrationAttachments removes "integration_attachments" edges to IntegrationAttachment entities.
func (*WorkflowUpdate) RemoveRobotaccountIDs ¶
func (wu *WorkflowUpdate) RemoveRobotaccountIDs(ids ...uuid.UUID) *WorkflowUpdate
RemoveRobotaccountIDs removes the "robotaccounts" edge to RobotAccount entities by IDs.
func (*WorkflowUpdate) RemoveRobotaccounts ¶
func (wu *WorkflowUpdate) RemoveRobotaccounts(r ...*RobotAccount) *WorkflowUpdate
RemoveRobotaccounts removes "robotaccounts" edges to RobotAccount entities.
func (*WorkflowUpdate) RemoveWorkflowrunIDs ¶
func (wu *WorkflowUpdate) RemoveWorkflowrunIDs(ids ...uuid.UUID) *WorkflowUpdate
RemoveWorkflowrunIDs removes the "workflowruns" edge to WorkflowRun entities by IDs.
func (*WorkflowUpdate) RemoveWorkflowruns ¶
func (wu *WorkflowUpdate) RemoveWorkflowruns(w ...*WorkflowRun) *WorkflowUpdate
RemoveWorkflowruns removes "workflowruns" edges to WorkflowRun entities.
func (*WorkflowUpdate) Save ¶
func (wu *WorkflowUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*WorkflowUpdate) SaveX ¶
func (wu *WorkflowUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*WorkflowUpdate) SetContract ¶
func (wu *WorkflowUpdate) SetContract(w *WorkflowContract) *WorkflowUpdate
SetContract sets the "contract" edge to the WorkflowContract entity.
func (*WorkflowUpdate) SetContractID ¶
func (wu *WorkflowUpdate) SetContractID(id uuid.UUID) *WorkflowUpdate
SetContractID sets the "contract" edge to the WorkflowContract entity by ID.
func (*WorkflowUpdate) SetDeletedAt ¶
func (wu *WorkflowUpdate) SetDeletedAt(t time.Time) *WorkflowUpdate
SetDeletedAt sets the "deleted_at" field.
func (*WorkflowUpdate) SetName ¶
func (wu *WorkflowUpdate) SetName(s string) *WorkflowUpdate
SetName sets the "name" field.
func (*WorkflowUpdate) SetNillableDeletedAt ¶
func (wu *WorkflowUpdate) SetNillableDeletedAt(t *time.Time) *WorkflowUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*WorkflowUpdate) SetNillableProject ¶
func (wu *WorkflowUpdate) SetNillableProject(s *string) *WorkflowUpdate
SetNillableProject sets the "project" field if the given value is not nil.
func (*WorkflowUpdate) SetNillableRunsCount ¶
func (wu *WorkflowUpdate) SetNillableRunsCount(i *int) *WorkflowUpdate
SetNillableRunsCount sets the "runs_count" field if the given value is not nil.
func (*WorkflowUpdate) SetNillableTeam ¶
func (wu *WorkflowUpdate) SetNillableTeam(s *string) *WorkflowUpdate
SetNillableTeam sets the "team" field if the given value is not nil.
func (*WorkflowUpdate) SetOrganization ¶
func (wu *WorkflowUpdate) SetOrganization(o *Organization) *WorkflowUpdate
SetOrganization sets the "organization" edge to the Organization entity.
func (*WorkflowUpdate) SetOrganizationID ¶
func (wu *WorkflowUpdate) SetOrganizationID(id uuid.UUID) *WorkflowUpdate
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*WorkflowUpdate) SetProject ¶
func (wu *WorkflowUpdate) SetProject(s string) *WorkflowUpdate
SetProject sets the "project" field.
func (*WorkflowUpdate) SetRunsCount ¶
func (wu *WorkflowUpdate) SetRunsCount(i int) *WorkflowUpdate
SetRunsCount sets the "runs_count" field.
func (*WorkflowUpdate) SetTeam ¶
func (wu *WorkflowUpdate) SetTeam(s string) *WorkflowUpdate
SetTeam sets the "team" field.
func (*WorkflowUpdate) Where ¶
func (wu *WorkflowUpdate) Where(ps ...predicate.Workflow) *WorkflowUpdate
Where appends a list predicates to the WorkflowUpdate builder.
type WorkflowUpdateOne ¶
type WorkflowUpdateOne struct {
// contains filtered or unexported fields
}
WorkflowUpdateOne is the builder for updating a single Workflow entity.
func (*WorkflowUpdateOne) AddIntegrationAttachmentIDs ¶
func (wuo *WorkflowUpdateOne) AddIntegrationAttachmentIDs(ids ...uuid.UUID) *WorkflowUpdateOne
AddIntegrationAttachmentIDs adds the "integration_attachments" edge to the IntegrationAttachment entity by IDs.
func (*WorkflowUpdateOne) AddIntegrationAttachments ¶
func (wuo *WorkflowUpdateOne) AddIntegrationAttachments(i ...*IntegrationAttachment) *WorkflowUpdateOne
AddIntegrationAttachments adds the "integration_attachments" edges to the IntegrationAttachment entity.
func (*WorkflowUpdateOne) AddRobotaccountIDs ¶
func (wuo *WorkflowUpdateOne) AddRobotaccountIDs(ids ...uuid.UUID) *WorkflowUpdateOne
AddRobotaccountIDs adds the "robotaccounts" edge to the RobotAccount entity by IDs.
func (*WorkflowUpdateOne) AddRobotaccounts ¶
func (wuo *WorkflowUpdateOne) AddRobotaccounts(r ...*RobotAccount) *WorkflowUpdateOne
AddRobotaccounts adds the "robotaccounts" edges to the RobotAccount entity.
func (*WorkflowUpdateOne) AddRunsCount ¶
func (wuo *WorkflowUpdateOne) AddRunsCount(i int) *WorkflowUpdateOne
AddRunsCount adds i to the "runs_count" field.
func (*WorkflowUpdateOne) AddWorkflowrunIDs ¶
func (wuo *WorkflowUpdateOne) AddWorkflowrunIDs(ids ...uuid.UUID) *WorkflowUpdateOne
AddWorkflowrunIDs adds the "workflowruns" edge to the WorkflowRun entity by IDs.
func (*WorkflowUpdateOne) AddWorkflowruns ¶
func (wuo *WorkflowUpdateOne) AddWorkflowruns(w ...*WorkflowRun) *WorkflowUpdateOne
AddWorkflowruns adds the "workflowruns" edges to the WorkflowRun entity.
func (*WorkflowUpdateOne) ClearContract ¶
func (wuo *WorkflowUpdateOne) ClearContract() *WorkflowUpdateOne
ClearContract clears the "contract" edge to the WorkflowContract entity.
func (*WorkflowUpdateOne) ClearDeletedAt ¶
func (wuo *WorkflowUpdateOne) ClearDeletedAt() *WorkflowUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*WorkflowUpdateOne) ClearIntegrationAttachments ¶
func (wuo *WorkflowUpdateOne) ClearIntegrationAttachments() *WorkflowUpdateOne
ClearIntegrationAttachments clears all "integration_attachments" edges to the IntegrationAttachment entity.
func (*WorkflowUpdateOne) ClearOrganization ¶
func (wuo *WorkflowUpdateOne) ClearOrganization() *WorkflowUpdateOne
ClearOrganization clears the "organization" edge to the Organization entity.
func (*WorkflowUpdateOne) ClearProject ¶
func (wuo *WorkflowUpdateOne) ClearProject() *WorkflowUpdateOne
ClearProject clears the value of the "project" field.
func (*WorkflowUpdateOne) ClearRobotaccounts ¶
func (wuo *WorkflowUpdateOne) ClearRobotaccounts() *WorkflowUpdateOne
ClearRobotaccounts clears all "robotaccounts" edges to the RobotAccount entity.
func (*WorkflowUpdateOne) ClearTeam ¶
func (wuo *WorkflowUpdateOne) ClearTeam() *WorkflowUpdateOne
ClearTeam clears the value of the "team" field.
func (*WorkflowUpdateOne) ClearWorkflowruns ¶
func (wuo *WorkflowUpdateOne) ClearWorkflowruns() *WorkflowUpdateOne
ClearWorkflowruns clears all "workflowruns" edges to the WorkflowRun entity.
func (*WorkflowUpdateOne) Exec ¶
func (wuo *WorkflowUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*WorkflowUpdateOne) ExecX ¶
func (wuo *WorkflowUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowUpdateOne) Mutation ¶
func (wuo *WorkflowUpdateOne) Mutation() *WorkflowMutation
Mutation returns the WorkflowMutation object of the builder.
func (*WorkflowUpdateOne) RemoveIntegrationAttachmentIDs ¶
func (wuo *WorkflowUpdateOne) RemoveIntegrationAttachmentIDs(ids ...uuid.UUID) *WorkflowUpdateOne
RemoveIntegrationAttachmentIDs removes the "integration_attachments" edge to IntegrationAttachment entities by IDs.
func (*WorkflowUpdateOne) RemoveIntegrationAttachments ¶
func (wuo *WorkflowUpdateOne) RemoveIntegrationAttachments(i ...*IntegrationAttachment) *WorkflowUpdateOne
RemoveIntegrationAttachments removes "integration_attachments" edges to IntegrationAttachment entities.
func (*WorkflowUpdateOne) RemoveRobotaccountIDs ¶
func (wuo *WorkflowUpdateOne) RemoveRobotaccountIDs(ids ...uuid.UUID) *WorkflowUpdateOne
RemoveRobotaccountIDs removes the "robotaccounts" edge to RobotAccount entities by IDs.
func (*WorkflowUpdateOne) RemoveRobotaccounts ¶
func (wuo *WorkflowUpdateOne) RemoveRobotaccounts(r ...*RobotAccount) *WorkflowUpdateOne
RemoveRobotaccounts removes "robotaccounts" edges to RobotAccount entities.
func (*WorkflowUpdateOne) RemoveWorkflowrunIDs ¶
func (wuo *WorkflowUpdateOne) RemoveWorkflowrunIDs(ids ...uuid.UUID) *WorkflowUpdateOne
RemoveWorkflowrunIDs removes the "workflowruns" edge to WorkflowRun entities by IDs.
func (*WorkflowUpdateOne) RemoveWorkflowruns ¶
func (wuo *WorkflowUpdateOne) RemoveWorkflowruns(w ...*WorkflowRun) *WorkflowUpdateOne
RemoveWorkflowruns removes "workflowruns" edges to WorkflowRun entities.
func (*WorkflowUpdateOne) Save ¶
func (wuo *WorkflowUpdateOne) Save(ctx context.Context) (*Workflow, error)
Save executes the query and returns the updated Workflow entity.
func (*WorkflowUpdateOne) SaveX ¶
func (wuo *WorkflowUpdateOne) SaveX(ctx context.Context) *Workflow
SaveX is like Save, but panics if an error occurs.
func (*WorkflowUpdateOne) Select ¶
func (wuo *WorkflowUpdateOne) Select(field string, fields ...string) *WorkflowUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*WorkflowUpdateOne) SetContract ¶
func (wuo *WorkflowUpdateOne) SetContract(w *WorkflowContract) *WorkflowUpdateOne
SetContract sets the "contract" edge to the WorkflowContract entity.
func (*WorkflowUpdateOne) SetContractID ¶
func (wuo *WorkflowUpdateOne) SetContractID(id uuid.UUID) *WorkflowUpdateOne
SetContractID sets the "contract" edge to the WorkflowContract entity by ID.
func (*WorkflowUpdateOne) SetDeletedAt ¶
func (wuo *WorkflowUpdateOne) SetDeletedAt(t time.Time) *WorkflowUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*WorkflowUpdateOne) SetName ¶
func (wuo *WorkflowUpdateOne) SetName(s string) *WorkflowUpdateOne
SetName sets the "name" field.
func (*WorkflowUpdateOne) SetNillableDeletedAt ¶
func (wuo *WorkflowUpdateOne) SetNillableDeletedAt(t *time.Time) *WorkflowUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*WorkflowUpdateOne) SetNillableProject ¶
func (wuo *WorkflowUpdateOne) SetNillableProject(s *string) *WorkflowUpdateOne
SetNillableProject sets the "project" field if the given value is not nil.
func (*WorkflowUpdateOne) SetNillableRunsCount ¶
func (wuo *WorkflowUpdateOne) SetNillableRunsCount(i *int) *WorkflowUpdateOne
SetNillableRunsCount sets the "runs_count" field if the given value is not nil.
func (*WorkflowUpdateOne) SetNillableTeam ¶
func (wuo *WorkflowUpdateOne) SetNillableTeam(s *string) *WorkflowUpdateOne
SetNillableTeam sets the "team" field if the given value is not nil.
func (*WorkflowUpdateOne) SetOrganization ¶
func (wuo *WorkflowUpdateOne) SetOrganization(o *Organization) *WorkflowUpdateOne
SetOrganization sets the "organization" edge to the Organization entity.
func (*WorkflowUpdateOne) SetOrganizationID ¶
func (wuo *WorkflowUpdateOne) SetOrganizationID(id uuid.UUID) *WorkflowUpdateOne
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*WorkflowUpdateOne) SetProject ¶
func (wuo *WorkflowUpdateOne) SetProject(s string) *WorkflowUpdateOne
SetProject sets the "project" field.
func (*WorkflowUpdateOne) SetRunsCount ¶
func (wuo *WorkflowUpdateOne) SetRunsCount(i int) *WorkflowUpdateOne
SetRunsCount sets the "runs_count" field.
func (*WorkflowUpdateOne) SetTeam ¶
func (wuo *WorkflowUpdateOne) SetTeam(s string) *WorkflowUpdateOne
SetTeam sets the "team" field.
func (*WorkflowUpdateOne) Where ¶
func (wuo *WorkflowUpdateOne) Where(ps ...predicate.Workflow) *WorkflowUpdateOne
Where appends a list predicates to the WorkflowUpdate builder.
Source Files ¶
- client.go
- ent.go
- entviz.go
- generate.go
- integration.go
- integration_create.go
- integration_delete.go
- integration_query.go
- integration_update.go
- integrationattachment.go
- integrationattachment_create.go
- integrationattachment_delete.go
- integrationattachment_query.go
- integrationattachment_update.go
- membership.go
- membership_create.go
- membership_delete.go
- membership_query.go
- membership_update.go
- mutation.go
- ocirepository.go
- ocirepository_create.go
- ocirepository_delete.go
- ocirepository_query.go
- ocirepository_update.go
- organization.go
- organization_create.go
- organization_delete.go
- organization_query.go
- organization_update.go
- robotaccount.go
- robotaccount_create.go
- robotaccount_delete.go
- robotaccount_query.go
- robotaccount_update.go
- runtime.go
- tx.go
- user.go
- user_create.go
- user_delete.go
- user_query.go
- user_update.go
- workflow.go
- workflow_create.go
- workflow_delete.go
- workflow_query.go
- workflow_update.go
- workflowcontract.go
- workflowcontract_create.go
- workflowcontract_delete.go
- workflowcontract_query.go
- workflowcontract_update.go
- workflowcontractversion.go
- workflowcontractversion_create.go
- workflowcontractversion_delete.go
- workflowcontractversion_query.go
- workflowcontractversion_update.go
- workflowrun.go
- workflowrun_create.go
- workflowrun_delete.go
- workflowrun_query.go
- workflowrun_update.go