Documentation ¶
Index ¶
- Constants
- Variables
- func Asc(fields ...string) func(*sql.Selector)
- func Desc(fields ...string) func(*sql.Selector)
- 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 APIToken
- type APITokenClient
- func (c *APITokenClient) Create() *APITokenCreate
- func (c *APITokenClient) CreateBulk(builders ...*APITokenCreate) *APITokenCreateBulk
- func (c *APITokenClient) Delete() *APITokenDelete
- func (c *APITokenClient) DeleteOne(at *APIToken) *APITokenDeleteOne
- func (c *APITokenClient) DeleteOneID(id uuid.UUID) *APITokenDeleteOne
- func (c *APITokenClient) Get(ctx context.Context, id uuid.UUID) (*APIToken, error)
- func (c *APITokenClient) GetX(ctx context.Context, id uuid.UUID) *APIToken
- func (c *APITokenClient) Hooks() []Hook
- func (c *APITokenClient) Intercept(interceptors ...Interceptor)
- func (c *APITokenClient) Interceptors() []Interceptor
- func (c *APITokenClient) MapCreateBulk(slice any, setFunc func(*APITokenCreate, int)) *APITokenCreateBulk
- func (c *APITokenClient) Query() *APITokenQuery
- func (c *APITokenClient) QueryOrganization(at *APIToken) *OrganizationQuery
- func (c *APITokenClient) Update() *APITokenUpdate
- func (c *APITokenClient) UpdateOne(at *APIToken) *APITokenUpdateOne
- func (c *APITokenClient) UpdateOneID(id uuid.UUID) *APITokenUpdateOne
- func (c *APITokenClient) Use(hooks ...Hook)
- type APITokenCreate
- func (atc *APITokenCreate) Exec(ctx context.Context) error
- func (atc *APITokenCreate) ExecX(ctx context.Context)
- func (atc *APITokenCreate) Mutation() *APITokenMutation
- func (atc *APITokenCreate) Save(ctx context.Context) (*APIToken, error)
- func (atc *APITokenCreate) SaveX(ctx context.Context) *APIToken
- func (atc *APITokenCreate) SetCreatedAt(t time.Time) *APITokenCreate
- func (atc *APITokenCreate) SetDescription(s string) *APITokenCreate
- func (atc *APITokenCreate) SetExpiresAt(t time.Time) *APITokenCreate
- func (atc *APITokenCreate) SetID(u uuid.UUID) *APITokenCreate
- func (atc *APITokenCreate) SetName(s string) *APITokenCreate
- func (atc *APITokenCreate) SetNillableCreatedAt(t *time.Time) *APITokenCreate
- func (atc *APITokenCreate) SetNillableDescription(s *string) *APITokenCreate
- func (atc *APITokenCreate) SetNillableExpiresAt(t *time.Time) *APITokenCreate
- func (atc *APITokenCreate) SetNillableID(u *uuid.UUID) *APITokenCreate
- func (atc *APITokenCreate) SetNillableRevokedAt(t *time.Time) *APITokenCreate
- func (atc *APITokenCreate) SetOrganization(o *Organization) *APITokenCreate
- func (atc *APITokenCreate) SetOrganizationID(u uuid.UUID) *APITokenCreate
- func (atc *APITokenCreate) SetRevokedAt(t time.Time) *APITokenCreate
- type APITokenCreateBulk
- type APITokenDelete
- type APITokenDeleteOne
- type APITokenEdges
- type APITokenGroupBy
- func (atgb *APITokenGroupBy) Aggregate(fns ...AggregateFunc) *APITokenGroupBy
- func (s *APITokenGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *APITokenGroupBy) BoolX(ctx context.Context) bool
- func (s *APITokenGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *APITokenGroupBy) BoolsX(ctx context.Context) []bool
- func (s *APITokenGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *APITokenGroupBy) Float64X(ctx context.Context) float64
- func (s *APITokenGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *APITokenGroupBy) Float64sX(ctx context.Context) []float64
- func (s *APITokenGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *APITokenGroupBy) IntX(ctx context.Context) int
- func (s *APITokenGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *APITokenGroupBy) IntsX(ctx context.Context) []int
- func (atgb *APITokenGroupBy) Scan(ctx context.Context, v any) error
- func (s *APITokenGroupBy) ScanX(ctx context.Context, v any)
- func (s *APITokenGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *APITokenGroupBy) StringX(ctx context.Context) string
- func (s *APITokenGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *APITokenGroupBy) StringsX(ctx context.Context) []string
- type APITokenMutation
- func (m *APITokenMutation) AddField(name string, value ent.Value) error
- func (m *APITokenMutation) AddedEdges() []string
- func (m *APITokenMutation) AddedField(name string) (ent.Value, bool)
- func (m *APITokenMutation) AddedFields() []string
- func (m *APITokenMutation) AddedIDs(name string) []ent.Value
- func (m *APITokenMutation) ClearDescription()
- func (m *APITokenMutation) ClearEdge(name string) error
- func (m *APITokenMutation) ClearExpiresAt()
- func (m *APITokenMutation) ClearField(name string) error
- func (m *APITokenMutation) ClearOrganization()
- func (m *APITokenMutation) ClearRevokedAt()
- func (m *APITokenMutation) ClearedEdges() []string
- func (m *APITokenMutation) ClearedFields() []string
- func (m APITokenMutation) Client() *Client
- func (m *APITokenMutation) CreatedAt() (r time.Time, exists bool)
- func (m *APITokenMutation) Description() (r string, exists bool)
- func (m *APITokenMutation) DescriptionCleared() bool
- func (m *APITokenMutation) EdgeCleared(name string) bool
- func (m *APITokenMutation) ExpiresAt() (r time.Time, exists bool)
- func (m *APITokenMutation) ExpiresAtCleared() bool
- func (m *APITokenMutation) Field(name string) (ent.Value, bool)
- func (m *APITokenMutation) FieldCleared(name string) bool
- func (m *APITokenMutation) Fields() []string
- func (m *APITokenMutation) ID() (id uuid.UUID, exists bool)
- func (m *APITokenMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *APITokenMutation) Name() (r string, exists bool)
- func (m *APITokenMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *APITokenMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *APITokenMutation) OldExpiresAt(ctx context.Context) (v time.Time, err error)
- func (m *APITokenMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *APITokenMutation) OldName(ctx context.Context) (v string, err error)
- func (m *APITokenMutation) OldOrganizationID(ctx context.Context) (v uuid.UUID, err error)
- func (m *APITokenMutation) OldRevokedAt(ctx context.Context) (v time.Time, err error)
- func (m *APITokenMutation) Op() Op
- func (m *APITokenMutation) OrganizationCleared() bool
- func (m *APITokenMutation) OrganizationID() (r uuid.UUID, exists bool)
- func (m *APITokenMutation) OrganizationIDs() (ids []uuid.UUID)
- func (m *APITokenMutation) RemovedEdges() []string
- func (m *APITokenMutation) RemovedIDs(name string) []ent.Value
- func (m *APITokenMutation) ResetCreatedAt()
- func (m *APITokenMutation) ResetDescription()
- func (m *APITokenMutation) ResetEdge(name string) error
- func (m *APITokenMutation) ResetExpiresAt()
- func (m *APITokenMutation) ResetField(name string) error
- func (m *APITokenMutation) ResetName()
- func (m *APITokenMutation) ResetOrganization()
- func (m *APITokenMutation) ResetOrganizationID()
- func (m *APITokenMutation) ResetRevokedAt()
- func (m *APITokenMutation) RevokedAt() (r time.Time, exists bool)
- func (m *APITokenMutation) RevokedAtCleared() bool
- func (m *APITokenMutation) SetCreatedAt(t time.Time)
- func (m *APITokenMutation) SetDescription(s string)
- func (m *APITokenMutation) SetExpiresAt(t time.Time)
- func (m *APITokenMutation) SetField(name string, value ent.Value) error
- func (m *APITokenMutation) SetID(id uuid.UUID)
- func (m *APITokenMutation) SetName(s string)
- func (m *APITokenMutation) SetOp(op Op)
- func (m *APITokenMutation) SetOrganizationID(u uuid.UUID)
- func (m *APITokenMutation) SetRevokedAt(t time.Time)
- func (m APITokenMutation) Tx() (*Tx, error)
- func (m *APITokenMutation) Type() string
- func (m *APITokenMutation) Where(ps ...predicate.APIToken)
- func (m *APITokenMutation) WhereP(ps ...func(*sql.Selector))
- type APITokenQuery
- func (atq *APITokenQuery) Aggregate(fns ...AggregateFunc) *APITokenSelect
- func (atq *APITokenQuery) All(ctx context.Context) ([]*APIToken, error)
- func (atq *APITokenQuery) AllX(ctx context.Context) []*APIToken
- func (atq *APITokenQuery) Clone() *APITokenQuery
- func (atq *APITokenQuery) Count(ctx context.Context) (int, error)
- func (atq *APITokenQuery) CountX(ctx context.Context) int
- func (atq *APITokenQuery) Exist(ctx context.Context) (bool, error)
- func (atq *APITokenQuery) ExistX(ctx context.Context) bool
- func (atq *APITokenQuery) First(ctx context.Context) (*APIToken, error)
- func (atq *APITokenQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (atq *APITokenQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (atq *APITokenQuery) FirstX(ctx context.Context) *APIToken
- func (atq *APITokenQuery) ForShare(opts ...sql.LockOption) *APITokenQuery
- func (atq *APITokenQuery) ForUpdate(opts ...sql.LockOption) *APITokenQuery
- func (atq *APITokenQuery) GroupBy(field string, fields ...string) *APITokenGroupBy
- func (atq *APITokenQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (atq *APITokenQuery) IDsX(ctx context.Context) []uuid.UUID
- func (atq *APITokenQuery) Limit(limit int) *APITokenQuery
- func (atq *APITokenQuery) Modify(modifiers ...func(s *sql.Selector)) *APITokenSelect
- func (atq *APITokenQuery) Offset(offset int) *APITokenQuery
- func (atq *APITokenQuery) Only(ctx context.Context) (*APIToken, error)
- func (atq *APITokenQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (atq *APITokenQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (atq *APITokenQuery) OnlyX(ctx context.Context) *APIToken
- func (atq *APITokenQuery) Order(o ...apitoken.OrderOption) *APITokenQuery
- func (atq *APITokenQuery) QueryOrganization() *OrganizationQuery
- func (atq *APITokenQuery) Select(fields ...string) *APITokenSelect
- func (atq *APITokenQuery) Unique(unique bool) *APITokenQuery
- func (atq *APITokenQuery) Where(ps ...predicate.APIToken) *APITokenQuery
- func (atq *APITokenQuery) WithOrganization(opts ...func(*OrganizationQuery)) *APITokenQuery
- type APITokenSelect
- func (ats *APITokenSelect) Aggregate(fns ...AggregateFunc) *APITokenSelect
- func (s *APITokenSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *APITokenSelect) BoolX(ctx context.Context) bool
- func (s *APITokenSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *APITokenSelect) BoolsX(ctx context.Context) []bool
- func (s *APITokenSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *APITokenSelect) Float64X(ctx context.Context) float64
- func (s *APITokenSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *APITokenSelect) Float64sX(ctx context.Context) []float64
- func (s *APITokenSelect) Int(ctx context.Context) (_ int, err error)
- func (s *APITokenSelect) IntX(ctx context.Context) int
- func (s *APITokenSelect) Ints(ctx context.Context) ([]int, error)
- func (s *APITokenSelect) IntsX(ctx context.Context) []int
- func (ats *APITokenSelect) Modify(modifiers ...func(s *sql.Selector)) *APITokenSelect
- func (ats *APITokenSelect) Scan(ctx context.Context, v any) error
- func (s *APITokenSelect) ScanX(ctx context.Context, v any)
- func (s *APITokenSelect) String(ctx context.Context) (_ string, err error)
- func (s *APITokenSelect) StringX(ctx context.Context) string
- func (s *APITokenSelect) Strings(ctx context.Context) ([]string, error)
- func (s *APITokenSelect) StringsX(ctx context.Context) []string
- type APITokenUpdate
- func (atu *APITokenUpdate) ClearDescription() *APITokenUpdate
- func (atu *APITokenUpdate) ClearOrganization() *APITokenUpdate
- func (atu *APITokenUpdate) ClearRevokedAt() *APITokenUpdate
- func (atu *APITokenUpdate) Exec(ctx context.Context) error
- func (atu *APITokenUpdate) ExecX(ctx context.Context)
- func (atu *APITokenUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *APITokenUpdate
- func (atu *APITokenUpdate) Mutation() *APITokenMutation
- func (atu *APITokenUpdate) Save(ctx context.Context) (int, error)
- func (atu *APITokenUpdate) SaveX(ctx context.Context) int
- func (atu *APITokenUpdate) SetDescription(s string) *APITokenUpdate
- func (atu *APITokenUpdate) SetNillableDescription(s *string) *APITokenUpdate
- func (atu *APITokenUpdate) SetNillableOrganizationID(u *uuid.UUID) *APITokenUpdate
- func (atu *APITokenUpdate) SetNillableRevokedAt(t *time.Time) *APITokenUpdate
- func (atu *APITokenUpdate) SetOrganization(o *Organization) *APITokenUpdate
- func (atu *APITokenUpdate) SetOrganizationID(u uuid.UUID) *APITokenUpdate
- func (atu *APITokenUpdate) SetRevokedAt(t time.Time) *APITokenUpdate
- func (atu *APITokenUpdate) Where(ps ...predicate.APIToken) *APITokenUpdate
- type APITokenUpdateOne
- func (atuo *APITokenUpdateOne) ClearDescription() *APITokenUpdateOne
- func (atuo *APITokenUpdateOne) ClearOrganization() *APITokenUpdateOne
- func (atuo *APITokenUpdateOne) ClearRevokedAt() *APITokenUpdateOne
- func (atuo *APITokenUpdateOne) Exec(ctx context.Context) error
- func (atuo *APITokenUpdateOne) ExecX(ctx context.Context)
- func (atuo *APITokenUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *APITokenUpdateOne
- func (atuo *APITokenUpdateOne) Mutation() *APITokenMutation
- func (atuo *APITokenUpdateOne) Save(ctx context.Context) (*APIToken, error)
- func (atuo *APITokenUpdateOne) SaveX(ctx context.Context) *APIToken
- func (atuo *APITokenUpdateOne) Select(field string, fields ...string) *APITokenUpdateOne
- func (atuo *APITokenUpdateOne) SetDescription(s string) *APITokenUpdateOne
- func (atuo *APITokenUpdateOne) SetNillableDescription(s *string) *APITokenUpdateOne
- func (atuo *APITokenUpdateOne) SetNillableOrganizationID(u *uuid.UUID) *APITokenUpdateOne
- func (atuo *APITokenUpdateOne) SetNillableRevokedAt(t *time.Time) *APITokenUpdateOne
- func (atuo *APITokenUpdateOne) SetOrganization(o *Organization) *APITokenUpdateOne
- func (atuo *APITokenUpdateOne) SetOrganizationID(u uuid.UUID) *APITokenUpdateOne
- func (atuo *APITokenUpdateOne) SetRevokedAt(t time.Time) *APITokenUpdateOne
- func (atuo *APITokenUpdateOne) Where(ps ...predicate.APIToken) *APITokenUpdateOne
- type APITokens
- type AggregateFunc
- type CASBackend
- func (cb *CASBackend) QueryOrganization() *OrganizationQuery
- func (cb *CASBackend) QueryWorkflowRun() *WorkflowRunQuery
- func (cb *CASBackend) String() string
- func (cb *CASBackend) Unwrap() *CASBackend
- func (cb *CASBackend) Update() *CASBackendUpdateOne
- func (cb *CASBackend) Value(name string) (ent.Value, error)
- type CASBackendClient
- func (c *CASBackendClient) Create() *CASBackendCreate
- func (c *CASBackendClient) CreateBulk(builders ...*CASBackendCreate) *CASBackendCreateBulk
- func (c *CASBackendClient) Delete() *CASBackendDelete
- func (c *CASBackendClient) DeleteOne(cb *CASBackend) *CASBackendDeleteOne
- func (c *CASBackendClient) DeleteOneID(id uuid.UUID) *CASBackendDeleteOne
- func (c *CASBackendClient) Get(ctx context.Context, id uuid.UUID) (*CASBackend, error)
- func (c *CASBackendClient) GetX(ctx context.Context, id uuid.UUID) *CASBackend
- func (c *CASBackendClient) Hooks() []Hook
- func (c *CASBackendClient) Intercept(interceptors ...Interceptor)
- func (c *CASBackendClient) Interceptors() []Interceptor
- func (c *CASBackendClient) MapCreateBulk(slice any, setFunc func(*CASBackendCreate, int)) *CASBackendCreateBulk
- func (c *CASBackendClient) Query() *CASBackendQuery
- func (c *CASBackendClient) QueryOrganization(cb *CASBackend) *OrganizationQuery
- func (c *CASBackendClient) QueryWorkflowRun(cb *CASBackend) *WorkflowRunQuery
- func (c *CASBackendClient) Update() *CASBackendUpdate
- func (c *CASBackendClient) UpdateOne(cb *CASBackend) *CASBackendUpdateOne
- func (c *CASBackendClient) UpdateOneID(id uuid.UUID) *CASBackendUpdateOne
- func (c *CASBackendClient) Use(hooks ...Hook)
- type CASBackendCreate
- func (cbc *CASBackendCreate) AddWorkflowRun(w ...*WorkflowRun) *CASBackendCreate
- func (cbc *CASBackendCreate) AddWorkflowRunIDs(ids ...uuid.UUID) *CASBackendCreate
- func (cbc *CASBackendCreate) Exec(ctx context.Context) error
- func (cbc *CASBackendCreate) ExecX(ctx context.Context)
- func (cbc *CASBackendCreate) Mutation() *CASBackendMutation
- func (cbc *CASBackendCreate) Save(ctx context.Context) (*CASBackend, error)
- func (cbc *CASBackendCreate) SaveX(ctx context.Context) *CASBackend
- func (cbc *CASBackendCreate) SetCreatedAt(t time.Time) *CASBackendCreate
- func (cbc *CASBackendCreate) SetDefault(b bool) *CASBackendCreate
- func (cbc *CASBackendCreate) SetDeletedAt(t time.Time) *CASBackendCreate
- func (cbc *CASBackendCreate) SetDescription(s string) *CASBackendCreate
- func (cbc *CASBackendCreate) SetFallback(b bool) *CASBackendCreate
- func (cbc *CASBackendCreate) SetID(u uuid.UUID) *CASBackendCreate
- func (cbc *CASBackendCreate) SetLocation(s string) *CASBackendCreate
- func (cbc *CASBackendCreate) SetMaxBlobSizeBytes(i int64) *CASBackendCreate
- func (cbc *CASBackendCreate) SetName(s string) *CASBackendCreate
- func (cbc *CASBackendCreate) SetNillableCreatedAt(t *time.Time) *CASBackendCreate
- func (cbc *CASBackendCreate) SetNillableDefault(b *bool) *CASBackendCreate
- func (cbc *CASBackendCreate) SetNillableDeletedAt(t *time.Time) *CASBackendCreate
- func (cbc *CASBackendCreate) SetNillableDescription(s *string) *CASBackendCreate
- func (cbc *CASBackendCreate) SetNillableFallback(b *bool) *CASBackendCreate
- func (cbc *CASBackendCreate) SetNillableID(u *uuid.UUID) *CASBackendCreate
- func (cbc *CASBackendCreate) SetNillableValidatedAt(t *time.Time) *CASBackendCreate
- func (cbc *CASBackendCreate) SetNillableValidationStatus(bbvs *biz.CASBackendValidationStatus) *CASBackendCreate
- func (cbc *CASBackendCreate) SetOrganization(o *Organization) *CASBackendCreate
- func (cbc *CASBackendCreate) SetOrganizationID(id uuid.UUID) *CASBackendCreate
- func (cbc *CASBackendCreate) SetProvider(bbp biz.CASBackendProvider) *CASBackendCreate
- func (cbc *CASBackendCreate) SetSecretName(s string) *CASBackendCreate
- func (cbc *CASBackendCreate) SetValidatedAt(t time.Time) *CASBackendCreate
- func (cbc *CASBackendCreate) SetValidationStatus(bbvs biz.CASBackendValidationStatus) *CASBackendCreate
- type CASBackendCreateBulk
- type CASBackendDelete
- type CASBackendDeleteOne
- type CASBackendEdges
- type CASBackendGroupBy
- func (cbgb *CASBackendGroupBy) Aggregate(fns ...AggregateFunc) *CASBackendGroupBy
- func (s *CASBackendGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *CASBackendGroupBy) BoolX(ctx context.Context) bool
- func (s *CASBackendGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *CASBackendGroupBy) BoolsX(ctx context.Context) []bool
- func (s *CASBackendGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *CASBackendGroupBy) Float64X(ctx context.Context) float64
- func (s *CASBackendGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *CASBackendGroupBy) Float64sX(ctx context.Context) []float64
- func (s *CASBackendGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *CASBackendGroupBy) IntX(ctx context.Context) int
- func (s *CASBackendGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *CASBackendGroupBy) IntsX(ctx context.Context) []int
- func (cbgb *CASBackendGroupBy) Scan(ctx context.Context, v any) error
- func (s *CASBackendGroupBy) ScanX(ctx context.Context, v any)
- func (s *CASBackendGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *CASBackendGroupBy) StringX(ctx context.Context) string
- func (s *CASBackendGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *CASBackendGroupBy) StringsX(ctx context.Context) []string
- type CASBackendMutation
- func (m *CASBackendMutation) AddField(name string, value ent.Value) error
- func (m *CASBackendMutation) AddMaxBlobSizeBytes(i int64)
- func (m *CASBackendMutation) AddWorkflowRunIDs(ids ...uuid.UUID)
- func (m *CASBackendMutation) AddedEdges() []string
- func (m *CASBackendMutation) AddedField(name string) (ent.Value, bool)
- func (m *CASBackendMutation) AddedFields() []string
- func (m *CASBackendMutation) AddedIDs(name string) []ent.Value
- func (m *CASBackendMutation) AddedMaxBlobSizeBytes() (r int64, exists bool)
- func (m *CASBackendMutation) ClearDeletedAt()
- func (m *CASBackendMutation) ClearDescription()
- func (m *CASBackendMutation) ClearEdge(name string) error
- func (m *CASBackendMutation) ClearField(name string) error
- func (m *CASBackendMutation) ClearOrganization()
- func (m *CASBackendMutation) ClearWorkflowRun()
- func (m *CASBackendMutation) ClearedEdges() []string
- func (m *CASBackendMutation) ClearedFields() []string
- func (m CASBackendMutation) Client() *Client
- func (m *CASBackendMutation) CreatedAt() (r time.Time, exists bool)
- func (m *CASBackendMutation) Default() (r bool, exists bool)
- func (m *CASBackendMutation) DeletedAt() (r time.Time, exists bool)
- func (m *CASBackendMutation) DeletedAtCleared() bool
- func (m *CASBackendMutation) Description() (r string, exists bool)
- func (m *CASBackendMutation) DescriptionCleared() bool
- func (m *CASBackendMutation) EdgeCleared(name string) bool
- func (m *CASBackendMutation) Fallback() (r bool, exists bool)
- func (m *CASBackendMutation) Field(name string) (ent.Value, bool)
- func (m *CASBackendMutation) FieldCleared(name string) bool
- func (m *CASBackendMutation) Fields() []string
- func (m *CASBackendMutation) ID() (id uuid.UUID, exists bool)
- func (m *CASBackendMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *CASBackendMutation) Location() (r string, exists bool)
- func (m *CASBackendMutation) MaxBlobSizeBytes() (r int64, exists bool)
- func (m *CASBackendMutation) Name() (r string, exists bool)
- func (m *CASBackendMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *CASBackendMutation) OldDefault(ctx context.Context) (v bool, err error)
- func (m *CASBackendMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *CASBackendMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *CASBackendMutation) OldFallback(ctx context.Context) (v bool, err error)
- func (m *CASBackendMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *CASBackendMutation) OldLocation(ctx context.Context) (v string, err error)
- func (m *CASBackendMutation) OldMaxBlobSizeBytes(ctx context.Context) (v int64, err error)
- func (m *CASBackendMutation) OldName(ctx context.Context) (v string, err error)
- func (m *CASBackendMutation) OldProvider(ctx context.Context) (v biz.CASBackendProvider, err error)
- func (m *CASBackendMutation) OldSecretName(ctx context.Context) (v string, err error)
- func (m *CASBackendMutation) OldValidatedAt(ctx context.Context) (v time.Time, err error)
- func (m *CASBackendMutation) OldValidationStatus(ctx context.Context) (v biz.CASBackendValidationStatus, err error)
- func (m *CASBackendMutation) Op() Op
- func (m *CASBackendMutation) OrganizationCleared() bool
- func (m *CASBackendMutation) OrganizationID() (id uuid.UUID, exists bool)
- func (m *CASBackendMutation) OrganizationIDs() (ids []uuid.UUID)
- func (m *CASBackendMutation) Provider() (r biz.CASBackendProvider, exists bool)
- func (m *CASBackendMutation) RemoveWorkflowRunIDs(ids ...uuid.UUID)
- func (m *CASBackendMutation) RemovedEdges() []string
- func (m *CASBackendMutation) RemovedIDs(name string) []ent.Value
- func (m *CASBackendMutation) RemovedWorkflowRunIDs() (ids []uuid.UUID)
- func (m *CASBackendMutation) ResetCreatedAt()
- func (m *CASBackendMutation) ResetDefault()
- func (m *CASBackendMutation) ResetDeletedAt()
- func (m *CASBackendMutation) ResetDescription()
- func (m *CASBackendMutation) ResetEdge(name string) error
- func (m *CASBackendMutation) ResetFallback()
- func (m *CASBackendMutation) ResetField(name string) error
- func (m *CASBackendMutation) ResetLocation()
- func (m *CASBackendMutation) ResetMaxBlobSizeBytes()
- func (m *CASBackendMutation) ResetName()
- func (m *CASBackendMutation) ResetOrganization()
- func (m *CASBackendMutation) ResetProvider()
- func (m *CASBackendMutation) ResetSecretName()
- func (m *CASBackendMutation) ResetValidatedAt()
- func (m *CASBackendMutation) ResetValidationStatus()
- func (m *CASBackendMutation) ResetWorkflowRun()
- func (m *CASBackendMutation) SecretName() (r string, exists bool)
- func (m *CASBackendMutation) SetCreatedAt(t time.Time)
- func (m *CASBackendMutation) SetDefault(b bool)
- func (m *CASBackendMutation) SetDeletedAt(t time.Time)
- func (m *CASBackendMutation) SetDescription(s string)
- func (m *CASBackendMutation) SetFallback(b bool)
- func (m *CASBackendMutation) SetField(name string, value ent.Value) error
- func (m *CASBackendMutation) SetID(id uuid.UUID)
- func (m *CASBackendMutation) SetLocation(s string)
- func (m *CASBackendMutation) SetMaxBlobSizeBytes(i int64)
- func (m *CASBackendMutation) SetName(s string)
- func (m *CASBackendMutation) SetOp(op Op)
- func (m *CASBackendMutation) SetOrganizationID(id uuid.UUID)
- func (m *CASBackendMutation) SetProvider(bbp biz.CASBackendProvider)
- func (m *CASBackendMutation) SetSecretName(s string)
- func (m *CASBackendMutation) SetValidatedAt(t time.Time)
- func (m *CASBackendMutation) SetValidationStatus(bbvs biz.CASBackendValidationStatus)
- func (m CASBackendMutation) Tx() (*Tx, error)
- func (m *CASBackendMutation) Type() string
- func (m *CASBackendMutation) ValidatedAt() (r time.Time, exists bool)
- func (m *CASBackendMutation) ValidationStatus() (r biz.CASBackendValidationStatus, exists bool)
- func (m *CASBackendMutation) Where(ps ...predicate.CASBackend)
- func (m *CASBackendMutation) WhereP(ps ...func(*sql.Selector))
- func (m *CASBackendMutation) WorkflowRunCleared() bool
- func (m *CASBackendMutation) WorkflowRunIDs() (ids []uuid.UUID)
- type CASBackendQuery
- func (cbq *CASBackendQuery) Aggregate(fns ...AggregateFunc) *CASBackendSelect
- func (cbq *CASBackendQuery) All(ctx context.Context) ([]*CASBackend, error)
- func (cbq *CASBackendQuery) AllX(ctx context.Context) []*CASBackend
- func (cbq *CASBackendQuery) Clone() *CASBackendQuery
- func (cbq *CASBackendQuery) Count(ctx context.Context) (int, error)
- func (cbq *CASBackendQuery) CountX(ctx context.Context) int
- func (cbq *CASBackendQuery) Exist(ctx context.Context) (bool, error)
- func (cbq *CASBackendQuery) ExistX(ctx context.Context) bool
- func (cbq *CASBackendQuery) First(ctx context.Context) (*CASBackend, error)
- func (cbq *CASBackendQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (cbq *CASBackendQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (cbq *CASBackendQuery) FirstX(ctx context.Context) *CASBackend
- func (cbq *CASBackendQuery) ForShare(opts ...sql.LockOption) *CASBackendQuery
- func (cbq *CASBackendQuery) ForUpdate(opts ...sql.LockOption) *CASBackendQuery
- func (cbq *CASBackendQuery) GroupBy(field string, fields ...string) *CASBackendGroupBy
- func (cbq *CASBackendQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (cbq *CASBackendQuery) IDsX(ctx context.Context) []uuid.UUID
- func (cbq *CASBackendQuery) Limit(limit int) *CASBackendQuery
- func (cbq *CASBackendQuery) Modify(modifiers ...func(s *sql.Selector)) *CASBackendSelect
- func (cbq *CASBackendQuery) Offset(offset int) *CASBackendQuery
- func (cbq *CASBackendQuery) Only(ctx context.Context) (*CASBackend, error)
- func (cbq *CASBackendQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (cbq *CASBackendQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (cbq *CASBackendQuery) OnlyX(ctx context.Context) *CASBackend
- func (cbq *CASBackendQuery) Order(o ...casbackend.OrderOption) *CASBackendQuery
- func (cbq *CASBackendQuery) QueryOrganization() *OrganizationQuery
- func (cbq *CASBackendQuery) QueryWorkflowRun() *WorkflowRunQuery
- func (cbq *CASBackendQuery) Select(fields ...string) *CASBackendSelect
- func (cbq *CASBackendQuery) Unique(unique bool) *CASBackendQuery
- func (cbq *CASBackendQuery) Where(ps ...predicate.CASBackend) *CASBackendQuery
- func (cbq *CASBackendQuery) WithOrganization(opts ...func(*OrganizationQuery)) *CASBackendQuery
- func (cbq *CASBackendQuery) WithWorkflowRun(opts ...func(*WorkflowRunQuery)) *CASBackendQuery
- type CASBackendSelect
- func (cbs *CASBackendSelect) Aggregate(fns ...AggregateFunc) *CASBackendSelect
- func (s *CASBackendSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *CASBackendSelect) BoolX(ctx context.Context) bool
- func (s *CASBackendSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *CASBackendSelect) BoolsX(ctx context.Context) []bool
- func (s *CASBackendSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *CASBackendSelect) Float64X(ctx context.Context) float64
- func (s *CASBackendSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *CASBackendSelect) Float64sX(ctx context.Context) []float64
- func (s *CASBackendSelect) Int(ctx context.Context) (_ int, err error)
- func (s *CASBackendSelect) IntX(ctx context.Context) int
- func (s *CASBackendSelect) Ints(ctx context.Context) ([]int, error)
- func (s *CASBackendSelect) IntsX(ctx context.Context) []int
- func (cbs *CASBackendSelect) Modify(modifiers ...func(s *sql.Selector)) *CASBackendSelect
- func (cbs *CASBackendSelect) Scan(ctx context.Context, v any) error
- func (s *CASBackendSelect) ScanX(ctx context.Context, v any)
- func (s *CASBackendSelect) String(ctx context.Context) (_ string, err error)
- func (s *CASBackendSelect) StringX(ctx context.Context) string
- func (s *CASBackendSelect) Strings(ctx context.Context) ([]string, error)
- func (s *CASBackendSelect) StringsX(ctx context.Context) []string
- type CASBackendUpdate
- func (cbu *CASBackendUpdate) AddMaxBlobSizeBytes(i int64) *CASBackendUpdate
- func (cbu *CASBackendUpdate) AddWorkflowRun(w ...*WorkflowRun) *CASBackendUpdate
- func (cbu *CASBackendUpdate) AddWorkflowRunIDs(ids ...uuid.UUID) *CASBackendUpdate
- func (cbu *CASBackendUpdate) ClearDeletedAt() *CASBackendUpdate
- func (cbu *CASBackendUpdate) ClearDescription() *CASBackendUpdate
- func (cbu *CASBackendUpdate) ClearOrganization() *CASBackendUpdate
- func (cbu *CASBackendUpdate) ClearWorkflowRun() *CASBackendUpdate
- func (cbu *CASBackendUpdate) Exec(ctx context.Context) error
- func (cbu *CASBackendUpdate) ExecX(ctx context.Context)
- func (cbu *CASBackendUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *CASBackendUpdate
- func (cbu *CASBackendUpdate) Mutation() *CASBackendMutation
- func (cbu *CASBackendUpdate) RemoveWorkflowRun(w ...*WorkflowRun) *CASBackendUpdate
- func (cbu *CASBackendUpdate) RemoveWorkflowRunIDs(ids ...uuid.UUID) *CASBackendUpdate
- func (cbu *CASBackendUpdate) Save(ctx context.Context) (int, error)
- func (cbu *CASBackendUpdate) SaveX(ctx context.Context) int
- func (cbu *CASBackendUpdate) SetDefault(b bool) *CASBackendUpdate
- func (cbu *CASBackendUpdate) SetDeletedAt(t time.Time) *CASBackendUpdate
- func (cbu *CASBackendUpdate) SetDescription(s string) *CASBackendUpdate
- func (cbu *CASBackendUpdate) SetMaxBlobSizeBytes(i int64) *CASBackendUpdate
- func (cbu *CASBackendUpdate) SetNillableDefault(b *bool) *CASBackendUpdate
- func (cbu *CASBackendUpdate) SetNillableDeletedAt(t *time.Time) *CASBackendUpdate
- func (cbu *CASBackendUpdate) SetNillableDescription(s *string) *CASBackendUpdate
- func (cbu *CASBackendUpdate) SetNillableMaxBlobSizeBytes(i *int64) *CASBackendUpdate
- func (cbu *CASBackendUpdate) SetNillableSecretName(s *string) *CASBackendUpdate
- func (cbu *CASBackendUpdate) SetNillableValidatedAt(t *time.Time) *CASBackendUpdate
- func (cbu *CASBackendUpdate) SetNillableValidationStatus(bbvs *biz.CASBackendValidationStatus) *CASBackendUpdate
- func (cbu *CASBackendUpdate) SetOrganization(o *Organization) *CASBackendUpdate
- func (cbu *CASBackendUpdate) SetOrganizationID(id uuid.UUID) *CASBackendUpdate
- func (cbu *CASBackendUpdate) SetSecretName(s string) *CASBackendUpdate
- func (cbu *CASBackendUpdate) SetValidatedAt(t time.Time) *CASBackendUpdate
- func (cbu *CASBackendUpdate) SetValidationStatus(bbvs biz.CASBackendValidationStatus) *CASBackendUpdate
- func (cbu *CASBackendUpdate) Where(ps ...predicate.CASBackend) *CASBackendUpdate
- type CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) AddMaxBlobSizeBytes(i int64) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) AddWorkflowRun(w ...*WorkflowRun) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) AddWorkflowRunIDs(ids ...uuid.UUID) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) ClearDeletedAt() *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) ClearDescription() *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) ClearOrganization() *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) ClearWorkflowRun() *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) Exec(ctx context.Context) error
- func (cbuo *CASBackendUpdateOne) ExecX(ctx context.Context)
- func (cbuo *CASBackendUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) Mutation() *CASBackendMutation
- func (cbuo *CASBackendUpdateOne) RemoveWorkflowRun(w ...*WorkflowRun) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) RemoveWorkflowRunIDs(ids ...uuid.UUID) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) Save(ctx context.Context) (*CASBackend, error)
- func (cbuo *CASBackendUpdateOne) SaveX(ctx context.Context) *CASBackend
- func (cbuo *CASBackendUpdateOne) Select(field string, fields ...string) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) SetDefault(b bool) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) SetDeletedAt(t time.Time) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) SetDescription(s string) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) SetMaxBlobSizeBytes(i int64) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) SetNillableDefault(b *bool) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) SetNillableDeletedAt(t *time.Time) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) SetNillableDescription(s *string) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) SetNillableMaxBlobSizeBytes(i *int64) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) SetNillableSecretName(s *string) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) SetNillableValidatedAt(t *time.Time) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) SetNillableValidationStatus(bbvs *biz.CASBackendValidationStatus) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) SetOrganization(o *Organization) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) SetOrganizationID(id uuid.UUID) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) SetSecretName(s string) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) SetValidatedAt(t time.Time) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) SetValidationStatus(bbvs biz.CASBackendValidationStatus) *CASBackendUpdateOne
- func (cbuo *CASBackendUpdateOne) Where(ps ...predicate.CASBackend) *CASBackendUpdateOne
- type CASBackends
- type CASMapping
- func (cm *CASMapping) QueryCasBackend() *CASBackendQuery
- func (cm *CASMapping) QueryOrganization() *OrganizationQuery
- func (cm *CASMapping) QueryWorkflowRun() *WorkflowRunQuery
- func (cm *CASMapping) String() string
- func (cm *CASMapping) Unwrap() *CASMapping
- func (cm *CASMapping) Update() *CASMappingUpdateOne
- func (cm *CASMapping) Value(name string) (ent.Value, error)
- type CASMappingClient
- func (c *CASMappingClient) Create() *CASMappingCreate
- func (c *CASMappingClient) CreateBulk(builders ...*CASMappingCreate) *CASMappingCreateBulk
- func (c *CASMappingClient) Delete() *CASMappingDelete
- func (c *CASMappingClient) DeleteOne(cm *CASMapping) *CASMappingDeleteOne
- func (c *CASMappingClient) DeleteOneID(id uuid.UUID) *CASMappingDeleteOne
- func (c *CASMappingClient) Get(ctx context.Context, id uuid.UUID) (*CASMapping, error)
- func (c *CASMappingClient) GetX(ctx context.Context, id uuid.UUID) *CASMapping
- func (c *CASMappingClient) Hooks() []Hook
- func (c *CASMappingClient) Intercept(interceptors ...Interceptor)
- func (c *CASMappingClient) Interceptors() []Interceptor
- func (c *CASMappingClient) MapCreateBulk(slice any, setFunc func(*CASMappingCreate, int)) *CASMappingCreateBulk
- func (c *CASMappingClient) Query() *CASMappingQuery
- func (c *CASMappingClient) QueryCasBackend(cm *CASMapping) *CASBackendQuery
- func (c *CASMappingClient) QueryOrganization(cm *CASMapping) *OrganizationQuery
- func (c *CASMappingClient) QueryWorkflowRun(cm *CASMapping) *WorkflowRunQuery
- func (c *CASMappingClient) Update() *CASMappingUpdate
- func (c *CASMappingClient) UpdateOne(cm *CASMapping) *CASMappingUpdateOne
- func (c *CASMappingClient) UpdateOneID(id uuid.UUID) *CASMappingUpdateOne
- func (c *CASMappingClient) Use(hooks ...Hook)
- type CASMappingCreate
- func (cmc *CASMappingCreate) Exec(ctx context.Context) error
- func (cmc *CASMappingCreate) ExecX(ctx context.Context)
- func (cmc *CASMappingCreate) Mutation() *CASMappingMutation
- func (cmc *CASMappingCreate) Save(ctx context.Context) (*CASMapping, error)
- func (cmc *CASMappingCreate) SaveX(ctx context.Context) *CASMapping
- func (cmc *CASMappingCreate) SetCasBackend(c *CASBackend) *CASMappingCreate
- func (cmc *CASMappingCreate) SetCasBackendID(id uuid.UUID) *CASMappingCreate
- func (cmc *CASMappingCreate) SetCreatedAt(t time.Time) *CASMappingCreate
- func (cmc *CASMappingCreate) SetDigest(s string) *CASMappingCreate
- func (cmc *CASMappingCreate) SetID(u uuid.UUID) *CASMappingCreate
- func (cmc *CASMappingCreate) SetNillableCreatedAt(t *time.Time) *CASMappingCreate
- func (cmc *CASMappingCreate) SetNillableID(u *uuid.UUID) *CASMappingCreate
- func (cmc *CASMappingCreate) SetNillableWorkflowRunID(id *uuid.UUID) *CASMappingCreate
- func (cmc *CASMappingCreate) SetOrganization(o *Organization) *CASMappingCreate
- func (cmc *CASMappingCreate) SetOrganizationID(id uuid.UUID) *CASMappingCreate
- func (cmc *CASMappingCreate) SetWorkflowRun(w *WorkflowRun) *CASMappingCreate
- func (cmc *CASMappingCreate) SetWorkflowRunID(id uuid.UUID) *CASMappingCreate
- type CASMappingCreateBulk
- type CASMappingDelete
- type CASMappingDeleteOne
- type CASMappingEdges
- type CASMappingGroupBy
- func (cmgb *CASMappingGroupBy) Aggregate(fns ...AggregateFunc) *CASMappingGroupBy
- func (s *CASMappingGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *CASMappingGroupBy) BoolX(ctx context.Context) bool
- func (s *CASMappingGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *CASMappingGroupBy) BoolsX(ctx context.Context) []bool
- func (s *CASMappingGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *CASMappingGroupBy) Float64X(ctx context.Context) float64
- func (s *CASMappingGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *CASMappingGroupBy) Float64sX(ctx context.Context) []float64
- func (s *CASMappingGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *CASMappingGroupBy) IntX(ctx context.Context) int
- func (s *CASMappingGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *CASMappingGroupBy) IntsX(ctx context.Context) []int
- func (cmgb *CASMappingGroupBy) Scan(ctx context.Context, v any) error
- func (s *CASMappingGroupBy) ScanX(ctx context.Context, v any)
- func (s *CASMappingGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *CASMappingGroupBy) StringX(ctx context.Context) string
- func (s *CASMappingGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *CASMappingGroupBy) StringsX(ctx context.Context) []string
- type CASMappingMutation
- func (m *CASMappingMutation) AddField(name string, value ent.Value) error
- func (m *CASMappingMutation) AddedEdges() []string
- func (m *CASMappingMutation) AddedField(name string) (ent.Value, bool)
- func (m *CASMappingMutation) AddedFields() []string
- func (m *CASMappingMutation) AddedIDs(name string) []ent.Value
- func (m *CASMappingMutation) CasBackendCleared() bool
- func (m *CASMappingMutation) CasBackendID() (id uuid.UUID, exists bool)
- func (m *CASMappingMutation) CasBackendIDs() (ids []uuid.UUID)
- func (m *CASMappingMutation) ClearCasBackend()
- func (m *CASMappingMutation) ClearEdge(name string) error
- func (m *CASMappingMutation) ClearField(name string) error
- func (m *CASMappingMutation) ClearOrganization()
- func (m *CASMappingMutation) ClearWorkflowRun()
- func (m *CASMappingMutation) ClearedEdges() []string
- func (m *CASMappingMutation) ClearedFields() []string
- func (m CASMappingMutation) Client() *Client
- func (m *CASMappingMutation) CreatedAt() (r time.Time, exists bool)
- func (m *CASMappingMutation) Digest() (r string, exists bool)
- func (m *CASMappingMutation) EdgeCleared(name string) bool
- func (m *CASMappingMutation) Field(name string) (ent.Value, bool)
- func (m *CASMappingMutation) FieldCleared(name string) bool
- func (m *CASMappingMutation) Fields() []string
- func (m *CASMappingMutation) ID() (id uuid.UUID, exists bool)
- func (m *CASMappingMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *CASMappingMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *CASMappingMutation) OldDigest(ctx context.Context) (v string, err error)
- func (m *CASMappingMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *CASMappingMutation) Op() Op
- func (m *CASMappingMutation) OrganizationCleared() bool
- func (m *CASMappingMutation) OrganizationID() (id uuid.UUID, exists bool)
- func (m *CASMappingMutation) OrganizationIDs() (ids []uuid.UUID)
- func (m *CASMappingMutation) RemovedEdges() []string
- func (m *CASMappingMutation) RemovedIDs(name string) []ent.Value
- func (m *CASMappingMutation) ResetCasBackend()
- func (m *CASMappingMutation) ResetCreatedAt()
- func (m *CASMappingMutation) ResetDigest()
- func (m *CASMappingMutation) ResetEdge(name string) error
- func (m *CASMappingMutation) ResetField(name string) error
- func (m *CASMappingMutation) ResetOrganization()
- func (m *CASMappingMutation) ResetWorkflowRun()
- func (m *CASMappingMutation) SetCasBackendID(id uuid.UUID)
- func (m *CASMappingMutation) SetCreatedAt(t time.Time)
- func (m *CASMappingMutation) SetDigest(s string)
- func (m *CASMappingMutation) SetField(name string, value ent.Value) error
- func (m *CASMappingMutation) SetID(id uuid.UUID)
- func (m *CASMappingMutation) SetOp(op Op)
- func (m *CASMappingMutation) SetOrganizationID(id uuid.UUID)
- func (m *CASMappingMutation) SetWorkflowRunID(id uuid.UUID)
- func (m CASMappingMutation) Tx() (*Tx, error)
- func (m *CASMappingMutation) Type() string
- func (m *CASMappingMutation) Where(ps ...predicate.CASMapping)
- func (m *CASMappingMutation) WhereP(ps ...func(*sql.Selector))
- func (m *CASMappingMutation) WorkflowRunCleared() bool
- func (m *CASMappingMutation) WorkflowRunID() (id uuid.UUID, exists bool)
- func (m *CASMappingMutation) WorkflowRunIDs() (ids []uuid.UUID)
- type CASMappingQuery
- func (cmq *CASMappingQuery) Aggregate(fns ...AggregateFunc) *CASMappingSelect
- func (cmq *CASMappingQuery) All(ctx context.Context) ([]*CASMapping, error)
- func (cmq *CASMappingQuery) AllX(ctx context.Context) []*CASMapping
- func (cmq *CASMappingQuery) Clone() *CASMappingQuery
- func (cmq *CASMappingQuery) Count(ctx context.Context) (int, error)
- func (cmq *CASMappingQuery) CountX(ctx context.Context) int
- func (cmq *CASMappingQuery) Exist(ctx context.Context) (bool, error)
- func (cmq *CASMappingQuery) ExistX(ctx context.Context) bool
- func (cmq *CASMappingQuery) First(ctx context.Context) (*CASMapping, error)
- func (cmq *CASMappingQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (cmq *CASMappingQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (cmq *CASMappingQuery) FirstX(ctx context.Context) *CASMapping
- func (cmq *CASMappingQuery) ForShare(opts ...sql.LockOption) *CASMappingQuery
- func (cmq *CASMappingQuery) ForUpdate(opts ...sql.LockOption) *CASMappingQuery
- func (cmq *CASMappingQuery) GroupBy(field string, fields ...string) *CASMappingGroupBy
- func (cmq *CASMappingQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (cmq *CASMappingQuery) IDsX(ctx context.Context) []uuid.UUID
- func (cmq *CASMappingQuery) Limit(limit int) *CASMappingQuery
- func (cmq *CASMappingQuery) Modify(modifiers ...func(s *sql.Selector)) *CASMappingSelect
- func (cmq *CASMappingQuery) Offset(offset int) *CASMappingQuery
- func (cmq *CASMappingQuery) Only(ctx context.Context) (*CASMapping, error)
- func (cmq *CASMappingQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (cmq *CASMappingQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (cmq *CASMappingQuery) OnlyX(ctx context.Context) *CASMapping
- func (cmq *CASMappingQuery) Order(o ...casmapping.OrderOption) *CASMappingQuery
- func (cmq *CASMappingQuery) QueryCasBackend() *CASBackendQuery
- func (cmq *CASMappingQuery) QueryOrganization() *OrganizationQuery
- func (cmq *CASMappingQuery) QueryWorkflowRun() *WorkflowRunQuery
- func (cmq *CASMappingQuery) Select(fields ...string) *CASMappingSelect
- func (cmq *CASMappingQuery) Unique(unique bool) *CASMappingQuery
- func (cmq *CASMappingQuery) Where(ps ...predicate.CASMapping) *CASMappingQuery
- func (cmq *CASMappingQuery) WithCasBackend(opts ...func(*CASBackendQuery)) *CASMappingQuery
- func (cmq *CASMappingQuery) WithOrganization(opts ...func(*OrganizationQuery)) *CASMappingQuery
- func (cmq *CASMappingQuery) WithWorkflowRun(opts ...func(*WorkflowRunQuery)) *CASMappingQuery
- type CASMappingSelect
- func (cms *CASMappingSelect) Aggregate(fns ...AggregateFunc) *CASMappingSelect
- func (s *CASMappingSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *CASMappingSelect) BoolX(ctx context.Context) bool
- func (s *CASMappingSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *CASMappingSelect) BoolsX(ctx context.Context) []bool
- func (s *CASMappingSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *CASMappingSelect) Float64X(ctx context.Context) float64
- func (s *CASMappingSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *CASMappingSelect) Float64sX(ctx context.Context) []float64
- func (s *CASMappingSelect) Int(ctx context.Context) (_ int, err error)
- func (s *CASMappingSelect) IntX(ctx context.Context) int
- func (s *CASMappingSelect) Ints(ctx context.Context) ([]int, error)
- func (s *CASMappingSelect) IntsX(ctx context.Context) []int
- func (cms *CASMappingSelect) Modify(modifiers ...func(s *sql.Selector)) *CASMappingSelect
- func (cms *CASMappingSelect) Scan(ctx context.Context, v any) error
- func (s *CASMappingSelect) ScanX(ctx context.Context, v any)
- func (s *CASMappingSelect) String(ctx context.Context) (_ string, err error)
- func (s *CASMappingSelect) StringX(ctx context.Context) string
- func (s *CASMappingSelect) Strings(ctx context.Context) ([]string, error)
- func (s *CASMappingSelect) StringsX(ctx context.Context) []string
- type CASMappingUpdate
- func (cmu *CASMappingUpdate) Exec(ctx context.Context) error
- func (cmu *CASMappingUpdate) ExecX(ctx context.Context)
- func (cmu *CASMappingUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *CASMappingUpdate
- func (cmu *CASMappingUpdate) Mutation() *CASMappingMutation
- func (cmu *CASMappingUpdate) Save(ctx context.Context) (int, error)
- func (cmu *CASMappingUpdate) SaveX(ctx context.Context) int
- func (cmu *CASMappingUpdate) Where(ps ...predicate.CASMapping) *CASMappingUpdate
- type CASMappingUpdateOne
- func (cmuo *CASMappingUpdateOne) Exec(ctx context.Context) error
- func (cmuo *CASMappingUpdateOne) ExecX(ctx context.Context)
- func (cmuo *CASMappingUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *CASMappingUpdateOne
- func (cmuo *CASMappingUpdateOne) Mutation() *CASMappingMutation
- func (cmuo *CASMappingUpdateOne) Save(ctx context.Context) (*CASMapping, error)
- func (cmuo *CASMappingUpdateOne) SaveX(ctx context.Context) *CASMapping
- func (cmuo *CASMappingUpdateOne) Select(field string, fields ...string) *CASMappingUpdateOne
- func (cmuo *CASMappingUpdateOne) Where(ps ...predicate.CASMapping) *CASMappingUpdateOne
- type CASMappings
- 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) Ping() 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
- func (i *Integration) QueryAttachments() *IntegrationAttachmentQuery
- func (i *Integration) QueryOrganization() *OrganizationQuery
- func (i *Integration) String() string
- func (i *Integration) Unwrap() *Integration
- func (i *Integration) Update() *IntegrationUpdateOne
- func (i *Integration) Value(name string) (ent.Value, error)
- 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
- func (ia *IntegrationAttachment) Value(name string) (ent.Value, error)
- 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) MapCreateBulk(slice any, setFunc func(*IntegrationAttachmentCreate, int)) *IntegrationAttachmentCreateBulk
- 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(u 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) OldWorkflowID(ctx context.Context) (v uuid.UUID, err 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) ResetWorkflowID()
- 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(u 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() (r 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) ForShare(opts ...sql.LockOption) *IntegrationAttachmentQuery
- func (iaq *IntegrationAttachmentQuery) ForUpdate(opts ...sql.LockOption) *IntegrationAttachmentQuery
- 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) Modify(modifiers ...func(s *sql.Selector)) *IntegrationAttachmentSelect
- 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 ...integrationattachment.OrderOption) *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) Modify(modifiers ...func(s *sql.Selector)) *IntegrationAttachmentSelect
- 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) Modify(modifiers ...func(u *sql.UpdateBuilder)) *IntegrationAttachmentUpdate
- 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) SetNillableWorkflowID(u *uuid.UUID) *IntegrationAttachmentUpdate
- func (iau *IntegrationAttachmentUpdate) SetWorkflow(w *Workflow) *IntegrationAttachmentUpdate
- func (iau *IntegrationAttachmentUpdate) SetWorkflowID(u 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) Modify(modifiers ...func(u *sql.UpdateBuilder)) *IntegrationAttachmentUpdateOne
- 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) SetNillableWorkflowID(u *uuid.UUID) *IntegrationAttachmentUpdateOne
- func (iauo *IntegrationAttachmentUpdateOne) SetWorkflow(w *Workflow) *IntegrationAttachmentUpdateOne
- func (iauo *IntegrationAttachmentUpdateOne) SetWorkflowID(u 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) MapCreateBulk(slice any, setFunc func(*IntegrationCreate, int)) *IntegrationCreateBulk
- 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) SetName(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) Name() (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) OldName(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) ResetName()
- 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) SetName(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) ForShare(opts ...sql.LockOption) *IntegrationQuery
- func (iq *IntegrationQuery) ForUpdate(opts ...sql.LockOption) *IntegrationQuery
- 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) Modify(modifiers ...func(s *sql.Selector)) *IntegrationSelect
- 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 ...integration.OrderOption) *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) Modify(modifiers ...func(s *sql.Selector)) *IntegrationSelect
- 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) Modify(modifiers ...func(u *sql.UpdateBuilder)) *IntegrationUpdate
- 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) Modify(modifiers ...func(u *sql.UpdateBuilder)) *IntegrationUpdateOne
- 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) MapCreateBulk(slice any, setFunc func(*MembershipCreate, int)) *MembershipCreateBulk
- 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) SetRole(a authz.Role) *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) OldRole(ctx context.Context) (v authz.Role, err 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) ResetRole()
- func (m *MembershipMutation) ResetUpdatedAt()
- func (m *MembershipMutation) ResetUser()
- func (m *MembershipMutation) Role() (r authz.Role, exists bool)
- 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) SetRole(a authz.Role)
- 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) ForShare(opts ...sql.LockOption) *MembershipQuery
- func (mq *MembershipQuery) ForUpdate(opts ...sql.LockOption) *MembershipQuery
- 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) Modify(modifiers ...func(s *sql.Selector)) *MembershipSelect
- 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 ...membership.OrderOption) *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) Modify(modifiers ...func(s *sql.Selector)) *MembershipSelect
- 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) Modify(modifiers ...func(u *sql.UpdateBuilder)) *MembershipUpdate
- 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) SetNillableRole(a *authz.Role) *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) SetRole(a authz.Role) *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) Modify(modifiers ...func(u *sql.UpdateBuilder)) *MembershipUpdateOne
- 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) SetNillableRole(a *authz.Role) *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) SetRole(a authz.Role) *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 Op
- type Option
- type OrderFunc
- type OrgInvitation
- func (oi *OrgInvitation) QueryOrganization() *OrganizationQuery
- func (oi *OrgInvitation) QuerySender() *UserQuery
- func (oi *OrgInvitation) String() string
- func (oi *OrgInvitation) Unwrap() *OrgInvitation
- func (oi *OrgInvitation) Update() *OrgInvitationUpdateOne
- func (oi *OrgInvitation) Value(name string) (ent.Value, error)
- type OrgInvitationClient
- func (c *OrgInvitationClient) Create() *OrgInvitationCreate
- func (c *OrgInvitationClient) CreateBulk(builders ...*OrgInvitationCreate) *OrgInvitationCreateBulk
- func (c *OrgInvitationClient) Delete() *OrgInvitationDelete
- func (c *OrgInvitationClient) DeleteOne(oi *OrgInvitation) *OrgInvitationDeleteOne
- func (c *OrgInvitationClient) DeleteOneID(id uuid.UUID) *OrgInvitationDeleteOne
- func (c *OrgInvitationClient) Get(ctx context.Context, id uuid.UUID) (*OrgInvitation, error)
- func (c *OrgInvitationClient) GetX(ctx context.Context, id uuid.UUID) *OrgInvitation
- func (c *OrgInvitationClient) Hooks() []Hook
- func (c *OrgInvitationClient) Intercept(interceptors ...Interceptor)
- func (c *OrgInvitationClient) Interceptors() []Interceptor
- func (c *OrgInvitationClient) MapCreateBulk(slice any, setFunc func(*OrgInvitationCreate, int)) *OrgInvitationCreateBulk
- func (c *OrgInvitationClient) Query() *OrgInvitationQuery
- func (c *OrgInvitationClient) QueryOrganization(oi *OrgInvitation) *OrganizationQuery
- func (c *OrgInvitationClient) QuerySender(oi *OrgInvitation) *UserQuery
- func (c *OrgInvitationClient) Update() *OrgInvitationUpdate
- func (c *OrgInvitationClient) UpdateOne(oi *OrgInvitation) *OrgInvitationUpdateOne
- func (c *OrgInvitationClient) UpdateOneID(id uuid.UUID) *OrgInvitationUpdateOne
- func (c *OrgInvitationClient) Use(hooks ...Hook)
- type OrgInvitationCreate
- func (oic *OrgInvitationCreate) Exec(ctx context.Context) error
- func (oic *OrgInvitationCreate) ExecX(ctx context.Context)
- func (oic *OrgInvitationCreate) Mutation() *OrgInvitationMutation
- func (oic *OrgInvitationCreate) Save(ctx context.Context) (*OrgInvitation, error)
- func (oic *OrgInvitationCreate) SaveX(ctx context.Context) *OrgInvitation
- func (oic *OrgInvitationCreate) SetCreatedAt(t time.Time) *OrgInvitationCreate
- func (oic *OrgInvitationCreate) SetDeletedAt(t time.Time) *OrgInvitationCreate
- func (oic *OrgInvitationCreate) SetID(u uuid.UUID) *OrgInvitationCreate
- func (oic *OrgInvitationCreate) SetNillableCreatedAt(t *time.Time) *OrgInvitationCreate
- func (oic *OrgInvitationCreate) SetNillableDeletedAt(t *time.Time) *OrgInvitationCreate
- func (oic *OrgInvitationCreate) SetNillableID(u *uuid.UUID) *OrgInvitationCreate
- func (oic *OrgInvitationCreate) SetNillableRole(a *authz.Role) *OrgInvitationCreate
- func (oic *OrgInvitationCreate) SetNillableStatus(bis *biz.OrgInvitationStatus) *OrgInvitationCreate
- func (oic *OrgInvitationCreate) SetOrganization(o *Organization) *OrgInvitationCreate
- func (oic *OrgInvitationCreate) SetOrganizationID(u uuid.UUID) *OrgInvitationCreate
- func (oic *OrgInvitationCreate) SetReceiverEmail(s string) *OrgInvitationCreate
- func (oic *OrgInvitationCreate) SetRole(a authz.Role) *OrgInvitationCreate
- func (oic *OrgInvitationCreate) SetSender(u *User) *OrgInvitationCreate
- func (oic *OrgInvitationCreate) SetSenderID(u uuid.UUID) *OrgInvitationCreate
- func (oic *OrgInvitationCreate) SetStatus(bis biz.OrgInvitationStatus) *OrgInvitationCreate
- type OrgInvitationCreateBulk
- func (oicb *OrgInvitationCreateBulk) Exec(ctx context.Context) error
- func (oicb *OrgInvitationCreateBulk) ExecX(ctx context.Context)
- func (oicb *OrgInvitationCreateBulk) Save(ctx context.Context) ([]*OrgInvitation, error)
- func (oicb *OrgInvitationCreateBulk) SaveX(ctx context.Context) []*OrgInvitation
- type OrgInvitationDelete
- type OrgInvitationDeleteOne
- type OrgInvitationEdges
- type OrgInvitationGroupBy
- func (oigb *OrgInvitationGroupBy) Aggregate(fns ...AggregateFunc) *OrgInvitationGroupBy
- func (s *OrgInvitationGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *OrgInvitationGroupBy) BoolX(ctx context.Context) bool
- func (s *OrgInvitationGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *OrgInvitationGroupBy) BoolsX(ctx context.Context) []bool
- func (s *OrgInvitationGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *OrgInvitationGroupBy) Float64X(ctx context.Context) float64
- func (s *OrgInvitationGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *OrgInvitationGroupBy) Float64sX(ctx context.Context) []float64
- func (s *OrgInvitationGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *OrgInvitationGroupBy) IntX(ctx context.Context) int
- func (s *OrgInvitationGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *OrgInvitationGroupBy) IntsX(ctx context.Context) []int
- func (oigb *OrgInvitationGroupBy) Scan(ctx context.Context, v any) error
- func (s *OrgInvitationGroupBy) ScanX(ctx context.Context, v any)
- func (s *OrgInvitationGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *OrgInvitationGroupBy) StringX(ctx context.Context) string
- func (s *OrgInvitationGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *OrgInvitationGroupBy) StringsX(ctx context.Context) []string
- type OrgInvitationMutation
- func (m *OrgInvitationMutation) AddField(name string, value ent.Value) error
- func (m *OrgInvitationMutation) AddedEdges() []string
- func (m *OrgInvitationMutation) AddedField(name string) (ent.Value, bool)
- func (m *OrgInvitationMutation) AddedFields() []string
- func (m *OrgInvitationMutation) AddedIDs(name string) []ent.Value
- func (m *OrgInvitationMutation) ClearDeletedAt()
- func (m *OrgInvitationMutation) ClearEdge(name string) error
- func (m *OrgInvitationMutation) ClearField(name string) error
- func (m *OrgInvitationMutation) ClearOrganization()
- func (m *OrgInvitationMutation) ClearRole()
- func (m *OrgInvitationMutation) ClearSender()
- func (m *OrgInvitationMutation) ClearedEdges() []string
- func (m *OrgInvitationMutation) ClearedFields() []string
- func (m OrgInvitationMutation) Client() *Client
- func (m *OrgInvitationMutation) CreatedAt() (r time.Time, exists bool)
- func (m *OrgInvitationMutation) DeletedAt() (r time.Time, exists bool)
- func (m *OrgInvitationMutation) DeletedAtCleared() bool
- func (m *OrgInvitationMutation) EdgeCleared(name string) bool
- func (m *OrgInvitationMutation) Field(name string) (ent.Value, bool)
- func (m *OrgInvitationMutation) FieldCleared(name string) bool
- func (m *OrgInvitationMutation) Fields() []string
- func (m *OrgInvitationMutation) ID() (id uuid.UUID, exists bool)
- func (m *OrgInvitationMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *OrgInvitationMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *OrgInvitationMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *OrgInvitationMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *OrgInvitationMutation) OldOrganizationID(ctx context.Context) (v uuid.UUID, err error)
- func (m *OrgInvitationMutation) OldReceiverEmail(ctx context.Context) (v string, err error)
- func (m *OrgInvitationMutation) OldRole(ctx context.Context) (v authz.Role, err error)
- func (m *OrgInvitationMutation) OldSenderID(ctx context.Context) (v uuid.UUID, err error)
- func (m *OrgInvitationMutation) OldStatus(ctx context.Context) (v biz.OrgInvitationStatus, err error)
- func (m *OrgInvitationMutation) Op() Op
- func (m *OrgInvitationMutation) OrganizationCleared() bool
- func (m *OrgInvitationMutation) OrganizationID() (r uuid.UUID, exists bool)
- func (m *OrgInvitationMutation) OrganizationIDs() (ids []uuid.UUID)
- func (m *OrgInvitationMutation) ReceiverEmail() (r string, exists bool)
- func (m *OrgInvitationMutation) RemovedEdges() []string
- func (m *OrgInvitationMutation) RemovedIDs(name string) []ent.Value
- func (m *OrgInvitationMutation) ResetCreatedAt()
- func (m *OrgInvitationMutation) ResetDeletedAt()
- func (m *OrgInvitationMutation) ResetEdge(name string) error
- func (m *OrgInvitationMutation) ResetField(name string) error
- func (m *OrgInvitationMutation) ResetOrganization()
- func (m *OrgInvitationMutation) ResetOrganizationID()
- func (m *OrgInvitationMutation) ResetReceiverEmail()
- func (m *OrgInvitationMutation) ResetRole()
- func (m *OrgInvitationMutation) ResetSender()
- func (m *OrgInvitationMutation) ResetSenderID()
- func (m *OrgInvitationMutation) ResetStatus()
- func (m *OrgInvitationMutation) Role() (r authz.Role, exists bool)
- func (m *OrgInvitationMutation) RoleCleared() bool
- func (m *OrgInvitationMutation) SenderCleared() bool
- func (m *OrgInvitationMutation) SenderID() (r uuid.UUID, exists bool)
- func (m *OrgInvitationMutation) SenderIDs() (ids []uuid.UUID)
- func (m *OrgInvitationMutation) SetCreatedAt(t time.Time)
- func (m *OrgInvitationMutation) SetDeletedAt(t time.Time)
- func (m *OrgInvitationMutation) SetField(name string, value ent.Value) error
- func (m *OrgInvitationMutation) SetID(id uuid.UUID)
- func (m *OrgInvitationMutation) SetOp(op Op)
- func (m *OrgInvitationMutation) SetOrganizationID(u uuid.UUID)
- func (m *OrgInvitationMutation) SetReceiverEmail(s string)
- func (m *OrgInvitationMutation) SetRole(a authz.Role)
- func (m *OrgInvitationMutation) SetSenderID(u uuid.UUID)
- func (m *OrgInvitationMutation) SetStatus(bis biz.OrgInvitationStatus)
- func (m *OrgInvitationMutation) Status() (r biz.OrgInvitationStatus, exists bool)
- func (m OrgInvitationMutation) Tx() (*Tx, error)
- func (m *OrgInvitationMutation) Type() string
- func (m *OrgInvitationMutation) Where(ps ...predicate.OrgInvitation)
- func (m *OrgInvitationMutation) WhereP(ps ...func(*sql.Selector))
- type OrgInvitationQuery
- func (oiq *OrgInvitationQuery) Aggregate(fns ...AggregateFunc) *OrgInvitationSelect
- func (oiq *OrgInvitationQuery) All(ctx context.Context) ([]*OrgInvitation, error)
- func (oiq *OrgInvitationQuery) AllX(ctx context.Context) []*OrgInvitation
- func (oiq *OrgInvitationQuery) Clone() *OrgInvitationQuery
- func (oiq *OrgInvitationQuery) Count(ctx context.Context) (int, error)
- func (oiq *OrgInvitationQuery) CountX(ctx context.Context) int
- func (oiq *OrgInvitationQuery) Exist(ctx context.Context) (bool, error)
- func (oiq *OrgInvitationQuery) ExistX(ctx context.Context) bool
- func (oiq *OrgInvitationQuery) First(ctx context.Context) (*OrgInvitation, error)
- func (oiq *OrgInvitationQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (oiq *OrgInvitationQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (oiq *OrgInvitationQuery) FirstX(ctx context.Context) *OrgInvitation
- func (oiq *OrgInvitationQuery) ForShare(opts ...sql.LockOption) *OrgInvitationQuery
- func (oiq *OrgInvitationQuery) ForUpdate(opts ...sql.LockOption) *OrgInvitationQuery
- func (oiq *OrgInvitationQuery) GroupBy(field string, fields ...string) *OrgInvitationGroupBy
- func (oiq *OrgInvitationQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (oiq *OrgInvitationQuery) IDsX(ctx context.Context) []uuid.UUID
- func (oiq *OrgInvitationQuery) Limit(limit int) *OrgInvitationQuery
- func (oiq *OrgInvitationQuery) Modify(modifiers ...func(s *sql.Selector)) *OrgInvitationSelect
- func (oiq *OrgInvitationQuery) Offset(offset int) *OrgInvitationQuery
- func (oiq *OrgInvitationQuery) Only(ctx context.Context) (*OrgInvitation, error)
- func (oiq *OrgInvitationQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (oiq *OrgInvitationQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (oiq *OrgInvitationQuery) OnlyX(ctx context.Context) *OrgInvitation
- func (oiq *OrgInvitationQuery) Order(o ...orginvitation.OrderOption) *OrgInvitationQuery
- func (oiq *OrgInvitationQuery) QueryOrganization() *OrganizationQuery
- func (oiq *OrgInvitationQuery) QuerySender() *UserQuery
- func (oiq *OrgInvitationQuery) Select(fields ...string) *OrgInvitationSelect
- func (oiq *OrgInvitationQuery) Unique(unique bool) *OrgInvitationQuery
- func (oiq *OrgInvitationQuery) Where(ps ...predicate.OrgInvitation) *OrgInvitationQuery
- func (oiq *OrgInvitationQuery) WithOrganization(opts ...func(*OrganizationQuery)) *OrgInvitationQuery
- func (oiq *OrgInvitationQuery) WithSender(opts ...func(*UserQuery)) *OrgInvitationQuery
- type OrgInvitationSelect
- func (ois *OrgInvitationSelect) Aggregate(fns ...AggregateFunc) *OrgInvitationSelect
- func (s *OrgInvitationSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *OrgInvitationSelect) BoolX(ctx context.Context) bool
- func (s *OrgInvitationSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *OrgInvitationSelect) BoolsX(ctx context.Context) []bool
- func (s *OrgInvitationSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *OrgInvitationSelect) Float64X(ctx context.Context) float64
- func (s *OrgInvitationSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *OrgInvitationSelect) Float64sX(ctx context.Context) []float64
- func (s *OrgInvitationSelect) Int(ctx context.Context) (_ int, err error)
- func (s *OrgInvitationSelect) IntX(ctx context.Context) int
- func (s *OrgInvitationSelect) Ints(ctx context.Context) ([]int, error)
- func (s *OrgInvitationSelect) IntsX(ctx context.Context) []int
- func (ois *OrgInvitationSelect) Modify(modifiers ...func(s *sql.Selector)) *OrgInvitationSelect
- func (ois *OrgInvitationSelect) Scan(ctx context.Context, v any) error
- func (s *OrgInvitationSelect) ScanX(ctx context.Context, v any)
- func (s *OrgInvitationSelect) String(ctx context.Context) (_ string, err error)
- func (s *OrgInvitationSelect) StringX(ctx context.Context) string
- func (s *OrgInvitationSelect) Strings(ctx context.Context) ([]string, error)
- func (s *OrgInvitationSelect) StringsX(ctx context.Context) []string
- type OrgInvitationUpdate
- func (oiu *OrgInvitationUpdate) ClearDeletedAt() *OrgInvitationUpdate
- func (oiu *OrgInvitationUpdate) ClearOrganization() *OrgInvitationUpdate
- func (oiu *OrgInvitationUpdate) ClearRole() *OrgInvitationUpdate
- func (oiu *OrgInvitationUpdate) ClearSender() *OrgInvitationUpdate
- func (oiu *OrgInvitationUpdate) Exec(ctx context.Context) error
- func (oiu *OrgInvitationUpdate) ExecX(ctx context.Context)
- func (oiu *OrgInvitationUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *OrgInvitationUpdate
- func (oiu *OrgInvitationUpdate) Mutation() *OrgInvitationMutation
- func (oiu *OrgInvitationUpdate) Save(ctx context.Context) (int, error)
- func (oiu *OrgInvitationUpdate) SaveX(ctx context.Context) int
- func (oiu *OrgInvitationUpdate) SetDeletedAt(t time.Time) *OrgInvitationUpdate
- func (oiu *OrgInvitationUpdate) SetNillableDeletedAt(t *time.Time) *OrgInvitationUpdate
- func (oiu *OrgInvitationUpdate) SetNillableOrganizationID(u *uuid.UUID) *OrgInvitationUpdate
- func (oiu *OrgInvitationUpdate) SetNillableRole(a *authz.Role) *OrgInvitationUpdate
- func (oiu *OrgInvitationUpdate) SetNillableSenderID(u *uuid.UUID) *OrgInvitationUpdate
- func (oiu *OrgInvitationUpdate) SetNillableStatus(bis *biz.OrgInvitationStatus) *OrgInvitationUpdate
- func (oiu *OrgInvitationUpdate) SetOrganization(o *Organization) *OrgInvitationUpdate
- func (oiu *OrgInvitationUpdate) SetOrganizationID(u uuid.UUID) *OrgInvitationUpdate
- func (oiu *OrgInvitationUpdate) SetRole(a authz.Role) *OrgInvitationUpdate
- func (oiu *OrgInvitationUpdate) SetSender(u *User) *OrgInvitationUpdate
- func (oiu *OrgInvitationUpdate) SetSenderID(u uuid.UUID) *OrgInvitationUpdate
- func (oiu *OrgInvitationUpdate) SetStatus(bis biz.OrgInvitationStatus) *OrgInvitationUpdate
- func (oiu *OrgInvitationUpdate) Where(ps ...predicate.OrgInvitation) *OrgInvitationUpdate
- type OrgInvitationUpdateOne
- func (oiuo *OrgInvitationUpdateOne) ClearDeletedAt() *OrgInvitationUpdateOne
- func (oiuo *OrgInvitationUpdateOne) ClearOrganization() *OrgInvitationUpdateOne
- func (oiuo *OrgInvitationUpdateOne) ClearRole() *OrgInvitationUpdateOne
- func (oiuo *OrgInvitationUpdateOne) ClearSender() *OrgInvitationUpdateOne
- func (oiuo *OrgInvitationUpdateOne) Exec(ctx context.Context) error
- func (oiuo *OrgInvitationUpdateOne) ExecX(ctx context.Context)
- func (oiuo *OrgInvitationUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *OrgInvitationUpdateOne
- func (oiuo *OrgInvitationUpdateOne) Mutation() *OrgInvitationMutation
- func (oiuo *OrgInvitationUpdateOne) Save(ctx context.Context) (*OrgInvitation, error)
- func (oiuo *OrgInvitationUpdateOne) SaveX(ctx context.Context) *OrgInvitation
- func (oiuo *OrgInvitationUpdateOne) Select(field string, fields ...string) *OrgInvitationUpdateOne
- func (oiuo *OrgInvitationUpdateOne) SetDeletedAt(t time.Time) *OrgInvitationUpdateOne
- func (oiuo *OrgInvitationUpdateOne) SetNillableDeletedAt(t *time.Time) *OrgInvitationUpdateOne
- func (oiuo *OrgInvitationUpdateOne) SetNillableOrganizationID(u *uuid.UUID) *OrgInvitationUpdateOne
- func (oiuo *OrgInvitationUpdateOne) SetNillableRole(a *authz.Role) *OrgInvitationUpdateOne
- func (oiuo *OrgInvitationUpdateOne) SetNillableSenderID(u *uuid.UUID) *OrgInvitationUpdateOne
- func (oiuo *OrgInvitationUpdateOne) SetNillableStatus(bis *biz.OrgInvitationStatus) *OrgInvitationUpdateOne
- func (oiuo *OrgInvitationUpdateOne) SetOrganization(o *Organization) *OrgInvitationUpdateOne
- func (oiuo *OrgInvitationUpdateOne) SetOrganizationID(u uuid.UUID) *OrgInvitationUpdateOne
- func (oiuo *OrgInvitationUpdateOne) SetRole(a authz.Role) *OrgInvitationUpdateOne
- func (oiuo *OrgInvitationUpdateOne) SetSender(u *User) *OrgInvitationUpdateOne
- func (oiuo *OrgInvitationUpdateOne) SetSenderID(u uuid.UUID) *OrgInvitationUpdateOne
- func (oiuo *OrgInvitationUpdateOne) SetStatus(bis biz.OrgInvitationStatus) *OrgInvitationUpdateOne
- func (oiuo *OrgInvitationUpdateOne) Where(ps ...predicate.OrgInvitation) *OrgInvitationUpdateOne
- type OrgInvitations
- type Organization
- func (o *Organization) QueryAPITokens() *APITokenQuery
- func (o *Organization) QueryCasBackends() *CASBackendQuery
- func (o *Organization) QueryIntegrations() *IntegrationQuery
- func (o *Organization) QueryMemberships() *MembershipQuery
- 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
- func (o *Organization) Value(name string) (ent.Value, error)
- 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) MapCreateBulk(slice any, setFunc func(*OrganizationCreate, int)) *OrganizationCreateBulk
- func (c *OrganizationClient) Query() *OrganizationQuery
- func (c *OrganizationClient) QueryAPITokens(o *Organization) *APITokenQuery
- func (c *OrganizationClient) QueryCasBackends(o *Organization) *CASBackendQuery
- func (c *OrganizationClient) QueryIntegrations(o *Organization) *IntegrationQuery
- func (c *OrganizationClient) QueryMemberships(o *Organization) *MembershipQuery
- 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) AddAPITokenIDs(ids ...uuid.UUID) *OrganizationCreate
- func (oc *OrganizationCreate) AddAPITokens(a ...*APIToken) *OrganizationCreate
- func (oc *OrganizationCreate) AddCasBackendIDs(ids ...uuid.UUID) *OrganizationCreate
- func (oc *OrganizationCreate) AddCasBackends(c ...*CASBackend) *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) 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
- type OrganizationCreateBulk
- type OrganizationDelete
- type OrganizationDeleteOne
- type OrganizationEdges
- func (e OrganizationEdges) APITokensOrErr() ([]*APIToken, error)
- func (e OrganizationEdges) CasBackendsOrErr() ([]*CASBackend, error)
- func (e OrganizationEdges) IntegrationsOrErr() ([]*Integration, error)
- func (e OrganizationEdges) MembershipsOrErr() ([]*Membership, 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) APITokensCleared() bool
- func (m *OrganizationMutation) APITokensIDs() (ids []uuid.UUID)
- func (m *OrganizationMutation) AddAPITokenIDs(ids ...uuid.UUID)
- func (m *OrganizationMutation) AddCasBackendIDs(ids ...uuid.UUID)
- 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) 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) CasBackendsCleared() bool
- func (m *OrganizationMutation) CasBackendsIDs() (ids []uuid.UUID)
- func (m *OrganizationMutation) ClearAPITokens()
- func (m *OrganizationMutation) ClearCasBackends()
- 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) 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) 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) RemoveAPITokenIDs(ids ...uuid.UUID)
- func (m *OrganizationMutation) RemoveCasBackendIDs(ids ...uuid.UUID)
- func (m *OrganizationMutation) RemoveIntegrationIDs(ids ...uuid.UUID)
- func (m *OrganizationMutation) RemoveMembershipIDs(ids ...uuid.UUID)
- func (m *OrganizationMutation) RemoveWorkflowContractIDs(ids ...uuid.UUID)
- func (m *OrganizationMutation) RemoveWorkflowIDs(ids ...uuid.UUID)
- func (m *OrganizationMutation) RemovedAPITokensIDs() (ids []uuid.UUID)
- func (m *OrganizationMutation) RemovedCasBackendsIDs() (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) RemovedWorkflowContractsIDs() (ids []uuid.UUID)
- func (m *OrganizationMutation) RemovedWorkflowsIDs() (ids []uuid.UUID)
- func (m *OrganizationMutation) ResetAPITokens()
- func (m *OrganizationMutation) ResetCasBackends()
- 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) 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) ForShare(opts ...sql.LockOption) *OrganizationQuery
- func (oq *OrganizationQuery) ForUpdate(opts ...sql.LockOption) *OrganizationQuery
- 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) Modify(modifiers ...func(s *sql.Selector)) *OrganizationSelect
- 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 ...organization.OrderOption) *OrganizationQuery
- func (oq *OrganizationQuery) QueryAPITokens() *APITokenQuery
- func (oq *OrganizationQuery) QueryCasBackends() *CASBackendQuery
- func (oq *OrganizationQuery) QueryIntegrations() *IntegrationQuery
- func (oq *OrganizationQuery) QueryMemberships() *MembershipQuery
- 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) WithAPITokens(opts ...func(*APITokenQuery)) *OrganizationQuery
- func (oq *OrganizationQuery) WithCasBackends(opts ...func(*CASBackendQuery)) *OrganizationQuery
- func (oq *OrganizationQuery) WithIntegrations(opts ...func(*IntegrationQuery)) *OrganizationQuery
- func (oq *OrganizationQuery) WithMemberships(opts ...func(*MembershipQuery)) *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) Modify(modifiers ...func(s *sql.Selector)) *OrganizationSelect
- 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) AddAPITokenIDs(ids ...uuid.UUID) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddAPITokens(a ...*APIToken) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddCasBackendIDs(ids ...uuid.UUID) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddCasBackends(c ...*CASBackend) *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) 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) ClearAPITokens() *OrganizationUpdate
- func (ou *OrganizationUpdate) ClearCasBackends() *OrganizationUpdate
- func (ou *OrganizationUpdate) ClearIntegrations() *OrganizationUpdate
- func (ou *OrganizationUpdate) ClearMemberships() *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) Modify(modifiers ...func(u *sql.UpdateBuilder)) *OrganizationUpdate
- func (ou *OrganizationUpdate) Mutation() *OrganizationMutation
- func (ou *OrganizationUpdate) RemoveAPITokenIDs(ids ...uuid.UUID) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveAPITokens(a ...*APIToken) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveCasBackendIDs(ids ...uuid.UUID) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveCasBackends(c ...*CASBackend) *OrganizationUpdate
- 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) 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) Where(ps ...predicate.Organization) *OrganizationUpdate
- type OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddAPITokenIDs(ids ...uuid.UUID) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddAPITokens(a ...*APIToken) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddCasBackendIDs(ids ...uuid.UUID) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddCasBackends(c ...*CASBackend) *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) 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) ClearAPITokens() *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) ClearCasBackends() *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) ClearIntegrations() *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) ClearMemberships() *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) Modify(modifiers ...func(u *sql.UpdateBuilder)) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) Mutation() *OrganizationMutation
- func (ouo *OrganizationUpdateOne) RemoveAPITokenIDs(ids ...uuid.UUID) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveAPITokens(a ...*APIToken) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveCasBackendIDs(ids ...uuid.UUID) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveCasBackends(c ...*CASBackend) *OrganizationUpdateOne
- 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) 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) Where(ps ...predicate.Organization) *OrganizationUpdateOne
- type Organizations
- type Policy
- type Querier
- type QuerierFunc
- type Query
- type QueryContext
- type Referrer
- func (r *Referrer) QueryReferences() *ReferrerQuery
- func (r *Referrer) QueryReferredBy() *ReferrerQuery
- func (r *Referrer) QueryWorkflows() *WorkflowQuery
- func (r *Referrer) String() string
- func (r *Referrer) Unwrap() *Referrer
- func (r *Referrer) Update() *ReferrerUpdateOne
- func (r *Referrer) Value(name string) (ent.Value, error)
- type ReferrerClient
- func (c *ReferrerClient) Create() *ReferrerCreate
- func (c *ReferrerClient) CreateBulk(builders ...*ReferrerCreate) *ReferrerCreateBulk
- func (c *ReferrerClient) Delete() *ReferrerDelete
- func (c *ReferrerClient) DeleteOne(r *Referrer) *ReferrerDeleteOne
- func (c *ReferrerClient) DeleteOneID(id uuid.UUID) *ReferrerDeleteOne
- func (c *ReferrerClient) Get(ctx context.Context, id uuid.UUID) (*Referrer, error)
- func (c *ReferrerClient) GetX(ctx context.Context, id uuid.UUID) *Referrer
- func (c *ReferrerClient) Hooks() []Hook
- func (c *ReferrerClient) Intercept(interceptors ...Interceptor)
- func (c *ReferrerClient) Interceptors() []Interceptor
- func (c *ReferrerClient) MapCreateBulk(slice any, setFunc func(*ReferrerCreate, int)) *ReferrerCreateBulk
- func (c *ReferrerClient) Query() *ReferrerQuery
- func (c *ReferrerClient) QueryReferences(r *Referrer) *ReferrerQuery
- func (c *ReferrerClient) QueryReferredBy(r *Referrer) *ReferrerQuery
- func (c *ReferrerClient) QueryWorkflows(r *Referrer) *WorkflowQuery
- func (c *ReferrerClient) Update() *ReferrerUpdate
- func (c *ReferrerClient) UpdateOne(r *Referrer) *ReferrerUpdateOne
- func (c *ReferrerClient) UpdateOneID(id uuid.UUID) *ReferrerUpdateOne
- func (c *ReferrerClient) Use(hooks ...Hook)
- type ReferrerCreate
- func (rc *ReferrerCreate) AddReferenceIDs(ids ...uuid.UUID) *ReferrerCreate
- func (rc *ReferrerCreate) AddReferences(r ...*Referrer) *ReferrerCreate
- func (rc *ReferrerCreate) AddReferredBy(r ...*Referrer) *ReferrerCreate
- func (rc *ReferrerCreate) AddReferredByIDs(ids ...uuid.UUID) *ReferrerCreate
- func (rc *ReferrerCreate) AddWorkflowIDs(ids ...uuid.UUID) *ReferrerCreate
- func (rc *ReferrerCreate) AddWorkflows(w ...*Workflow) *ReferrerCreate
- func (rc *ReferrerCreate) Exec(ctx context.Context) error
- func (rc *ReferrerCreate) ExecX(ctx context.Context)
- func (rc *ReferrerCreate) Mutation() *ReferrerMutation
- func (rc *ReferrerCreate) Save(ctx context.Context) (*Referrer, error)
- func (rc *ReferrerCreate) SaveX(ctx context.Context) *Referrer
- func (rc *ReferrerCreate) SetAnnotations(m map[string]string) *ReferrerCreate
- func (rc *ReferrerCreate) SetCreatedAt(t time.Time) *ReferrerCreate
- func (rc *ReferrerCreate) SetDigest(s string) *ReferrerCreate
- func (rc *ReferrerCreate) SetDownloadable(b bool) *ReferrerCreate
- func (rc *ReferrerCreate) SetID(u uuid.UUID) *ReferrerCreate
- func (rc *ReferrerCreate) SetKind(s string) *ReferrerCreate
- func (rc *ReferrerCreate) SetMetadata(m map[string]string) *ReferrerCreate
- func (rc *ReferrerCreate) SetNillableCreatedAt(t *time.Time) *ReferrerCreate
- func (rc *ReferrerCreate) SetNillableID(u *uuid.UUID) *ReferrerCreate
- type ReferrerCreateBulk
- type ReferrerDelete
- type ReferrerDeleteOne
- type ReferrerEdges
- type ReferrerGroupBy
- func (rgb *ReferrerGroupBy) Aggregate(fns ...AggregateFunc) *ReferrerGroupBy
- func (s *ReferrerGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReferrerGroupBy) BoolX(ctx context.Context) bool
- func (s *ReferrerGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ReferrerGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ReferrerGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReferrerGroupBy) Float64X(ctx context.Context) float64
- func (s *ReferrerGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReferrerGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ReferrerGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ReferrerGroupBy) IntX(ctx context.Context) int
- func (s *ReferrerGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ReferrerGroupBy) IntsX(ctx context.Context) []int
- func (rgb *ReferrerGroupBy) Scan(ctx context.Context, v any) error
- func (s *ReferrerGroupBy) ScanX(ctx context.Context, v any)
- func (s *ReferrerGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ReferrerGroupBy) StringX(ctx context.Context) string
- func (s *ReferrerGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ReferrerGroupBy) StringsX(ctx context.Context) []string
- type ReferrerMutation
- func (m *ReferrerMutation) AddField(name string, value ent.Value) error
- func (m *ReferrerMutation) AddReferenceIDs(ids ...uuid.UUID)
- func (m *ReferrerMutation) AddReferredByIDs(ids ...uuid.UUID)
- func (m *ReferrerMutation) AddWorkflowIDs(ids ...uuid.UUID)
- func (m *ReferrerMutation) AddedEdges() []string
- func (m *ReferrerMutation) AddedField(name string) (ent.Value, bool)
- func (m *ReferrerMutation) AddedFields() []string
- func (m *ReferrerMutation) AddedIDs(name string) []ent.Value
- func (m *ReferrerMutation) Annotations() (r map[string]string, exists bool)
- func (m *ReferrerMutation) AnnotationsCleared() bool
- func (m *ReferrerMutation) ClearAnnotations()
- func (m *ReferrerMutation) ClearEdge(name string) error
- func (m *ReferrerMutation) ClearField(name string) error
- func (m *ReferrerMutation) ClearMetadata()
- func (m *ReferrerMutation) ClearReferences()
- func (m *ReferrerMutation) ClearReferredBy()
- func (m *ReferrerMutation) ClearWorkflows()
- func (m *ReferrerMutation) ClearedEdges() []string
- func (m *ReferrerMutation) ClearedFields() []string
- func (m ReferrerMutation) Client() *Client
- func (m *ReferrerMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ReferrerMutation) Digest() (r string, exists bool)
- func (m *ReferrerMutation) Downloadable() (r bool, exists bool)
- func (m *ReferrerMutation) EdgeCleared(name string) bool
- func (m *ReferrerMutation) Field(name string) (ent.Value, bool)
- func (m *ReferrerMutation) FieldCleared(name string) bool
- func (m *ReferrerMutation) Fields() []string
- func (m *ReferrerMutation) ID() (id uuid.UUID, exists bool)
- func (m *ReferrerMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *ReferrerMutation) Kind() (r string, exists bool)
- func (m *ReferrerMutation) Metadata() (r map[string]string, exists bool)
- func (m *ReferrerMutation) MetadataCleared() bool
- func (m *ReferrerMutation) OldAnnotations(ctx context.Context) (v map[string]string, err error)
- func (m *ReferrerMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReferrerMutation) OldDigest(ctx context.Context) (v string, err error)
- func (m *ReferrerMutation) OldDownloadable(ctx context.Context) (v bool, err error)
- func (m *ReferrerMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ReferrerMutation) OldKind(ctx context.Context) (v string, err error)
- func (m *ReferrerMutation) OldMetadata(ctx context.Context) (v map[string]string, err error)
- func (m *ReferrerMutation) Op() Op
- func (m *ReferrerMutation) ReferencesCleared() bool
- func (m *ReferrerMutation) ReferencesIDs() (ids []uuid.UUID)
- func (m *ReferrerMutation) ReferredByCleared() bool
- func (m *ReferrerMutation) ReferredByIDs() (ids []uuid.UUID)
- func (m *ReferrerMutation) RemoveReferenceIDs(ids ...uuid.UUID)
- func (m *ReferrerMutation) RemoveReferredByIDs(ids ...uuid.UUID)
- func (m *ReferrerMutation) RemoveWorkflowIDs(ids ...uuid.UUID)
- func (m *ReferrerMutation) RemovedEdges() []string
- func (m *ReferrerMutation) RemovedIDs(name string) []ent.Value
- func (m *ReferrerMutation) RemovedReferencesIDs() (ids []uuid.UUID)
- func (m *ReferrerMutation) RemovedReferredByIDs() (ids []uuid.UUID)
- func (m *ReferrerMutation) RemovedWorkflowsIDs() (ids []uuid.UUID)
- func (m *ReferrerMutation) ResetAnnotations()
- func (m *ReferrerMutation) ResetCreatedAt()
- func (m *ReferrerMutation) ResetDigest()
- func (m *ReferrerMutation) ResetDownloadable()
- func (m *ReferrerMutation) ResetEdge(name string) error
- func (m *ReferrerMutation) ResetField(name string) error
- func (m *ReferrerMutation) ResetKind()
- func (m *ReferrerMutation) ResetMetadata()
- func (m *ReferrerMutation) ResetReferences()
- func (m *ReferrerMutation) ResetReferredBy()
- func (m *ReferrerMutation) ResetWorkflows()
- func (m *ReferrerMutation) SetAnnotations(value map[string]string)
- func (m *ReferrerMutation) SetCreatedAt(t time.Time)
- func (m *ReferrerMutation) SetDigest(s string)
- func (m *ReferrerMutation) SetDownloadable(b bool)
- func (m *ReferrerMutation) SetField(name string, value ent.Value) error
- func (m *ReferrerMutation) SetID(id uuid.UUID)
- func (m *ReferrerMutation) SetKind(s string)
- func (m *ReferrerMutation) SetMetadata(value map[string]string)
- func (m *ReferrerMutation) SetOp(op Op)
- func (m ReferrerMutation) Tx() (*Tx, error)
- func (m *ReferrerMutation) Type() string
- func (m *ReferrerMutation) Where(ps ...predicate.Referrer)
- func (m *ReferrerMutation) WhereP(ps ...func(*sql.Selector))
- func (m *ReferrerMutation) WorkflowsCleared() bool
- func (m *ReferrerMutation) WorkflowsIDs() (ids []uuid.UUID)
- type ReferrerQuery
- func (rq *ReferrerQuery) Aggregate(fns ...AggregateFunc) *ReferrerSelect
- func (rq *ReferrerQuery) All(ctx context.Context) ([]*Referrer, error)
- func (rq *ReferrerQuery) AllX(ctx context.Context) []*Referrer
- func (rq *ReferrerQuery) Clone() *ReferrerQuery
- func (rq *ReferrerQuery) Count(ctx context.Context) (int, error)
- func (rq *ReferrerQuery) CountX(ctx context.Context) int
- func (rq *ReferrerQuery) Exist(ctx context.Context) (bool, error)
- func (rq *ReferrerQuery) ExistX(ctx context.Context) bool
- func (rq *ReferrerQuery) First(ctx context.Context) (*Referrer, error)
- func (rq *ReferrerQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (rq *ReferrerQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (rq *ReferrerQuery) FirstX(ctx context.Context) *Referrer
- func (rq *ReferrerQuery) ForShare(opts ...sql.LockOption) *ReferrerQuery
- func (rq *ReferrerQuery) ForUpdate(opts ...sql.LockOption) *ReferrerQuery
- func (rq *ReferrerQuery) GroupBy(field string, fields ...string) *ReferrerGroupBy
- func (rq *ReferrerQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (rq *ReferrerQuery) IDsX(ctx context.Context) []uuid.UUID
- func (rq *ReferrerQuery) Limit(limit int) *ReferrerQuery
- func (rq *ReferrerQuery) Modify(modifiers ...func(s *sql.Selector)) *ReferrerSelect
- func (rq *ReferrerQuery) Offset(offset int) *ReferrerQuery
- func (rq *ReferrerQuery) Only(ctx context.Context) (*Referrer, error)
- func (rq *ReferrerQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (rq *ReferrerQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (rq *ReferrerQuery) OnlyX(ctx context.Context) *Referrer
- func (rq *ReferrerQuery) Order(o ...referrer.OrderOption) *ReferrerQuery
- func (rq *ReferrerQuery) QueryReferences() *ReferrerQuery
- func (rq *ReferrerQuery) QueryReferredBy() *ReferrerQuery
- func (rq *ReferrerQuery) QueryWorkflows() *WorkflowQuery
- func (rq *ReferrerQuery) Select(fields ...string) *ReferrerSelect
- func (rq *ReferrerQuery) Unique(unique bool) *ReferrerQuery
- func (rq *ReferrerQuery) Where(ps ...predicate.Referrer) *ReferrerQuery
- func (rq *ReferrerQuery) WithReferences(opts ...func(*ReferrerQuery)) *ReferrerQuery
- func (rq *ReferrerQuery) WithReferredBy(opts ...func(*ReferrerQuery)) *ReferrerQuery
- func (rq *ReferrerQuery) WithWorkflows(opts ...func(*WorkflowQuery)) *ReferrerQuery
- type ReferrerSelect
- func (rs *ReferrerSelect) Aggregate(fns ...AggregateFunc) *ReferrerSelect
- func (s *ReferrerSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReferrerSelect) BoolX(ctx context.Context) bool
- func (s *ReferrerSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ReferrerSelect) BoolsX(ctx context.Context) []bool
- func (s *ReferrerSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReferrerSelect) Float64X(ctx context.Context) float64
- func (s *ReferrerSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReferrerSelect) Float64sX(ctx context.Context) []float64
- func (s *ReferrerSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ReferrerSelect) IntX(ctx context.Context) int
- func (s *ReferrerSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ReferrerSelect) IntsX(ctx context.Context) []int
- func (rs *ReferrerSelect) Modify(modifiers ...func(s *sql.Selector)) *ReferrerSelect
- func (rs *ReferrerSelect) Scan(ctx context.Context, v any) error
- func (s *ReferrerSelect) ScanX(ctx context.Context, v any)
- func (s *ReferrerSelect) String(ctx context.Context) (_ string, err error)
- func (s *ReferrerSelect) StringX(ctx context.Context) string
- func (s *ReferrerSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ReferrerSelect) StringsX(ctx context.Context) []string
- type ReferrerUpdate
- func (ru *ReferrerUpdate) AddReferenceIDs(ids ...uuid.UUID) *ReferrerUpdate
- func (ru *ReferrerUpdate) AddReferences(r ...*Referrer) *ReferrerUpdate
- func (ru *ReferrerUpdate) AddWorkflowIDs(ids ...uuid.UUID) *ReferrerUpdate
- func (ru *ReferrerUpdate) AddWorkflows(w ...*Workflow) *ReferrerUpdate
- func (ru *ReferrerUpdate) ClearReferences() *ReferrerUpdate
- func (ru *ReferrerUpdate) ClearWorkflows() *ReferrerUpdate
- func (ru *ReferrerUpdate) Exec(ctx context.Context) error
- func (ru *ReferrerUpdate) ExecX(ctx context.Context)
- func (ru *ReferrerUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ReferrerUpdate
- func (ru *ReferrerUpdate) Mutation() *ReferrerMutation
- func (ru *ReferrerUpdate) RemoveReferenceIDs(ids ...uuid.UUID) *ReferrerUpdate
- func (ru *ReferrerUpdate) RemoveReferences(r ...*Referrer) *ReferrerUpdate
- func (ru *ReferrerUpdate) RemoveWorkflowIDs(ids ...uuid.UUID) *ReferrerUpdate
- func (ru *ReferrerUpdate) RemoveWorkflows(w ...*Workflow) *ReferrerUpdate
- func (ru *ReferrerUpdate) Save(ctx context.Context) (int, error)
- func (ru *ReferrerUpdate) SaveX(ctx context.Context) int
- func (ru *ReferrerUpdate) Where(ps ...predicate.Referrer) *ReferrerUpdate
- type ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) AddReferenceIDs(ids ...uuid.UUID) *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) AddReferences(r ...*Referrer) *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) AddWorkflowIDs(ids ...uuid.UUID) *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) AddWorkflows(w ...*Workflow) *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) ClearReferences() *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) ClearWorkflows() *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) Exec(ctx context.Context) error
- func (ruo *ReferrerUpdateOne) ExecX(ctx context.Context)
- func (ruo *ReferrerUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) Mutation() *ReferrerMutation
- func (ruo *ReferrerUpdateOne) RemoveReferenceIDs(ids ...uuid.UUID) *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) RemoveReferences(r ...*Referrer) *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) RemoveWorkflowIDs(ids ...uuid.UUID) *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) RemoveWorkflows(w ...*Workflow) *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) Save(ctx context.Context) (*Referrer, error)
- func (ruo *ReferrerUpdateOne) SaveX(ctx context.Context) *Referrer
- func (ruo *ReferrerUpdateOne) Select(field string, fields ...string) *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) Where(ps ...predicate.Referrer) *ReferrerUpdateOne
- type Referrers
- 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) MapCreateBulk(slice any, setFunc func(*RobotAccountCreate, int)) *RobotAccountCreateBulk
- func (c *RobotAccountClient) Query() *RobotAccountQuery
- func (c *RobotAccountClient) QueryWorkflow(ra *RobotAccount) *WorkflowQuery
- 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) 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) 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) 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) RemovedEdges() []string
- func (m *RobotAccountMutation) RemovedIDs(name string) []ent.Value
- 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) 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)
- 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) ForShare(opts ...sql.LockOption) *RobotAccountQuery
- func (raq *RobotAccountQuery) ForUpdate(opts ...sql.LockOption) *RobotAccountQuery
- 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) Modify(modifiers ...func(s *sql.Selector)) *RobotAccountSelect
- 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 ...robotaccount.OrderOption) *RobotAccountQuery
- func (raq *RobotAccountQuery) QueryWorkflow() *WorkflowQuery
- 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
- 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) Modify(modifiers ...func(s *sql.Selector)) *RobotAccountSelect
- 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) ClearRevokedAt() *RobotAccountUpdate
- func (rau *RobotAccountUpdate) ClearWorkflow() *RobotAccountUpdate
- func (rau *RobotAccountUpdate) Exec(ctx context.Context) error
- func (rau *RobotAccountUpdate) ExecX(ctx context.Context)
- func (rau *RobotAccountUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *RobotAccountUpdate
- func (rau *RobotAccountUpdate) Mutation() *RobotAccountMutation
- 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) SetNillableName(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) ClearRevokedAt() *RobotAccountUpdateOne
- func (rauo *RobotAccountUpdateOne) ClearWorkflow() *RobotAccountUpdateOne
- func (rauo *RobotAccountUpdateOne) Exec(ctx context.Context) error
- func (rauo *RobotAccountUpdateOne) ExecX(ctx context.Context)
- func (rauo *RobotAccountUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *RobotAccountUpdateOne
- func (rauo *RobotAccountUpdateOne) Mutation() *RobotAccountMutation
- 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) SetNillableName(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) MapCreateBulk(slice any, setFunc func(*UserCreate, int)) *UserCreateBulk
- 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) ForShare(opts ...sql.LockOption) *UserQuery
- func (uq *UserQuery) ForUpdate(opts ...sql.LockOption) *UserQuery
- 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) Modify(modifiers ...func(s *sql.Selector)) *UserSelect
- 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 ...user.OrderOption) *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) Modify(modifiers ...func(s *sql.Selector)) *UserSelect
- 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) Modify(modifiers ...func(u *sql.UpdateBuilder)) *UserUpdate
- 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) SetNillableEmail(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) Modify(modifiers ...func(u *sql.UpdateBuilder)) *UserUpdateOne
- 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) SetNillableEmail(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) QueryReferrers() *ReferrerQuery
- 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
- func (w *Workflow) Value(name string) (ent.Value, error)
- 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) MapCreateBulk(slice any, setFunc func(*WorkflowCreate, int)) *WorkflowCreateBulk
- 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) QueryReferrers(w *Workflow) *ReferrerQuery
- 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
- func (wc *WorkflowContract) Value(name string) (ent.Value, error)
- 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) MapCreateBulk(slice any, setFunc func(*WorkflowContractCreate, int)) *WorkflowContractCreateBulk
- 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) SetDescription(s string) *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) SetNillableDescription(s *string) *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) ClearDescription()
- 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) Description() (r string, exists bool)
- func (m *WorkflowContractMutation) DescriptionCleared() 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) OldDescription(ctx context.Context) (v string, 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) ResetDescription()
- 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) SetDescription(s string)
- 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) ForShare(opts ...sql.LockOption) *WorkflowContractQuery
- func (wcq *WorkflowContractQuery) ForUpdate(opts ...sql.LockOption) *WorkflowContractQuery
- 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) Modify(modifiers ...func(s *sql.Selector)) *WorkflowContractSelect
- 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 ...workflowcontract.OrderOption) *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) Modify(modifiers ...func(s *sql.Selector)) *WorkflowContractSelect
- 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) ClearDescription() *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) Modify(modifiers ...func(u *sql.UpdateBuilder)) *WorkflowContractUpdate
- 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) SetDescription(s string) *WorkflowContractUpdate
- func (wcu *WorkflowContractUpdate) SetNillableDeletedAt(t *time.Time) *WorkflowContractUpdate
- func (wcu *WorkflowContractUpdate) SetNillableDescription(s *string) *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) ClearDescription() *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) Modify(modifiers ...func(u *sql.UpdateBuilder)) *WorkflowContractUpdateOne
- 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) SetDescription(s string) *WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) SetNillableDeletedAt(t *time.Time) *WorkflowContractUpdateOne
- func (wcuo *WorkflowContractUpdateOne) SetNillableDescription(s *string) *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
- func (wcv *WorkflowContractVersion) QueryContract() *WorkflowContractQuery
- func (wcv *WorkflowContractVersion) String() string
- func (wcv *WorkflowContractVersion) Unwrap() *WorkflowContractVersion
- func (wcv *WorkflowContractVersion) Update() *WorkflowContractVersionUpdateOne
- func (wcv *WorkflowContractVersion) Value(name string) (ent.Value, error)
- 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) MapCreateBulk(slice any, setFunc func(*WorkflowContractVersionCreate, int)) *WorkflowContractVersionCreateBulk
- 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) SetRawBody(b []byte) *WorkflowContractVersionCreate
- func (wcvc *WorkflowContractVersionCreate) SetRawBodyFormat(brf biz.ContractRawFormat) *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) BodyCleared() bool
- func (m *WorkflowContractVersionMutation) ClearBody()
- 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) OldRawBody(ctx context.Context) (v []byte, err error)
- func (m *WorkflowContractVersionMutation) OldRawBodyFormat(ctx context.Context) (v biz.ContractRawFormat, err error)
- func (m *WorkflowContractVersionMutation) OldRevision(ctx context.Context) (v int, err error)
- func (m *WorkflowContractVersionMutation) Op() Op
- func (m *WorkflowContractVersionMutation) RawBody() (r []byte, exists bool)
- func (m *WorkflowContractVersionMutation) RawBodyFormat() (r biz.ContractRawFormat, exists bool)
- 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) ResetRawBody()
- func (m *WorkflowContractVersionMutation) ResetRawBodyFormat()
- 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) SetRawBody(b []byte)
- func (m *WorkflowContractVersionMutation) SetRawBodyFormat(brf biz.ContractRawFormat)
- 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) ForShare(opts ...sql.LockOption) *WorkflowContractVersionQuery
- func (wcvq *WorkflowContractVersionQuery) ForUpdate(opts ...sql.LockOption) *WorkflowContractVersionQuery
- 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) Modify(modifiers ...func(s *sql.Selector)) *WorkflowContractVersionSelect
- 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 ...workflowcontractversion.OrderOption) *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) Modify(modifiers ...func(s *sql.Selector)) *WorkflowContractVersionSelect
- 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) Modify(modifiers ...func(u *sql.UpdateBuilder)) *WorkflowContractVersionUpdate
- 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) SetNillableRawBodyFormat(brf *biz.ContractRawFormat) *WorkflowContractVersionUpdate
- func (wcvu *WorkflowContractVersionUpdate) SetRawBodyFormat(brf biz.ContractRawFormat) *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) Modify(modifiers ...func(u *sql.UpdateBuilder)) *WorkflowContractVersionUpdateOne
- 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) SetNillableRawBodyFormat(brf *biz.ContractRawFormat) *WorkflowContractVersionUpdateOne
- func (wcvuo *WorkflowContractVersionUpdateOne) SetRawBodyFormat(brf biz.ContractRawFormat) *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) AddReferrerIDs(ids ...uuid.UUID) *WorkflowCreate
- func (wc *WorkflowCreate) AddReferrers(r ...*Referrer) *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) SetDescription(s string) *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) SetNillableDescription(s *string) *WorkflowCreate
- func (wc *WorkflowCreate) SetNillableID(u *uuid.UUID) *WorkflowCreate
- func (wc *WorkflowCreate) SetNillablePublic(b *bool) *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(u uuid.UUID) *WorkflowCreate
- func (wc *WorkflowCreate) SetProject(s string) *WorkflowCreate
- func (wc *WorkflowCreate) SetPublic(b bool) *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) ReferrersOrErr() ([]*Referrer, 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) AddReferrerIDs(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) ClearDescription()
- 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) ClearReferrers()
- 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) Description() (r string, exists bool)
- func (m *WorkflowMutation) DescriptionCleared() 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) OldDescription(ctx context.Context) (v string, 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) OldOrganizationID(ctx context.Context) (v uuid.UUID, err error)
- func (m *WorkflowMutation) OldProject(ctx context.Context) (v string, err error)
- func (m *WorkflowMutation) OldPublic(ctx context.Context) (v bool, 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() (r uuid.UUID, exists bool)
- func (m *WorkflowMutation) OrganizationIDs() (ids []uuid.UUID)
- func (m *WorkflowMutation) Project() (r string, exists bool)
- func (m *WorkflowMutation) Public() (r bool, exists bool)
- func (m *WorkflowMutation) ReferrersCleared() bool
- func (m *WorkflowMutation) ReferrersIDs() (ids []uuid.UUID)
- func (m *WorkflowMutation) RemoveIntegrationAttachmentIDs(ids ...uuid.UUID)
- func (m *WorkflowMutation) RemoveReferrerIDs(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) RemovedReferrersIDs() (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) ResetDescription()
- 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) ResetOrganizationID()
- func (m *WorkflowMutation) ResetProject()
- func (m *WorkflowMutation) ResetPublic()
- func (m *WorkflowMutation) ResetReferrers()
- 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) SetDescription(s string)
- 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(u uuid.UUID)
- func (m *WorkflowMutation) SetProject(s string)
- func (m *WorkflowMutation) SetPublic(b bool)
- 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) ForShare(opts ...sql.LockOption) *WorkflowQuery
- func (wq *WorkflowQuery) ForUpdate(opts ...sql.LockOption) *WorkflowQuery
- 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) Modify(modifiers ...func(s *sql.Selector)) *WorkflowSelect
- 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 ...workflow.OrderOption) *WorkflowQuery
- func (wq *WorkflowQuery) QueryContract() *WorkflowContractQuery
- func (wq *WorkflowQuery) QueryIntegrationAttachments() *IntegrationAttachmentQuery
- func (wq *WorkflowQuery) QueryOrganization() *OrganizationQuery
- func (wq *WorkflowQuery) QueryReferrers() *ReferrerQuery
- 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) WithReferrers(opts ...func(*ReferrerQuery)) *WorkflowQuery
- func (wq *WorkflowQuery) WithRobotaccounts(opts ...func(*RobotAccountQuery)) *WorkflowQuery
- func (wq *WorkflowQuery) WithWorkflowruns(opts ...func(*WorkflowRunQuery)) *WorkflowQuery
- type WorkflowRun
- func (wr *WorkflowRun) QueryCasBackends() *CASBackendQuery
- func (wr *WorkflowRun) QueryContractVersion() *WorkflowContractVersionQuery
- func (wr *WorkflowRun) QueryWorkflow() *WorkflowQuery
- func (wr *WorkflowRun) String() string
- func (wr *WorkflowRun) Unwrap() *WorkflowRun
- func (wr *WorkflowRun) Update() *WorkflowRunUpdateOne
- func (wr *WorkflowRun) Value(name string) (ent.Value, error)
- 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) MapCreateBulk(slice any, setFunc func(*WorkflowRunCreate, int)) *WorkflowRunCreateBulk
- func (c *WorkflowRunClient) Query() *WorkflowRunQuery
- func (c *WorkflowRunClient) QueryCasBackends(wr *WorkflowRun) *CASBackendQuery
- func (c *WorkflowRunClient) QueryContractVersion(wr *WorkflowRun) *WorkflowContractVersionQuery
- 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) AddCasBackendIDs(ids ...uuid.UUID) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) AddCasBackends(c ...*CASBackend) *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) SetAttestationDigest(s string) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetAttestationState(b []byte) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetContractRevisionLatest(i int) *WorkflowRunCreate
- func (wrc *WorkflowRunCreate) SetContractRevisionUsed(i int) *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) SetNillableAttestationDigest(s *string) *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) 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) 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) AddCasBackendIDs(ids ...uuid.UUID)
- func (m *WorkflowRunMutation) AddContractRevisionLatest(i int)
- func (m *WorkflowRunMutation) AddContractRevisionUsed(i int)
- func (m *WorkflowRunMutation) AddField(name string, value ent.Value) error
- func (m *WorkflowRunMutation) AddedContractRevisionLatest() (r int, exists bool)
- func (m *WorkflowRunMutation) AddedContractRevisionUsed() (r int, exists bool)
- 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) AttestationDigest() (r string, exists bool)
- func (m *WorkflowRunMutation) AttestationDigestCleared() bool
- func (m *WorkflowRunMutation) AttestationState() (r []byte, exists bool)
- func (m *WorkflowRunMutation) AttestationStateCleared() bool
- func (m *WorkflowRunMutation) CasBackendsCleared() bool
- func (m *WorkflowRunMutation) CasBackendsIDs() (ids []uuid.UUID)
- func (m *WorkflowRunMutation) ClearAttestation()
- func (m *WorkflowRunMutation) ClearAttestationDigest()
- func (m *WorkflowRunMutation) ClearAttestationState()
- func (m *WorkflowRunMutation) ClearCasBackends()
- 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) 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) ContractRevisionLatest() (r int, exists bool)
- func (m *WorkflowRunMutation) ContractRevisionUsed() (r int, exists bool)
- 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) OldAttestationDigest(ctx context.Context) (v string, err error)
- func (m *WorkflowRunMutation) OldAttestationState(ctx context.Context) (v []byte, err error)
- func (m *WorkflowRunMutation) OldContractRevisionLatest(ctx context.Context) (v int, err error)
- func (m *WorkflowRunMutation) OldContractRevisionUsed(ctx context.Context) (v int, 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) RemoveCasBackendIDs(ids ...uuid.UUID)
- func (m *WorkflowRunMutation) RemovedCasBackendsIDs() (ids []uuid.UUID)
- func (m *WorkflowRunMutation) RemovedEdges() []string
- func (m *WorkflowRunMutation) RemovedIDs(name string) []ent.Value
- func (m *WorkflowRunMutation) ResetAttestation()
- func (m *WorkflowRunMutation) ResetAttestationDigest()
- func (m *WorkflowRunMutation) ResetAttestationState()
- func (m *WorkflowRunMutation) ResetCasBackends()
- func (m *WorkflowRunMutation) ResetContractRevisionLatest()
- func (m *WorkflowRunMutation) ResetContractRevisionUsed()
- 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) ResetRunURL()
- func (m *WorkflowRunMutation) ResetRunnerType()
- func (m *WorkflowRunMutation) ResetState()
- func (m *WorkflowRunMutation) ResetWorkflow()
- 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) SetAttestationDigest(s string)
- func (m *WorkflowRunMutation) SetAttestationState(b []byte)
- func (m *WorkflowRunMutation) SetContractRevisionLatest(i int)
- func (m *WorkflowRunMutation) SetContractRevisionUsed(i int)
- 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) 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) ForShare(opts ...sql.LockOption) *WorkflowRunQuery
- func (wrq *WorkflowRunQuery) ForUpdate(opts ...sql.LockOption) *WorkflowRunQuery
- 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) Modify(modifiers ...func(s *sql.Selector)) *WorkflowRunSelect
- 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 ...workflowrun.OrderOption) *WorkflowRunQuery
- func (wrq *WorkflowRunQuery) QueryCasBackends() *CASBackendQuery
- func (wrq *WorkflowRunQuery) QueryContractVersion() *WorkflowContractVersionQuery
- 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) WithCasBackends(opts ...func(*CASBackendQuery)) *WorkflowRunQuery
- func (wrq *WorkflowRunQuery) WithContractVersion(opts ...func(*WorkflowContractVersionQuery)) *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) Modify(modifiers ...func(s *sql.Selector)) *WorkflowRunSelect
- 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) AddCasBackendIDs(ids ...uuid.UUID) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) AddCasBackends(c ...*CASBackend) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) AddContractRevisionLatest(i int) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) AddContractRevisionUsed(i int) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) ClearAttestation() *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) ClearAttestationDigest() *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) ClearAttestationState() *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) ClearCasBackends() *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) ClearContractVersion() *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) ClearFinishedAt() *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) ClearReason() *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) Modify(modifiers ...func(u *sql.UpdateBuilder)) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) Mutation() *WorkflowRunMutation
- func (wru *WorkflowRunUpdate) RemoveCasBackendIDs(ids ...uuid.UUID) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) RemoveCasBackends(c ...*CASBackend) *WorkflowRunUpdate
- 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) SetAttestationDigest(s string) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetAttestationState(b []byte) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetContractRevisionLatest(i int) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetContractRevisionUsed(i int) *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) SetNillableAttestationDigest(s *string) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetNillableContractRevisionLatest(i *int) *WorkflowRunUpdate
- func (wru *WorkflowRunUpdate) SetNillableContractRevisionUsed(i *int) *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) 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) 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) AddCasBackendIDs(ids ...uuid.UUID) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) AddCasBackends(c ...*CASBackend) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) AddContractRevisionLatest(i int) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) AddContractRevisionUsed(i int) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) ClearAttestation() *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) ClearAttestationDigest() *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) ClearAttestationState() *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) ClearCasBackends() *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) ClearContractVersion() *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) ClearFinishedAt() *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) ClearReason() *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) Modify(modifiers ...func(u *sql.UpdateBuilder)) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) Mutation() *WorkflowRunMutation
- func (wruo *WorkflowRunUpdateOne) RemoveCasBackendIDs(ids ...uuid.UUID) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) RemoveCasBackends(c ...*CASBackend) *WorkflowRunUpdateOne
- 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) SetAttestationDigest(s string) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetAttestationState(b []byte) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetContractRevisionLatest(i int) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetContractRevisionUsed(i int) *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) SetNillableAttestationDigest(s *string) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetNillableContractRevisionLatest(i *int) *WorkflowRunUpdateOne
- func (wruo *WorkflowRunUpdateOne) SetNillableContractRevisionUsed(i *int) *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) 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) 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) Modify(modifiers ...func(s *sql.Selector)) *WorkflowSelect
- 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) AddReferrerIDs(ids ...uuid.UUID) *WorkflowUpdate
- func (wu *WorkflowUpdate) AddReferrers(r ...*Referrer) *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) ClearDescription() *WorkflowUpdate
- func (wu *WorkflowUpdate) ClearIntegrationAttachments() *WorkflowUpdate
- func (wu *WorkflowUpdate) ClearOrganization() *WorkflowUpdate
- func (wu *WorkflowUpdate) ClearReferrers() *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) Modify(modifiers ...func(u *sql.UpdateBuilder)) *WorkflowUpdate
- func (wu *WorkflowUpdate) Mutation() *WorkflowMutation
- func (wu *WorkflowUpdate) RemoveIntegrationAttachmentIDs(ids ...uuid.UUID) *WorkflowUpdate
- func (wu *WorkflowUpdate) RemoveIntegrationAttachments(i ...*IntegrationAttachment) *WorkflowUpdate
- func (wu *WorkflowUpdate) RemoveReferrerIDs(ids ...uuid.UUID) *WorkflowUpdate
- func (wu *WorkflowUpdate) RemoveReferrers(r ...*Referrer) *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) SetDescription(s string) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetNillableDeletedAt(t *time.Time) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetNillableDescription(s *string) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetNillableOrganizationID(u *uuid.UUID) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetNillableProject(s *string) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetNillablePublic(b *bool) *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(u uuid.UUID) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetProject(s string) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetPublic(b bool) *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) AddReferrerIDs(ids ...uuid.UUID) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) AddReferrers(r ...*Referrer) *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) ClearDescription() *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) ClearIntegrationAttachments() *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) ClearOrganization() *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) ClearReferrers() *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) Modify(modifiers ...func(u *sql.UpdateBuilder)) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) Mutation() *WorkflowMutation
- func (wuo *WorkflowUpdateOne) RemoveIntegrationAttachmentIDs(ids ...uuid.UUID) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) RemoveIntegrationAttachments(i ...*IntegrationAttachment) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) RemoveReferrerIDs(ids ...uuid.UUID) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) RemoveReferrers(r ...*Referrer) *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) SetDescription(s string) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetNillableDeletedAt(t *time.Time) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetNillableDescription(s *string) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetNillableOrganizationID(u *uuid.UUID) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetNillableProject(s *string) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetNillablePublic(b *bool) *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(u uuid.UUID) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetProject(s string) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetPublic(b bool) *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. TypeAPIToken = "APIToken" TypeCASBackend = "CASBackend" TypeCASMapping = "CASMapping" TypeIntegration = "Integration" TypeIntegrationAttachment = "IntegrationAttachment" TypeMembership = "Membership" TypeOrgInvitation = "OrgInvitation" TypeOrganization = "Organization" TypeReferrer = "Referrer" TypeRobotAccount = "RobotAccount" TypeUser = "User" TypeWorkflow = "Workflow" TypeWorkflowContract = "WorkflowContract" TypeWorkflowContractVersion = "WorkflowContractVersion" TypeWorkflowRun = "WorkflowRun" )
Variables ¶
var ErrTxStarted = errors.New("ent: cannot start a transaction within a transaction")
ErrTxStarted is returned when trying to start a new transaction from a transactional client.
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 APIToken ¶
type APIToken struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Description holds the value of the "description" field. Description string `json:"description,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // ExpiresAt holds the value of the "expires_at" field. ExpiresAt time.Time `json:"expires_at,omitempty"` // RevokedAt holds the value of the "revoked_at" field. RevokedAt time.Time `json:"revoked_at,omitempty"` // OrganizationID holds the value of the "organization_id" field. OrganizationID uuid.UUID `json:"organization_id,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the APITokenQuery when eager-loading is set. Edges APITokenEdges `json:"edges"` // contains filtered or unexported fields }
APIToken is the model entity for the APIToken schema.
func (*APIToken) QueryOrganization ¶
func (at *APIToken) QueryOrganization() *OrganizationQuery
QueryOrganization queries the "organization" edge of the APIToken entity.
func (*APIToken) Unwrap ¶
Unwrap unwraps the APIToken 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 (*APIToken) Update ¶
func (at *APIToken) Update() *APITokenUpdateOne
Update returns a builder for updating this APIToken. Note that you need to call APIToken.Unwrap() before calling this method if this APIToken was returned from a transaction, and the transaction was committed or rolled back.
type APITokenClient ¶
type APITokenClient struct {
// contains filtered or unexported fields
}
APITokenClient is a client for the APIToken schema.
func NewAPITokenClient ¶
func NewAPITokenClient(c config) *APITokenClient
NewAPITokenClient returns a client for the APIToken from the given config.
func (*APITokenClient) Create ¶
func (c *APITokenClient) Create() *APITokenCreate
Create returns a builder for creating a APIToken entity.
func (*APITokenClient) CreateBulk ¶
func (c *APITokenClient) CreateBulk(builders ...*APITokenCreate) *APITokenCreateBulk
CreateBulk returns a builder for creating a bulk of APIToken entities.
func (*APITokenClient) Delete ¶
func (c *APITokenClient) Delete() *APITokenDelete
Delete returns a delete builder for APIToken.
func (*APITokenClient) DeleteOne ¶
func (c *APITokenClient) DeleteOne(at *APIToken) *APITokenDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*APITokenClient) DeleteOneID ¶
func (c *APITokenClient) DeleteOneID(id uuid.UUID) *APITokenDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*APITokenClient) Hooks ¶
func (c *APITokenClient) Hooks() []Hook
Hooks returns the client hooks.
func (*APITokenClient) Intercept ¶
func (c *APITokenClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `apitoken.Intercept(f(g(h())))`.
func (*APITokenClient) Interceptors ¶
func (c *APITokenClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*APITokenClient) MapCreateBulk ¶ added in v0.91.6
func (c *APITokenClient) MapCreateBulk(slice any, setFunc func(*APITokenCreate, int)) *APITokenCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*APITokenClient) Query ¶
func (c *APITokenClient) Query() *APITokenQuery
Query returns a query builder for APIToken.
func (*APITokenClient) QueryOrganization ¶
func (c *APITokenClient) QueryOrganization(at *APIToken) *OrganizationQuery
QueryOrganization queries the organization edge of a APIToken.
func (*APITokenClient) Update ¶
func (c *APITokenClient) Update() *APITokenUpdate
Update returns an update builder for APIToken.
func (*APITokenClient) UpdateOne ¶
func (c *APITokenClient) UpdateOne(at *APIToken) *APITokenUpdateOne
UpdateOne returns an update builder for the given entity.
func (*APITokenClient) UpdateOneID ¶
func (c *APITokenClient) UpdateOneID(id uuid.UUID) *APITokenUpdateOne
UpdateOneID returns an update builder for the given id.
func (*APITokenClient) Use ¶
func (c *APITokenClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `apitoken.Hooks(f(g(h())))`.
type APITokenCreate ¶
type APITokenCreate struct {
// contains filtered or unexported fields
}
APITokenCreate is the builder for creating a APIToken entity.
func (*APITokenCreate) Exec ¶
func (atc *APITokenCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*APITokenCreate) ExecX ¶
func (atc *APITokenCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*APITokenCreate) Mutation ¶
func (atc *APITokenCreate) Mutation() *APITokenMutation
Mutation returns the APITokenMutation object of the builder.
func (*APITokenCreate) Save ¶
func (atc *APITokenCreate) Save(ctx context.Context) (*APIToken, error)
Save creates the APIToken in the database.
func (*APITokenCreate) SaveX ¶
func (atc *APITokenCreate) SaveX(ctx context.Context) *APIToken
SaveX calls Save and panics if Save returns an error.
func (*APITokenCreate) SetCreatedAt ¶
func (atc *APITokenCreate) SetCreatedAt(t time.Time) *APITokenCreate
SetCreatedAt sets the "created_at" field.
func (*APITokenCreate) SetDescription ¶
func (atc *APITokenCreate) SetDescription(s string) *APITokenCreate
SetDescription sets the "description" field.
func (*APITokenCreate) SetExpiresAt ¶
func (atc *APITokenCreate) SetExpiresAt(t time.Time) *APITokenCreate
SetExpiresAt sets the "expires_at" field.
func (*APITokenCreate) SetID ¶
func (atc *APITokenCreate) SetID(u uuid.UUID) *APITokenCreate
SetID sets the "id" field.
func (*APITokenCreate) SetName ¶
func (atc *APITokenCreate) SetName(s string) *APITokenCreate
SetName sets the "name" field.
func (*APITokenCreate) SetNillableCreatedAt ¶
func (atc *APITokenCreate) SetNillableCreatedAt(t *time.Time) *APITokenCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*APITokenCreate) SetNillableDescription ¶
func (atc *APITokenCreate) SetNillableDescription(s *string) *APITokenCreate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*APITokenCreate) SetNillableExpiresAt ¶
func (atc *APITokenCreate) SetNillableExpiresAt(t *time.Time) *APITokenCreate
SetNillableExpiresAt sets the "expires_at" field if the given value is not nil.
func (*APITokenCreate) SetNillableID ¶
func (atc *APITokenCreate) SetNillableID(u *uuid.UUID) *APITokenCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*APITokenCreate) SetNillableRevokedAt ¶
func (atc *APITokenCreate) SetNillableRevokedAt(t *time.Time) *APITokenCreate
SetNillableRevokedAt sets the "revoked_at" field if the given value is not nil.
func (*APITokenCreate) SetOrganization ¶
func (atc *APITokenCreate) SetOrganization(o *Organization) *APITokenCreate
SetOrganization sets the "organization" edge to the Organization entity.
func (*APITokenCreate) SetOrganizationID ¶
func (atc *APITokenCreate) SetOrganizationID(u uuid.UUID) *APITokenCreate
SetOrganizationID sets the "organization_id" field.
func (*APITokenCreate) SetRevokedAt ¶
func (atc *APITokenCreate) SetRevokedAt(t time.Time) *APITokenCreate
SetRevokedAt sets the "revoked_at" field.
type APITokenCreateBulk ¶
type APITokenCreateBulk struct {
// contains filtered or unexported fields
}
APITokenCreateBulk is the builder for creating many APIToken entities in bulk.
func (*APITokenCreateBulk) Exec ¶
func (atcb *APITokenCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*APITokenCreateBulk) ExecX ¶
func (atcb *APITokenCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type APITokenDelete ¶
type APITokenDelete struct {
// contains filtered or unexported fields
}
APITokenDelete is the builder for deleting a APIToken entity.
func (*APITokenDelete) Exec ¶
func (atd *APITokenDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*APITokenDelete) ExecX ¶
func (atd *APITokenDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*APITokenDelete) Where ¶
func (atd *APITokenDelete) Where(ps ...predicate.APIToken) *APITokenDelete
Where appends a list predicates to the APITokenDelete builder.
type APITokenDeleteOne ¶
type APITokenDeleteOne struct {
// contains filtered or unexported fields
}
APITokenDeleteOne is the builder for deleting a single APIToken entity.
func (*APITokenDeleteOne) Exec ¶
func (atdo *APITokenDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*APITokenDeleteOne) ExecX ¶
func (atdo *APITokenDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*APITokenDeleteOne) Where ¶
func (atdo *APITokenDeleteOne) Where(ps ...predicate.APIToken) *APITokenDeleteOne
Where appends a list predicates to the APITokenDelete builder.
type APITokenEdges ¶
type APITokenEdges struct { // Organization holds the value of the organization edge. Organization *Organization `json:"organization,omitempty"` // contains filtered or unexported fields }
APITokenEdges holds the relations/edges for other nodes in the graph.
func (APITokenEdges) OrganizationOrErr ¶
func (e APITokenEdges) 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 APITokenGroupBy ¶
type APITokenGroupBy struct {
// contains filtered or unexported fields
}
APITokenGroupBy is the group-by builder for APIToken entities.
func (*APITokenGroupBy) Aggregate ¶
func (atgb *APITokenGroupBy) Aggregate(fns ...AggregateFunc) *APITokenGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*APITokenGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*APITokenGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*APITokenGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*APITokenGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*APITokenGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*APITokenGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*APITokenGroupBy) Scan ¶
func (atgb *APITokenGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*APITokenGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type APITokenMutation ¶
type APITokenMutation struct {
// contains filtered or unexported fields
}
APITokenMutation represents an operation that mutates the APIToken nodes in the graph.
func (*APITokenMutation) AddField ¶
func (m *APITokenMutation) 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 (*APITokenMutation) AddedEdges ¶
func (m *APITokenMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*APITokenMutation) AddedField ¶
func (m *APITokenMutation) 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 (*APITokenMutation) AddedFields ¶
func (m *APITokenMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*APITokenMutation) AddedIDs ¶
func (m *APITokenMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*APITokenMutation) ClearDescription ¶
func (m *APITokenMutation) ClearDescription()
ClearDescription clears the value of the "description" field.
func (*APITokenMutation) ClearEdge ¶
func (m *APITokenMutation) 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 (*APITokenMutation) ClearExpiresAt ¶
func (m *APITokenMutation) ClearExpiresAt()
ClearExpiresAt clears the value of the "expires_at" field.
func (*APITokenMutation) ClearField ¶
func (m *APITokenMutation) 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 (*APITokenMutation) ClearOrganization ¶
func (m *APITokenMutation) ClearOrganization()
ClearOrganization clears the "organization" edge to the Organization entity.
func (*APITokenMutation) ClearRevokedAt ¶
func (m *APITokenMutation) ClearRevokedAt()
ClearRevokedAt clears the value of the "revoked_at" field.
func (*APITokenMutation) ClearedEdges ¶
func (m *APITokenMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*APITokenMutation) ClearedFields ¶
func (m *APITokenMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (APITokenMutation) Client ¶
func (m APITokenMutation) 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 (*APITokenMutation) CreatedAt ¶
func (m *APITokenMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*APITokenMutation) Description ¶
func (m *APITokenMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*APITokenMutation) DescriptionCleared ¶
func (m *APITokenMutation) DescriptionCleared() bool
DescriptionCleared returns if the "description" field was cleared in this mutation.
func (*APITokenMutation) EdgeCleared ¶
func (m *APITokenMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*APITokenMutation) ExpiresAt ¶
func (m *APITokenMutation) ExpiresAt() (r time.Time, exists bool)
ExpiresAt returns the value of the "expires_at" field in the mutation.
func (*APITokenMutation) ExpiresAtCleared ¶
func (m *APITokenMutation) ExpiresAtCleared() bool
ExpiresAtCleared returns if the "expires_at" field was cleared in this mutation.
func (*APITokenMutation) Field ¶
func (m *APITokenMutation) 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 (*APITokenMutation) FieldCleared ¶
func (m *APITokenMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*APITokenMutation) Fields ¶
func (m *APITokenMutation) 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 (*APITokenMutation) ID ¶
func (m *APITokenMutation) 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 (*APITokenMutation) 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 (*APITokenMutation) Name ¶
func (m *APITokenMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*APITokenMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the APIToken entity. If the APIToken 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 (*APITokenMutation) OldDescription ¶
func (m *APITokenMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the APIToken entity. If the APIToken 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 (*APITokenMutation) OldExpiresAt ¶
OldExpiresAt returns the old "expires_at" field's value of the APIToken entity. If the APIToken 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 (*APITokenMutation) 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 (*APITokenMutation) OldName ¶
func (m *APITokenMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the APIToken entity. If the APIToken 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 (*APITokenMutation) OldOrganizationID ¶
OldOrganizationID returns the old "organization_id" field's value of the APIToken entity. If the APIToken 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 (*APITokenMutation) OldRevokedAt ¶
OldRevokedAt returns the old "revoked_at" field's value of the APIToken entity. If the APIToken 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 (*APITokenMutation) OrganizationCleared ¶
func (m *APITokenMutation) OrganizationCleared() bool
OrganizationCleared reports if the "organization" edge to the Organization entity was cleared.
func (*APITokenMutation) OrganizationID ¶
func (m *APITokenMutation) OrganizationID() (r uuid.UUID, exists bool)
OrganizationID returns the value of the "organization_id" field in the mutation.
func (*APITokenMutation) OrganizationIDs ¶
func (m *APITokenMutation) 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 (*APITokenMutation) RemovedEdges ¶
func (m *APITokenMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*APITokenMutation) RemovedIDs ¶
func (m *APITokenMutation) 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 (*APITokenMutation) ResetCreatedAt ¶
func (m *APITokenMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*APITokenMutation) ResetDescription ¶
func (m *APITokenMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*APITokenMutation) ResetEdge ¶
func (m *APITokenMutation) 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 (*APITokenMutation) ResetExpiresAt ¶
func (m *APITokenMutation) ResetExpiresAt()
ResetExpiresAt resets all changes to the "expires_at" field.
func (*APITokenMutation) ResetField ¶
func (m *APITokenMutation) 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 (*APITokenMutation) ResetName ¶
func (m *APITokenMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*APITokenMutation) ResetOrganization ¶
func (m *APITokenMutation) ResetOrganization()
ResetOrganization resets all changes to the "organization" edge.
func (*APITokenMutation) ResetOrganizationID ¶
func (m *APITokenMutation) ResetOrganizationID()
ResetOrganizationID resets all changes to the "organization_id" field.
func (*APITokenMutation) ResetRevokedAt ¶
func (m *APITokenMutation) ResetRevokedAt()
ResetRevokedAt resets all changes to the "revoked_at" field.
func (*APITokenMutation) RevokedAt ¶
func (m *APITokenMutation) RevokedAt() (r time.Time, exists bool)
RevokedAt returns the value of the "revoked_at" field in the mutation.
func (*APITokenMutation) RevokedAtCleared ¶
func (m *APITokenMutation) RevokedAtCleared() bool
RevokedAtCleared returns if the "revoked_at" field was cleared in this mutation.
func (*APITokenMutation) SetCreatedAt ¶
func (m *APITokenMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*APITokenMutation) SetDescription ¶
func (m *APITokenMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*APITokenMutation) SetExpiresAt ¶
func (m *APITokenMutation) SetExpiresAt(t time.Time)
SetExpiresAt sets the "expires_at" field.
func (*APITokenMutation) SetField ¶
func (m *APITokenMutation) 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 (*APITokenMutation) SetID ¶
func (m *APITokenMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of APIToken entities.
func (*APITokenMutation) SetName ¶
func (m *APITokenMutation) SetName(s string)
SetName sets the "name" field.
func (*APITokenMutation) SetOp ¶
func (m *APITokenMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*APITokenMutation) SetOrganizationID ¶
func (m *APITokenMutation) SetOrganizationID(u uuid.UUID)
SetOrganizationID sets the "organization_id" field.
func (*APITokenMutation) SetRevokedAt ¶
func (m *APITokenMutation) SetRevokedAt(t time.Time)
SetRevokedAt sets the "revoked_at" field.
func (APITokenMutation) Tx ¶
func (m APITokenMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*APITokenMutation) Type ¶
func (m *APITokenMutation) Type() string
Type returns the node type of this mutation (APIToken).
func (*APITokenMutation) Where ¶
func (m *APITokenMutation) Where(ps ...predicate.APIToken)
Where appends a list predicates to the APITokenMutation builder.
func (*APITokenMutation) WhereP ¶
func (m *APITokenMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the APITokenMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type APITokenQuery ¶
type APITokenQuery struct {
// contains filtered or unexported fields
}
APITokenQuery is the builder for querying APIToken entities.
func (*APITokenQuery) Aggregate ¶
func (atq *APITokenQuery) Aggregate(fns ...AggregateFunc) *APITokenSelect
Aggregate returns a APITokenSelect configured with the given aggregations.
func (*APITokenQuery) All ¶
func (atq *APITokenQuery) All(ctx context.Context) ([]*APIToken, error)
All executes the query and returns a list of APITokens.
func (*APITokenQuery) AllX ¶
func (atq *APITokenQuery) AllX(ctx context.Context) []*APIToken
AllX is like All, but panics if an error occurs.
func (*APITokenQuery) Clone ¶
func (atq *APITokenQuery) Clone() *APITokenQuery
Clone returns a duplicate of the APITokenQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*APITokenQuery) Count ¶
func (atq *APITokenQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*APITokenQuery) CountX ¶
func (atq *APITokenQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*APITokenQuery) Exist ¶
func (atq *APITokenQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*APITokenQuery) ExistX ¶
func (atq *APITokenQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*APITokenQuery) First ¶
func (atq *APITokenQuery) First(ctx context.Context) (*APIToken, error)
First returns the first APIToken entity from the query. Returns a *NotFoundError when no APIToken was found.
func (*APITokenQuery) FirstID ¶
FirstID returns the first APIToken ID from the query. Returns a *NotFoundError when no APIToken ID was found.
func (*APITokenQuery) FirstIDX ¶
func (atq *APITokenQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*APITokenQuery) FirstX ¶
func (atq *APITokenQuery) FirstX(ctx context.Context) *APIToken
FirstX is like First, but panics if an error occurs.
func (*APITokenQuery) ForShare ¶ added in v0.94.3
func (atq *APITokenQuery) ForShare(opts ...sql.LockOption) *APITokenQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*APITokenQuery) ForUpdate ¶ added in v0.94.3
func (atq *APITokenQuery) ForUpdate(opts ...sql.LockOption) *APITokenQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
func (*APITokenQuery) GroupBy ¶
func (atq *APITokenQuery) GroupBy(field string, fields ...string) *APITokenGroupBy
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.APIToken.Query(). GroupBy(apitoken.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*APITokenQuery) IDsX ¶
func (atq *APITokenQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*APITokenQuery) Limit ¶
func (atq *APITokenQuery) Limit(limit int) *APITokenQuery
Limit the number of records to be returned by this query.
func (*APITokenQuery) Modify ¶
func (atq *APITokenQuery) Modify(modifiers ...func(s *sql.Selector)) *APITokenSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*APITokenQuery) Offset ¶
func (atq *APITokenQuery) Offset(offset int) *APITokenQuery
Offset to start from.
func (*APITokenQuery) Only ¶
func (atq *APITokenQuery) Only(ctx context.Context) (*APIToken, error)
Only returns a single APIToken entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one APIToken entity is found. Returns a *NotFoundError when no APIToken entities are found.
func (*APITokenQuery) OnlyID ¶
OnlyID is like Only, but returns the only APIToken ID in the query. Returns a *NotSingularError when more than one APIToken ID is found. Returns a *NotFoundError when no entities are found.
func (*APITokenQuery) OnlyIDX ¶
func (atq *APITokenQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*APITokenQuery) OnlyX ¶
func (atq *APITokenQuery) OnlyX(ctx context.Context) *APIToken
OnlyX is like Only, but panics if an error occurs.
func (*APITokenQuery) Order ¶
func (atq *APITokenQuery) Order(o ...apitoken.OrderOption) *APITokenQuery
Order specifies how the records should be ordered.
func (*APITokenQuery) QueryOrganization ¶
func (atq *APITokenQuery) QueryOrganization() *OrganizationQuery
QueryOrganization chains the current query on the "organization" edge.
func (*APITokenQuery) Select ¶
func (atq *APITokenQuery) Select(fields ...string) *APITokenSelect
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.APIToken.Query(). Select(apitoken.FieldName). Scan(ctx, &v)
func (*APITokenQuery) Unique ¶
func (atq *APITokenQuery) Unique(unique bool) *APITokenQuery
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 (*APITokenQuery) Where ¶
func (atq *APITokenQuery) Where(ps ...predicate.APIToken) *APITokenQuery
Where adds a new predicate for the APITokenQuery builder.
func (*APITokenQuery) WithOrganization ¶
func (atq *APITokenQuery) WithOrganization(opts ...func(*OrganizationQuery)) *APITokenQuery
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 APITokenSelect ¶
type APITokenSelect struct { *APITokenQuery // contains filtered or unexported fields }
APITokenSelect is the builder for selecting fields of APIToken entities.
func (*APITokenSelect) Aggregate ¶
func (ats *APITokenSelect) Aggregate(fns ...AggregateFunc) *APITokenSelect
Aggregate adds the given aggregation functions to the selector query.
func (*APITokenSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*APITokenSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*APITokenSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*APITokenSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*APITokenSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*APITokenSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*APITokenSelect) Modify ¶
func (ats *APITokenSelect) Modify(modifiers ...func(s *sql.Selector)) *APITokenSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*APITokenSelect) Scan ¶
func (ats *APITokenSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*APITokenSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type APITokenUpdate ¶
type APITokenUpdate struct {
// contains filtered or unexported fields
}
APITokenUpdate is the builder for updating APIToken entities.
func (*APITokenUpdate) ClearDescription ¶
func (atu *APITokenUpdate) ClearDescription() *APITokenUpdate
ClearDescription clears the value of the "description" field.
func (*APITokenUpdate) ClearOrganization ¶
func (atu *APITokenUpdate) ClearOrganization() *APITokenUpdate
ClearOrganization clears the "organization" edge to the Organization entity.
func (*APITokenUpdate) ClearRevokedAt ¶
func (atu *APITokenUpdate) ClearRevokedAt() *APITokenUpdate
ClearRevokedAt clears the value of the "revoked_at" field.
func (*APITokenUpdate) Exec ¶
func (atu *APITokenUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*APITokenUpdate) ExecX ¶
func (atu *APITokenUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*APITokenUpdate) Modify ¶
func (atu *APITokenUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *APITokenUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*APITokenUpdate) Mutation ¶
func (atu *APITokenUpdate) Mutation() *APITokenMutation
Mutation returns the APITokenMutation object of the builder.
func (*APITokenUpdate) Save ¶
func (atu *APITokenUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*APITokenUpdate) SaveX ¶
func (atu *APITokenUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*APITokenUpdate) SetDescription ¶
func (atu *APITokenUpdate) SetDescription(s string) *APITokenUpdate
SetDescription sets the "description" field.
func (*APITokenUpdate) SetNillableDescription ¶
func (atu *APITokenUpdate) SetNillableDescription(s *string) *APITokenUpdate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*APITokenUpdate) SetNillableOrganizationID ¶ added in v0.91.6
func (atu *APITokenUpdate) SetNillableOrganizationID(u *uuid.UUID) *APITokenUpdate
SetNillableOrganizationID sets the "organization_id" field if the given value is not nil.
func (*APITokenUpdate) SetNillableRevokedAt ¶
func (atu *APITokenUpdate) SetNillableRevokedAt(t *time.Time) *APITokenUpdate
SetNillableRevokedAt sets the "revoked_at" field if the given value is not nil.
func (*APITokenUpdate) SetOrganization ¶
func (atu *APITokenUpdate) SetOrganization(o *Organization) *APITokenUpdate
SetOrganization sets the "organization" edge to the Organization entity.
func (*APITokenUpdate) SetOrganizationID ¶
func (atu *APITokenUpdate) SetOrganizationID(u uuid.UUID) *APITokenUpdate
SetOrganizationID sets the "organization_id" field.
func (*APITokenUpdate) SetRevokedAt ¶
func (atu *APITokenUpdate) SetRevokedAt(t time.Time) *APITokenUpdate
SetRevokedAt sets the "revoked_at" field.
func (*APITokenUpdate) Where ¶
func (atu *APITokenUpdate) Where(ps ...predicate.APIToken) *APITokenUpdate
Where appends a list predicates to the APITokenUpdate builder.
type APITokenUpdateOne ¶
type APITokenUpdateOne struct {
// contains filtered or unexported fields
}
APITokenUpdateOne is the builder for updating a single APIToken entity.
func (*APITokenUpdateOne) ClearDescription ¶
func (atuo *APITokenUpdateOne) ClearDescription() *APITokenUpdateOne
ClearDescription clears the value of the "description" field.
func (*APITokenUpdateOne) ClearOrganization ¶
func (atuo *APITokenUpdateOne) ClearOrganization() *APITokenUpdateOne
ClearOrganization clears the "organization" edge to the Organization entity.
func (*APITokenUpdateOne) ClearRevokedAt ¶
func (atuo *APITokenUpdateOne) ClearRevokedAt() *APITokenUpdateOne
ClearRevokedAt clears the value of the "revoked_at" field.
func (*APITokenUpdateOne) Exec ¶
func (atuo *APITokenUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*APITokenUpdateOne) ExecX ¶
func (atuo *APITokenUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*APITokenUpdateOne) Modify ¶
func (atuo *APITokenUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *APITokenUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*APITokenUpdateOne) Mutation ¶
func (atuo *APITokenUpdateOne) Mutation() *APITokenMutation
Mutation returns the APITokenMutation object of the builder.
func (*APITokenUpdateOne) Save ¶
func (atuo *APITokenUpdateOne) Save(ctx context.Context) (*APIToken, error)
Save executes the query and returns the updated APIToken entity.
func (*APITokenUpdateOne) SaveX ¶
func (atuo *APITokenUpdateOne) SaveX(ctx context.Context) *APIToken
SaveX is like Save, but panics if an error occurs.
func (*APITokenUpdateOne) Select ¶
func (atuo *APITokenUpdateOne) Select(field string, fields ...string) *APITokenUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*APITokenUpdateOne) SetDescription ¶
func (atuo *APITokenUpdateOne) SetDescription(s string) *APITokenUpdateOne
SetDescription sets the "description" field.
func (*APITokenUpdateOne) SetNillableDescription ¶
func (atuo *APITokenUpdateOne) SetNillableDescription(s *string) *APITokenUpdateOne
SetNillableDescription sets the "description" field if the given value is not nil.
func (*APITokenUpdateOne) SetNillableOrganizationID ¶ added in v0.91.6
func (atuo *APITokenUpdateOne) SetNillableOrganizationID(u *uuid.UUID) *APITokenUpdateOne
SetNillableOrganizationID sets the "organization_id" field if the given value is not nil.
func (*APITokenUpdateOne) SetNillableRevokedAt ¶
func (atuo *APITokenUpdateOne) SetNillableRevokedAt(t *time.Time) *APITokenUpdateOne
SetNillableRevokedAt sets the "revoked_at" field if the given value is not nil.
func (*APITokenUpdateOne) SetOrganization ¶
func (atuo *APITokenUpdateOne) SetOrganization(o *Organization) *APITokenUpdateOne
SetOrganization sets the "organization" edge to the Organization entity.
func (*APITokenUpdateOne) SetOrganizationID ¶
func (atuo *APITokenUpdateOne) SetOrganizationID(u uuid.UUID) *APITokenUpdateOne
SetOrganizationID sets the "organization_id" field.
func (*APITokenUpdateOne) SetRevokedAt ¶
func (atuo *APITokenUpdateOne) SetRevokedAt(t time.Time) *APITokenUpdateOne
SetRevokedAt sets the "revoked_at" field.
func (*APITokenUpdateOne) Where ¶
func (atuo *APITokenUpdateOne) Where(ps ...predicate.APIToken) *APITokenUpdateOne
Where appends a list predicates to the APITokenUpdate builder.
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 CASBackend ¶
type CASBackend struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // Location holds the value of the "location" field. Location string `json:"location,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Provider holds the value of the "provider" field. Provider biz.CASBackendProvider `json:"provider,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"` // ValidationStatus holds the value of the "validation_status" field. ValidationStatus biz.CASBackendValidationStatus `json:"validation_status,omitempty"` // ValidatedAt holds the value of the "validated_at" field. ValidatedAt time.Time `json:"validated_at,omitempty"` // Default holds the value of the "default" field. Default bool `json:"default,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt time.Time `json:"deleted_at,omitempty"` // Fallback holds the value of the "fallback" field. Fallback bool `json:"fallback,omitempty"` // MaxBlobSizeBytes holds the value of the "max_blob_size_bytes" field. MaxBlobSizeBytes int64 `json:"max_blob_size_bytes,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the CASBackendQuery when eager-loading is set. Edges CASBackendEdges `json:"edges"` // contains filtered or unexported fields }
CASBackend is the model entity for the CASBackend schema.
func (*CASBackend) QueryOrganization ¶
func (cb *CASBackend) QueryOrganization() *OrganizationQuery
QueryOrganization queries the "organization" edge of the CASBackend entity.
func (*CASBackend) QueryWorkflowRun ¶
func (cb *CASBackend) QueryWorkflowRun() *WorkflowRunQuery
QueryWorkflowRun queries the "workflow_run" edge of the CASBackend entity.
func (*CASBackend) String ¶
func (cb *CASBackend) String() string
String implements the fmt.Stringer.
func (*CASBackend) Unwrap ¶
func (cb *CASBackend) Unwrap() *CASBackend
Unwrap unwraps the CASBackend 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 (*CASBackend) Update ¶
func (cb *CASBackend) Update() *CASBackendUpdateOne
Update returns a builder for updating this CASBackend. Note that you need to call CASBackend.Unwrap() before calling this method if this CASBackend was returned from a transaction, and the transaction was committed or rolled back.
type CASBackendClient ¶
type CASBackendClient struct {
// contains filtered or unexported fields
}
CASBackendClient is a client for the CASBackend schema.
func NewCASBackendClient ¶
func NewCASBackendClient(c config) *CASBackendClient
NewCASBackendClient returns a client for the CASBackend from the given config.
func (*CASBackendClient) Create ¶
func (c *CASBackendClient) Create() *CASBackendCreate
Create returns a builder for creating a CASBackend entity.
func (*CASBackendClient) CreateBulk ¶
func (c *CASBackendClient) CreateBulk(builders ...*CASBackendCreate) *CASBackendCreateBulk
CreateBulk returns a builder for creating a bulk of CASBackend entities.
func (*CASBackendClient) Delete ¶
func (c *CASBackendClient) Delete() *CASBackendDelete
Delete returns a delete builder for CASBackend.
func (*CASBackendClient) DeleteOne ¶
func (c *CASBackendClient) DeleteOne(cb *CASBackend) *CASBackendDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*CASBackendClient) DeleteOneID ¶
func (c *CASBackendClient) DeleteOneID(id uuid.UUID) *CASBackendDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*CASBackendClient) Get ¶
func (c *CASBackendClient) Get(ctx context.Context, id uuid.UUID) (*CASBackend, error)
Get returns a CASBackend entity by its id.
func (*CASBackendClient) GetX ¶
func (c *CASBackendClient) GetX(ctx context.Context, id uuid.UUID) *CASBackend
GetX is like Get, but panics if an error occurs.
func (*CASBackendClient) Hooks ¶
func (c *CASBackendClient) Hooks() []Hook
Hooks returns the client hooks.
func (*CASBackendClient) Intercept ¶
func (c *CASBackendClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `casbackend.Intercept(f(g(h())))`.
func (*CASBackendClient) Interceptors ¶
func (c *CASBackendClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*CASBackendClient) MapCreateBulk ¶ added in v0.91.6
func (c *CASBackendClient) MapCreateBulk(slice any, setFunc func(*CASBackendCreate, int)) *CASBackendCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*CASBackendClient) Query ¶
func (c *CASBackendClient) Query() *CASBackendQuery
Query returns a query builder for CASBackend.
func (*CASBackendClient) QueryOrganization ¶
func (c *CASBackendClient) QueryOrganization(cb *CASBackend) *OrganizationQuery
QueryOrganization queries the organization edge of a CASBackend.
func (*CASBackendClient) QueryWorkflowRun ¶
func (c *CASBackendClient) QueryWorkflowRun(cb *CASBackend) *WorkflowRunQuery
QueryWorkflowRun queries the workflow_run edge of a CASBackend.
func (*CASBackendClient) Update ¶
func (c *CASBackendClient) Update() *CASBackendUpdate
Update returns an update builder for CASBackend.
func (*CASBackendClient) UpdateOne ¶
func (c *CASBackendClient) UpdateOne(cb *CASBackend) *CASBackendUpdateOne
UpdateOne returns an update builder for the given entity.
func (*CASBackendClient) UpdateOneID ¶
func (c *CASBackendClient) UpdateOneID(id uuid.UUID) *CASBackendUpdateOne
UpdateOneID returns an update builder for the given id.
func (*CASBackendClient) Use ¶
func (c *CASBackendClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `casbackend.Hooks(f(g(h())))`.
type CASBackendCreate ¶
type CASBackendCreate struct {
// contains filtered or unexported fields
}
CASBackendCreate is the builder for creating a CASBackend entity.
func (*CASBackendCreate) AddWorkflowRun ¶
func (cbc *CASBackendCreate) AddWorkflowRun(w ...*WorkflowRun) *CASBackendCreate
AddWorkflowRun adds the "workflow_run" edges to the WorkflowRun entity.
func (*CASBackendCreate) AddWorkflowRunIDs ¶
func (cbc *CASBackendCreate) AddWorkflowRunIDs(ids ...uuid.UUID) *CASBackendCreate
AddWorkflowRunIDs adds the "workflow_run" edge to the WorkflowRun entity by IDs.
func (*CASBackendCreate) Exec ¶
func (cbc *CASBackendCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*CASBackendCreate) ExecX ¶
func (cbc *CASBackendCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CASBackendCreate) Mutation ¶
func (cbc *CASBackendCreate) Mutation() *CASBackendMutation
Mutation returns the CASBackendMutation object of the builder.
func (*CASBackendCreate) Save ¶
func (cbc *CASBackendCreate) Save(ctx context.Context) (*CASBackend, error)
Save creates the CASBackend in the database.
func (*CASBackendCreate) SaveX ¶
func (cbc *CASBackendCreate) SaveX(ctx context.Context) *CASBackend
SaveX calls Save and panics if Save returns an error.
func (*CASBackendCreate) SetCreatedAt ¶
func (cbc *CASBackendCreate) SetCreatedAt(t time.Time) *CASBackendCreate
SetCreatedAt sets the "created_at" field.
func (*CASBackendCreate) SetDefault ¶
func (cbc *CASBackendCreate) SetDefault(b bool) *CASBackendCreate
SetDefault sets the "default" field.
func (*CASBackendCreate) SetDeletedAt ¶
func (cbc *CASBackendCreate) SetDeletedAt(t time.Time) *CASBackendCreate
SetDeletedAt sets the "deleted_at" field.
func (*CASBackendCreate) SetDescription ¶
func (cbc *CASBackendCreate) SetDescription(s string) *CASBackendCreate
SetDescription sets the "description" field.
func (*CASBackendCreate) SetFallback ¶
func (cbc *CASBackendCreate) SetFallback(b bool) *CASBackendCreate
SetFallback sets the "fallback" field.
func (*CASBackendCreate) SetID ¶
func (cbc *CASBackendCreate) SetID(u uuid.UUID) *CASBackendCreate
SetID sets the "id" field.
func (*CASBackendCreate) SetLocation ¶
func (cbc *CASBackendCreate) SetLocation(s string) *CASBackendCreate
SetLocation sets the "location" field.
func (*CASBackendCreate) SetMaxBlobSizeBytes ¶ added in v0.92.3
func (cbc *CASBackendCreate) SetMaxBlobSizeBytes(i int64) *CASBackendCreate
SetMaxBlobSizeBytes sets the "max_blob_size_bytes" field.
func (*CASBackendCreate) SetName ¶
func (cbc *CASBackendCreate) SetName(s string) *CASBackendCreate
SetName sets the "name" field.
func (*CASBackendCreate) SetNillableCreatedAt ¶
func (cbc *CASBackendCreate) SetNillableCreatedAt(t *time.Time) *CASBackendCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*CASBackendCreate) SetNillableDefault ¶
func (cbc *CASBackendCreate) SetNillableDefault(b *bool) *CASBackendCreate
SetNillableDefault sets the "default" field if the given value is not nil.
func (*CASBackendCreate) SetNillableDeletedAt ¶
func (cbc *CASBackendCreate) SetNillableDeletedAt(t *time.Time) *CASBackendCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*CASBackendCreate) SetNillableDescription ¶
func (cbc *CASBackendCreate) SetNillableDescription(s *string) *CASBackendCreate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*CASBackendCreate) SetNillableFallback ¶
func (cbc *CASBackendCreate) SetNillableFallback(b *bool) *CASBackendCreate
SetNillableFallback sets the "fallback" field if the given value is not nil.
func (*CASBackendCreate) SetNillableID ¶
func (cbc *CASBackendCreate) SetNillableID(u *uuid.UUID) *CASBackendCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*CASBackendCreate) SetNillableValidatedAt ¶
func (cbc *CASBackendCreate) SetNillableValidatedAt(t *time.Time) *CASBackendCreate
SetNillableValidatedAt sets the "validated_at" field if the given value is not nil.
func (*CASBackendCreate) SetNillableValidationStatus ¶
func (cbc *CASBackendCreate) SetNillableValidationStatus(bbvs *biz.CASBackendValidationStatus) *CASBackendCreate
SetNillableValidationStatus sets the "validation_status" field if the given value is not nil.
func (*CASBackendCreate) SetOrganization ¶
func (cbc *CASBackendCreate) SetOrganization(o *Organization) *CASBackendCreate
SetOrganization sets the "organization" edge to the Organization entity.
func (*CASBackendCreate) SetOrganizationID ¶
func (cbc *CASBackendCreate) SetOrganizationID(id uuid.UUID) *CASBackendCreate
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*CASBackendCreate) SetProvider ¶
func (cbc *CASBackendCreate) SetProvider(bbp biz.CASBackendProvider) *CASBackendCreate
SetProvider sets the "provider" field.
func (*CASBackendCreate) SetSecretName ¶
func (cbc *CASBackendCreate) SetSecretName(s string) *CASBackendCreate
SetSecretName sets the "secret_name" field.
func (*CASBackendCreate) SetValidatedAt ¶
func (cbc *CASBackendCreate) SetValidatedAt(t time.Time) *CASBackendCreate
SetValidatedAt sets the "validated_at" field.
func (*CASBackendCreate) SetValidationStatus ¶
func (cbc *CASBackendCreate) SetValidationStatus(bbvs biz.CASBackendValidationStatus) *CASBackendCreate
SetValidationStatus sets the "validation_status" field.
type CASBackendCreateBulk ¶
type CASBackendCreateBulk struct {
// contains filtered or unexported fields
}
CASBackendCreateBulk is the builder for creating many CASBackend entities in bulk.
func (*CASBackendCreateBulk) Exec ¶
func (cbcb *CASBackendCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*CASBackendCreateBulk) ExecX ¶
func (cbcb *CASBackendCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CASBackendCreateBulk) Save ¶
func (cbcb *CASBackendCreateBulk) Save(ctx context.Context) ([]*CASBackend, error)
Save creates the CASBackend entities in the database.
func (*CASBackendCreateBulk) SaveX ¶
func (cbcb *CASBackendCreateBulk) SaveX(ctx context.Context) []*CASBackend
SaveX is like Save, but panics if an error occurs.
type CASBackendDelete ¶
type CASBackendDelete struct {
// contains filtered or unexported fields
}
CASBackendDelete is the builder for deleting a CASBackend entity.
func (*CASBackendDelete) Exec ¶
func (cbd *CASBackendDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*CASBackendDelete) ExecX ¶
func (cbd *CASBackendDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*CASBackendDelete) Where ¶
func (cbd *CASBackendDelete) Where(ps ...predicate.CASBackend) *CASBackendDelete
Where appends a list predicates to the CASBackendDelete builder.
type CASBackendDeleteOne ¶
type CASBackendDeleteOne struct {
// contains filtered or unexported fields
}
CASBackendDeleteOne is the builder for deleting a single CASBackend entity.
func (*CASBackendDeleteOne) Exec ¶
func (cbdo *CASBackendDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*CASBackendDeleteOne) ExecX ¶
func (cbdo *CASBackendDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CASBackendDeleteOne) Where ¶
func (cbdo *CASBackendDeleteOne) Where(ps ...predicate.CASBackend) *CASBackendDeleteOne
Where appends a list predicates to the CASBackendDelete builder.
type CASBackendEdges ¶
type CASBackendEdges struct { // Organization holds the value of the organization edge. Organization *Organization `json:"organization,omitempty"` // WorkflowRun holds the value of the workflow_run edge. WorkflowRun []*WorkflowRun `json:"workflow_run,omitempty"` // contains filtered or unexported fields }
CASBackendEdges holds the relations/edges for other nodes in the graph.
func (CASBackendEdges) OrganizationOrErr ¶
func (e CASBackendEdges) 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 (CASBackendEdges) WorkflowRunOrErr ¶
func (e CASBackendEdges) WorkflowRunOrErr() ([]*WorkflowRun, error)
WorkflowRunOrErr returns the WorkflowRun value or an error if the edge was not loaded in eager-loading.
type CASBackendGroupBy ¶
type CASBackendGroupBy struct {
// contains filtered or unexported fields
}
CASBackendGroupBy is the group-by builder for CASBackend entities.
func (*CASBackendGroupBy) Aggregate ¶
func (cbgb *CASBackendGroupBy) Aggregate(fns ...AggregateFunc) *CASBackendGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*CASBackendGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CASBackendGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CASBackendGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CASBackendGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CASBackendGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CASBackendGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CASBackendGroupBy) Scan ¶
func (cbgb *CASBackendGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CASBackendGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CASBackendMutation ¶
type CASBackendMutation struct {
// contains filtered or unexported fields
}
CASBackendMutation represents an operation that mutates the CASBackend nodes in the graph.
func (*CASBackendMutation) AddField ¶
func (m *CASBackendMutation) 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 (*CASBackendMutation) AddMaxBlobSizeBytes ¶ added in v0.92.3
func (m *CASBackendMutation) AddMaxBlobSizeBytes(i int64)
AddMaxBlobSizeBytes adds i to the "max_blob_size_bytes" field.
func (*CASBackendMutation) AddWorkflowRunIDs ¶
func (m *CASBackendMutation) AddWorkflowRunIDs(ids ...uuid.UUID)
AddWorkflowRunIDs adds the "workflow_run" edge to the WorkflowRun entity by ids.
func (*CASBackendMutation) AddedEdges ¶
func (m *CASBackendMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*CASBackendMutation) AddedField ¶
func (m *CASBackendMutation) 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 (*CASBackendMutation) AddedFields ¶
func (m *CASBackendMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*CASBackendMutation) AddedIDs ¶
func (m *CASBackendMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*CASBackendMutation) AddedMaxBlobSizeBytes ¶ added in v0.92.3
func (m *CASBackendMutation) AddedMaxBlobSizeBytes() (r int64, exists bool)
AddedMaxBlobSizeBytes returns the value that was added to the "max_blob_size_bytes" field in this mutation.
func (*CASBackendMutation) ClearDeletedAt ¶
func (m *CASBackendMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*CASBackendMutation) ClearDescription ¶
func (m *CASBackendMutation) ClearDescription()
ClearDescription clears the value of the "description" field.
func (*CASBackendMutation) ClearEdge ¶
func (m *CASBackendMutation) 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 (*CASBackendMutation) ClearField ¶
func (m *CASBackendMutation) 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 (*CASBackendMutation) ClearOrganization ¶
func (m *CASBackendMutation) ClearOrganization()
ClearOrganization clears the "organization" edge to the Organization entity.
func (*CASBackendMutation) ClearWorkflowRun ¶
func (m *CASBackendMutation) ClearWorkflowRun()
ClearWorkflowRun clears the "workflow_run" edge to the WorkflowRun entity.
func (*CASBackendMutation) ClearedEdges ¶
func (m *CASBackendMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*CASBackendMutation) ClearedFields ¶
func (m *CASBackendMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (CASBackendMutation) Client ¶
func (m CASBackendMutation) 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 (*CASBackendMutation) CreatedAt ¶
func (m *CASBackendMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*CASBackendMutation) Default ¶
func (m *CASBackendMutation) Default() (r bool, exists bool)
Default returns the value of the "default" field in the mutation.
func (*CASBackendMutation) DeletedAt ¶
func (m *CASBackendMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*CASBackendMutation) DeletedAtCleared ¶
func (m *CASBackendMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*CASBackendMutation) Description ¶
func (m *CASBackendMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*CASBackendMutation) DescriptionCleared ¶
func (m *CASBackendMutation) DescriptionCleared() bool
DescriptionCleared returns if the "description" field was cleared in this mutation.
func (*CASBackendMutation) EdgeCleared ¶
func (m *CASBackendMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*CASBackendMutation) Fallback ¶
func (m *CASBackendMutation) Fallback() (r bool, exists bool)
Fallback returns the value of the "fallback" field in the mutation.
func (*CASBackendMutation) Field ¶
func (m *CASBackendMutation) 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 (*CASBackendMutation) FieldCleared ¶
func (m *CASBackendMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*CASBackendMutation) Fields ¶
func (m *CASBackendMutation) 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 (*CASBackendMutation) ID ¶
func (m *CASBackendMutation) 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 (*CASBackendMutation) 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 (*CASBackendMutation) Location ¶
func (m *CASBackendMutation) Location() (r string, exists bool)
Location returns the value of the "location" field in the mutation.
func (*CASBackendMutation) MaxBlobSizeBytes ¶ added in v0.92.3
func (m *CASBackendMutation) MaxBlobSizeBytes() (r int64, exists bool)
MaxBlobSizeBytes returns the value of the "max_blob_size_bytes" field in the mutation.
func (*CASBackendMutation) Name ¶
func (m *CASBackendMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*CASBackendMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the CASBackend entity. If the CASBackend 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 (*CASBackendMutation) OldDefault ¶
func (m *CASBackendMutation) OldDefault(ctx context.Context) (v bool, err error)
OldDefault returns the old "default" field's value of the CASBackend entity. If the CASBackend 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 (*CASBackendMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the CASBackend entity. If the CASBackend 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 (*CASBackendMutation) OldDescription ¶
func (m *CASBackendMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the CASBackend entity. If the CASBackend 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 (*CASBackendMutation) OldFallback ¶
func (m *CASBackendMutation) OldFallback(ctx context.Context) (v bool, err error)
OldFallback returns the old "fallback" field's value of the CASBackend entity. If the CASBackend 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 (*CASBackendMutation) 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 (*CASBackendMutation) OldLocation ¶
func (m *CASBackendMutation) OldLocation(ctx context.Context) (v string, err error)
OldLocation returns the old "location" field's value of the CASBackend entity. If the CASBackend 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 (*CASBackendMutation) OldMaxBlobSizeBytes ¶ added in v0.92.3
func (m *CASBackendMutation) OldMaxBlobSizeBytes(ctx context.Context) (v int64, err error)
OldMaxBlobSizeBytes returns the old "max_blob_size_bytes" field's value of the CASBackend entity. If the CASBackend 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 (*CASBackendMutation) OldName ¶
func (m *CASBackendMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the CASBackend entity. If the CASBackend 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 (*CASBackendMutation) OldProvider ¶
func (m *CASBackendMutation) OldProvider(ctx context.Context) (v biz.CASBackendProvider, err error)
OldProvider returns the old "provider" field's value of the CASBackend entity. If the CASBackend 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 (*CASBackendMutation) OldSecretName ¶
func (m *CASBackendMutation) OldSecretName(ctx context.Context) (v string, err error)
OldSecretName returns the old "secret_name" field's value of the CASBackend entity. If the CASBackend 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 (*CASBackendMutation) OldValidatedAt ¶
OldValidatedAt returns the old "validated_at" field's value of the CASBackend entity. If the CASBackend 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 (*CASBackendMutation) OldValidationStatus ¶
func (m *CASBackendMutation) OldValidationStatus(ctx context.Context) (v biz.CASBackendValidationStatus, err error)
OldValidationStatus returns the old "validation_status" field's value of the CASBackend entity. If the CASBackend 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 (*CASBackendMutation) OrganizationCleared ¶
func (m *CASBackendMutation) OrganizationCleared() bool
OrganizationCleared reports if the "organization" edge to the Organization entity was cleared.
func (*CASBackendMutation) OrganizationID ¶
func (m *CASBackendMutation) OrganizationID() (id uuid.UUID, exists bool)
OrganizationID returns the "organization" edge ID in the mutation.
func (*CASBackendMutation) OrganizationIDs ¶
func (m *CASBackendMutation) 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 (*CASBackendMutation) Provider ¶
func (m *CASBackendMutation) Provider() (r biz.CASBackendProvider, exists bool)
Provider returns the value of the "provider" field in the mutation.
func (*CASBackendMutation) RemoveWorkflowRunIDs ¶
func (m *CASBackendMutation) RemoveWorkflowRunIDs(ids ...uuid.UUID)
RemoveWorkflowRunIDs removes the "workflow_run" edge to the WorkflowRun entity by IDs.
func (*CASBackendMutation) RemovedEdges ¶
func (m *CASBackendMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*CASBackendMutation) RemovedIDs ¶
func (m *CASBackendMutation) 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 (*CASBackendMutation) RemovedWorkflowRunIDs ¶
func (m *CASBackendMutation) RemovedWorkflowRunIDs() (ids []uuid.UUID)
RemovedWorkflowRun returns the removed IDs of the "workflow_run" edge to the WorkflowRun entity.
func (*CASBackendMutation) ResetCreatedAt ¶
func (m *CASBackendMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*CASBackendMutation) ResetDefault ¶
func (m *CASBackendMutation) ResetDefault()
ResetDefault resets all changes to the "default" field.
func (*CASBackendMutation) ResetDeletedAt ¶
func (m *CASBackendMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*CASBackendMutation) ResetDescription ¶
func (m *CASBackendMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*CASBackendMutation) ResetEdge ¶
func (m *CASBackendMutation) 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 (*CASBackendMutation) ResetFallback ¶
func (m *CASBackendMutation) ResetFallback()
ResetFallback resets all changes to the "fallback" field.
func (*CASBackendMutation) ResetField ¶
func (m *CASBackendMutation) 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 (*CASBackendMutation) ResetLocation ¶
func (m *CASBackendMutation) ResetLocation()
ResetLocation resets all changes to the "location" field.
func (*CASBackendMutation) ResetMaxBlobSizeBytes ¶ added in v0.92.3
func (m *CASBackendMutation) ResetMaxBlobSizeBytes()
ResetMaxBlobSizeBytes resets all changes to the "max_blob_size_bytes" field.
func (*CASBackendMutation) ResetName ¶
func (m *CASBackendMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*CASBackendMutation) ResetOrganization ¶
func (m *CASBackendMutation) ResetOrganization()
ResetOrganization resets all changes to the "organization" edge.
func (*CASBackendMutation) ResetProvider ¶
func (m *CASBackendMutation) ResetProvider()
ResetProvider resets all changes to the "provider" field.
func (*CASBackendMutation) ResetSecretName ¶
func (m *CASBackendMutation) ResetSecretName()
ResetSecretName resets all changes to the "secret_name" field.
func (*CASBackendMutation) ResetValidatedAt ¶
func (m *CASBackendMutation) ResetValidatedAt()
ResetValidatedAt resets all changes to the "validated_at" field.
func (*CASBackendMutation) ResetValidationStatus ¶
func (m *CASBackendMutation) ResetValidationStatus()
ResetValidationStatus resets all changes to the "validation_status" field.
func (*CASBackendMutation) ResetWorkflowRun ¶
func (m *CASBackendMutation) ResetWorkflowRun()
ResetWorkflowRun resets all changes to the "workflow_run" edge.
func (*CASBackendMutation) SecretName ¶
func (m *CASBackendMutation) SecretName() (r string, exists bool)
SecretName returns the value of the "secret_name" field in the mutation.
func (*CASBackendMutation) SetCreatedAt ¶
func (m *CASBackendMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*CASBackendMutation) SetDefault ¶
func (m *CASBackendMutation) SetDefault(b bool)
SetDefault sets the "default" field.
func (*CASBackendMutation) SetDeletedAt ¶
func (m *CASBackendMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*CASBackendMutation) SetDescription ¶
func (m *CASBackendMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*CASBackendMutation) SetFallback ¶
func (m *CASBackendMutation) SetFallback(b bool)
SetFallback sets the "fallback" field.
func (*CASBackendMutation) SetField ¶
func (m *CASBackendMutation) 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 (*CASBackendMutation) SetID ¶
func (m *CASBackendMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of CASBackend entities.
func (*CASBackendMutation) SetLocation ¶
func (m *CASBackendMutation) SetLocation(s string)
SetLocation sets the "location" field.
func (*CASBackendMutation) SetMaxBlobSizeBytes ¶ added in v0.92.3
func (m *CASBackendMutation) SetMaxBlobSizeBytes(i int64)
SetMaxBlobSizeBytes sets the "max_blob_size_bytes" field.
func (*CASBackendMutation) SetName ¶
func (m *CASBackendMutation) SetName(s string)
SetName sets the "name" field.
func (*CASBackendMutation) SetOp ¶
func (m *CASBackendMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*CASBackendMutation) SetOrganizationID ¶
func (m *CASBackendMutation) SetOrganizationID(id uuid.UUID)
SetOrganizationID sets the "organization" edge to the Organization entity by id.
func (*CASBackendMutation) SetProvider ¶
func (m *CASBackendMutation) SetProvider(bbp biz.CASBackendProvider)
SetProvider sets the "provider" field.
func (*CASBackendMutation) SetSecretName ¶
func (m *CASBackendMutation) SetSecretName(s string)
SetSecretName sets the "secret_name" field.
func (*CASBackendMutation) SetValidatedAt ¶
func (m *CASBackendMutation) SetValidatedAt(t time.Time)
SetValidatedAt sets the "validated_at" field.
func (*CASBackendMutation) SetValidationStatus ¶
func (m *CASBackendMutation) SetValidationStatus(bbvs biz.CASBackendValidationStatus)
SetValidationStatus sets the "validation_status" field.
func (CASBackendMutation) Tx ¶
func (m CASBackendMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*CASBackendMutation) Type ¶
func (m *CASBackendMutation) Type() string
Type returns the node type of this mutation (CASBackend).
func (*CASBackendMutation) ValidatedAt ¶
func (m *CASBackendMutation) ValidatedAt() (r time.Time, exists bool)
ValidatedAt returns the value of the "validated_at" field in the mutation.
func (*CASBackendMutation) ValidationStatus ¶
func (m *CASBackendMutation) ValidationStatus() (r biz.CASBackendValidationStatus, exists bool)
ValidationStatus returns the value of the "validation_status" field in the mutation.
func (*CASBackendMutation) Where ¶
func (m *CASBackendMutation) Where(ps ...predicate.CASBackend)
Where appends a list predicates to the CASBackendMutation builder.
func (*CASBackendMutation) WhereP ¶
func (m *CASBackendMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the CASBackendMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
func (*CASBackendMutation) WorkflowRunCleared ¶
func (m *CASBackendMutation) WorkflowRunCleared() bool
WorkflowRunCleared reports if the "workflow_run" edge to the WorkflowRun entity was cleared.
func (*CASBackendMutation) WorkflowRunIDs ¶
func (m *CASBackendMutation) WorkflowRunIDs() (ids []uuid.UUID)
WorkflowRunIDs returns the "workflow_run" edge IDs in the mutation.
type CASBackendQuery ¶
type CASBackendQuery struct {
// contains filtered or unexported fields
}
CASBackendQuery is the builder for querying CASBackend entities.
func (*CASBackendQuery) Aggregate ¶
func (cbq *CASBackendQuery) Aggregate(fns ...AggregateFunc) *CASBackendSelect
Aggregate returns a CASBackendSelect configured with the given aggregations.
func (*CASBackendQuery) All ¶
func (cbq *CASBackendQuery) All(ctx context.Context) ([]*CASBackend, error)
All executes the query and returns a list of CASBackends.
func (*CASBackendQuery) AllX ¶
func (cbq *CASBackendQuery) AllX(ctx context.Context) []*CASBackend
AllX is like All, but panics if an error occurs.
func (*CASBackendQuery) Clone ¶
func (cbq *CASBackendQuery) Clone() *CASBackendQuery
Clone returns a duplicate of the CASBackendQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*CASBackendQuery) Count ¶
func (cbq *CASBackendQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*CASBackendQuery) CountX ¶
func (cbq *CASBackendQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*CASBackendQuery) Exist ¶
func (cbq *CASBackendQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*CASBackendQuery) ExistX ¶
func (cbq *CASBackendQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*CASBackendQuery) First ¶
func (cbq *CASBackendQuery) First(ctx context.Context) (*CASBackend, error)
First returns the first CASBackend entity from the query. Returns a *NotFoundError when no CASBackend was found.
func (*CASBackendQuery) FirstID ¶
FirstID returns the first CASBackend ID from the query. Returns a *NotFoundError when no CASBackend ID was found.
func (*CASBackendQuery) FirstIDX ¶
func (cbq *CASBackendQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*CASBackendQuery) FirstX ¶
func (cbq *CASBackendQuery) FirstX(ctx context.Context) *CASBackend
FirstX is like First, but panics if an error occurs.
func (*CASBackendQuery) ForShare ¶ added in v0.94.3
func (cbq *CASBackendQuery) ForShare(opts ...sql.LockOption) *CASBackendQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*CASBackendQuery) ForUpdate ¶ added in v0.94.3
func (cbq *CASBackendQuery) ForUpdate(opts ...sql.LockOption) *CASBackendQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
func (*CASBackendQuery) GroupBy ¶
func (cbq *CASBackendQuery) GroupBy(field string, fields ...string) *CASBackendGroupBy
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 { Location string `json:"location,omitempty"` Count int `json:"count,omitempty"` } client.CASBackend.Query(). GroupBy(casbackend.FieldLocation). Aggregate(ent.Count()). Scan(ctx, &v)
func (*CASBackendQuery) IDsX ¶
func (cbq *CASBackendQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*CASBackendQuery) Limit ¶
func (cbq *CASBackendQuery) Limit(limit int) *CASBackendQuery
Limit the number of records to be returned by this query.
func (*CASBackendQuery) Modify ¶
func (cbq *CASBackendQuery) Modify(modifiers ...func(s *sql.Selector)) *CASBackendSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*CASBackendQuery) Offset ¶
func (cbq *CASBackendQuery) Offset(offset int) *CASBackendQuery
Offset to start from.
func (*CASBackendQuery) Only ¶
func (cbq *CASBackendQuery) Only(ctx context.Context) (*CASBackend, error)
Only returns a single CASBackend entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one CASBackend entity is found. Returns a *NotFoundError when no CASBackend entities are found.
func (*CASBackendQuery) OnlyID ¶
OnlyID is like Only, but returns the only CASBackend ID in the query. Returns a *NotSingularError when more than one CASBackend ID is found. Returns a *NotFoundError when no entities are found.
func (*CASBackendQuery) OnlyIDX ¶
func (cbq *CASBackendQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*CASBackendQuery) OnlyX ¶
func (cbq *CASBackendQuery) OnlyX(ctx context.Context) *CASBackend
OnlyX is like Only, but panics if an error occurs.
func (*CASBackendQuery) Order ¶
func (cbq *CASBackendQuery) Order(o ...casbackend.OrderOption) *CASBackendQuery
Order specifies how the records should be ordered.
func (*CASBackendQuery) QueryOrganization ¶
func (cbq *CASBackendQuery) QueryOrganization() *OrganizationQuery
QueryOrganization chains the current query on the "organization" edge.
func (*CASBackendQuery) QueryWorkflowRun ¶
func (cbq *CASBackendQuery) QueryWorkflowRun() *WorkflowRunQuery
QueryWorkflowRun chains the current query on the "workflow_run" edge.
func (*CASBackendQuery) Select ¶
func (cbq *CASBackendQuery) Select(fields ...string) *CASBackendSelect
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 { Location string `json:"location,omitempty"` } client.CASBackend.Query(). Select(casbackend.FieldLocation). Scan(ctx, &v)
func (*CASBackendQuery) Unique ¶
func (cbq *CASBackendQuery) Unique(unique bool) *CASBackendQuery
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 (*CASBackendQuery) Where ¶
func (cbq *CASBackendQuery) Where(ps ...predicate.CASBackend) *CASBackendQuery
Where adds a new predicate for the CASBackendQuery builder.
func (*CASBackendQuery) WithOrganization ¶
func (cbq *CASBackendQuery) WithOrganization(opts ...func(*OrganizationQuery)) *CASBackendQuery
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 (*CASBackendQuery) WithWorkflowRun ¶
func (cbq *CASBackendQuery) WithWorkflowRun(opts ...func(*WorkflowRunQuery)) *CASBackendQuery
WithWorkflowRun tells the query-builder to eager-load the nodes that are connected to the "workflow_run" edge. The optional arguments are used to configure the query builder of the edge.
type CASBackendSelect ¶
type CASBackendSelect struct { *CASBackendQuery // contains filtered or unexported fields }
CASBackendSelect is the builder for selecting fields of CASBackend entities.
func (*CASBackendSelect) Aggregate ¶
func (cbs *CASBackendSelect) Aggregate(fns ...AggregateFunc) *CASBackendSelect
Aggregate adds the given aggregation functions to the selector query.
func (*CASBackendSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CASBackendSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CASBackendSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CASBackendSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CASBackendSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CASBackendSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CASBackendSelect) Modify ¶
func (cbs *CASBackendSelect) Modify(modifiers ...func(s *sql.Selector)) *CASBackendSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*CASBackendSelect) Scan ¶
func (cbs *CASBackendSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CASBackendSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CASBackendUpdate ¶
type CASBackendUpdate struct {
// contains filtered or unexported fields
}
CASBackendUpdate is the builder for updating CASBackend entities.
func (*CASBackendUpdate) AddMaxBlobSizeBytes ¶ added in v0.92.3
func (cbu *CASBackendUpdate) AddMaxBlobSizeBytes(i int64) *CASBackendUpdate
AddMaxBlobSizeBytes adds i to the "max_blob_size_bytes" field.
func (*CASBackendUpdate) AddWorkflowRun ¶
func (cbu *CASBackendUpdate) AddWorkflowRun(w ...*WorkflowRun) *CASBackendUpdate
AddWorkflowRun adds the "workflow_run" edges to the WorkflowRun entity.
func (*CASBackendUpdate) AddWorkflowRunIDs ¶
func (cbu *CASBackendUpdate) AddWorkflowRunIDs(ids ...uuid.UUID) *CASBackendUpdate
AddWorkflowRunIDs adds the "workflow_run" edge to the WorkflowRun entity by IDs.
func (*CASBackendUpdate) ClearDeletedAt ¶
func (cbu *CASBackendUpdate) ClearDeletedAt() *CASBackendUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*CASBackendUpdate) ClearDescription ¶
func (cbu *CASBackendUpdate) ClearDescription() *CASBackendUpdate
ClearDescription clears the value of the "description" field.
func (*CASBackendUpdate) ClearOrganization ¶
func (cbu *CASBackendUpdate) ClearOrganization() *CASBackendUpdate
ClearOrganization clears the "organization" edge to the Organization entity.
func (*CASBackendUpdate) ClearWorkflowRun ¶
func (cbu *CASBackendUpdate) ClearWorkflowRun() *CASBackendUpdate
ClearWorkflowRun clears all "workflow_run" edges to the WorkflowRun entity.
func (*CASBackendUpdate) Exec ¶
func (cbu *CASBackendUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*CASBackendUpdate) ExecX ¶
func (cbu *CASBackendUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CASBackendUpdate) Modify ¶
func (cbu *CASBackendUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *CASBackendUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*CASBackendUpdate) Mutation ¶
func (cbu *CASBackendUpdate) Mutation() *CASBackendMutation
Mutation returns the CASBackendMutation object of the builder.
func (*CASBackendUpdate) RemoveWorkflowRun ¶
func (cbu *CASBackendUpdate) RemoveWorkflowRun(w ...*WorkflowRun) *CASBackendUpdate
RemoveWorkflowRun removes "workflow_run" edges to WorkflowRun entities.
func (*CASBackendUpdate) RemoveWorkflowRunIDs ¶
func (cbu *CASBackendUpdate) RemoveWorkflowRunIDs(ids ...uuid.UUID) *CASBackendUpdate
RemoveWorkflowRunIDs removes the "workflow_run" edge to WorkflowRun entities by IDs.
func (*CASBackendUpdate) Save ¶
func (cbu *CASBackendUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*CASBackendUpdate) SaveX ¶
func (cbu *CASBackendUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*CASBackendUpdate) SetDefault ¶
func (cbu *CASBackendUpdate) SetDefault(b bool) *CASBackendUpdate
SetDefault sets the "default" field.
func (*CASBackendUpdate) SetDeletedAt ¶
func (cbu *CASBackendUpdate) SetDeletedAt(t time.Time) *CASBackendUpdate
SetDeletedAt sets the "deleted_at" field.
func (*CASBackendUpdate) SetDescription ¶
func (cbu *CASBackendUpdate) SetDescription(s string) *CASBackendUpdate
SetDescription sets the "description" field.
func (*CASBackendUpdate) SetMaxBlobSizeBytes ¶ added in v0.92.3
func (cbu *CASBackendUpdate) SetMaxBlobSizeBytes(i int64) *CASBackendUpdate
SetMaxBlobSizeBytes sets the "max_blob_size_bytes" field.
func (*CASBackendUpdate) SetNillableDefault ¶
func (cbu *CASBackendUpdate) SetNillableDefault(b *bool) *CASBackendUpdate
SetNillableDefault sets the "default" field if the given value is not nil.
func (*CASBackendUpdate) SetNillableDeletedAt ¶
func (cbu *CASBackendUpdate) SetNillableDeletedAt(t *time.Time) *CASBackendUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*CASBackendUpdate) SetNillableDescription ¶
func (cbu *CASBackendUpdate) SetNillableDescription(s *string) *CASBackendUpdate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*CASBackendUpdate) SetNillableMaxBlobSizeBytes ¶ added in v0.92.3
func (cbu *CASBackendUpdate) SetNillableMaxBlobSizeBytes(i *int64) *CASBackendUpdate
SetNillableMaxBlobSizeBytes sets the "max_blob_size_bytes" field if the given value is not nil.
func (*CASBackendUpdate) SetNillableSecretName ¶ added in v0.91.6
func (cbu *CASBackendUpdate) SetNillableSecretName(s *string) *CASBackendUpdate
SetNillableSecretName sets the "secret_name" field if the given value is not nil.
func (*CASBackendUpdate) SetNillableValidatedAt ¶
func (cbu *CASBackendUpdate) SetNillableValidatedAt(t *time.Time) *CASBackendUpdate
SetNillableValidatedAt sets the "validated_at" field if the given value is not nil.
func (*CASBackendUpdate) SetNillableValidationStatus ¶
func (cbu *CASBackendUpdate) SetNillableValidationStatus(bbvs *biz.CASBackendValidationStatus) *CASBackendUpdate
SetNillableValidationStatus sets the "validation_status" field if the given value is not nil.
func (*CASBackendUpdate) SetOrganization ¶
func (cbu *CASBackendUpdate) SetOrganization(o *Organization) *CASBackendUpdate
SetOrganization sets the "organization" edge to the Organization entity.
func (*CASBackendUpdate) SetOrganizationID ¶
func (cbu *CASBackendUpdate) SetOrganizationID(id uuid.UUID) *CASBackendUpdate
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*CASBackendUpdate) SetSecretName ¶
func (cbu *CASBackendUpdate) SetSecretName(s string) *CASBackendUpdate
SetSecretName sets the "secret_name" field.
func (*CASBackendUpdate) SetValidatedAt ¶
func (cbu *CASBackendUpdate) SetValidatedAt(t time.Time) *CASBackendUpdate
SetValidatedAt sets the "validated_at" field.
func (*CASBackendUpdate) SetValidationStatus ¶
func (cbu *CASBackendUpdate) SetValidationStatus(bbvs biz.CASBackendValidationStatus) *CASBackendUpdate
SetValidationStatus sets the "validation_status" field.
func (*CASBackendUpdate) Where ¶
func (cbu *CASBackendUpdate) Where(ps ...predicate.CASBackend) *CASBackendUpdate
Where appends a list predicates to the CASBackendUpdate builder.
type CASBackendUpdateOne ¶
type CASBackendUpdateOne struct {
// contains filtered or unexported fields
}
CASBackendUpdateOne is the builder for updating a single CASBackend entity.
func (*CASBackendUpdateOne) AddMaxBlobSizeBytes ¶ added in v0.92.3
func (cbuo *CASBackendUpdateOne) AddMaxBlobSizeBytes(i int64) *CASBackendUpdateOne
AddMaxBlobSizeBytes adds i to the "max_blob_size_bytes" field.
func (*CASBackendUpdateOne) AddWorkflowRun ¶
func (cbuo *CASBackendUpdateOne) AddWorkflowRun(w ...*WorkflowRun) *CASBackendUpdateOne
AddWorkflowRun adds the "workflow_run" edges to the WorkflowRun entity.
func (*CASBackendUpdateOne) AddWorkflowRunIDs ¶
func (cbuo *CASBackendUpdateOne) AddWorkflowRunIDs(ids ...uuid.UUID) *CASBackendUpdateOne
AddWorkflowRunIDs adds the "workflow_run" edge to the WorkflowRun entity by IDs.
func (*CASBackendUpdateOne) ClearDeletedAt ¶
func (cbuo *CASBackendUpdateOne) ClearDeletedAt() *CASBackendUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*CASBackendUpdateOne) ClearDescription ¶
func (cbuo *CASBackendUpdateOne) ClearDescription() *CASBackendUpdateOne
ClearDescription clears the value of the "description" field.
func (*CASBackendUpdateOne) ClearOrganization ¶
func (cbuo *CASBackendUpdateOne) ClearOrganization() *CASBackendUpdateOne
ClearOrganization clears the "organization" edge to the Organization entity.
func (*CASBackendUpdateOne) ClearWorkflowRun ¶
func (cbuo *CASBackendUpdateOne) ClearWorkflowRun() *CASBackendUpdateOne
ClearWorkflowRun clears all "workflow_run" edges to the WorkflowRun entity.
func (*CASBackendUpdateOne) Exec ¶
func (cbuo *CASBackendUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*CASBackendUpdateOne) ExecX ¶
func (cbuo *CASBackendUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CASBackendUpdateOne) Modify ¶
func (cbuo *CASBackendUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *CASBackendUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*CASBackendUpdateOne) Mutation ¶
func (cbuo *CASBackendUpdateOne) Mutation() *CASBackendMutation
Mutation returns the CASBackendMutation object of the builder.
func (*CASBackendUpdateOne) RemoveWorkflowRun ¶
func (cbuo *CASBackendUpdateOne) RemoveWorkflowRun(w ...*WorkflowRun) *CASBackendUpdateOne
RemoveWorkflowRun removes "workflow_run" edges to WorkflowRun entities.
func (*CASBackendUpdateOne) RemoveWorkflowRunIDs ¶
func (cbuo *CASBackendUpdateOne) RemoveWorkflowRunIDs(ids ...uuid.UUID) *CASBackendUpdateOne
RemoveWorkflowRunIDs removes the "workflow_run" edge to WorkflowRun entities by IDs.
func (*CASBackendUpdateOne) Save ¶
func (cbuo *CASBackendUpdateOne) Save(ctx context.Context) (*CASBackend, error)
Save executes the query and returns the updated CASBackend entity.
func (*CASBackendUpdateOne) SaveX ¶
func (cbuo *CASBackendUpdateOne) SaveX(ctx context.Context) *CASBackend
SaveX is like Save, but panics if an error occurs.
func (*CASBackendUpdateOne) Select ¶
func (cbuo *CASBackendUpdateOne) Select(field string, fields ...string) *CASBackendUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*CASBackendUpdateOne) SetDefault ¶
func (cbuo *CASBackendUpdateOne) SetDefault(b bool) *CASBackendUpdateOne
SetDefault sets the "default" field.
func (*CASBackendUpdateOne) SetDeletedAt ¶
func (cbuo *CASBackendUpdateOne) SetDeletedAt(t time.Time) *CASBackendUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*CASBackendUpdateOne) SetDescription ¶
func (cbuo *CASBackendUpdateOne) SetDescription(s string) *CASBackendUpdateOne
SetDescription sets the "description" field.
func (*CASBackendUpdateOne) SetMaxBlobSizeBytes ¶ added in v0.92.3
func (cbuo *CASBackendUpdateOne) SetMaxBlobSizeBytes(i int64) *CASBackendUpdateOne
SetMaxBlobSizeBytes sets the "max_blob_size_bytes" field.
func (*CASBackendUpdateOne) SetNillableDefault ¶
func (cbuo *CASBackendUpdateOne) SetNillableDefault(b *bool) *CASBackendUpdateOne
SetNillableDefault sets the "default" field if the given value is not nil.
func (*CASBackendUpdateOne) SetNillableDeletedAt ¶
func (cbuo *CASBackendUpdateOne) SetNillableDeletedAt(t *time.Time) *CASBackendUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*CASBackendUpdateOne) SetNillableDescription ¶
func (cbuo *CASBackendUpdateOne) SetNillableDescription(s *string) *CASBackendUpdateOne
SetNillableDescription sets the "description" field if the given value is not nil.
func (*CASBackendUpdateOne) SetNillableMaxBlobSizeBytes ¶ added in v0.92.3
func (cbuo *CASBackendUpdateOne) SetNillableMaxBlobSizeBytes(i *int64) *CASBackendUpdateOne
SetNillableMaxBlobSizeBytes sets the "max_blob_size_bytes" field if the given value is not nil.
func (*CASBackendUpdateOne) SetNillableSecretName ¶ added in v0.91.6
func (cbuo *CASBackendUpdateOne) SetNillableSecretName(s *string) *CASBackendUpdateOne
SetNillableSecretName sets the "secret_name" field if the given value is not nil.
func (*CASBackendUpdateOne) SetNillableValidatedAt ¶
func (cbuo *CASBackendUpdateOne) SetNillableValidatedAt(t *time.Time) *CASBackendUpdateOne
SetNillableValidatedAt sets the "validated_at" field if the given value is not nil.
func (*CASBackendUpdateOne) SetNillableValidationStatus ¶
func (cbuo *CASBackendUpdateOne) SetNillableValidationStatus(bbvs *biz.CASBackendValidationStatus) *CASBackendUpdateOne
SetNillableValidationStatus sets the "validation_status" field if the given value is not nil.
func (*CASBackendUpdateOne) SetOrganization ¶
func (cbuo *CASBackendUpdateOne) SetOrganization(o *Organization) *CASBackendUpdateOne
SetOrganization sets the "organization" edge to the Organization entity.
func (*CASBackendUpdateOne) SetOrganizationID ¶
func (cbuo *CASBackendUpdateOne) SetOrganizationID(id uuid.UUID) *CASBackendUpdateOne
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*CASBackendUpdateOne) SetSecretName ¶
func (cbuo *CASBackendUpdateOne) SetSecretName(s string) *CASBackendUpdateOne
SetSecretName sets the "secret_name" field.
func (*CASBackendUpdateOne) SetValidatedAt ¶
func (cbuo *CASBackendUpdateOne) SetValidatedAt(t time.Time) *CASBackendUpdateOne
SetValidatedAt sets the "validated_at" field.
func (*CASBackendUpdateOne) SetValidationStatus ¶
func (cbuo *CASBackendUpdateOne) SetValidationStatus(bbvs biz.CASBackendValidationStatus) *CASBackendUpdateOne
SetValidationStatus sets the "validation_status" field.
func (*CASBackendUpdateOne) Where ¶
func (cbuo *CASBackendUpdateOne) Where(ps ...predicate.CASBackend) *CASBackendUpdateOne
Where appends a list predicates to the CASBackendUpdate builder.
type CASMapping ¶
type CASMapping struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // Digest holds the value of the "digest" field. Digest string `json:"digest,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 CASMappingQuery when eager-loading is set. Edges CASMappingEdges `json:"edges"` // contains filtered or unexported fields }
CASMapping is the model entity for the CASMapping schema.
func (*CASMapping) QueryCasBackend ¶
func (cm *CASMapping) QueryCasBackend() *CASBackendQuery
QueryCasBackend queries the "cas_backend" edge of the CASMapping entity.
func (*CASMapping) QueryOrganization ¶
func (cm *CASMapping) QueryOrganization() *OrganizationQuery
QueryOrganization queries the "organization" edge of the CASMapping entity.
func (*CASMapping) QueryWorkflowRun ¶
func (cm *CASMapping) QueryWorkflowRun() *WorkflowRunQuery
QueryWorkflowRun queries the "workflow_run" edge of the CASMapping entity.
func (*CASMapping) String ¶
func (cm *CASMapping) String() string
String implements the fmt.Stringer.
func (*CASMapping) Unwrap ¶
func (cm *CASMapping) Unwrap() *CASMapping
Unwrap unwraps the CASMapping 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 (*CASMapping) Update ¶
func (cm *CASMapping) Update() *CASMappingUpdateOne
Update returns a builder for updating this CASMapping. Note that you need to call CASMapping.Unwrap() before calling this method if this CASMapping was returned from a transaction, and the transaction was committed or rolled back.
type CASMappingClient ¶
type CASMappingClient struct {
// contains filtered or unexported fields
}
CASMappingClient is a client for the CASMapping schema.
func NewCASMappingClient ¶
func NewCASMappingClient(c config) *CASMappingClient
NewCASMappingClient returns a client for the CASMapping from the given config.
func (*CASMappingClient) Create ¶
func (c *CASMappingClient) Create() *CASMappingCreate
Create returns a builder for creating a CASMapping entity.
func (*CASMappingClient) CreateBulk ¶
func (c *CASMappingClient) CreateBulk(builders ...*CASMappingCreate) *CASMappingCreateBulk
CreateBulk returns a builder for creating a bulk of CASMapping entities.
func (*CASMappingClient) Delete ¶
func (c *CASMappingClient) Delete() *CASMappingDelete
Delete returns a delete builder for CASMapping.
func (*CASMappingClient) DeleteOne ¶
func (c *CASMappingClient) DeleteOne(cm *CASMapping) *CASMappingDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*CASMappingClient) DeleteOneID ¶
func (c *CASMappingClient) DeleteOneID(id uuid.UUID) *CASMappingDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*CASMappingClient) Get ¶
func (c *CASMappingClient) Get(ctx context.Context, id uuid.UUID) (*CASMapping, error)
Get returns a CASMapping entity by its id.
func (*CASMappingClient) GetX ¶
func (c *CASMappingClient) GetX(ctx context.Context, id uuid.UUID) *CASMapping
GetX is like Get, but panics if an error occurs.
func (*CASMappingClient) Hooks ¶
func (c *CASMappingClient) Hooks() []Hook
Hooks returns the client hooks.
func (*CASMappingClient) Intercept ¶
func (c *CASMappingClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `casmapping.Intercept(f(g(h())))`.
func (*CASMappingClient) Interceptors ¶
func (c *CASMappingClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*CASMappingClient) MapCreateBulk ¶ added in v0.91.6
func (c *CASMappingClient) MapCreateBulk(slice any, setFunc func(*CASMappingCreate, int)) *CASMappingCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*CASMappingClient) Query ¶
func (c *CASMappingClient) Query() *CASMappingQuery
Query returns a query builder for CASMapping.
func (*CASMappingClient) QueryCasBackend ¶
func (c *CASMappingClient) QueryCasBackend(cm *CASMapping) *CASBackendQuery
QueryCasBackend queries the cas_backend edge of a CASMapping.
func (*CASMappingClient) QueryOrganization ¶
func (c *CASMappingClient) QueryOrganization(cm *CASMapping) *OrganizationQuery
QueryOrganization queries the organization edge of a CASMapping.
func (*CASMappingClient) QueryWorkflowRun ¶
func (c *CASMappingClient) QueryWorkflowRun(cm *CASMapping) *WorkflowRunQuery
QueryWorkflowRun queries the workflow_run edge of a CASMapping.
func (*CASMappingClient) Update ¶
func (c *CASMappingClient) Update() *CASMappingUpdate
Update returns an update builder for CASMapping.
func (*CASMappingClient) UpdateOne ¶
func (c *CASMappingClient) UpdateOne(cm *CASMapping) *CASMappingUpdateOne
UpdateOne returns an update builder for the given entity.
func (*CASMappingClient) UpdateOneID ¶
func (c *CASMappingClient) UpdateOneID(id uuid.UUID) *CASMappingUpdateOne
UpdateOneID returns an update builder for the given id.
func (*CASMappingClient) Use ¶
func (c *CASMappingClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `casmapping.Hooks(f(g(h())))`.
type CASMappingCreate ¶
type CASMappingCreate struct {
// contains filtered or unexported fields
}
CASMappingCreate is the builder for creating a CASMapping entity.
func (*CASMappingCreate) Exec ¶
func (cmc *CASMappingCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*CASMappingCreate) ExecX ¶
func (cmc *CASMappingCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CASMappingCreate) Mutation ¶
func (cmc *CASMappingCreate) Mutation() *CASMappingMutation
Mutation returns the CASMappingMutation object of the builder.
func (*CASMappingCreate) Save ¶
func (cmc *CASMappingCreate) Save(ctx context.Context) (*CASMapping, error)
Save creates the CASMapping in the database.
func (*CASMappingCreate) SaveX ¶
func (cmc *CASMappingCreate) SaveX(ctx context.Context) *CASMapping
SaveX calls Save and panics if Save returns an error.
func (*CASMappingCreate) SetCasBackend ¶
func (cmc *CASMappingCreate) SetCasBackend(c *CASBackend) *CASMappingCreate
SetCasBackend sets the "cas_backend" edge to the CASBackend entity.
func (*CASMappingCreate) SetCasBackendID ¶
func (cmc *CASMappingCreate) SetCasBackendID(id uuid.UUID) *CASMappingCreate
SetCasBackendID sets the "cas_backend" edge to the CASBackend entity by ID.
func (*CASMappingCreate) SetCreatedAt ¶
func (cmc *CASMappingCreate) SetCreatedAt(t time.Time) *CASMappingCreate
SetCreatedAt sets the "created_at" field.
func (*CASMappingCreate) SetDigest ¶
func (cmc *CASMappingCreate) SetDigest(s string) *CASMappingCreate
SetDigest sets the "digest" field.
func (*CASMappingCreate) SetID ¶
func (cmc *CASMappingCreate) SetID(u uuid.UUID) *CASMappingCreate
SetID sets the "id" field.
func (*CASMappingCreate) SetNillableCreatedAt ¶
func (cmc *CASMappingCreate) SetNillableCreatedAt(t *time.Time) *CASMappingCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*CASMappingCreate) SetNillableID ¶
func (cmc *CASMappingCreate) SetNillableID(u *uuid.UUID) *CASMappingCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*CASMappingCreate) SetNillableWorkflowRunID ¶
func (cmc *CASMappingCreate) SetNillableWorkflowRunID(id *uuid.UUID) *CASMappingCreate
SetNillableWorkflowRunID sets the "workflow_run" edge to the WorkflowRun entity by ID if the given value is not nil.
func (*CASMappingCreate) SetOrganization ¶
func (cmc *CASMappingCreate) SetOrganization(o *Organization) *CASMappingCreate
SetOrganization sets the "organization" edge to the Organization entity.
func (*CASMappingCreate) SetOrganizationID ¶
func (cmc *CASMappingCreate) SetOrganizationID(id uuid.UUID) *CASMappingCreate
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*CASMappingCreate) SetWorkflowRun ¶
func (cmc *CASMappingCreate) SetWorkflowRun(w *WorkflowRun) *CASMappingCreate
SetWorkflowRun sets the "workflow_run" edge to the WorkflowRun entity.
func (*CASMappingCreate) SetWorkflowRunID ¶
func (cmc *CASMappingCreate) SetWorkflowRunID(id uuid.UUID) *CASMappingCreate
SetWorkflowRunID sets the "workflow_run" edge to the WorkflowRun entity by ID.
type CASMappingCreateBulk ¶
type CASMappingCreateBulk struct {
// contains filtered or unexported fields
}
CASMappingCreateBulk is the builder for creating many CASMapping entities in bulk.
func (*CASMappingCreateBulk) Exec ¶
func (cmcb *CASMappingCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*CASMappingCreateBulk) ExecX ¶
func (cmcb *CASMappingCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CASMappingCreateBulk) Save ¶
func (cmcb *CASMappingCreateBulk) Save(ctx context.Context) ([]*CASMapping, error)
Save creates the CASMapping entities in the database.
func (*CASMappingCreateBulk) SaveX ¶
func (cmcb *CASMappingCreateBulk) SaveX(ctx context.Context) []*CASMapping
SaveX is like Save, but panics if an error occurs.
type CASMappingDelete ¶
type CASMappingDelete struct {
// contains filtered or unexported fields
}
CASMappingDelete is the builder for deleting a CASMapping entity.
func (*CASMappingDelete) Exec ¶
func (cmd *CASMappingDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*CASMappingDelete) ExecX ¶
func (cmd *CASMappingDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*CASMappingDelete) Where ¶
func (cmd *CASMappingDelete) Where(ps ...predicate.CASMapping) *CASMappingDelete
Where appends a list predicates to the CASMappingDelete builder.
type CASMappingDeleteOne ¶
type CASMappingDeleteOne struct {
// contains filtered or unexported fields
}
CASMappingDeleteOne is the builder for deleting a single CASMapping entity.
func (*CASMappingDeleteOne) Exec ¶
func (cmdo *CASMappingDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*CASMappingDeleteOne) ExecX ¶
func (cmdo *CASMappingDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CASMappingDeleteOne) Where ¶
func (cmdo *CASMappingDeleteOne) Where(ps ...predicate.CASMapping) *CASMappingDeleteOne
Where appends a list predicates to the CASMappingDelete builder.
type CASMappingEdges ¶
type CASMappingEdges struct { // CasBackend holds the value of the cas_backend edge. CasBackend *CASBackend `json:"cas_backend,omitempty"` // WorkflowRun holds the value of the workflow_run edge. WorkflowRun *WorkflowRun `json:"workflow_run,omitempty"` // Organization holds the value of the organization edge. Organization *Organization `json:"organization,omitempty"` // contains filtered or unexported fields }
CASMappingEdges holds the relations/edges for other nodes in the graph.
func (CASMappingEdges) CasBackendOrErr ¶
func (e CASMappingEdges) CasBackendOrErr() (*CASBackend, error)
CasBackendOrErr returns the CasBackend value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (CASMappingEdges) OrganizationOrErr ¶
func (e CASMappingEdges) 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 (CASMappingEdges) WorkflowRunOrErr ¶
func (e CASMappingEdges) WorkflowRunOrErr() (*WorkflowRun, error)
WorkflowRunOrErr returns the WorkflowRun value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type CASMappingGroupBy ¶
type CASMappingGroupBy struct {
// contains filtered or unexported fields
}
CASMappingGroupBy is the group-by builder for CASMapping entities.
func (*CASMappingGroupBy) Aggregate ¶
func (cmgb *CASMappingGroupBy) Aggregate(fns ...AggregateFunc) *CASMappingGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*CASMappingGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CASMappingGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CASMappingGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CASMappingGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CASMappingGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CASMappingGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CASMappingGroupBy) Scan ¶
func (cmgb *CASMappingGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CASMappingGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CASMappingMutation ¶
type CASMappingMutation struct {
// contains filtered or unexported fields
}
CASMappingMutation represents an operation that mutates the CASMapping nodes in the graph.
func (*CASMappingMutation) AddField ¶
func (m *CASMappingMutation) 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 (*CASMappingMutation) AddedEdges ¶
func (m *CASMappingMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*CASMappingMutation) AddedField ¶
func (m *CASMappingMutation) 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 (*CASMappingMutation) AddedFields ¶
func (m *CASMappingMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*CASMappingMutation) AddedIDs ¶
func (m *CASMappingMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*CASMappingMutation) CasBackendCleared ¶
func (m *CASMappingMutation) CasBackendCleared() bool
CasBackendCleared reports if the "cas_backend" edge to the CASBackend entity was cleared.
func (*CASMappingMutation) CasBackendID ¶
func (m *CASMappingMutation) CasBackendID() (id uuid.UUID, exists bool)
CasBackendID returns the "cas_backend" edge ID in the mutation.
func (*CASMappingMutation) CasBackendIDs ¶
func (m *CASMappingMutation) CasBackendIDs() (ids []uuid.UUID)
CasBackendIDs returns the "cas_backend" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use CasBackendID instead. It exists only for internal usage by the builders.
func (*CASMappingMutation) ClearCasBackend ¶
func (m *CASMappingMutation) ClearCasBackend()
ClearCasBackend clears the "cas_backend" edge to the CASBackend entity.
func (*CASMappingMutation) ClearEdge ¶
func (m *CASMappingMutation) 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 (*CASMappingMutation) ClearField ¶
func (m *CASMappingMutation) 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 (*CASMappingMutation) ClearOrganization ¶
func (m *CASMappingMutation) ClearOrganization()
ClearOrganization clears the "organization" edge to the Organization entity.
func (*CASMappingMutation) ClearWorkflowRun ¶
func (m *CASMappingMutation) ClearWorkflowRun()
ClearWorkflowRun clears the "workflow_run" edge to the WorkflowRun entity.
func (*CASMappingMutation) ClearedEdges ¶
func (m *CASMappingMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*CASMappingMutation) ClearedFields ¶
func (m *CASMappingMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (CASMappingMutation) Client ¶
func (m CASMappingMutation) 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 (*CASMappingMutation) CreatedAt ¶
func (m *CASMappingMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*CASMappingMutation) Digest ¶
func (m *CASMappingMutation) Digest() (r string, exists bool)
Digest returns the value of the "digest" field in the mutation.
func (*CASMappingMutation) EdgeCleared ¶
func (m *CASMappingMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*CASMappingMutation) Field ¶
func (m *CASMappingMutation) 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 (*CASMappingMutation) FieldCleared ¶
func (m *CASMappingMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*CASMappingMutation) Fields ¶
func (m *CASMappingMutation) 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 (*CASMappingMutation) ID ¶
func (m *CASMappingMutation) 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 (*CASMappingMutation) 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 (*CASMappingMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the CASMapping entity. If the CASMapping 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 (*CASMappingMutation) OldDigest ¶
func (m *CASMappingMutation) OldDigest(ctx context.Context) (v string, err error)
OldDigest returns the old "digest" field's value of the CASMapping entity. If the CASMapping 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 (*CASMappingMutation) 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 (*CASMappingMutation) OrganizationCleared ¶
func (m *CASMappingMutation) OrganizationCleared() bool
OrganizationCleared reports if the "organization" edge to the Organization entity was cleared.
func (*CASMappingMutation) OrganizationID ¶
func (m *CASMappingMutation) OrganizationID() (id uuid.UUID, exists bool)
OrganizationID returns the "organization" edge ID in the mutation.
func (*CASMappingMutation) OrganizationIDs ¶
func (m *CASMappingMutation) 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 (*CASMappingMutation) RemovedEdges ¶
func (m *CASMappingMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*CASMappingMutation) RemovedIDs ¶
func (m *CASMappingMutation) 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 (*CASMappingMutation) ResetCasBackend ¶
func (m *CASMappingMutation) ResetCasBackend()
ResetCasBackend resets all changes to the "cas_backend" edge.
func (*CASMappingMutation) ResetCreatedAt ¶
func (m *CASMappingMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*CASMappingMutation) ResetDigest ¶
func (m *CASMappingMutation) ResetDigest()
ResetDigest resets all changes to the "digest" field.
func (*CASMappingMutation) ResetEdge ¶
func (m *CASMappingMutation) 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 (*CASMappingMutation) ResetField ¶
func (m *CASMappingMutation) 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 (*CASMappingMutation) ResetOrganization ¶
func (m *CASMappingMutation) ResetOrganization()
ResetOrganization resets all changes to the "organization" edge.
func (*CASMappingMutation) ResetWorkflowRun ¶
func (m *CASMappingMutation) ResetWorkflowRun()
ResetWorkflowRun resets all changes to the "workflow_run" edge.
func (*CASMappingMutation) SetCasBackendID ¶
func (m *CASMappingMutation) SetCasBackendID(id uuid.UUID)
SetCasBackendID sets the "cas_backend" edge to the CASBackend entity by id.
func (*CASMappingMutation) SetCreatedAt ¶
func (m *CASMappingMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*CASMappingMutation) SetDigest ¶
func (m *CASMappingMutation) SetDigest(s string)
SetDigest sets the "digest" field.
func (*CASMappingMutation) SetField ¶
func (m *CASMappingMutation) 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 (*CASMappingMutation) SetID ¶
func (m *CASMappingMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of CASMapping entities.
func (*CASMappingMutation) SetOp ¶
func (m *CASMappingMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*CASMappingMutation) SetOrganizationID ¶
func (m *CASMappingMutation) SetOrganizationID(id uuid.UUID)
SetOrganizationID sets the "organization" edge to the Organization entity by id.
func (*CASMappingMutation) SetWorkflowRunID ¶
func (m *CASMappingMutation) SetWorkflowRunID(id uuid.UUID)
SetWorkflowRunID sets the "workflow_run" edge to the WorkflowRun entity by id.
func (CASMappingMutation) Tx ¶
func (m CASMappingMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*CASMappingMutation) Type ¶
func (m *CASMappingMutation) Type() string
Type returns the node type of this mutation (CASMapping).
func (*CASMappingMutation) Where ¶
func (m *CASMappingMutation) Where(ps ...predicate.CASMapping)
Where appends a list predicates to the CASMappingMutation builder.
func (*CASMappingMutation) WhereP ¶
func (m *CASMappingMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the CASMappingMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
func (*CASMappingMutation) WorkflowRunCleared ¶
func (m *CASMappingMutation) WorkflowRunCleared() bool
WorkflowRunCleared reports if the "workflow_run" edge to the WorkflowRun entity was cleared.
func (*CASMappingMutation) WorkflowRunID ¶
func (m *CASMappingMutation) WorkflowRunID() (id uuid.UUID, exists bool)
WorkflowRunID returns the "workflow_run" edge ID in the mutation.
func (*CASMappingMutation) WorkflowRunIDs ¶
func (m *CASMappingMutation) WorkflowRunIDs() (ids []uuid.UUID)
WorkflowRunIDs returns the "workflow_run" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use WorkflowRunID instead. It exists only for internal usage by the builders.
type CASMappingQuery ¶
type CASMappingQuery struct {
// contains filtered or unexported fields
}
CASMappingQuery is the builder for querying CASMapping entities.
func (*CASMappingQuery) Aggregate ¶
func (cmq *CASMappingQuery) Aggregate(fns ...AggregateFunc) *CASMappingSelect
Aggregate returns a CASMappingSelect configured with the given aggregations.
func (*CASMappingQuery) All ¶
func (cmq *CASMappingQuery) All(ctx context.Context) ([]*CASMapping, error)
All executes the query and returns a list of CASMappings.
func (*CASMappingQuery) AllX ¶
func (cmq *CASMappingQuery) AllX(ctx context.Context) []*CASMapping
AllX is like All, but panics if an error occurs.
func (*CASMappingQuery) Clone ¶
func (cmq *CASMappingQuery) Clone() *CASMappingQuery
Clone returns a duplicate of the CASMappingQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*CASMappingQuery) Count ¶
func (cmq *CASMappingQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*CASMappingQuery) CountX ¶
func (cmq *CASMappingQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*CASMappingQuery) Exist ¶
func (cmq *CASMappingQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*CASMappingQuery) ExistX ¶
func (cmq *CASMappingQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*CASMappingQuery) First ¶
func (cmq *CASMappingQuery) First(ctx context.Context) (*CASMapping, error)
First returns the first CASMapping entity from the query. Returns a *NotFoundError when no CASMapping was found.
func (*CASMappingQuery) FirstID ¶
FirstID returns the first CASMapping ID from the query. Returns a *NotFoundError when no CASMapping ID was found.
func (*CASMappingQuery) FirstIDX ¶
func (cmq *CASMappingQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*CASMappingQuery) FirstX ¶
func (cmq *CASMappingQuery) FirstX(ctx context.Context) *CASMapping
FirstX is like First, but panics if an error occurs.
func (*CASMappingQuery) ForShare ¶ added in v0.94.3
func (cmq *CASMappingQuery) ForShare(opts ...sql.LockOption) *CASMappingQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*CASMappingQuery) ForUpdate ¶ added in v0.94.3
func (cmq *CASMappingQuery) ForUpdate(opts ...sql.LockOption) *CASMappingQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
func (*CASMappingQuery) GroupBy ¶
func (cmq *CASMappingQuery) GroupBy(field string, fields ...string) *CASMappingGroupBy
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 { Digest string `json:"digest,omitempty"` Count int `json:"count,omitempty"` } client.CASMapping.Query(). GroupBy(casmapping.FieldDigest). Aggregate(ent.Count()). Scan(ctx, &v)
func (*CASMappingQuery) IDsX ¶
func (cmq *CASMappingQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*CASMappingQuery) Limit ¶
func (cmq *CASMappingQuery) Limit(limit int) *CASMappingQuery
Limit the number of records to be returned by this query.
func (*CASMappingQuery) Modify ¶
func (cmq *CASMappingQuery) Modify(modifiers ...func(s *sql.Selector)) *CASMappingSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*CASMappingQuery) Offset ¶
func (cmq *CASMappingQuery) Offset(offset int) *CASMappingQuery
Offset to start from.
func (*CASMappingQuery) Only ¶
func (cmq *CASMappingQuery) Only(ctx context.Context) (*CASMapping, error)
Only returns a single CASMapping entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one CASMapping entity is found. Returns a *NotFoundError when no CASMapping entities are found.
func (*CASMappingQuery) OnlyID ¶
OnlyID is like Only, but returns the only CASMapping ID in the query. Returns a *NotSingularError when more than one CASMapping ID is found. Returns a *NotFoundError when no entities are found.
func (*CASMappingQuery) OnlyIDX ¶
func (cmq *CASMappingQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*CASMappingQuery) OnlyX ¶
func (cmq *CASMappingQuery) OnlyX(ctx context.Context) *CASMapping
OnlyX is like Only, but panics if an error occurs.
func (*CASMappingQuery) Order ¶
func (cmq *CASMappingQuery) Order(o ...casmapping.OrderOption) *CASMappingQuery
Order specifies how the records should be ordered.
func (*CASMappingQuery) QueryCasBackend ¶
func (cmq *CASMappingQuery) QueryCasBackend() *CASBackendQuery
QueryCasBackend chains the current query on the "cas_backend" edge.
func (*CASMappingQuery) QueryOrganization ¶
func (cmq *CASMappingQuery) QueryOrganization() *OrganizationQuery
QueryOrganization chains the current query on the "organization" edge.
func (*CASMappingQuery) QueryWorkflowRun ¶
func (cmq *CASMappingQuery) QueryWorkflowRun() *WorkflowRunQuery
QueryWorkflowRun chains the current query on the "workflow_run" edge.
func (*CASMappingQuery) Select ¶
func (cmq *CASMappingQuery) Select(fields ...string) *CASMappingSelect
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 { Digest string `json:"digest,omitempty"` } client.CASMapping.Query(). Select(casmapping.FieldDigest). Scan(ctx, &v)
func (*CASMappingQuery) Unique ¶
func (cmq *CASMappingQuery) Unique(unique bool) *CASMappingQuery
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 (*CASMappingQuery) Where ¶
func (cmq *CASMappingQuery) Where(ps ...predicate.CASMapping) *CASMappingQuery
Where adds a new predicate for the CASMappingQuery builder.
func (*CASMappingQuery) WithCasBackend ¶
func (cmq *CASMappingQuery) WithCasBackend(opts ...func(*CASBackendQuery)) *CASMappingQuery
WithCasBackend tells the query-builder to eager-load the nodes that are connected to the "cas_backend" edge. The optional arguments are used to configure the query builder of the edge.
func (*CASMappingQuery) WithOrganization ¶
func (cmq *CASMappingQuery) WithOrganization(opts ...func(*OrganizationQuery)) *CASMappingQuery
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 (*CASMappingQuery) WithWorkflowRun ¶
func (cmq *CASMappingQuery) WithWorkflowRun(opts ...func(*WorkflowRunQuery)) *CASMappingQuery
WithWorkflowRun tells the query-builder to eager-load the nodes that are connected to the "workflow_run" edge. The optional arguments are used to configure the query builder of the edge.
type CASMappingSelect ¶
type CASMappingSelect struct { *CASMappingQuery // contains filtered or unexported fields }
CASMappingSelect is the builder for selecting fields of CASMapping entities.
func (*CASMappingSelect) Aggregate ¶
func (cms *CASMappingSelect) Aggregate(fns ...AggregateFunc) *CASMappingSelect
Aggregate adds the given aggregation functions to the selector query.
func (*CASMappingSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CASMappingSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CASMappingSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CASMappingSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CASMappingSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CASMappingSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CASMappingSelect) Modify ¶
func (cms *CASMappingSelect) Modify(modifiers ...func(s *sql.Selector)) *CASMappingSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*CASMappingSelect) Scan ¶
func (cms *CASMappingSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CASMappingSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CASMappingUpdate ¶
type CASMappingUpdate struct {
// contains filtered or unexported fields
}
CASMappingUpdate is the builder for updating CASMapping entities.
func (*CASMappingUpdate) Exec ¶
func (cmu *CASMappingUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*CASMappingUpdate) ExecX ¶
func (cmu *CASMappingUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CASMappingUpdate) Modify ¶
func (cmu *CASMappingUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *CASMappingUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*CASMappingUpdate) Mutation ¶
func (cmu *CASMappingUpdate) Mutation() *CASMappingMutation
Mutation returns the CASMappingMutation object of the builder.
func (*CASMappingUpdate) Save ¶
func (cmu *CASMappingUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*CASMappingUpdate) SaveX ¶
func (cmu *CASMappingUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*CASMappingUpdate) Where ¶
func (cmu *CASMappingUpdate) Where(ps ...predicate.CASMapping) *CASMappingUpdate
Where appends a list predicates to the CASMappingUpdate builder.
type CASMappingUpdateOne ¶
type CASMappingUpdateOne struct {
// contains filtered or unexported fields
}
CASMappingUpdateOne is the builder for updating a single CASMapping entity.
func (*CASMappingUpdateOne) Exec ¶
func (cmuo *CASMappingUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*CASMappingUpdateOne) ExecX ¶
func (cmuo *CASMappingUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CASMappingUpdateOne) Modify ¶
func (cmuo *CASMappingUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *CASMappingUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*CASMappingUpdateOne) Mutation ¶
func (cmuo *CASMappingUpdateOne) Mutation() *CASMappingMutation
Mutation returns the CASMappingMutation object of the builder.
func (*CASMappingUpdateOne) Save ¶
func (cmuo *CASMappingUpdateOne) Save(ctx context.Context) (*CASMapping, error)
Save executes the query and returns the updated CASMapping entity.
func (*CASMappingUpdateOne) SaveX ¶
func (cmuo *CASMappingUpdateOne) SaveX(ctx context.Context) *CASMapping
SaveX is like Save, but panics if an error occurs.
func (*CASMappingUpdateOne) Select ¶
func (cmuo *CASMappingUpdateOne) Select(field string, fields ...string) *CASMappingUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*CASMappingUpdateOne) Where ¶
func (cmuo *CASMappingUpdateOne) Where(ps ...predicate.CASMapping) *CASMappingUpdateOne
Where appends a list predicates to the CASMappingUpdate builder.
type Client ¶
type Client struct { // Schema is the client for creating, migrating and dropping schema. Schema *migrate.Schema // APIToken is the client for interacting with the APIToken builders. APIToken *APITokenClient // CASBackend is the client for interacting with the CASBackend builders. CASBackend *CASBackendClient // CASMapping is the client for interacting with the CASMapping builders. CASMapping *CASMappingClient // 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 // OrgInvitation is the client for interacting with the OrgInvitation builders. OrgInvitation *OrgInvitationClient // Organization is the client for interacting with the Organization builders. Organization *OrganizationClient // Referrer is the client for interacting with the Referrer builders. Referrer *ReferrerClient // 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(). APIToken. 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"` // Name holds the value of the "name" field. Name string `json:"name,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"` // WorkflowID holds the value of the "workflow_id" field. WorkflowID uuid.UUID `json:"workflow_id,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) MapCreateBulk ¶ added in v0.91.6
func (c *IntegrationAttachmentClient) MapCreateBulk(slice any, setFunc func(*IntegrationAttachmentCreate, int)) *IntegrationAttachmentCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
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 ¶
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(u uuid.UUID) *IntegrationAttachmentCreate
SetWorkflowID sets the "workflow_id" field.
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 ¶
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 ¶
func (m *IntegrationAttachmentMutation) Configuration() (r []byte, exists bool)
Configuration returns the value of the "configuration" field in the mutation.
func (*IntegrationAttachmentMutation) ConfigurationCleared ¶
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 ¶
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) OldWorkflowID ¶ added in v0.96.0
OldWorkflowID returns the old "workflow_id" 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) 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 ¶
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) ResetWorkflowID ¶ added in v0.96.0
func (m *IntegrationAttachmentMutation) ResetWorkflowID()
ResetWorkflowID resets all changes to the "workflow_id" field.
func (*IntegrationAttachmentMutation) SetConfiguration ¶
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(u uuid.UUID)
SetWorkflowID sets the "workflow_id" field.
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() (r uuid.UUID, exists bool)
WorkflowID returns the value of the "workflow_id" field 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) ForShare ¶ added in v0.94.3
func (iaq *IntegrationAttachmentQuery) ForShare(opts ...sql.LockOption) *IntegrationAttachmentQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*IntegrationAttachmentQuery) ForUpdate ¶ added in v0.94.3
func (iaq *IntegrationAttachmentQuery) ForUpdate(opts ...sql.LockOption) *IntegrationAttachmentQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
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) Modify ¶
func (iaq *IntegrationAttachmentQuery) Modify(modifiers ...func(s *sql.Selector)) *IntegrationAttachmentSelect
Modify adds a query modifier for attaching custom logic to queries.
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 ...integrationattachment.OrderOption) *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) Modify ¶
func (ias *IntegrationAttachmentSelect) Modify(modifiers ...func(s *sql.Selector)) *IntegrationAttachmentSelect
Modify adds a query modifier for attaching custom logic to queries.
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 ¶
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) Modify ¶
func (iau *IntegrationAttachmentUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *IntegrationAttachmentUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
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 ¶
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) SetNillableWorkflowID ¶ added in v0.96.0
func (iau *IntegrationAttachmentUpdate) SetNillableWorkflowID(u *uuid.UUID) *IntegrationAttachmentUpdate
SetNillableWorkflowID sets the "workflow_id" 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(u uuid.UUID) *IntegrationAttachmentUpdate
SetWorkflowID sets the "workflow_id" field.
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 ¶
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) Modify ¶
func (iauo *IntegrationAttachmentUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *IntegrationAttachmentUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
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 ¶
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) SetNillableWorkflowID ¶ added in v0.96.0
func (iauo *IntegrationAttachmentUpdateOne) SetNillableWorkflowID(u *uuid.UUID) *IntegrationAttachmentUpdateOne
SetNillableWorkflowID sets the "workflow_id" 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(u uuid.UUID) *IntegrationAttachmentUpdateOne
SetWorkflowID sets the "workflow_id" field.
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) MapCreateBulk ¶ added in v0.91.6
func (c *IntegrationClient) MapCreateBulk(slice any, setFunc func(*IntegrationCreate, int)) *IntegrationCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
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 ¶
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 ¶
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) SetName ¶
func (ic *IntegrationCreate) SetName(s string) *IntegrationCreate
SetName sets the "name" 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 ¶
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 ¶
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 ¶
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 ¶
func (m *IntegrationMutation) Configuration() (r []byte, exists bool)
Configuration returns the value of the "configuration" field in the mutation.
func (*IntegrationMutation) ConfigurationCleared ¶
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 ¶
func (m *IntegrationMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*IntegrationMutation) DescriptionCleared ¶
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) Name ¶
func (m *IntegrationMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*IntegrationMutation) OldConfiguration ¶
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 ¶
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) OldName ¶
func (m *IntegrationMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "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) 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 ¶
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 ¶
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) ResetName ¶
func (m *IntegrationMutation) ResetName()
ResetName resets all changes to the "name" 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 ¶
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 ¶
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) SetName ¶
func (m *IntegrationMutation) SetName(s string)
SetName sets the "name" 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) ForShare ¶ added in v0.94.3
func (iq *IntegrationQuery) ForShare(opts ...sql.LockOption) *IntegrationQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*IntegrationQuery) ForUpdate ¶ added in v0.94.3
func (iq *IntegrationQuery) ForUpdate(opts ...sql.LockOption) *IntegrationQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
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 { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.Integration.Query(). GroupBy(integration.FieldName). 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) Modify ¶
func (iq *IntegrationQuery) Modify(modifiers ...func(s *sql.Selector)) *IntegrationSelect
Modify adds a query modifier for attaching custom logic to queries.
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 ...integration.OrderOption) *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 { Name string `json:"name,omitempty"` } client.Integration.Query(). Select(integration.FieldName). 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) Modify ¶
func (is *IntegrationSelect) Modify(modifiers ...func(s *sql.Selector)) *IntegrationSelect
Modify adds a query modifier for attaching custom logic to queries.
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 ¶
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 ¶
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) Modify ¶
func (iu *IntegrationUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *IntegrationUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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) Modify ¶
func (iuo *IntegrationUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *IntegrationUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
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 ¶
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 ¶
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 ¶
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"` // Role holds the value of the "role" field. Role authz.Role `json:"role,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) MapCreateBulk ¶ added in v0.91.6
func (c *MembershipClient) MapCreateBulk(slice any, setFunc func(*MembershipCreate, int)) *MembershipCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
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) SetRole ¶
func (mc *MembershipCreate) SetRole(a authz.Role) *MembershipCreate
SetRole sets the "role" field.
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) OldRole ¶
OldRole returns the old "role" 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) 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) ResetRole ¶
func (m *MembershipMutation) ResetRole()
ResetRole resets all changes to the "role" field.
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) Role ¶
func (m *MembershipMutation) Role() (r authz.Role, exists bool)
Role returns the value of the "role" field in the mutation.
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) SetRole ¶
func (m *MembershipMutation) SetRole(a authz.Role)
SetRole sets the "role" field.
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) ForShare ¶ added in v0.94.3
func (mq *MembershipQuery) ForShare(opts ...sql.LockOption) *MembershipQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*MembershipQuery) ForUpdate ¶ added in v0.94.3
func (mq *MembershipQuery) ForUpdate(opts ...sql.LockOption) *MembershipQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
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) Modify ¶
func (mq *MembershipQuery) Modify(modifiers ...func(s *sql.Selector)) *MembershipSelect
Modify adds a query modifier for attaching custom logic to queries.
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 ...membership.OrderOption) *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) Modify ¶
func (ms *MembershipSelect) Modify(modifiers ...func(s *sql.Selector)) *MembershipSelect
Modify adds a query modifier for attaching custom logic to queries.
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) Modify ¶
func (mu *MembershipUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *MembershipUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
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) SetNillableRole ¶ added in v0.91.6
func (mu *MembershipUpdate) SetNillableRole(a *authz.Role) *MembershipUpdate
SetNillableRole sets the "role" 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) SetRole ¶
func (mu *MembershipUpdate) SetRole(a authz.Role) *MembershipUpdate
SetRole sets the "role" field.
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) Modify ¶
func (muo *MembershipUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *MembershipUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
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) SetNillableRole ¶ added in v0.91.6
func (muo *MembershipUpdateOne) SetNillableRole(a *authz.Role) *MembershipUpdateOne
SetNillableRole sets the "role" 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) SetRole ¶
func (muo *MembershipUpdateOne) SetRole(a authz.Role) *MembershipUpdateOne
SetRole sets the "role" field.
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 OrderFunc ¶
OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.
type OrgInvitation ¶
type OrgInvitation struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // ReceiverEmail holds the value of the "receiver_email" field. ReceiverEmail string `json:"receiver_email,omitempty"` // Status holds the value of the "status" field. Status biz.OrgInvitationStatus `json:"status,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"` // OrganizationID holds the value of the "organization_id" field. OrganizationID uuid.UUID `json:"organization_id,omitempty"` // SenderID holds the value of the "sender_id" field. SenderID uuid.UUID `json:"sender_id,omitempty"` // Role holds the value of the "role" field. Role authz.Role `json:"role,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the OrgInvitationQuery when eager-loading is set. Edges OrgInvitationEdges `json:"edges"` // contains filtered or unexported fields }
OrgInvitation is the model entity for the OrgInvitation schema.
func (*OrgInvitation) QueryOrganization ¶
func (oi *OrgInvitation) QueryOrganization() *OrganizationQuery
QueryOrganization queries the "organization" edge of the OrgInvitation entity.
func (*OrgInvitation) QuerySender ¶
func (oi *OrgInvitation) QuerySender() *UserQuery
QuerySender queries the "sender" edge of the OrgInvitation entity.
func (*OrgInvitation) String ¶
func (oi *OrgInvitation) String() string
String implements the fmt.Stringer.
func (*OrgInvitation) Unwrap ¶
func (oi *OrgInvitation) Unwrap() *OrgInvitation
Unwrap unwraps the OrgInvitation 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 (*OrgInvitation) Update ¶
func (oi *OrgInvitation) Update() *OrgInvitationUpdateOne
Update returns a builder for updating this OrgInvitation. Note that you need to call OrgInvitation.Unwrap() before calling this method if this OrgInvitation was returned from a transaction, and the transaction was committed or rolled back.
type OrgInvitationClient ¶
type OrgInvitationClient struct {
// contains filtered or unexported fields
}
OrgInvitationClient is a client for the OrgInvitation schema.
func NewOrgInvitationClient ¶
func NewOrgInvitationClient(c config) *OrgInvitationClient
NewOrgInvitationClient returns a client for the OrgInvitation from the given config.
func (*OrgInvitationClient) Create ¶
func (c *OrgInvitationClient) Create() *OrgInvitationCreate
Create returns a builder for creating a OrgInvitation entity.
func (*OrgInvitationClient) CreateBulk ¶
func (c *OrgInvitationClient) CreateBulk(builders ...*OrgInvitationCreate) *OrgInvitationCreateBulk
CreateBulk returns a builder for creating a bulk of OrgInvitation entities.
func (*OrgInvitationClient) Delete ¶
func (c *OrgInvitationClient) Delete() *OrgInvitationDelete
Delete returns a delete builder for OrgInvitation.
func (*OrgInvitationClient) DeleteOne ¶
func (c *OrgInvitationClient) DeleteOne(oi *OrgInvitation) *OrgInvitationDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*OrgInvitationClient) DeleteOneID ¶
func (c *OrgInvitationClient) DeleteOneID(id uuid.UUID) *OrgInvitationDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*OrgInvitationClient) Get ¶
func (c *OrgInvitationClient) Get(ctx context.Context, id uuid.UUID) (*OrgInvitation, error)
Get returns a OrgInvitation entity by its id.
func (*OrgInvitationClient) GetX ¶
func (c *OrgInvitationClient) GetX(ctx context.Context, id uuid.UUID) *OrgInvitation
GetX is like Get, but panics if an error occurs.
func (*OrgInvitationClient) Hooks ¶
func (c *OrgInvitationClient) Hooks() []Hook
Hooks returns the client hooks.
func (*OrgInvitationClient) Intercept ¶
func (c *OrgInvitationClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `orginvitation.Intercept(f(g(h())))`.
func (*OrgInvitationClient) Interceptors ¶
func (c *OrgInvitationClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*OrgInvitationClient) MapCreateBulk ¶ added in v0.91.6
func (c *OrgInvitationClient) MapCreateBulk(slice any, setFunc func(*OrgInvitationCreate, int)) *OrgInvitationCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*OrgInvitationClient) Query ¶
func (c *OrgInvitationClient) Query() *OrgInvitationQuery
Query returns a query builder for OrgInvitation.
func (*OrgInvitationClient) QueryOrganization ¶
func (c *OrgInvitationClient) QueryOrganization(oi *OrgInvitation) *OrganizationQuery
QueryOrganization queries the organization edge of a OrgInvitation.
func (*OrgInvitationClient) QuerySender ¶
func (c *OrgInvitationClient) QuerySender(oi *OrgInvitation) *UserQuery
QuerySender queries the sender edge of a OrgInvitation.
func (*OrgInvitationClient) Update ¶
func (c *OrgInvitationClient) Update() *OrgInvitationUpdate
Update returns an update builder for OrgInvitation.
func (*OrgInvitationClient) UpdateOne ¶
func (c *OrgInvitationClient) UpdateOne(oi *OrgInvitation) *OrgInvitationUpdateOne
UpdateOne returns an update builder for the given entity.
func (*OrgInvitationClient) UpdateOneID ¶
func (c *OrgInvitationClient) UpdateOneID(id uuid.UUID) *OrgInvitationUpdateOne
UpdateOneID returns an update builder for the given id.
func (*OrgInvitationClient) Use ¶
func (c *OrgInvitationClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `orginvitation.Hooks(f(g(h())))`.
type OrgInvitationCreate ¶
type OrgInvitationCreate struct {
// contains filtered or unexported fields
}
OrgInvitationCreate is the builder for creating a OrgInvitation entity.
func (*OrgInvitationCreate) Exec ¶
func (oic *OrgInvitationCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*OrgInvitationCreate) ExecX ¶
func (oic *OrgInvitationCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrgInvitationCreate) Mutation ¶
func (oic *OrgInvitationCreate) Mutation() *OrgInvitationMutation
Mutation returns the OrgInvitationMutation object of the builder.
func (*OrgInvitationCreate) Save ¶
func (oic *OrgInvitationCreate) Save(ctx context.Context) (*OrgInvitation, error)
Save creates the OrgInvitation in the database.
func (*OrgInvitationCreate) SaveX ¶
func (oic *OrgInvitationCreate) SaveX(ctx context.Context) *OrgInvitation
SaveX calls Save and panics if Save returns an error.
func (*OrgInvitationCreate) SetCreatedAt ¶
func (oic *OrgInvitationCreate) SetCreatedAt(t time.Time) *OrgInvitationCreate
SetCreatedAt sets the "created_at" field.
func (*OrgInvitationCreate) SetDeletedAt ¶
func (oic *OrgInvitationCreate) SetDeletedAt(t time.Time) *OrgInvitationCreate
SetDeletedAt sets the "deleted_at" field.
func (*OrgInvitationCreate) SetID ¶
func (oic *OrgInvitationCreate) SetID(u uuid.UUID) *OrgInvitationCreate
SetID sets the "id" field.
func (*OrgInvitationCreate) SetNillableCreatedAt ¶
func (oic *OrgInvitationCreate) SetNillableCreatedAt(t *time.Time) *OrgInvitationCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*OrgInvitationCreate) SetNillableDeletedAt ¶
func (oic *OrgInvitationCreate) SetNillableDeletedAt(t *time.Time) *OrgInvitationCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*OrgInvitationCreate) SetNillableID ¶
func (oic *OrgInvitationCreate) SetNillableID(u *uuid.UUID) *OrgInvitationCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*OrgInvitationCreate) SetNillableRole ¶
func (oic *OrgInvitationCreate) SetNillableRole(a *authz.Role) *OrgInvitationCreate
SetNillableRole sets the "role" field if the given value is not nil.
func (*OrgInvitationCreate) SetNillableStatus ¶
func (oic *OrgInvitationCreate) SetNillableStatus(bis *biz.OrgInvitationStatus) *OrgInvitationCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*OrgInvitationCreate) SetOrganization ¶
func (oic *OrgInvitationCreate) SetOrganization(o *Organization) *OrgInvitationCreate
SetOrganization sets the "organization" edge to the Organization entity.
func (*OrgInvitationCreate) SetOrganizationID ¶
func (oic *OrgInvitationCreate) SetOrganizationID(u uuid.UUID) *OrgInvitationCreate
SetOrganizationID sets the "organization_id" field.
func (*OrgInvitationCreate) SetReceiverEmail ¶
func (oic *OrgInvitationCreate) SetReceiverEmail(s string) *OrgInvitationCreate
SetReceiverEmail sets the "receiver_email" field.
func (*OrgInvitationCreate) SetRole ¶
func (oic *OrgInvitationCreate) SetRole(a authz.Role) *OrgInvitationCreate
SetRole sets the "role" field.
func (*OrgInvitationCreate) SetSender ¶
func (oic *OrgInvitationCreate) SetSender(u *User) *OrgInvitationCreate
SetSender sets the "sender" edge to the User entity.
func (*OrgInvitationCreate) SetSenderID ¶
func (oic *OrgInvitationCreate) SetSenderID(u uuid.UUID) *OrgInvitationCreate
SetSenderID sets the "sender_id" field.
func (*OrgInvitationCreate) SetStatus ¶
func (oic *OrgInvitationCreate) SetStatus(bis biz.OrgInvitationStatus) *OrgInvitationCreate
SetStatus sets the "status" field.
type OrgInvitationCreateBulk ¶
type OrgInvitationCreateBulk struct {
// contains filtered or unexported fields
}
OrgInvitationCreateBulk is the builder for creating many OrgInvitation entities in bulk.
func (*OrgInvitationCreateBulk) Exec ¶
func (oicb *OrgInvitationCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*OrgInvitationCreateBulk) ExecX ¶
func (oicb *OrgInvitationCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrgInvitationCreateBulk) Save ¶
func (oicb *OrgInvitationCreateBulk) Save(ctx context.Context) ([]*OrgInvitation, error)
Save creates the OrgInvitation entities in the database.
func (*OrgInvitationCreateBulk) SaveX ¶
func (oicb *OrgInvitationCreateBulk) SaveX(ctx context.Context) []*OrgInvitation
SaveX is like Save, but panics if an error occurs.
type OrgInvitationDelete ¶
type OrgInvitationDelete struct {
// contains filtered or unexported fields
}
OrgInvitationDelete is the builder for deleting a OrgInvitation entity.
func (*OrgInvitationDelete) Exec ¶
func (oid *OrgInvitationDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*OrgInvitationDelete) ExecX ¶
func (oid *OrgInvitationDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*OrgInvitationDelete) Where ¶
func (oid *OrgInvitationDelete) Where(ps ...predicate.OrgInvitation) *OrgInvitationDelete
Where appends a list predicates to the OrgInvitationDelete builder.
type OrgInvitationDeleteOne ¶
type OrgInvitationDeleteOne struct {
// contains filtered or unexported fields
}
OrgInvitationDeleteOne is the builder for deleting a single OrgInvitation entity.
func (*OrgInvitationDeleteOne) Exec ¶
func (oido *OrgInvitationDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*OrgInvitationDeleteOne) ExecX ¶
func (oido *OrgInvitationDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrgInvitationDeleteOne) Where ¶
func (oido *OrgInvitationDeleteOne) Where(ps ...predicate.OrgInvitation) *OrgInvitationDeleteOne
Where appends a list predicates to the OrgInvitationDelete builder.
type OrgInvitationEdges ¶
type OrgInvitationEdges struct { // Organization holds the value of the organization edge. Organization *Organization `json:"organization,omitempty"` // Sender holds the value of the sender edge. Sender *User `json:"sender,omitempty"` // contains filtered or unexported fields }
OrgInvitationEdges holds the relations/edges for other nodes in the graph.
func (OrgInvitationEdges) OrganizationOrErr ¶
func (e OrgInvitationEdges) 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 (OrgInvitationEdges) SenderOrErr ¶
func (e OrgInvitationEdges) SenderOrErr() (*User, error)
SenderOrErr returns the Sender value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type OrgInvitationGroupBy ¶
type OrgInvitationGroupBy struct {
// contains filtered or unexported fields
}
OrgInvitationGroupBy is the group-by builder for OrgInvitation entities.
func (*OrgInvitationGroupBy) Aggregate ¶
func (oigb *OrgInvitationGroupBy) Aggregate(fns ...AggregateFunc) *OrgInvitationGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*OrgInvitationGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OrgInvitationGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OrgInvitationGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OrgInvitationGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OrgInvitationGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OrgInvitationGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OrgInvitationGroupBy) Scan ¶
func (oigb *OrgInvitationGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OrgInvitationGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OrgInvitationMutation ¶
type OrgInvitationMutation struct {
// contains filtered or unexported fields
}
OrgInvitationMutation represents an operation that mutates the OrgInvitation nodes in the graph.
func (*OrgInvitationMutation) AddField ¶
func (m *OrgInvitationMutation) 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 (*OrgInvitationMutation) AddedEdges ¶
func (m *OrgInvitationMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*OrgInvitationMutation) AddedField ¶
func (m *OrgInvitationMutation) 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 (*OrgInvitationMutation) AddedFields ¶
func (m *OrgInvitationMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*OrgInvitationMutation) AddedIDs ¶
func (m *OrgInvitationMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*OrgInvitationMutation) ClearDeletedAt ¶
func (m *OrgInvitationMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*OrgInvitationMutation) ClearEdge ¶
func (m *OrgInvitationMutation) 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 (*OrgInvitationMutation) ClearField ¶
func (m *OrgInvitationMutation) 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 (*OrgInvitationMutation) ClearOrganization ¶
func (m *OrgInvitationMutation) ClearOrganization()
ClearOrganization clears the "organization" edge to the Organization entity.
func (*OrgInvitationMutation) ClearRole ¶
func (m *OrgInvitationMutation) ClearRole()
ClearRole clears the value of the "role" field.
func (*OrgInvitationMutation) ClearSender ¶
func (m *OrgInvitationMutation) ClearSender()
ClearSender clears the "sender" edge to the User entity.
func (*OrgInvitationMutation) ClearedEdges ¶
func (m *OrgInvitationMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*OrgInvitationMutation) ClearedFields ¶
func (m *OrgInvitationMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (OrgInvitationMutation) Client ¶
func (m OrgInvitationMutation) 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 (*OrgInvitationMutation) CreatedAt ¶
func (m *OrgInvitationMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*OrgInvitationMutation) DeletedAt ¶
func (m *OrgInvitationMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*OrgInvitationMutation) DeletedAtCleared ¶
func (m *OrgInvitationMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*OrgInvitationMutation) EdgeCleared ¶
func (m *OrgInvitationMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*OrgInvitationMutation) Field ¶
func (m *OrgInvitationMutation) 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 (*OrgInvitationMutation) FieldCleared ¶
func (m *OrgInvitationMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*OrgInvitationMutation) Fields ¶
func (m *OrgInvitationMutation) 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 (*OrgInvitationMutation) ID ¶
func (m *OrgInvitationMutation) 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 (*OrgInvitationMutation) 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 (*OrgInvitationMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the OrgInvitation entity. If the OrgInvitation 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 (*OrgInvitationMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the OrgInvitation entity. If the OrgInvitation 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 (*OrgInvitationMutation) 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 (*OrgInvitationMutation) OldOrganizationID ¶
OldOrganizationID returns the old "organization_id" field's value of the OrgInvitation entity. If the OrgInvitation 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 (*OrgInvitationMutation) OldReceiverEmail ¶
func (m *OrgInvitationMutation) OldReceiverEmail(ctx context.Context) (v string, err error)
OldReceiverEmail returns the old "receiver_email" field's value of the OrgInvitation entity. If the OrgInvitation 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 (*OrgInvitationMutation) OldRole ¶
OldRole returns the old "role" field's value of the OrgInvitation entity. If the OrgInvitation 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 (*OrgInvitationMutation) OldSenderID ¶
OldSenderID returns the old "sender_id" field's value of the OrgInvitation entity. If the OrgInvitation 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 (*OrgInvitationMutation) OldStatus ¶
func (m *OrgInvitationMutation) OldStatus(ctx context.Context) (v biz.OrgInvitationStatus, err error)
OldStatus returns the old "status" field's value of the OrgInvitation entity. If the OrgInvitation 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 (*OrgInvitationMutation) Op ¶
func (m *OrgInvitationMutation) Op() Op
Op returns the operation name.
func (*OrgInvitationMutation) OrganizationCleared ¶
func (m *OrgInvitationMutation) OrganizationCleared() bool
OrganizationCleared reports if the "organization" edge to the Organization entity was cleared.
func (*OrgInvitationMutation) OrganizationID ¶
func (m *OrgInvitationMutation) OrganizationID() (r uuid.UUID, exists bool)
OrganizationID returns the value of the "organization_id" field in the mutation.
func (*OrgInvitationMutation) OrganizationIDs ¶
func (m *OrgInvitationMutation) 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 (*OrgInvitationMutation) ReceiverEmail ¶
func (m *OrgInvitationMutation) ReceiverEmail() (r string, exists bool)
ReceiverEmail returns the value of the "receiver_email" field in the mutation.
func (*OrgInvitationMutation) RemovedEdges ¶
func (m *OrgInvitationMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*OrgInvitationMutation) RemovedIDs ¶
func (m *OrgInvitationMutation) 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 (*OrgInvitationMutation) ResetCreatedAt ¶
func (m *OrgInvitationMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*OrgInvitationMutation) ResetDeletedAt ¶
func (m *OrgInvitationMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*OrgInvitationMutation) ResetEdge ¶
func (m *OrgInvitationMutation) 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 (*OrgInvitationMutation) ResetField ¶
func (m *OrgInvitationMutation) 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 (*OrgInvitationMutation) ResetOrganization ¶
func (m *OrgInvitationMutation) ResetOrganization()
ResetOrganization resets all changes to the "organization" edge.
func (*OrgInvitationMutation) ResetOrganizationID ¶
func (m *OrgInvitationMutation) ResetOrganizationID()
ResetOrganizationID resets all changes to the "organization_id" field.
func (*OrgInvitationMutation) ResetReceiverEmail ¶
func (m *OrgInvitationMutation) ResetReceiverEmail()
ResetReceiverEmail resets all changes to the "receiver_email" field.
func (*OrgInvitationMutation) ResetRole ¶
func (m *OrgInvitationMutation) ResetRole()
ResetRole resets all changes to the "role" field.
func (*OrgInvitationMutation) ResetSender ¶
func (m *OrgInvitationMutation) ResetSender()
ResetSender resets all changes to the "sender" edge.
func (*OrgInvitationMutation) ResetSenderID ¶
func (m *OrgInvitationMutation) ResetSenderID()
ResetSenderID resets all changes to the "sender_id" field.
func (*OrgInvitationMutation) ResetStatus ¶
func (m *OrgInvitationMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*OrgInvitationMutation) Role ¶
func (m *OrgInvitationMutation) Role() (r authz.Role, exists bool)
Role returns the value of the "role" field in the mutation.
func (*OrgInvitationMutation) RoleCleared ¶
func (m *OrgInvitationMutation) RoleCleared() bool
RoleCleared returns if the "role" field was cleared in this mutation.
func (*OrgInvitationMutation) SenderCleared ¶
func (m *OrgInvitationMutation) SenderCleared() bool
SenderCleared reports if the "sender" edge to the User entity was cleared.
func (*OrgInvitationMutation) SenderID ¶
func (m *OrgInvitationMutation) SenderID() (r uuid.UUID, exists bool)
SenderID returns the value of the "sender_id" field in the mutation.
func (*OrgInvitationMutation) SenderIDs ¶
func (m *OrgInvitationMutation) SenderIDs() (ids []uuid.UUID)
SenderIDs returns the "sender" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use SenderID instead. It exists only for internal usage by the builders.
func (*OrgInvitationMutation) SetCreatedAt ¶
func (m *OrgInvitationMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*OrgInvitationMutation) SetDeletedAt ¶
func (m *OrgInvitationMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*OrgInvitationMutation) SetField ¶
func (m *OrgInvitationMutation) 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 (*OrgInvitationMutation) SetID ¶
func (m *OrgInvitationMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of OrgInvitation entities.
func (*OrgInvitationMutation) SetOp ¶
func (m *OrgInvitationMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*OrgInvitationMutation) SetOrganizationID ¶
func (m *OrgInvitationMutation) SetOrganizationID(u uuid.UUID)
SetOrganizationID sets the "organization_id" field.
func (*OrgInvitationMutation) SetReceiverEmail ¶
func (m *OrgInvitationMutation) SetReceiverEmail(s string)
SetReceiverEmail sets the "receiver_email" field.
func (*OrgInvitationMutation) SetRole ¶
func (m *OrgInvitationMutation) SetRole(a authz.Role)
SetRole sets the "role" field.
func (*OrgInvitationMutation) SetSenderID ¶
func (m *OrgInvitationMutation) SetSenderID(u uuid.UUID)
SetSenderID sets the "sender_id" field.
func (*OrgInvitationMutation) SetStatus ¶
func (m *OrgInvitationMutation) SetStatus(bis biz.OrgInvitationStatus)
SetStatus sets the "status" field.
func (*OrgInvitationMutation) Status ¶
func (m *OrgInvitationMutation) Status() (r biz.OrgInvitationStatus, exists bool)
Status returns the value of the "status" field in the mutation.
func (OrgInvitationMutation) Tx ¶
func (m OrgInvitationMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*OrgInvitationMutation) Type ¶
func (m *OrgInvitationMutation) Type() string
Type returns the node type of this mutation (OrgInvitation).
func (*OrgInvitationMutation) Where ¶
func (m *OrgInvitationMutation) Where(ps ...predicate.OrgInvitation)
Where appends a list predicates to the OrgInvitationMutation builder.
func (*OrgInvitationMutation) WhereP ¶
func (m *OrgInvitationMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the OrgInvitationMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type OrgInvitationQuery ¶
type OrgInvitationQuery struct {
// contains filtered or unexported fields
}
OrgInvitationQuery is the builder for querying OrgInvitation entities.
func (*OrgInvitationQuery) Aggregate ¶
func (oiq *OrgInvitationQuery) Aggregate(fns ...AggregateFunc) *OrgInvitationSelect
Aggregate returns a OrgInvitationSelect configured with the given aggregations.
func (*OrgInvitationQuery) All ¶
func (oiq *OrgInvitationQuery) All(ctx context.Context) ([]*OrgInvitation, error)
All executes the query and returns a list of OrgInvitations.
func (*OrgInvitationQuery) AllX ¶
func (oiq *OrgInvitationQuery) AllX(ctx context.Context) []*OrgInvitation
AllX is like All, but panics if an error occurs.
func (*OrgInvitationQuery) Clone ¶
func (oiq *OrgInvitationQuery) Clone() *OrgInvitationQuery
Clone returns a duplicate of the OrgInvitationQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*OrgInvitationQuery) Count ¶
func (oiq *OrgInvitationQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*OrgInvitationQuery) CountX ¶
func (oiq *OrgInvitationQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*OrgInvitationQuery) Exist ¶
func (oiq *OrgInvitationQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*OrgInvitationQuery) ExistX ¶
func (oiq *OrgInvitationQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*OrgInvitationQuery) First ¶
func (oiq *OrgInvitationQuery) First(ctx context.Context) (*OrgInvitation, error)
First returns the first OrgInvitation entity from the query. Returns a *NotFoundError when no OrgInvitation was found.
func (*OrgInvitationQuery) FirstID ¶
FirstID returns the first OrgInvitation ID from the query. Returns a *NotFoundError when no OrgInvitation ID was found.
func (*OrgInvitationQuery) FirstIDX ¶
func (oiq *OrgInvitationQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*OrgInvitationQuery) FirstX ¶
func (oiq *OrgInvitationQuery) FirstX(ctx context.Context) *OrgInvitation
FirstX is like First, but panics if an error occurs.
func (*OrgInvitationQuery) ForShare ¶ added in v0.94.3
func (oiq *OrgInvitationQuery) ForShare(opts ...sql.LockOption) *OrgInvitationQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*OrgInvitationQuery) ForUpdate ¶ added in v0.94.3
func (oiq *OrgInvitationQuery) ForUpdate(opts ...sql.LockOption) *OrgInvitationQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
func (*OrgInvitationQuery) GroupBy ¶
func (oiq *OrgInvitationQuery) GroupBy(field string, fields ...string) *OrgInvitationGroupBy
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 { ReceiverEmail string `json:"receiver_email,omitempty"` Count int `json:"count,omitempty"` } client.OrgInvitation.Query(). GroupBy(orginvitation.FieldReceiverEmail). Aggregate(ent.Count()). Scan(ctx, &v)
func (*OrgInvitationQuery) IDsX ¶
func (oiq *OrgInvitationQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*OrgInvitationQuery) Limit ¶
func (oiq *OrgInvitationQuery) Limit(limit int) *OrgInvitationQuery
Limit the number of records to be returned by this query.
func (*OrgInvitationQuery) Modify ¶
func (oiq *OrgInvitationQuery) Modify(modifiers ...func(s *sql.Selector)) *OrgInvitationSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*OrgInvitationQuery) Offset ¶
func (oiq *OrgInvitationQuery) Offset(offset int) *OrgInvitationQuery
Offset to start from.
func (*OrgInvitationQuery) Only ¶
func (oiq *OrgInvitationQuery) Only(ctx context.Context) (*OrgInvitation, error)
Only returns a single OrgInvitation entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one OrgInvitation entity is found. Returns a *NotFoundError when no OrgInvitation entities are found.
func (*OrgInvitationQuery) OnlyID ¶
OnlyID is like Only, but returns the only OrgInvitation ID in the query. Returns a *NotSingularError when more than one OrgInvitation ID is found. Returns a *NotFoundError when no entities are found.
func (*OrgInvitationQuery) OnlyIDX ¶
func (oiq *OrgInvitationQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*OrgInvitationQuery) OnlyX ¶
func (oiq *OrgInvitationQuery) OnlyX(ctx context.Context) *OrgInvitation
OnlyX is like Only, but panics if an error occurs.
func (*OrgInvitationQuery) Order ¶
func (oiq *OrgInvitationQuery) Order(o ...orginvitation.OrderOption) *OrgInvitationQuery
Order specifies how the records should be ordered.
func (*OrgInvitationQuery) QueryOrganization ¶
func (oiq *OrgInvitationQuery) QueryOrganization() *OrganizationQuery
QueryOrganization chains the current query on the "organization" edge.
func (*OrgInvitationQuery) QuerySender ¶
func (oiq *OrgInvitationQuery) QuerySender() *UserQuery
QuerySender chains the current query on the "sender" edge.
func (*OrgInvitationQuery) Select ¶
func (oiq *OrgInvitationQuery) Select(fields ...string) *OrgInvitationSelect
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 { ReceiverEmail string `json:"receiver_email,omitempty"` } client.OrgInvitation.Query(). Select(orginvitation.FieldReceiverEmail). Scan(ctx, &v)
func (*OrgInvitationQuery) Unique ¶
func (oiq *OrgInvitationQuery) Unique(unique bool) *OrgInvitationQuery
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 (*OrgInvitationQuery) Where ¶
func (oiq *OrgInvitationQuery) Where(ps ...predicate.OrgInvitation) *OrgInvitationQuery
Where adds a new predicate for the OrgInvitationQuery builder.
func (*OrgInvitationQuery) WithOrganization ¶
func (oiq *OrgInvitationQuery) WithOrganization(opts ...func(*OrganizationQuery)) *OrgInvitationQuery
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 (*OrgInvitationQuery) WithSender ¶
func (oiq *OrgInvitationQuery) WithSender(opts ...func(*UserQuery)) *OrgInvitationQuery
WithSender tells the query-builder to eager-load the nodes that are connected to the "sender" edge. The optional arguments are used to configure the query builder of the edge.
type OrgInvitationSelect ¶
type OrgInvitationSelect struct { *OrgInvitationQuery // contains filtered or unexported fields }
OrgInvitationSelect is the builder for selecting fields of OrgInvitation entities.
func (*OrgInvitationSelect) Aggregate ¶
func (ois *OrgInvitationSelect) Aggregate(fns ...AggregateFunc) *OrgInvitationSelect
Aggregate adds the given aggregation functions to the selector query.
func (*OrgInvitationSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OrgInvitationSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OrgInvitationSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OrgInvitationSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OrgInvitationSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OrgInvitationSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OrgInvitationSelect) Modify ¶
func (ois *OrgInvitationSelect) Modify(modifiers ...func(s *sql.Selector)) *OrgInvitationSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*OrgInvitationSelect) Scan ¶
func (ois *OrgInvitationSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OrgInvitationSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OrgInvitationUpdate ¶
type OrgInvitationUpdate struct {
// contains filtered or unexported fields
}
OrgInvitationUpdate is the builder for updating OrgInvitation entities.
func (*OrgInvitationUpdate) ClearDeletedAt ¶
func (oiu *OrgInvitationUpdate) ClearDeletedAt() *OrgInvitationUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*OrgInvitationUpdate) ClearOrganization ¶
func (oiu *OrgInvitationUpdate) ClearOrganization() *OrgInvitationUpdate
ClearOrganization clears the "organization" edge to the Organization entity.
func (*OrgInvitationUpdate) ClearRole ¶
func (oiu *OrgInvitationUpdate) ClearRole() *OrgInvitationUpdate
ClearRole clears the value of the "role" field.
func (*OrgInvitationUpdate) ClearSender ¶
func (oiu *OrgInvitationUpdate) ClearSender() *OrgInvitationUpdate
ClearSender clears the "sender" edge to the User entity.
func (*OrgInvitationUpdate) Exec ¶
func (oiu *OrgInvitationUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*OrgInvitationUpdate) ExecX ¶
func (oiu *OrgInvitationUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrgInvitationUpdate) Modify ¶
func (oiu *OrgInvitationUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *OrgInvitationUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*OrgInvitationUpdate) Mutation ¶
func (oiu *OrgInvitationUpdate) Mutation() *OrgInvitationMutation
Mutation returns the OrgInvitationMutation object of the builder.
func (*OrgInvitationUpdate) Save ¶
func (oiu *OrgInvitationUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*OrgInvitationUpdate) SaveX ¶
func (oiu *OrgInvitationUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*OrgInvitationUpdate) SetDeletedAt ¶
func (oiu *OrgInvitationUpdate) SetDeletedAt(t time.Time) *OrgInvitationUpdate
SetDeletedAt sets the "deleted_at" field.
func (*OrgInvitationUpdate) SetNillableDeletedAt ¶
func (oiu *OrgInvitationUpdate) SetNillableDeletedAt(t *time.Time) *OrgInvitationUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*OrgInvitationUpdate) SetNillableOrganizationID ¶ added in v0.91.6
func (oiu *OrgInvitationUpdate) SetNillableOrganizationID(u *uuid.UUID) *OrgInvitationUpdate
SetNillableOrganizationID sets the "organization_id" field if the given value is not nil.
func (*OrgInvitationUpdate) SetNillableRole ¶
func (oiu *OrgInvitationUpdate) SetNillableRole(a *authz.Role) *OrgInvitationUpdate
SetNillableRole sets the "role" field if the given value is not nil.
func (*OrgInvitationUpdate) SetNillableSenderID ¶ added in v0.91.6
func (oiu *OrgInvitationUpdate) SetNillableSenderID(u *uuid.UUID) *OrgInvitationUpdate
SetNillableSenderID sets the "sender_id" field if the given value is not nil.
func (*OrgInvitationUpdate) SetNillableStatus ¶
func (oiu *OrgInvitationUpdate) SetNillableStatus(bis *biz.OrgInvitationStatus) *OrgInvitationUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*OrgInvitationUpdate) SetOrganization ¶
func (oiu *OrgInvitationUpdate) SetOrganization(o *Organization) *OrgInvitationUpdate
SetOrganization sets the "organization" edge to the Organization entity.
func (*OrgInvitationUpdate) SetOrganizationID ¶
func (oiu *OrgInvitationUpdate) SetOrganizationID(u uuid.UUID) *OrgInvitationUpdate
SetOrganizationID sets the "organization_id" field.
func (*OrgInvitationUpdate) SetRole ¶
func (oiu *OrgInvitationUpdate) SetRole(a authz.Role) *OrgInvitationUpdate
SetRole sets the "role" field.
func (*OrgInvitationUpdate) SetSender ¶
func (oiu *OrgInvitationUpdate) SetSender(u *User) *OrgInvitationUpdate
SetSender sets the "sender" edge to the User entity.
func (*OrgInvitationUpdate) SetSenderID ¶
func (oiu *OrgInvitationUpdate) SetSenderID(u uuid.UUID) *OrgInvitationUpdate
SetSenderID sets the "sender_id" field.
func (*OrgInvitationUpdate) SetStatus ¶
func (oiu *OrgInvitationUpdate) SetStatus(bis biz.OrgInvitationStatus) *OrgInvitationUpdate
SetStatus sets the "status" field.
func (*OrgInvitationUpdate) Where ¶
func (oiu *OrgInvitationUpdate) Where(ps ...predicate.OrgInvitation) *OrgInvitationUpdate
Where appends a list predicates to the OrgInvitationUpdate builder.
type OrgInvitationUpdateOne ¶
type OrgInvitationUpdateOne struct {
// contains filtered or unexported fields
}
OrgInvitationUpdateOne is the builder for updating a single OrgInvitation entity.
func (*OrgInvitationUpdateOne) ClearDeletedAt ¶
func (oiuo *OrgInvitationUpdateOne) ClearDeletedAt() *OrgInvitationUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*OrgInvitationUpdateOne) ClearOrganization ¶
func (oiuo *OrgInvitationUpdateOne) ClearOrganization() *OrgInvitationUpdateOne
ClearOrganization clears the "organization" edge to the Organization entity.
func (*OrgInvitationUpdateOne) ClearRole ¶
func (oiuo *OrgInvitationUpdateOne) ClearRole() *OrgInvitationUpdateOne
ClearRole clears the value of the "role" field.
func (*OrgInvitationUpdateOne) ClearSender ¶
func (oiuo *OrgInvitationUpdateOne) ClearSender() *OrgInvitationUpdateOne
ClearSender clears the "sender" edge to the User entity.
func (*OrgInvitationUpdateOne) Exec ¶
func (oiuo *OrgInvitationUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*OrgInvitationUpdateOne) ExecX ¶
func (oiuo *OrgInvitationUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrgInvitationUpdateOne) Modify ¶
func (oiuo *OrgInvitationUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *OrgInvitationUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*OrgInvitationUpdateOne) Mutation ¶
func (oiuo *OrgInvitationUpdateOne) Mutation() *OrgInvitationMutation
Mutation returns the OrgInvitationMutation object of the builder.
func (*OrgInvitationUpdateOne) Save ¶
func (oiuo *OrgInvitationUpdateOne) Save(ctx context.Context) (*OrgInvitation, error)
Save executes the query and returns the updated OrgInvitation entity.
func (*OrgInvitationUpdateOne) SaveX ¶
func (oiuo *OrgInvitationUpdateOne) SaveX(ctx context.Context) *OrgInvitation
SaveX is like Save, but panics if an error occurs.
func (*OrgInvitationUpdateOne) Select ¶
func (oiuo *OrgInvitationUpdateOne) Select(field string, fields ...string) *OrgInvitationUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*OrgInvitationUpdateOne) SetDeletedAt ¶
func (oiuo *OrgInvitationUpdateOne) SetDeletedAt(t time.Time) *OrgInvitationUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*OrgInvitationUpdateOne) SetNillableDeletedAt ¶
func (oiuo *OrgInvitationUpdateOne) SetNillableDeletedAt(t *time.Time) *OrgInvitationUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*OrgInvitationUpdateOne) SetNillableOrganizationID ¶ added in v0.91.6
func (oiuo *OrgInvitationUpdateOne) SetNillableOrganizationID(u *uuid.UUID) *OrgInvitationUpdateOne
SetNillableOrganizationID sets the "organization_id" field if the given value is not nil.
func (*OrgInvitationUpdateOne) SetNillableRole ¶
func (oiuo *OrgInvitationUpdateOne) SetNillableRole(a *authz.Role) *OrgInvitationUpdateOne
SetNillableRole sets the "role" field if the given value is not nil.
func (*OrgInvitationUpdateOne) SetNillableSenderID ¶ added in v0.91.6
func (oiuo *OrgInvitationUpdateOne) SetNillableSenderID(u *uuid.UUID) *OrgInvitationUpdateOne
SetNillableSenderID sets the "sender_id" field if the given value is not nil.
func (*OrgInvitationUpdateOne) SetNillableStatus ¶
func (oiuo *OrgInvitationUpdateOne) SetNillableStatus(bis *biz.OrgInvitationStatus) *OrgInvitationUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*OrgInvitationUpdateOne) SetOrganization ¶
func (oiuo *OrgInvitationUpdateOne) SetOrganization(o *Organization) *OrgInvitationUpdateOne
SetOrganization sets the "organization" edge to the Organization entity.
func (*OrgInvitationUpdateOne) SetOrganizationID ¶
func (oiuo *OrgInvitationUpdateOne) SetOrganizationID(u uuid.UUID) *OrgInvitationUpdateOne
SetOrganizationID sets the "organization_id" field.
func (*OrgInvitationUpdateOne) SetRole ¶
func (oiuo *OrgInvitationUpdateOne) SetRole(a authz.Role) *OrgInvitationUpdateOne
SetRole sets the "role" field.
func (*OrgInvitationUpdateOne) SetSender ¶
func (oiuo *OrgInvitationUpdateOne) SetSender(u *User) *OrgInvitationUpdateOne
SetSender sets the "sender" edge to the User entity.
func (*OrgInvitationUpdateOne) SetSenderID ¶
func (oiuo *OrgInvitationUpdateOne) SetSenderID(u uuid.UUID) *OrgInvitationUpdateOne
SetSenderID sets the "sender_id" field.
func (*OrgInvitationUpdateOne) SetStatus ¶
func (oiuo *OrgInvitationUpdateOne) SetStatus(bis biz.OrgInvitationStatus) *OrgInvitationUpdateOne
SetStatus sets the "status" field.
func (*OrgInvitationUpdateOne) Where ¶
func (oiuo *OrgInvitationUpdateOne) Where(ps ...predicate.OrgInvitation) *OrgInvitationUpdateOne
Where appends a list predicates to the OrgInvitationUpdate builder.
type OrgInvitations ¶
type OrgInvitations []*OrgInvitation
OrgInvitations is a parsable slice of OrgInvitation.
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) QueryAPITokens ¶
func (o *Organization) QueryAPITokens() *APITokenQuery
QueryAPITokens queries the "api_tokens" edge of the Organization entity.
func (*Organization) QueryCasBackends ¶
func (o *Organization) QueryCasBackends() *CASBackendQuery
QueryCasBackends queries the "cas_backends" edge of the Organization entity.
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) 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) MapCreateBulk ¶ added in v0.91.6
func (c *OrganizationClient) MapCreateBulk(slice any, setFunc func(*OrganizationCreate, int)) *OrganizationCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*OrganizationClient) Query ¶
func (c *OrganizationClient) Query() *OrganizationQuery
Query returns a query builder for Organization.
func (*OrganizationClient) QueryAPITokens ¶
func (c *OrganizationClient) QueryAPITokens(o *Organization) *APITokenQuery
QueryAPITokens queries the api_tokens edge of a Organization.
func (*OrganizationClient) QueryCasBackends ¶
func (c *OrganizationClient) QueryCasBackends(o *Organization) *CASBackendQuery
QueryCasBackends queries the cas_backends edge of a 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) 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) AddAPITokenIDs ¶
func (oc *OrganizationCreate) AddAPITokenIDs(ids ...uuid.UUID) *OrganizationCreate
AddAPITokenIDs adds the "api_tokens" edge to the APIToken entity by IDs.
func (*OrganizationCreate) AddAPITokens ¶
func (oc *OrganizationCreate) AddAPITokens(a ...*APIToken) *OrganizationCreate
AddAPITokens adds the "api_tokens" edges to the APIToken entity.
func (*OrganizationCreate) AddCasBackendIDs ¶
func (oc *OrganizationCreate) AddCasBackendIDs(ids ...uuid.UUID) *OrganizationCreate
AddCasBackendIDs adds the "cas_backends" edge to the CASBackend entity by IDs.
func (*OrganizationCreate) AddCasBackends ¶
func (oc *OrganizationCreate) AddCasBackends(c ...*CASBackend) *OrganizationCreate
AddCasBackends adds the "cas_backends" edges to the CASBackend 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) 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.
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"` // CasBackends holds the value of the cas_backends edge. CasBackends []*CASBackend `json:"cas_backends,omitempty"` // Integrations holds the value of the integrations edge. Integrations []*Integration `json:"integrations,omitempty"` // APITokens holds the value of the api_tokens edge. APITokens []*APIToken `json:"api_tokens,omitempty"` // contains filtered or unexported fields }
OrganizationEdges holds the relations/edges for other nodes in the graph.
func (OrganizationEdges) APITokensOrErr ¶
func (e OrganizationEdges) APITokensOrErr() ([]*APIToken, error)
APITokensOrErr returns the APITokens value or an error if the edge was not loaded in eager-loading.
func (OrganizationEdges) CasBackendsOrErr ¶
func (e OrganizationEdges) CasBackendsOrErr() ([]*CASBackend, error)
CasBackendsOrErr returns the CasBackends value or an error if the edge was not loaded in eager-loading.
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) 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) APITokensCleared ¶
func (m *OrganizationMutation) APITokensCleared() bool
APITokensCleared reports if the "api_tokens" edge to the APIToken entity was cleared.
func (*OrganizationMutation) APITokensIDs ¶
func (m *OrganizationMutation) APITokensIDs() (ids []uuid.UUID)
APITokensIDs returns the "api_tokens" edge IDs in the mutation.
func (*OrganizationMutation) AddAPITokenIDs ¶
func (m *OrganizationMutation) AddAPITokenIDs(ids ...uuid.UUID)
AddAPITokenIDs adds the "api_tokens" edge to the APIToken entity by ids.
func (*OrganizationMutation) AddCasBackendIDs ¶
func (m *OrganizationMutation) AddCasBackendIDs(ids ...uuid.UUID)
AddCasBackendIDs adds the "cas_backends" edge to the CASBackend entity by ids.
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) 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) CasBackendsCleared ¶
func (m *OrganizationMutation) CasBackendsCleared() bool
CasBackendsCleared reports if the "cas_backends" edge to the CASBackend entity was cleared.
func (*OrganizationMutation) CasBackendsIDs ¶
func (m *OrganizationMutation) CasBackendsIDs() (ids []uuid.UUID)
CasBackendsIDs returns the "cas_backends" edge IDs in the mutation.
func (*OrganizationMutation) ClearAPITokens ¶
func (m *OrganizationMutation) ClearAPITokens()
ClearAPITokens clears the "api_tokens" edge to the APIToken entity.
func (*OrganizationMutation) ClearCasBackends ¶
func (m *OrganizationMutation) ClearCasBackends()
ClearCasBackends clears the "cas_backends" edge to the CASBackend entity.
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) 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) 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) RemoveAPITokenIDs ¶
func (m *OrganizationMutation) RemoveAPITokenIDs(ids ...uuid.UUID)
RemoveAPITokenIDs removes the "api_tokens" edge to the APIToken entity by IDs.
func (*OrganizationMutation) RemoveCasBackendIDs ¶
func (m *OrganizationMutation) RemoveCasBackendIDs(ids ...uuid.UUID)
RemoveCasBackendIDs removes the "cas_backends" edge to the CASBackend entity by IDs.
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) 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) RemovedAPITokensIDs ¶
func (m *OrganizationMutation) RemovedAPITokensIDs() (ids []uuid.UUID)
RemovedAPITokens returns the removed IDs of the "api_tokens" edge to the APIToken entity.
func (*OrganizationMutation) RemovedCasBackendsIDs ¶
func (m *OrganizationMutation) RemovedCasBackendsIDs() (ids []uuid.UUID)
RemovedCasBackends returns the removed IDs of the "cas_backends" edge to the CASBackend entity.
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) 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) ResetAPITokens ¶
func (m *OrganizationMutation) ResetAPITokens()
ResetAPITokens resets all changes to the "api_tokens" edge.
func (*OrganizationMutation) ResetCasBackends ¶
func (m *OrganizationMutation) ResetCasBackends()
ResetCasBackends resets all changes to the "cas_backends" edge.
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) 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) ForShare ¶ added in v0.94.3
func (oq *OrganizationQuery) ForShare(opts ...sql.LockOption) *OrganizationQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*OrganizationQuery) ForUpdate ¶ added in v0.94.3
func (oq *OrganizationQuery) ForUpdate(opts ...sql.LockOption) *OrganizationQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
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) Modify ¶
func (oq *OrganizationQuery) Modify(modifiers ...func(s *sql.Selector)) *OrganizationSelect
Modify adds a query modifier for attaching custom logic to queries.
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 ...organization.OrderOption) *OrganizationQuery
Order specifies how the records should be ordered.
func (*OrganizationQuery) QueryAPITokens ¶
func (oq *OrganizationQuery) QueryAPITokens() *APITokenQuery
QueryAPITokens chains the current query on the "api_tokens" edge.
func (*OrganizationQuery) QueryCasBackends ¶
func (oq *OrganizationQuery) QueryCasBackends() *CASBackendQuery
QueryCasBackends chains the current query on the "cas_backends" edge.
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) 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) WithAPITokens ¶
func (oq *OrganizationQuery) WithAPITokens(opts ...func(*APITokenQuery)) *OrganizationQuery
WithAPITokens tells the query-builder to eager-load the nodes that are connected to the "api_tokens" edge. The optional arguments are used to configure the query builder of the edge.
func (*OrganizationQuery) WithCasBackends ¶
func (oq *OrganizationQuery) WithCasBackends(opts ...func(*CASBackendQuery)) *OrganizationQuery
WithCasBackends tells the query-builder to eager-load the nodes that are connected to the "cas_backends" edge. The optional arguments are used to configure the query builder of the edge.
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) 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) Modify ¶
func (os *OrganizationSelect) Modify(modifiers ...func(s *sql.Selector)) *OrganizationSelect
Modify adds a query modifier for attaching custom logic to queries.
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) AddAPITokenIDs ¶
func (ou *OrganizationUpdate) AddAPITokenIDs(ids ...uuid.UUID) *OrganizationUpdate
AddAPITokenIDs adds the "api_tokens" edge to the APIToken entity by IDs.
func (*OrganizationUpdate) AddAPITokens ¶
func (ou *OrganizationUpdate) AddAPITokens(a ...*APIToken) *OrganizationUpdate
AddAPITokens adds the "api_tokens" edges to the APIToken entity.
func (*OrganizationUpdate) AddCasBackendIDs ¶
func (ou *OrganizationUpdate) AddCasBackendIDs(ids ...uuid.UUID) *OrganizationUpdate
AddCasBackendIDs adds the "cas_backends" edge to the CASBackend entity by IDs.
func (*OrganizationUpdate) AddCasBackends ¶
func (ou *OrganizationUpdate) AddCasBackends(c ...*CASBackend) *OrganizationUpdate
AddCasBackends adds the "cas_backends" edges to the CASBackend entity.
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) 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) ClearAPITokens ¶
func (ou *OrganizationUpdate) ClearAPITokens() *OrganizationUpdate
ClearAPITokens clears all "api_tokens" edges to the APIToken entity.
func (*OrganizationUpdate) ClearCasBackends ¶
func (ou *OrganizationUpdate) ClearCasBackends() *OrganizationUpdate
ClearCasBackends clears all "cas_backends" edges to the CASBackend 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) 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) Modify ¶
func (ou *OrganizationUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *OrganizationUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*OrganizationUpdate) Mutation ¶
func (ou *OrganizationUpdate) Mutation() *OrganizationMutation
Mutation returns the OrganizationMutation object of the builder.
func (*OrganizationUpdate) RemoveAPITokenIDs ¶
func (ou *OrganizationUpdate) RemoveAPITokenIDs(ids ...uuid.UUID) *OrganizationUpdate
RemoveAPITokenIDs removes the "api_tokens" edge to APIToken entities by IDs.
func (*OrganizationUpdate) RemoveAPITokens ¶
func (ou *OrganizationUpdate) RemoveAPITokens(a ...*APIToken) *OrganizationUpdate
RemoveAPITokens removes "api_tokens" edges to APIToken entities.
func (*OrganizationUpdate) RemoveCasBackendIDs ¶
func (ou *OrganizationUpdate) RemoveCasBackendIDs(ids ...uuid.UUID) *OrganizationUpdate
RemoveCasBackendIDs removes the "cas_backends" edge to CASBackend entities by IDs.
func (*OrganizationUpdate) RemoveCasBackends ¶
func (ou *OrganizationUpdate) RemoveCasBackends(c ...*CASBackend) *OrganizationUpdate
RemoveCasBackends removes "cas_backends" edges to CASBackend entities.
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) 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) 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) AddAPITokenIDs ¶
func (ouo *OrganizationUpdateOne) AddAPITokenIDs(ids ...uuid.UUID) *OrganizationUpdateOne
AddAPITokenIDs adds the "api_tokens" edge to the APIToken entity by IDs.
func (*OrganizationUpdateOne) AddAPITokens ¶
func (ouo *OrganizationUpdateOne) AddAPITokens(a ...*APIToken) *OrganizationUpdateOne
AddAPITokens adds the "api_tokens" edges to the APIToken entity.
func (*OrganizationUpdateOne) AddCasBackendIDs ¶
func (ouo *OrganizationUpdateOne) AddCasBackendIDs(ids ...uuid.UUID) *OrganizationUpdateOne
AddCasBackendIDs adds the "cas_backends" edge to the CASBackend entity by IDs.
func (*OrganizationUpdateOne) AddCasBackends ¶
func (ouo *OrganizationUpdateOne) AddCasBackends(c ...*CASBackend) *OrganizationUpdateOne
AddCasBackends adds the "cas_backends" edges to the CASBackend 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) 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) ClearAPITokens ¶
func (ouo *OrganizationUpdateOne) ClearAPITokens() *OrganizationUpdateOne
ClearAPITokens clears all "api_tokens" edges to the APIToken entity.
func (*OrganizationUpdateOne) ClearCasBackends ¶
func (ouo *OrganizationUpdateOne) ClearCasBackends() *OrganizationUpdateOne
ClearCasBackends clears all "cas_backends" edges to the CASBackend 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) 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) Modify ¶
func (ouo *OrganizationUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *OrganizationUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*OrganizationUpdateOne) Mutation ¶
func (ouo *OrganizationUpdateOne) Mutation() *OrganizationMutation
Mutation returns the OrganizationMutation object of the builder.
func (*OrganizationUpdateOne) RemoveAPITokenIDs ¶
func (ouo *OrganizationUpdateOne) RemoveAPITokenIDs(ids ...uuid.UUID) *OrganizationUpdateOne
RemoveAPITokenIDs removes the "api_tokens" edge to APIToken entities by IDs.
func (*OrganizationUpdateOne) RemoveAPITokens ¶
func (ouo *OrganizationUpdateOne) RemoveAPITokens(a ...*APIToken) *OrganizationUpdateOne
RemoveAPITokens removes "api_tokens" edges to APIToken entities.
func (*OrganizationUpdateOne) RemoveCasBackendIDs ¶
func (ouo *OrganizationUpdateOne) RemoveCasBackendIDs(ids ...uuid.UUID) *OrganizationUpdateOne
RemoveCasBackendIDs removes the "cas_backends" edge to CASBackend entities by IDs.
func (*OrganizationUpdateOne) RemoveCasBackends ¶
func (ouo *OrganizationUpdateOne) RemoveCasBackends(c ...*CASBackend) *OrganizationUpdateOne
RemoveCasBackends removes "cas_backends" edges to CASBackend entities.
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) 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) 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 Referrer ¶
type Referrer struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // Digest holds the value of the "digest" field. Digest string `json:"digest,omitempty"` // Kind holds the value of the "kind" field. Kind string `json:"kind,omitempty"` // Downloadable holds the value of the "downloadable" field. Downloadable bool `json:"downloadable,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // Metadata holds the value of the "metadata" field. Metadata map[string]string `json:"metadata,omitempty"` // Annotations holds the value of the "annotations" field. Annotations map[string]string `json:"annotations,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the ReferrerQuery when eager-loading is set. Edges ReferrerEdges `json:"edges"` // contains filtered or unexported fields }
Referrer is the model entity for the Referrer schema.
func (*Referrer) QueryReferences ¶
func (r *Referrer) QueryReferences() *ReferrerQuery
QueryReferences queries the "references" edge of the Referrer entity.
func (*Referrer) QueryReferredBy ¶
func (r *Referrer) QueryReferredBy() *ReferrerQuery
QueryReferredBy queries the "referred_by" edge of the Referrer entity.
func (*Referrer) QueryWorkflows ¶
func (r *Referrer) QueryWorkflows() *WorkflowQuery
QueryWorkflows queries the "workflows" edge of the Referrer entity.
func (*Referrer) Unwrap ¶
Unwrap unwraps the Referrer 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 (*Referrer) Update ¶
func (r *Referrer) Update() *ReferrerUpdateOne
Update returns a builder for updating this Referrer. Note that you need to call Referrer.Unwrap() before calling this method if this Referrer was returned from a transaction, and the transaction was committed or rolled back.
type ReferrerClient ¶
type ReferrerClient struct {
// contains filtered or unexported fields
}
ReferrerClient is a client for the Referrer schema.
func NewReferrerClient ¶
func NewReferrerClient(c config) *ReferrerClient
NewReferrerClient returns a client for the Referrer from the given config.
func (*ReferrerClient) Create ¶
func (c *ReferrerClient) Create() *ReferrerCreate
Create returns a builder for creating a Referrer entity.
func (*ReferrerClient) CreateBulk ¶
func (c *ReferrerClient) CreateBulk(builders ...*ReferrerCreate) *ReferrerCreateBulk
CreateBulk returns a builder for creating a bulk of Referrer entities.
func (*ReferrerClient) Delete ¶
func (c *ReferrerClient) Delete() *ReferrerDelete
Delete returns a delete builder for Referrer.
func (*ReferrerClient) DeleteOne ¶
func (c *ReferrerClient) DeleteOne(r *Referrer) *ReferrerDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ReferrerClient) DeleteOneID ¶
func (c *ReferrerClient) DeleteOneID(id uuid.UUID) *ReferrerDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ReferrerClient) Hooks ¶
func (c *ReferrerClient) Hooks() []Hook
Hooks returns the client hooks.
func (*ReferrerClient) Intercept ¶
func (c *ReferrerClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `referrer.Intercept(f(g(h())))`.
func (*ReferrerClient) Interceptors ¶
func (c *ReferrerClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*ReferrerClient) MapCreateBulk ¶ added in v0.91.6
func (c *ReferrerClient) MapCreateBulk(slice any, setFunc func(*ReferrerCreate, int)) *ReferrerCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*ReferrerClient) Query ¶
func (c *ReferrerClient) Query() *ReferrerQuery
Query returns a query builder for Referrer.
func (*ReferrerClient) QueryReferences ¶
func (c *ReferrerClient) QueryReferences(r *Referrer) *ReferrerQuery
QueryReferences queries the references edge of a Referrer.
func (*ReferrerClient) QueryReferredBy ¶
func (c *ReferrerClient) QueryReferredBy(r *Referrer) *ReferrerQuery
QueryReferredBy queries the referred_by edge of a Referrer.
func (*ReferrerClient) QueryWorkflows ¶
func (c *ReferrerClient) QueryWorkflows(r *Referrer) *WorkflowQuery
QueryWorkflows queries the workflows edge of a Referrer.
func (*ReferrerClient) Update ¶
func (c *ReferrerClient) Update() *ReferrerUpdate
Update returns an update builder for Referrer.
func (*ReferrerClient) UpdateOne ¶
func (c *ReferrerClient) UpdateOne(r *Referrer) *ReferrerUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ReferrerClient) UpdateOneID ¶
func (c *ReferrerClient) UpdateOneID(id uuid.UUID) *ReferrerUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ReferrerClient) Use ¶
func (c *ReferrerClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `referrer.Hooks(f(g(h())))`.
type ReferrerCreate ¶
type ReferrerCreate struct {
// contains filtered or unexported fields
}
ReferrerCreate is the builder for creating a Referrer entity.
func (*ReferrerCreate) AddReferenceIDs ¶
func (rc *ReferrerCreate) AddReferenceIDs(ids ...uuid.UUID) *ReferrerCreate
AddReferenceIDs adds the "references" edge to the Referrer entity by IDs.
func (*ReferrerCreate) AddReferences ¶
func (rc *ReferrerCreate) AddReferences(r ...*Referrer) *ReferrerCreate
AddReferences adds the "references" edges to the Referrer entity.
func (*ReferrerCreate) AddReferredBy ¶
func (rc *ReferrerCreate) AddReferredBy(r ...*Referrer) *ReferrerCreate
AddReferredBy adds the "referred_by" edges to the Referrer entity.
func (*ReferrerCreate) AddReferredByIDs ¶
func (rc *ReferrerCreate) AddReferredByIDs(ids ...uuid.UUID) *ReferrerCreate
AddReferredByIDs adds the "referred_by" edge to the Referrer entity by IDs.
func (*ReferrerCreate) AddWorkflowIDs ¶
func (rc *ReferrerCreate) AddWorkflowIDs(ids ...uuid.UUID) *ReferrerCreate
AddWorkflowIDs adds the "workflows" edge to the Workflow entity by IDs.
func (*ReferrerCreate) AddWorkflows ¶
func (rc *ReferrerCreate) AddWorkflows(w ...*Workflow) *ReferrerCreate
AddWorkflows adds the "workflows" edges to the Workflow entity.
func (*ReferrerCreate) Exec ¶
func (rc *ReferrerCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*ReferrerCreate) ExecX ¶
func (rc *ReferrerCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReferrerCreate) Mutation ¶
func (rc *ReferrerCreate) Mutation() *ReferrerMutation
Mutation returns the ReferrerMutation object of the builder.
func (*ReferrerCreate) Save ¶
func (rc *ReferrerCreate) Save(ctx context.Context) (*Referrer, error)
Save creates the Referrer in the database.
func (*ReferrerCreate) SaveX ¶
func (rc *ReferrerCreate) SaveX(ctx context.Context) *Referrer
SaveX calls Save and panics if Save returns an error.
func (*ReferrerCreate) SetAnnotations ¶
func (rc *ReferrerCreate) SetAnnotations(m map[string]string) *ReferrerCreate
SetAnnotations sets the "annotations" field.
func (*ReferrerCreate) SetCreatedAt ¶
func (rc *ReferrerCreate) SetCreatedAt(t time.Time) *ReferrerCreate
SetCreatedAt sets the "created_at" field.
func (*ReferrerCreate) SetDigest ¶
func (rc *ReferrerCreate) SetDigest(s string) *ReferrerCreate
SetDigest sets the "digest" field.
func (*ReferrerCreate) SetDownloadable ¶
func (rc *ReferrerCreate) SetDownloadable(b bool) *ReferrerCreate
SetDownloadable sets the "downloadable" field.
func (*ReferrerCreate) SetID ¶
func (rc *ReferrerCreate) SetID(u uuid.UUID) *ReferrerCreate
SetID sets the "id" field.
func (*ReferrerCreate) SetKind ¶
func (rc *ReferrerCreate) SetKind(s string) *ReferrerCreate
SetKind sets the "kind" field.
func (*ReferrerCreate) SetMetadata ¶
func (rc *ReferrerCreate) SetMetadata(m map[string]string) *ReferrerCreate
SetMetadata sets the "metadata" field.
func (*ReferrerCreate) SetNillableCreatedAt ¶
func (rc *ReferrerCreate) SetNillableCreatedAt(t *time.Time) *ReferrerCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*ReferrerCreate) SetNillableID ¶
func (rc *ReferrerCreate) SetNillableID(u *uuid.UUID) *ReferrerCreate
SetNillableID sets the "id" field if the given value is not nil.
type ReferrerCreateBulk ¶
type ReferrerCreateBulk struct {
// contains filtered or unexported fields
}
ReferrerCreateBulk is the builder for creating many Referrer entities in bulk.
func (*ReferrerCreateBulk) Exec ¶
func (rcb *ReferrerCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ReferrerCreateBulk) ExecX ¶
func (rcb *ReferrerCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type ReferrerDelete ¶
type ReferrerDelete struct {
// contains filtered or unexported fields
}
ReferrerDelete is the builder for deleting a Referrer entity.
func (*ReferrerDelete) Exec ¶
func (rd *ReferrerDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ReferrerDelete) ExecX ¶
func (rd *ReferrerDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ReferrerDelete) Where ¶
func (rd *ReferrerDelete) Where(ps ...predicate.Referrer) *ReferrerDelete
Where appends a list predicates to the ReferrerDelete builder.
type ReferrerDeleteOne ¶
type ReferrerDeleteOne struct {
// contains filtered or unexported fields
}
ReferrerDeleteOne is the builder for deleting a single Referrer entity.
func (*ReferrerDeleteOne) Exec ¶
func (rdo *ReferrerDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ReferrerDeleteOne) ExecX ¶
func (rdo *ReferrerDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReferrerDeleteOne) Where ¶
func (rdo *ReferrerDeleteOne) Where(ps ...predicate.Referrer) *ReferrerDeleteOne
Where appends a list predicates to the ReferrerDelete builder.
type ReferrerEdges ¶
type ReferrerEdges struct { // ReferredBy holds the value of the referred_by edge. ReferredBy []*Referrer `json:"referred_by,omitempty"` // References holds the value of the references edge. References []*Referrer `json:"references,omitempty"` // Workflows holds the value of the workflows edge. Workflows []*Workflow `json:"workflows,omitempty"` // contains filtered or unexported fields }
ReferrerEdges holds the relations/edges for other nodes in the graph.
func (ReferrerEdges) ReferencesOrErr ¶
func (e ReferrerEdges) ReferencesOrErr() ([]*Referrer, error)
ReferencesOrErr returns the References value or an error if the edge was not loaded in eager-loading.
func (ReferrerEdges) ReferredByOrErr ¶
func (e ReferrerEdges) ReferredByOrErr() ([]*Referrer, error)
ReferredByOrErr returns the ReferredBy value or an error if the edge was not loaded in eager-loading.
func (ReferrerEdges) WorkflowsOrErr ¶
func (e ReferrerEdges) WorkflowsOrErr() ([]*Workflow, error)
WorkflowsOrErr returns the Workflows value or an error if the edge was not loaded in eager-loading.
type ReferrerGroupBy ¶
type ReferrerGroupBy struct {
// contains filtered or unexported fields
}
ReferrerGroupBy is the group-by builder for Referrer entities.
func (*ReferrerGroupBy) Aggregate ¶
func (rgb *ReferrerGroupBy) Aggregate(fns ...AggregateFunc) *ReferrerGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ReferrerGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReferrerGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReferrerGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReferrerGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReferrerGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReferrerGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReferrerGroupBy) Scan ¶
func (rgb *ReferrerGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ReferrerGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ReferrerMutation ¶
type ReferrerMutation struct {
// contains filtered or unexported fields
}
ReferrerMutation represents an operation that mutates the Referrer nodes in the graph.
func (*ReferrerMutation) AddField ¶
func (m *ReferrerMutation) 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 (*ReferrerMutation) AddReferenceIDs ¶
func (m *ReferrerMutation) AddReferenceIDs(ids ...uuid.UUID)
AddReferenceIDs adds the "references" edge to the Referrer entity by ids.
func (*ReferrerMutation) AddReferredByIDs ¶
func (m *ReferrerMutation) AddReferredByIDs(ids ...uuid.UUID)
AddReferredByIDs adds the "referred_by" edge to the Referrer entity by ids.
func (*ReferrerMutation) AddWorkflowIDs ¶
func (m *ReferrerMutation) AddWorkflowIDs(ids ...uuid.UUID)
AddWorkflowIDs adds the "workflows" edge to the Workflow entity by ids.
func (*ReferrerMutation) AddedEdges ¶
func (m *ReferrerMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ReferrerMutation) AddedField ¶
func (m *ReferrerMutation) 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 (*ReferrerMutation) AddedFields ¶
func (m *ReferrerMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*ReferrerMutation) AddedIDs ¶
func (m *ReferrerMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*ReferrerMutation) Annotations ¶
func (m *ReferrerMutation) Annotations() (r map[string]string, exists bool)
Annotations returns the value of the "annotations" field in the mutation.
func (*ReferrerMutation) AnnotationsCleared ¶
func (m *ReferrerMutation) AnnotationsCleared() bool
AnnotationsCleared returns if the "annotations" field was cleared in this mutation.
func (*ReferrerMutation) ClearAnnotations ¶
func (m *ReferrerMutation) ClearAnnotations()
ClearAnnotations clears the value of the "annotations" field.
func (*ReferrerMutation) ClearEdge ¶
func (m *ReferrerMutation) 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 (*ReferrerMutation) ClearField ¶
func (m *ReferrerMutation) 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 (*ReferrerMutation) ClearMetadata ¶
func (m *ReferrerMutation) ClearMetadata()
ClearMetadata clears the value of the "metadata" field.
func (*ReferrerMutation) ClearReferences ¶
func (m *ReferrerMutation) ClearReferences()
ClearReferences clears the "references" edge to the Referrer entity.
func (*ReferrerMutation) ClearReferredBy ¶
func (m *ReferrerMutation) ClearReferredBy()
ClearReferredBy clears the "referred_by" edge to the Referrer entity.
func (*ReferrerMutation) ClearWorkflows ¶
func (m *ReferrerMutation) ClearWorkflows()
ClearWorkflows clears the "workflows" edge to the Workflow entity.
func (*ReferrerMutation) ClearedEdges ¶
func (m *ReferrerMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ReferrerMutation) ClearedFields ¶
func (m *ReferrerMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ReferrerMutation) Client ¶
func (m ReferrerMutation) 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 (*ReferrerMutation) CreatedAt ¶
func (m *ReferrerMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*ReferrerMutation) Digest ¶
func (m *ReferrerMutation) Digest() (r string, exists bool)
Digest returns the value of the "digest" field in the mutation.
func (*ReferrerMutation) Downloadable ¶
func (m *ReferrerMutation) Downloadable() (r bool, exists bool)
Downloadable returns the value of the "downloadable" field in the mutation.
func (*ReferrerMutation) EdgeCleared ¶
func (m *ReferrerMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*ReferrerMutation) Field ¶
func (m *ReferrerMutation) 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 (*ReferrerMutation) FieldCleared ¶
func (m *ReferrerMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*ReferrerMutation) Fields ¶
func (m *ReferrerMutation) 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 (*ReferrerMutation) ID ¶
func (m *ReferrerMutation) 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 (*ReferrerMutation) 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 (*ReferrerMutation) Kind ¶
func (m *ReferrerMutation) Kind() (r string, exists bool)
Kind returns the value of the "kind" field in the mutation.
func (*ReferrerMutation) Metadata ¶
func (m *ReferrerMutation) Metadata() (r map[string]string, exists bool)
Metadata returns the value of the "metadata" field in the mutation.
func (*ReferrerMutation) MetadataCleared ¶
func (m *ReferrerMutation) MetadataCleared() bool
MetadataCleared returns if the "metadata" field was cleared in this mutation.
func (*ReferrerMutation) OldAnnotations ¶
OldAnnotations returns the old "annotations" field's value of the Referrer entity. If the Referrer 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 (*ReferrerMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Referrer entity. If the Referrer 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 (*ReferrerMutation) OldDigest ¶
func (m *ReferrerMutation) OldDigest(ctx context.Context) (v string, err error)
OldDigest returns the old "digest" field's value of the Referrer entity. If the Referrer 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 (*ReferrerMutation) OldDownloadable ¶
func (m *ReferrerMutation) OldDownloadable(ctx context.Context) (v bool, err error)
OldDownloadable returns the old "downloadable" field's value of the Referrer entity. If the Referrer 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 (*ReferrerMutation) 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 (*ReferrerMutation) OldKind ¶
func (m *ReferrerMutation) OldKind(ctx context.Context) (v string, err error)
OldKind returns the old "kind" field's value of the Referrer entity. If the Referrer 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 (*ReferrerMutation) OldMetadata ¶
OldMetadata returns the old "metadata" field's value of the Referrer entity. If the Referrer 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 (*ReferrerMutation) ReferencesCleared ¶
func (m *ReferrerMutation) ReferencesCleared() bool
ReferencesCleared reports if the "references" edge to the Referrer entity was cleared.
func (*ReferrerMutation) ReferencesIDs ¶
func (m *ReferrerMutation) ReferencesIDs() (ids []uuid.UUID)
ReferencesIDs returns the "references" edge IDs in the mutation.
func (*ReferrerMutation) ReferredByCleared ¶
func (m *ReferrerMutation) ReferredByCleared() bool
ReferredByCleared reports if the "referred_by" edge to the Referrer entity was cleared.
func (*ReferrerMutation) ReferredByIDs ¶
func (m *ReferrerMutation) ReferredByIDs() (ids []uuid.UUID)
ReferredByIDs returns the "referred_by" edge IDs in the mutation.
func (*ReferrerMutation) RemoveReferenceIDs ¶
func (m *ReferrerMutation) RemoveReferenceIDs(ids ...uuid.UUID)
RemoveReferenceIDs removes the "references" edge to the Referrer entity by IDs.
func (*ReferrerMutation) RemoveReferredByIDs ¶
func (m *ReferrerMutation) RemoveReferredByIDs(ids ...uuid.UUID)
RemoveReferredByIDs removes the "referred_by" edge to the Referrer entity by IDs.
func (*ReferrerMutation) RemoveWorkflowIDs ¶
func (m *ReferrerMutation) RemoveWorkflowIDs(ids ...uuid.UUID)
RemoveWorkflowIDs removes the "workflows" edge to the Workflow entity by IDs.
func (*ReferrerMutation) RemovedEdges ¶
func (m *ReferrerMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ReferrerMutation) RemovedIDs ¶
func (m *ReferrerMutation) 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 (*ReferrerMutation) RemovedReferencesIDs ¶
func (m *ReferrerMutation) RemovedReferencesIDs() (ids []uuid.UUID)
RemovedReferences returns the removed IDs of the "references" edge to the Referrer entity.
func (*ReferrerMutation) RemovedReferredByIDs ¶
func (m *ReferrerMutation) RemovedReferredByIDs() (ids []uuid.UUID)
RemovedReferredBy returns the removed IDs of the "referred_by" edge to the Referrer entity.
func (*ReferrerMutation) RemovedWorkflowsIDs ¶
func (m *ReferrerMutation) RemovedWorkflowsIDs() (ids []uuid.UUID)
RemovedWorkflows returns the removed IDs of the "workflows" edge to the Workflow entity.
func (*ReferrerMutation) ResetAnnotations ¶
func (m *ReferrerMutation) ResetAnnotations()
ResetAnnotations resets all changes to the "annotations" field.
func (*ReferrerMutation) ResetCreatedAt ¶
func (m *ReferrerMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*ReferrerMutation) ResetDigest ¶
func (m *ReferrerMutation) ResetDigest()
ResetDigest resets all changes to the "digest" field.
func (*ReferrerMutation) ResetDownloadable ¶
func (m *ReferrerMutation) ResetDownloadable()
ResetDownloadable resets all changes to the "downloadable" field.
func (*ReferrerMutation) ResetEdge ¶
func (m *ReferrerMutation) 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 (*ReferrerMutation) ResetField ¶
func (m *ReferrerMutation) 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 (*ReferrerMutation) ResetKind ¶
func (m *ReferrerMutation) ResetKind()
ResetKind resets all changes to the "kind" field.
func (*ReferrerMutation) ResetMetadata ¶
func (m *ReferrerMutation) ResetMetadata()
ResetMetadata resets all changes to the "metadata" field.
func (*ReferrerMutation) ResetReferences ¶
func (m *ReferrerMutation) ResetReferences()
ResetReferences resets all changes to the "references" edge.
func (*ReferrerMutation) ResetReferredBy ¶
func (m *ReferrerMutation) ResetReferredBy()
ResetReferredBy resets all changes to the "referred_by" edge.
func (*ReferrerMutation) ResetWorkflows ¶
func (m *ReferrerMutation) ResetWorkflows()
ResetWorkflows resets all changes to the "workflows" edge.
func (*ReferrerMutation) SetAnnotations ¶
func (m *ReferrerMutation) SetAnnotations(value map[string]string)
SetAnnotations sets the "annotations" field.
func (*ReferrerMutation) SetCreatedAt ¶
func (m *ReferrerMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*ReferrerMutation) SetDigest ¶
func (m *ReferrerMutation) SetDigest(s string)
SetDigest sets the "digest" field.
func (*ReferrerMutation) SetDownloadable ¶
func (m *ReferrerMutation) SetDownloadable(b bool)
SetDownloadable sets the "downloadable" field.
func (*ReferrerMutation) SetField ¶
func (m *ReferrerMutation) 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 (*ReferrerMutation) SetID ¶
func (m *ReferrerMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Referrer entities.
func (*ReferrerMutation) SetKind ¶
func (m *ReferrerMutation) SetKind(s string)
SetKind sets the "kind" field.
func (*ReferrerMutation) SetMetadata ¶
func (m *ReferrerMutation) SetMetadata(value map[string]string)
SetMetadata sets the "metadata" field.
func (*ReferrerMutation) SetOp ¶
func (m *ReferrerMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (ReferrerMutation) Tx ¶
func (m ReferrerMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ReferrerMutation) Type ¶
func (m *ReferrerMutation) Type() string
Type returns the node type of this mutation (Referrer).
func (*ReferrerMutation) Where ¶
func (m *ReferrerMutation) Where(ps ...predicate.Referrer)
Where appends a list predicates to the ReferrerMutation builder.
func (*ReferrerMutation) WhereP ¶
func (m *ReferrerMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the ReferrerMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
func (*ReferrerMutation) WorkflowsCleared ¶
func (m *ReferrerMutation) WorkflowsCleared() bool
WorkflowsCleared reports if the "workflows" edge to the Workflow entity was cleared.
func (*ReferrerMutation) WorkflowsIDs ¶
func (m *ReferrerMutation) WorkflowsIDs() (ids []uuid.UUID)
WorkflowsIDs returns the "workflows" edge IDs in the mutation.
type ReferrerQuery ¶
type ReferrerQuery struct {
// contains filtered or unexported fields
}
ReferrerQuery is the builder for querying Referrer entities.
func (*ReferrerQuery) Aggregate ¶
func (rq *ReferrerQuery) Aggregate(fns ...AggregateFunc) *ReferrerSelect
Aggregate returns a ReferrerSelect configured with the given aggregations.
func (*ReferrerQuery) All ¶
func (rq *ReferrerQuery) All(ctx context.Context) ([]*Referrer, error)
All executes the query and returns a list of Referrers.
func (*ReferrerQuery) AllX ¶
func (rq *ReferrerQuery) AllX(ctx context.Context) []*Referrer
AllX is like All, but panics if an error occurs.
func (*ReferrerQuery) Clone ¶
func (rq *ReferrerQuery) Clone() *ReferrerQuery
Clone returns a duplicate of the ReferrerQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ReferrerQuery) Count ¶
func (rq *ReferrerQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ReferrerQuery) CountX ¶
func (rq *ReferrerQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ReferrerQuery) Exist ¶
func (rq *ReferrerQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ReferrerQuery) ExistX ¶
func (rq *ReferrerQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ReferrerQuery) First ¶
func (rq *ReferrerQuery) First(ctx context.Context) (*Referrer, error)
First returns the first Referrer entity from the query. Returns a *NotFoundError when no Referrer was found.
func (*ReferrerQuery) FirstID ¶
FirstID returns the first Referrer ID from the query. Returns a *NotFoundError when no Referrer ID was found.
func (*ReferrerQuery) FirstIDX ¶
func (rq *ReferrerQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*ReferrerQuery) FirstX ¶
func (rq *ReferrerQuery) FirstX(ctx context.Context) *Referrer
FirstX is like First, but panics if an error occurs.
func (*ReferrerQuery) ForShare ¶ added in v0.94.3
func (rq *ReferrerQuery) ForShare(opts ...sql.LockOption) *ReferrerQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*ReferrerQuery) ForUpdate ¶ added in v0.94.3
func (rq *ReferrerQuery) ForUpdate(opts ...sql.LockOption) *ReferrerQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
func (*ReferrerQuery) GroupBy ¶
func (rq *ReferrerQuery) GroupBy(field string, fields ...string) *ReferrerGroupBy
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 { Digest string `json:"digest,omitempty"` Count int `json:"count,omitempty"` } client.Referrer.Query(). GroupBy(referrer.FieldDigest). Aggregate(ent.Count()). Scan(ctx, &v)
func (*ReferrerQuery) IDsX ¶
func (rq *ReferrerQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*ReferrerQuery) Limit ¶
func (rq *ReferrerQuery) Limit(limit int) *ReferrerQuery
Limit the number of records to be returned by this query.
func (*ReferrerQuery) Modify ¶
func (rq *ReferrerQuery) Modify(modifiers ...func(s *sql.Selector)) *ReferrerSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*ReferrerQuery) Offset ¶
func (rq *ReferrerQuery) Offset(offset int) *ReferrerQuery
Offset to start from.
func (*ReferrerQuery) Only ¶
func (rq *ReferrerQuery) Only(ctx context.Context) (*Referrer, error)
Only returns a single Referrer entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Referrer entity is found. Returns a *NotFoundError when no Referrer entities are found.
func (*ReferrerQuery) OnlyID ¶
OnlyID is like Only, but returns the only Referrer ID in the query. Returns a *NotSingularError when more than one Referrer ID is found. Returns a *NotFoundError when no entities are found.
func (*ReferrerQuery) OnlyIDX ¶
func (rq *ReferrerQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ReferrerQuery) OnlyX ¶
func (rq *ReferrerQuery) OnlyX(ctx context.Context) *Referrer
OnlyX is like Only, but panics if an error occurs.
func (*ReferrerQuery) Order ¶
func (rq *ReferrerQuery) Order(o ...referrer.OrderOption) *ReferrerQuery
Order specifies how the records should be ordered.
func (*ReferrerQuery) QueryReferences ¶
func (rq *ReferrerQuery) QueryReferences() *ReferrerQuery
QueryReferences chains the current query on the "references" edge.
func (*ReferrerQuery) QueryReferredBy ¶
func (rq *ReferrerQuery) QueryReferredBy() *ReferrerQuery
QueryReferredBy chains the current query on the "referred_by" edge.
func (*ReferrerQuery) QueryWorkflows ¶
func (rq *ReferrerQuery) QueryWorkflows() *WorkflowQuery
QueryWorkflows chains the current query on the "workflows" edge.
func (*ReferrerQuery) Select ¶
func (rq *ReferrerQuery) Select(fields ...string) *ReferrerSelect
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 { Digest string `json:"digest,omitempty"` } client.Referrer.Query(). Select(referrer.FieldDigest). Scan(ctx, &v)
func (*ReferrerQuery) Unique ¶
func (rq *ReferrerQuery) Unique(unique bool) *ReferrerQuery
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 (*ReferrerQuery) Where ¶
func (rq *ReferrerQuery) Where(ps ...predicate.Referrer) *ReferrerQuery
Where adds a new predicate for the ReferrerQuery builder.
func (*ReferrerQuery) WithReferences ¶
func (rq *ReferrerQuery) WithReferences(opts ...func(*ReferrerQuery)) *ReferrerQuery
WithReferences tells the query-builder to eager-load the nodes that are connected to the "references" edge. The optional arguments are used to configure the query builder of the edge.
func (*ReferrerQuery) WithReferredBy ¶
func (rq *ReferrerQuery) WithReferredBy(opts ...func(*ReferrerQuery)) *ReferrerQuery
WithReferredBy tells the query-builder to eager-load the nodes that are connected to the "referred_by" edge. The optional arguments are used to configure the query builder of the edge.
func (*ReferrerQuery) WithWorkflows ¶
func (rq *ReferrerQuery) WithWorkflows(opts ...func(*WorkflowQuery)) *ReferrerQuery
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 ReferrerSelect ¶
type ReferrerSelect struct { *ReferrerQuery // contains filtered or unexported fields }
ReferrerSelect is the builder for selecting fields of Referrer entities.
func (*ReferrerSelect) Aggregate ¶
func (rs *ReferrerSelect) Aggregate(fns ...AggregateFunc) *ReferrerSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ReferrerSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReferrerSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReferrerSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReferrerSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReferrerSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReferrerSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReferrerSelect) Modify ¶
func (rs *ReferrerSelect) Modify(modifiers ...func(s *sql.Selector)) *ReferrerSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*ReferrerSelect) Scan ¶
func (rs *ReferrerSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ReferrerSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ReferrerUpdate ¶
type ReferrerUpdate struct {
// contains filtered or unexported fields
}
ReferrerUpdate is the builder for updating Referrer entities.
func (*ReferrerUpdate) AddReferenceIDs ¶
func (ru *ReferrerUpdate) AddReferenceIDs(ids ...uuid.UUID) *ReferrerUpdate
AddReferenceIDs adds the "references" edge to the Referrer entity by IDs.
func (*ReferrerUpdate) AddReferences ¶
func (ru *ReferrerUpdate) AddReferences(r ...*Referrer) *ReferrerUpdate
AddReferences adds the "references" edges to the Referrer entity.
func (*ReferrerUpdate) AddWorkflowIDs ¶
func (ru *ReferrerUpdate) AddWorkflowIDs(ids ...uuid.UUID) *ReferrerUpdate
AddWorkflowIDs adds the "workflows" edge to the Workflow entity by IDs.
func (*ReferrerUpdate) AddWorkflows ¶
func (ru *ReferrerUpdate) AddWorkflows(w ...*Workflow) *ReferrerUpdate
AddWorkflows adds the "workflows" edges to the Workflow entity.
func (*ReferrerUpdate) ClearReferences ¶
func (ru *ReferrerUpdate) ClearReferences() *ReferrerUpdate
ClearReferences clears all "references" edges to the Referrer entity.
func (*ReferrerUpdate) ClearWorkflows ¶
func (ru *ReferrerUpdate) ClearWorkflows() *ReferrerUpdate
ClearWorkflows clears all "workflows" edges to the Workflow entity.
func (*ReferrerUpdate) Exec ¶
func (ru *ReferrerUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ReferrerUpdate) ExecX ¶
func (ru *ReferrerUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReferrerUpdate) Modify ¶
func (ru *ReferrerUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ReferrerUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*ReferrerUpdate) Mutation ¶
func (ru *ReferrerUpdate) Mutation() *ReferrerMutation
Mutation returns the ReferrerMutation object of the builder.
func (*ReferrerUpdate) RemoveReferenceIDs ¶
func (ru *ReferrerUpdate) RemoveReferenceIDs(ids ...uuid.UUID) *ReferrerUpdate
RemoveReferenceIDs removes the "references" edge to Referrer entities by IDs.
func (*ReferrerUpdate) RemoveReferences ¶
func (ru *ReferrerUpdate) RemoveReferences(r ...*Referrer) *ReferrerUpdate
RemoveReferences removes "references" edges to Referrer entities.
func (*ReferrerUpdate) RemoveWorkflowIDs ¶
func (ru *ReferrerUpdate) RemoveWorkflowIDs(ids ...uuid.UUID) *ReferrerUpdate
RemoveWorkflowIDs removes the "workflows" edge to Workflow entities by IDs.
func (*ReferrerUpdate) RemoveWorkflows ¶
func (ru *ReferrerUpdate) RemoveWorkflows(w ...*Workflow) *ReferrerUpdate
RemoveWorkflows removes "workflows" edges to Workflow entities.
func (*ReferrerUpdate) Save ¶
func (ru *ReferrerUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*ReferrerUpdate) SaveX ¶
func (ru *ReferrerUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ReferrerUpdate) Where ¶
func (ru *ReferrerUpdate) Where(ps ...predicate.Referrer) *ReferrerUpdate
Where appends a list predicates to the ReferrerUpdate builder.
type ReferrerUpdateOne ¶
type ReferrerUpdateOne struct {
// contains filtered or unexported fields
}
ReferrerUpdateOne is the builder for updating a single Referrer entity.
func (*ReferrerUpdateOne) AddReferenceIDs ¶
func (ruo *ReferrerUpdateOne) AddReferenceIDs(ids ...uuid.UUID) *ReferrerUpdateOne
AddReferenceIDs adds the "references" edge to the Referrer entity by IDs.
func (*ReferrerUpdateOne) AddReferences ¶
func (ruo *ReferrerUpdateOne) AddReferences(r ...*Referrer) *ReferrerUpdateOne
AddReferences adds the "references" edges to the Referrer entity.
func (*ReferrerUpdateOne) AddWorkflowIDs ¶
func (ruo *ReferrerUpdateOne) AddWorkflowIDs(ids ...uuid.UUID) *ReferrerUpdateOne
AddWorkflowIDs adds the "workflows" edge to the Workflow entity by IDs.
func (*ReferrerUpdateOne) AddWorkflows ¶
func (ruo *ReferrerUpdateOne) AddWorkflows(w ...*Workflow) *ReferrerUpdateOne
AddWorkflows adds the "workflows" edges to the Workflow entity.
func (*ReferrerUpdateOne) ClearReferences ¶
func (ruo *ReferrerUpdateOne) ClearReferences() *ReferrerUpdateOne
ClearReferences clears all "references" edges to the Referrer entity.
func (*ReferrerUpdateOne) ClearWorkflows ¶
func (ruo *ReferrerUpdateOne) ClearWorkflows() *ReferrerUpdateOne
ClearWorkflows clears all "workflows" edges to the Workflow entity.
func (*ReferrerUpdateOne) Exec ¶
func (ruo *ReferrerUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ReferrerUpdateOne) ExecX ¶
func (ruo *ReferrerUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReferrerUpdateOne) Modify ¶
func (ruo *ReferrerUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ReferrerUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*ReferrerUpdateOne) Mutation ¶
func (ruo *ReferrerUpdateOne) Mutation() *ReferrerMutation
Mutation returns the ReferrerMutation object of the builder.
func (*ReferrerUpdateOne) RemoveReferenceIDs ¶
func (ruo *ReferrerUpdateOne) RemoveReferenceIDs(ids ...uuid.UUID) *ReferrerUpdateOne
RemoveReferenceIDs removes the "references" edge to Referrer entities by IDs.
func (*ReferrerUpdateOne) RemoveReferences ¶
func (ruo *ReferrerUpdateOne) RemoveReferences(r ...*Referrer) *ReferrerUpdateOne
RemoveReferences removes "references" edges to Referrer entities.
func (*ReferrerUpdateOne) RemoveWorkflowIDs ¶
func (ruo *ReferrerUpdateOne) RemoveWorkflowIDs(ids ...uuid.UUID) *ReferrerUpdateOne
RemoveWorkflowIDs removes the "workflows" edge to Workflow entities by IDs.
func (*ReferrerUpdateOne) RemoveWorkflows ¶
func (ruo *ReferrerUpdateOne) RemoveWorkflows(w ...*Workflow) *ReferrerUpdateOne
RemoveWorkflows removes "workflows" edges to Workflow entities.
func (*ReferrerUpdateOne) Save ¶
func (ruo *ReferrerUpdateOne) Save(ctx context.Context) (*Referrer, error)
Save executes the query and returns the updated Referrer entity.
func (*ReferrerUpdateOne) SaveX ¶
func (ruo *ReferrerUpdateOne) SaveX(ctx context.Context) *Referrer
SaveX is like Save, but panics if an error occurs.
func (*ReferrerUpdateOne) Select ¶
func (ruo *ReferrerUpdateOne) Select(field string, fields ...string) *ReferrerUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*ReferrerUpdateOne) Where ¶
func (ruo *ReferrerUpdateOne) Where(ps ...predicate.Referrer) *ReferrerUpdateOne
Where appends a list predicates to the ReferrerUpdate builder.
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) 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) MapCreateBulk ¶ added in v0.91.6
func (c *RobotAccountClient) MapCreateBulk(slice any, setFunc func(*RobotAccountCreate, int)) *RobotAccountCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
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) 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) 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"` // 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.
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) 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) 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) 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) 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) 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.
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) ForShare ¶ added in v0.94.3
func (raq *RobotAccountQuery) ForShare(opts ...sql.LockOption) *RobotAccountQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*RobotAccountQuery) ForUpdate ¶ added in v0.94.3
func (raq *RobotAccountQuery) ForUpdate(opts ...sql.LockOption) *RobotAccountQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
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) Modify ¶
func (raq *RobotAccountQuery) Modify(modifiers ...func(s *sql.Selector)) *RobotAccountSelect
Modify adds a query modifier for attaching custom logic to queries.
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 ...robotaccount.OrderOption) *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) 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.
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) Modify ¶
func (ras *RobotAccountSelect) Modify(modifiers ...func(s *sql.Selector)) *RobotAccountSelect
Modify adds a query modifier for attaching custom logic to queries.
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) 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) 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) Modify ¶
func (rau *RobotAccountUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *RobotAccountUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*RobotAccountUpdate) Mutation ¶
func (rau *RobotAccountUpdate) Mutation() *RobotAccountMutation
Mutation returns the RobotAccountMutation object of the builder.
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) SetNillableName ¶ added in v0.91.6
func (rau *RobotAccountUpdate) SetNillableName(s *string) *RobotAccountUpdate
SetNillableName sets the "name" field if the given value is not nil.
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) 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) 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) Modify ¶
func (rauo *RobotAccountUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *RobotAccountUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*RobotAccountUpdateOne) Mutation ¶
func (rauo *RobotAccountUpdateOne) Mutation() *RobotAccountMutation
Mutation returns the RobotAccountMutation object of the builder.
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) SetNillableName ¶ added in v0.91.6
func (rauo *RobotAccountUpdateOne) SetNillableName(s *string) *RobotAccountUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
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 { // APIToken is the client for interacting with the APIToken builders. APIToken *APITokenClient // CASBackend is the client for interacting with the CASBackend builders. CASBackend *CASBackendClient // CASMapping is the client for interacting with the CASMapping builders. CASMapping *CASMappingClient // 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 // OrgInvitation is the client for interacting with the OrgInvitation builders. OrgInvitation *OrgInvitationClient // Organization is the client for interacting with the Organization builders. Organization *OrganizationClient // Referrer is the client for interacting with the Referrer builders. Referrer *ReferrerClient // 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) MapCreateBulk ¶ added in v0.91.6
func (c *UserClient) MapCreateBulk(slice any, setFunc func(*UserCreate, int)) *UserCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
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) ForShare ¶ added in v0.94.3
func (uq *UserQuery) ForShare(opts ...sql.LockOption) *UserQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*UserQuery) ForUpdate ¶ added in v0.94.3
func (uq *UserQuery) ForUpdate(opts ...sql.LockOption) *UserQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
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) Modify ¶
func (uq *UserQuery) Modify(modifiers ...func(s *sql.Selector)) *UserSelect
Modify adds a query modifier for attaching custom logic to queries.
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) Order ¶
func (uq *UserQuery) Order(o ...user.OrderOption) *UserQuery
Order specifies how the records should be ordered.
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) Modify ¶
func (us *UserSelect) Modify(modifiers ...func(s *sql.Selector)) *UserSelect
Modify adds a query modifier for attaching custom logic to queries.
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) Modify ¶
func (uu *UserUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *UserUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
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) SetNillableEmail ¶ added in v0.91.6
func (uu *UserUpdate) SetNillableEmail(s *string) *UserUpdate
SetNillableEmail sets the "email" field if the given value is not nil.
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) Modify ¶
func (uuo *UserUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *UserUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
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) SetNillableEmail ¶ added in v0.91.6
func (uuo *UserUpdateOne) SetNillableEmail(s *string) *UserUpdateOne
SetNillableEmail sets the "email" field if the given value is not nil.
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"` // Public holds the value of the "public" field. Public bool `json:"public,omitempty"` // OrganizationID holds the value of the "organization_id" field. OrganizationID uuid.UUID `json:"organization_id,omitempty"` // Description holds the value of the "description" field. Description string `json:"description,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) QueryReferrers ¶
func (w *Workflow) QueryReferrers() *ReferrerQuery
QueryReferrers queries the "referrers" 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) MapCreateBulk ¶ added in v0.91.6
func (c *WorkflowClient) MapCreateBulk(slice any, setFunc func(*WorkflowCreate, int)) *WorkflowCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
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) QueryReferrers ¶
func (c *WorkflowClient) QueryReferrers(w *Workflow) *ReferrerQuery
QueryReferrers queries the referrers 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"` // Description holds the value of the "description" field. Description string `json:"description,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) MapCreateBulk ¶ added in v0.91.6
func (c *WorkflowContractClient) MapCreateBulk(slice any, setFunc func(*WorkflowContractCreate, int)) *WorkflowContractCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
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) SetDescription ¶
func (wcc *WorkflowContractCreate) SetDescription(s string) *WorkflowContractCreate
SetDescription sets the "description" 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) SetNillableDescription ¶
func (wcc *WorkflowContractCreate) SetNillableDescription(s *string) *WorkflowContractCreate
SetNillableDescription sets the "description" 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) ClearDescription ¶
func (m *WorkflowContractMutation) ClearDescription()
ClearDescription clears the value of the "description" 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) Description ¶
func (m *WorkflowContractMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*WorkflowContractMutation) DescriptionCleared ¶
func (m *WorkflowContractMutation) DescriptionCleared() bool
DescriptionCleared returns if the "description" 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) OldDescription ¶
func (m *WorkflowContractMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" 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) ResetDescription ¶
func (m *WorkflowContractMutation) ResetDescription()
ResetDescription resets all changes to the "description" 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) SetDescription ¶
func (m *WorkflowContractMutation) SetDescription(s string)
SetDescription sets the "description" 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) ForShare ¶ added in v0.94.3
func (wcq *WorkflowContractQuery) ForShare(opts ...sql.LockOption) *WorkflowContractQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*WorkflowContractQuery) ForUpdate ¶ added in v0.94.3
func (wcq *WorkflowContractQuery) ForUpdate(opts ...sql.LockOption) *WorkflowContractQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
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) Modify ¶
func (wcq *WorkflowContractQuery) Modify(modifiers ...func(s *sql.Selector)) *WorkflowContractSelect
Modify adds a query modifier for attaching custom logic to queries.
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 ...workflowcontract.OrderOption) *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) Modify ¶
func (wcs *WorkflowContractSelect) Modify(modifiers ...func(s *sql.Selector)) *WorkflowContractSelect
Modify adds a query modifier for attaching custom logic to queries.
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) ClearDescription ¶
func (wcu *WorkflowContractUpdate) ClearDescription() *WorkflowContractUpdate
ClearDescription clears the value of the "description" 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) Modify ¶
func (wcu *WorkflowContractUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *WorkflowContractUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
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) SetDescription ¶
func (wcu *WorkflowContractUpdate) SetDescription(s string) *WorkflowContractUpdate
SetDescription sets the "description" 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) SetNillableDescription ¶
func (wcu *WorkflowContractUpdate) SetNillableDescription(s *string) *WorkflowContractUpdate
SetNillableDescription sets the "description" 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) ClearDescription ¶
func (wcuo *WorkflowContractUpdateOne) ClearDescription() *WorkflowContractUpdateOne
ClearDescription clears the value of the "description" 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) Modify ¶
func (wcuo *WorkflowContractUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *WorkflowContractUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
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) SetDescription ¶
func (wcuo *WorkflowContractUpdateOne) SetDescription(s string) *WorkflowContractUpdateOne
SetDescription sets the "description" 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) SetNillableDescription ¶
func (wcuo *WorkflowContractUpdateOne) SetNillableDescription(s *string) *WorkflowContractUpdateOne
SetNillableDescription sets the "description" 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"` // RawBody holds the value of the "raw_body" field. RawBody []byte `json:"raw_body,omitempty"` // RawBodyFormat holds the value of the "raw_body_format" field. RawBodyFormat biz.ContractRawFormat `json:"raw_body_format,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) MapCreateBulk ¶ added in v0.91.6
func (c *WorkflowContractVersionClient) MapCreateBulk(slice any, setFunc func(*WorkflowContractVersionCreate, int)) *WorkflowContractVersionCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
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) SetRawBody ¶ added in v0.96.0
func (wcvc *WorkflowContractVersionCreate) SetRawBody(b []byte) *WorkflowContractVersionCreate
SetRawBody sets the "raw_body" field.
func (*WorkflowContractVersionCreate) SetRawBodyFormat ¶ added in v0.96.0
func (wcvc *WorkflowContractVersionCreate) SetRawBodyFormat(brf biz.ContractRawFormat) *WorkflowContractVersionCreate
SetRawBodyFormat sets the "raw_body_format" field.
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) BodyCleared ¶ added in v0.96.0
func (m *WorkflowContractVersionMutation) BodyCleared() bool
BodyCleared returns if the "body" field was cleared in this mutation.
func (*WorkflowContractVersionMutation) ClearBody ¶ added in v0.96.0
func (m *WorkflowContractVersionMutation) ClearBody()
ClearBody clears the value of the "body" field.
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) OldRawBody ¶ added in v0.96.0
func (m *WorkflowContractVersionMutation) OldRawBody(ctx context.Context) (v []byte, err error)
OldRawBody returns the old "raw_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) OldRawBodyFormat ¶ added in v0.96.0
func (m *WorkflowContractVersionMutation) OldRawBodyFormat(ctx context.Context) (v biz.ContractRawFormat, err error)
OldRawBodyFormat returns the old "raw_body_format" 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) 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) RawBody ¶ added in v0.96.0
func (m *WorkflowContractVersionMutation) RawBody() (r []byte, exists bool)
RawBody returns the value of the "raw_body" field in the mutation.
func (*WorkflowContractVersionMutation) RawBodyFormat ¶ added in v0.96.0
func (m *WorkflowContractVersionMutation) RawBodyFormat() (r biz.ContractRawFormat, exists bool)
RawBodyFormat returns the value of the "raw_body_format" field in the mutation.
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) ResetRawBody ¶ added in v0.96.0
func (m *WorkflowContractVersionMutation) ResetRawBody()
ResetRawBody resets all changes to the "raw_body" field.
func (*WorkflowContractVersionMutation) ResetRawBodyFormat ¶ added in v0.96.0
func (m *WorkflowContractVersionMutation) ResetRawBodyFormat()
ResetRawBodyFormat resets all changes to the "raw_body_format" field.
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) SetRawBody ¶ added in v0.96.0
func (m *WorkflowContractVersionMutation) SetRawBody(b []byte)
SetRawBody sets the "raw_body" field.
func (*WorkflowContractVersionMutation) SetRawBodyFormat ¶ added in v0.96.0
func (m *WorkflowContractVersionMutation) SetRawBodyFormat(brf biz.ContractRawFormat)
SetRawBodyFormat sets the "raw_body_format" field.
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) ForShare ¶ added in v0.94.3
func (wcvq *WorkflowContractVersionQuery) ForShare(opts ...sql.LockOption) *WorkflowContractVersionQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*WorkflowContractVersionQuery) ForUpdate ¶ added in v0.94.3
func (wcvq *WorkflowContractVersionQuery) ForUpdate(opts ...sql.LockOption) *WorkflowContractVersionQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
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) Modify ¶
func (wcvq *WorkflowContractVersionQuery) Modify(modifiers ...func(s *sql.Selector)) *WorkflowContractVersionSelect
Modify adds a query modifier for attaching custom logic to queries.
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 ...workflowcontractversion.OrderOption) *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) Modify ¶
func (wcvs *WorkflowContractVersionSelect) Modify(modifiers ...func(s *sql.Selector)) *WorkflowContractVersionSelect
Modify adds a query modifier for attaching custom logic to queries.
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) Modify ¶
func (wcvu *WorkflowContractVersionUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *WorkflowContractVersionUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
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) SetNillableRawBodyFormat ¶ added in v0.96.0
func (wcvu *WorkflowContractVersionUpdate) SetNillableRawBodyFormat(brf *biz.ContractRawFormat) *WorkflowContractVersionUpdate
SetNillableRawBodyFormat sets the "raw_body_format" field if the given value is not nil.
func (*WorkflowContractVersionUpdate) SetRawBodyFormat ¶ added in v0.96.0
func (wcvu *WorkflowContractVersionUpdate) SetRawBodyFormat(brf biz.ContractRawFormat) *WorkflowContractVersionUpdate
SetRawBodyFormat sets the "raw_body_format" field.
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) Modify ¶
func (wcvuo *WorkflowContractVersionUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *WorkflowContractVersionUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
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) SetNillableRawBodyFormat ¶ added in v0.96.0
func (wcvuo *WorkflowContractVersionUpdateOne) SetNillableRawBodyFormat(brf *biz.ContractRawFormat) *WorkflowContractVersionUpdateOne
SetNillableRawBodyFormat sets the "raw_body_format" field if the given value is not nil.
func (*WorkflowContractVersionUpdateOne) SetRawBodyFormat ¶ added in v0.96.0
func (wcvuo *WorkflowContractVersionUpdateOne) SetRawBodyFormat(brf biz.ContractRawFormat) *WorkflowContractVersionUpdateOne
SetRawBodyFormat sets the "raw_body_format" field.
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) AddReferrerIDs ¶
func (wc *WorkflowCreate) AddReferrerIDs(ids ...uuid.UUID) *WorkflowCreate
AddReferrerIDs adds the "referrers" edge to the Referrer entity by IDs.
func (*WorkflowCreate) AddReferrers ¶
func (wc *WorkflowCreate) AddReferrers(r ...*Referrer) *WorkflowCreate
AddReferrers adds the "referrers" edges to the Referrer 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) SetDescription ¶
func (wc *WorkflowCreate) SetDescription(s string) *WorkflowCreate
SetDescription sets the "description" 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) SetNillableDescription ¶
func (wc *WorkflowCreate) SetNillableDescription(s *string) *WorkflowCreate
SetNillableDescription sets the "description" 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) SetNillablePublic ¶
func (wc *WorkflowCreate) SetNillablePublic(b *bool) *WorkflowCreate
SetNillablePublic sets the "public" 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(u uuid.UUID) *WorkflowCreate
SetOrganizationID sets the "organization_id" field.
func (*WorkflowCreate) SetProject ¶
func (wc *WorkflowCreate) SetProject(s string) *WorkflowCreate
SetProject sets the "project" field.
func (*WorkflowCreate) SetPublic ¶
func (wc *WorkflowCreate) SetPublic(b bool) *WorkflowCreate
SetPublic sets the "public" 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"` // Referrers holds the value of the referrers edge. Referrers []*Referrer `json:"referrers,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) ReferrersOrErr ¶
func (e WorkflowEdges) ReferrersOrErr() ([]*Referrer, error)
ReferrersOrErr returns the Referrers value or an error if the edge was not loaded in eager-loading.
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) AddReferrerIDs ¶
func (m *WorkflowMutation) AddReferrerIDs(ids ...uuid.UUID)
AddReferrerIDs adds the "referrers" edge to the Referrer 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) ClearDescription ¶
func (m *WorkflowMutation) ClearDescription()
ClearDescription clears the value of the "description" 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) ClearReferrers ¶
func (m *WorkflowMutation) ClearReferrers()
ClearReferrers clears the "referrers" edge to the Referrer entity.
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) Description ¶
func (m *WorkflowMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*WorkflowMutation) DescriptionCleared ¶
func (m *WorkflowMutation) DescriptionCleared() bool
DescriptionCleared returns if the "description" 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) OldDescription ¶
func (m *WorkflowMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" 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) OldOrganizationID ¶
OldOrganizationID returns the old "organization_id" 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) OldPublic ¶
func (m *WorkflowMutation) OldPublic(ctx context.Context) (v bool, err error)
OldPublic returns the old "public" 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() (r uuid.UUID, exists bool)
OrganizationID returns the value of the "organization_id" field 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) Public ¶
func (m *WorkflowMutation) Public() (r bool, exists bool)
Public returns the value of the "public" field in the mutation.
func (*WorkflowMutation) ReferrersCleared ¶
func (m *WorkflowMutation) ReferrersCleared() bool
ReferrersCleared reports if the "referrers" edge to the Referrer entity was cleared.
func (*WorkflowMutation) ReferrersIDs ¶
func (m *WorkflowMutation) ReferrersIDs() (ids []uuid.UUID)
ReferrersIDs returns the "referrers" edge IDs in the 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) RemoveReferrerIDs ¶
func (m *WorkflowMutation) RemoveReferrerIDs(ids ...uuid.UUID)
RemoveReferrerIDs removes the "referrers" edge to the Referrer 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) RemovedReferrersIDs ¶
func (m *WorkflowMutation) RemovedReferrersIDs() (ids []uuid.UUID)
RemovedReferrers returns the removed IDs of the "referrers" edge to the Referrer 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) ResetDescription ¶
func (m *WorkflowMutation) ResetDescription()
ResetDescription resets all changes to the "description" 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) ResetOrganizationID ¶
func (m *WorkflowMutation) ResetOrganizationID()
ResetOrganizationID resets all changes to the "organization_id" field.
func (*WorkflowMutation) ResetProject ¶
func (m *WorkflowMutation) ResetProject()
ResetProject resets all changes to the "project" field.
func (*WorkflowMutation) ResetPublic ¶
func (m *WorkflowMutation) ResetPublic()
ResetPublic resets all changes to the "public" field.
func (*WorkflowMutation) ResetReferrers ¶
func (m *WorkflowMutation) ResetReferrers()
ResetReferrers resets all changes to the "referrers" edge.
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) SetDescription ¶
func (m *WorkflowMutation) SetDescription(s string)
SetDescription sets the "description" 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(u uuid.UUID)
SetOrganizationID sets the "organization_id" field.
func (*WorkflowMutation) SetProject ¶
func (m *WorkflowMutation) SetProject(s string)
SetProject sets the "project" field.
func (*WorkflowMutation) SetPublic ¶
func (m *WorkflowMutation) SetPublic(b bool)
SetPublic sets the "public" 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) ForShare ¶ added in v0.94.3
func (wq *WorkflowQuery) ForShare(opts ...sql.LockOption) *WorkflowQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*WorkflowQuery) ForUpdate ¶ added in v0.94.3
func (wq *WorkflowQuery) ForUpdate(opts ...sql.LockOption) *WorkflowQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
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) Modify ¶
func (wq *WorkflowQuery) Modify(modifiers ...func(s *sql.Selector)) *WorkflowSelect
Modify adds a query modifier for attaching custom logic to queries.
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 ...workflow.OrderOption) *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) QueryReferrers ¶
func (wq *WorkflowQuery) QueryReferrers() *ReferrerQuery
QueryReferrers chains the current query on the "referrers" 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) WithReferrers ¶
func (wq *WorkflowQuery) WithReferrers(opts ...func(*ReferrerQuery)) *WorkflowQuery
WithReferrers tells the query-builder to eager-load the nodes that are connected to the "referrers" 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"` // AttestationDigest holds the value of the "attestation_digest" field. AttestationDigest string `json:"attestation_digest,omitempty"` // AttestationState holds the value of the "attestation_state" field. AttestationState []byte `json:"attestation_state,omitempty"` // ContractRevisionUsed holds the value of the "contract_revision_used" field. ContractRevisionUsed int `json:"contract_revision_used,omitempty"` // ContractRevisionLatest holds the value of the "contract_revision_latest" field. ContractRevisionLatest int `json:"contract_revision_latest,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) QueryCasBackends ¶
func (wr *WorkflowRun) QueryCasBackends() *CASBackendQuery
QueryCasBackends queries the "cas_backends" edge of the WorkflowRun entity.
func (*WorkflowRun) QueryContractVersion ¶
func (wr *WorkflowRun) QueryContractVersion() *WorkflowContractVersionQuery
QueryContractVersion queries the "contract_version" 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) MapCreateBulk ¶ added in v0.91.6
func (c *WorkflowRunClient) MapCreateBulk(slice any, setFunc func(*WorkflowRunCreate, int)) *WorkflowRunCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*WorkflowRunClient) Query ¶
func (c *WorkflowRunClient) Query() *WorkflowRunQuery
Query returns a query builder for WorkflowRun.
func (*WorkflowRunClient) QueryCasBackends ¶
func (c *WorkflowRunClient) QueryCasBackends(wr *WorkflowRun) *CASBackendQuery
QueryCasBackends queries the cas_backends edge of a WorkflowRun.
func (*WorkflowRunClient) QueryContractVersion ¶
func (c *WorkflowRunClient) QueryContractVersion(wr *WorkflowRun) *WorkflowContractVersionQuery
QueryContractVersion queries the contract_version 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) AddCasBackendIDs ¶
func (wrc *WorkflowRunCreate) AddCasBackendIDs(ids ...uuid.UUID) *WorkflowRunCreate
AddCasBackendIDs adds the "cas_backends" edge to the CASBackend entity by IDs.
func (*WorkflowRunCreate) AddCasBackends ¶
func (wrc *WorkflowRunCreate) AddCasBackends(c ...*CASBackend) *WorkflowRunCreate
AddCasBackends adds the "cas_backends" edges to the CASBackend 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 ¶
func (wrc *WorkflowRunCreate) SetAttestation(d *dsse.Envelope) *WorkflowRunCreate
SetAttestation sets the "attestation" field.
func (*WorkflowRunCreate) SetAttestationDigest ¶
func (wrc *WorkflowRunCreate) SetAttestationDigest(s string) *WorkflowRunCreate
SetAttestationDigest sets the "attestation_digest" field.
func (*WorkflowRunCreate) SetAttestationState ¶
func (wrc *WorkflowRunCreate) SetAttestationState(b []byte) *WorkflowRunCreate
SetAttestationState sets the "attestation_state" field.
func (*WorkflowRunCreate) SetContractRevisionLatest ¶
func (wrc *WorkflowRunCreate) SetContractRevisionLatest(i int) *WorkflowRunCreate
SetContractRevisionLatest sets the "contract_revision_latest" field.
func (*WorkflowRunCreate) SetContractRevisionUsed ¶
func (wrc *WorkflowRunCreate) SetContractRevisionUsed(i int) *WorkflowRunCreate
SetContractRevisionUsed sets the "contract_revision_used" 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) SetNillableAttestationDigest ¶
func (wrc *WorkflowRunCreate) SetNillableAttestationDigest(s *string) *WorkflowRunCreate
SetNillableAttestationDigest sets the "attestation_digest" field if the given value is not nil.
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) 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) 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"` // ContractVersion holds the value of the contract_version edge. ContractVersion *WorkflowContractVersion `json:"contract_version,omitempty"` // CasBackends holds the value of the cas_backends edge. CasBackends []*CASBackend `json:"cas_backends,omitempty"` // contains filtered or unexported fields }
WorkflowRunEdges holds the relations/edges for other nodes in the graph.
func (WorkflowRunEdges) CasBackendsOrErr ¶
func (e WorkflowRunEdges) CasBackendsOrErr() ([]*CASBackend, error)
CasBackendsOrErr returns the CasBackends value or an error if the edge was not loaded in eager-loading.
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) 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) AddCasBackendIDs ¶
func (m *WorkflowRunMutation) AddCasBackendIDs(ids ...uuid.UUID)
AddCasBackendIDs adds the "cas_backends" edge to the CASBackend entity by ids.
func (*WorkflowRunMutation) AddContractRevisionLatest ¶
func (m *WorkflowRunMutation) AddContractRevisionLatest(i int)
AddContractRevisionLatest adds i to the "contract_revision_latest" field.
func (*WorkflowRunMutation) AddContractRevisionUsed ¶
func (m *WorkflowRunMutation) AddContractRevisionUsed(i int)
AddContractRevisionUsed adds i to the "contract_revision_used" field.
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) AddedContractRevisionLatest ¶
func (m *WorkflowRunMutation) AddedContractRevisionLatest() (r int, exists bool)
AddedContractRevisionLatest returns the value that was added to the "contract_revision_latest" field in this mutation.
func (*WorkflowRunMutation) AddedContractRevisionUsed ¶
func (m *WorkflowRunMutation) AddedContractRevisionUsed() (r int, exists bool)
AddedContractRevisionUsed returns the value that was added to the "contract_revision_used" field in this mutation.
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 ¶
func (m *WorkflowRunMutation) Attestation() (r *dsse.Envelope, exists bool)
Attestation returns the value of the "attestation" field in the mutation.
func (*WorkflowRunMutation) AttestationCleared ¶
func (m *WorkflowRunMutation) AttestationCleared() bool
AttestationCleared returns if the "attestation" field was cleared in this mutation.
func (*WorkflowRunMutation) AttestationDigest ¶
func (m *WorkflowRunMutation) AttestationDigest() (r string, exists bool)
AttestationDigest returns the value of the "attestation_digest" field in the mutation.
func (*WorkflowRunMutation) AttestationDigestCleared ¶
func (m *WorkflowRunMutation) AttestationDigestCleared() bool
AttestationDigestCleared returns if the "attestation_digest" field was cleared in this mutation.
func (*WorkflowRunMutation) AttestationState ¶
func (m *WorkflowRunMutation) AttestationState() (r []byte, exists bool)
AttestationState returns the value of the "attestation_state" field in the mutation.
func (*WorkflowRunMutation) AttestationStateCleared ¶
func (m *WorkflowRunMutation) AttestationStateCleared() bool
AttestationStateCleared returns if the "attestation_state" field was cleared in this mutation.
func (*WorkflowRunMutation) CasBackendsCleared ¶
func (m *WorkflowRunMutation) CasBackendsCleared() bool
CasBackendsCleared reports if the "cas_backends" edge to the CASBackend entity was cleared.
func (*WorkflowRunMutation) CasBackendsIDs ¶
func (m *WorkflowRunMutation) CasBackendsIDs() (ids []uuid.UUID)
CasBackendsIDs returns the "cas_backends" edge IDs in the mutation.
func (*WorkflowRunMutation) ClearAttestation ¶
func (m *WorkflowRunMutation) ClearAttestation()
ClearAttestation clears the value of the "attestation" field.
func (*WorkflowRunMutation) ClearAttestationDigest ¶
func (m *WorkflowRunMutation) ClearAttestationDigest()
ClearAttestationDigest clears the value of the "attestation_digest" field.
func (*WorkflowRunMutation) ClearAttestationState ¶
func (m *WorkflowRunMutation) ClearAttestationState()
ClearAttestationState clears the value of the "attestation_state" field.
func (*WorkflowRunMutation) ClearCasBackends ¶
func (m *WorkflowRunMutation) ClearCasBackends()
ClearCasBackends clears the "cas_backends" edge to the CASBackend entity.
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) 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) ContractRevisionLatest ¶
func (m *WorkflowRunMutation) ContractRevisionLatest() (r int, exists bool)
ContractRevisionLatest returns the value of the "contract_revision_latest" field in the mutation.
func (*WorkflowRunMutation) ContractRevisionUsed ¶
func (m *WorkflowRunMutation) ContractRevisionUsed() (r int, exists bool)
ContractRevisionUsed returns the value of the "contract_revision_used" field in the mutation.
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 ¶
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) OldAttestationDigest ¶
func (m *WorkflowRunMutation) OldAttestationDigest(ctx context.Context) (v string, err error)
OldAttestationDigest returns the old "attestation_digest" 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) OldAttestationState ¶
func (m *WorkflowRunMutation) OldAttestationState(ctx context.Context) (v []byte, err error)
OldAttestationState returns the old "attestation_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) OldContractRevisionLatest ¶
func (m *WorkflowRunMutation) OldContractRevisionLatest(ctx context.Context) (v int, err error)
OldContractRevisionLatest returns the old "contract_revision_latest" 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) OldContractRevisionUsed ¶
func (m *WorkflowRunMutation) OldContractRevisionUsed(ctx context.Context) (v int, err error)
OldContractRevisionUsed returns the old "contract_revision_used" 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) RemoveCasBackendIDs ¶
func (m *WorkflowRunMutation) RemoveCasBackendIDs(ids ...uuid.UUID)
RemoveCasBackendIDs removes the "cas_backends" edge to the CASBackend entity by IDs.
func (*WorkflowRunMutation) RemovedCasBackendsIDs ¶
func (m *WorkflowRunMutation) RemovedCasBackendsIDs() (ids []uuid.UUID)
RemovedCasBackends returns the removed IDs of the "cas_backends" edge to the CASBackend entity.
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 ¶
func (m *WorkflowRunMutation) ResetAttestation()
ResetAttestation resets all changes to the "attestation" field.
func (*WorkflowRunMutation) ResetAttestationDigest ¶
func (m *WorkflowRunMutation) ResetAttestationDigest()
ResetAttestationDigest resets all changes to the "attestation_digest" field.
func (*WorkflowRunMutation) ResetAttestationState ¶
func (m *WorkflowRunMutation) ResetAttestationState()
ResetAttestationState resets all changes to the "attestation_state" field.
func (*WorkflowRunMutation) ResetCasBackends ¶
func (m *WorkflowRunMutation) ResetCasBackends()
ResetCasBackends resets all changes to the "cas_backends" edge.
func (*WorkflowRunMutation) ResetContractRevisionLatest ¶
func (m *WorkflowRunMutation) ResetContractRevisionLatest()
ResetContractRevisionLatest resets all changes to the "contract_revision_latest" field.
func (*WorkflowRunMutation) ResetContractRevisionUsed ¶
func (m *WorkflowRunMutation) ResetContractRevisionUsed()
ResetContractRevisionUsed resets all changes to the "contract_revision_used" 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) 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) 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 ¶
func (m *WorkflowRunMutation) SetAttestation(d *dsse.Envelope)
SetAttestation sets the "attestation" field.
func (*WorkflowRunMutation) SetAttestationDigest ¶
func (m *WorkflowRunMutation) SetAttestationDigest(s string)
SetAttestationDigest sets the "attestation_digest" field.
func (*WorkflowRunMutation) SetAttestationState ¶
func (m *WorkflowRunMutation) SetAttestationState(b []byte)
SetAttestationState sets the "attestation_state" field.
func (*WorkflowRunMutation) SetContractRevisionLatest ¶
func (m *WorkflowRunMutation) SetContractRevisionLatest(i int)
SetContractRevisionLatest sets the "contract_revision_latest" field.
func (*WorkflowRunMutation) SetContractRevisionUsed ¶
func (m *WorkflowRunMutation) SetContractRevisionUsed(i int)
SetContractRevisionUsed sets the "contract_revision_used" 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) 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) ForShare ¶ added in v0.94.3
func (wrq *WorkflowRunQuery) ForShare(opts ...sql.LockOption) *WorkflowRunQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*WorkflowRunQuery) ForUpdate ¶ added in v0.94.3
func (wrq *WorkflowRunQuery) ForUpdate(opts ...sql.LockOption) *WorkflowRunQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
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) Modify ¶
func (wrq *WorkflowRunQuery) Modify(modifiers ...func(s *sql.Selector)) *WorkflowRunSelect
Modify adds a query modifier for attaching custom logic to queries.
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 ...workflowrun.OrderOption) *WorkflowRunQuery
Order specifies how the records should be ordered.
func (*WorkflowRunQuery) QueryCasBackends ¶
func (wrq *WorkflowRunQuery) QueryCasBackends() *CASBackendQuery
QueryCasBackends chains the current query on the "cas_backends" edge.
func (*WorkflowRunQuery) QueryContractVersion ¶
func (wrq *WorkflowRunQuery) QueryContractVersion() *WorkflowContractVersionQuery
QueryContractVersion chains the current query on the "contract_version" 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) WithCasBackends ¶
func (wrq *WorkflowRunQuery) WithCasBackends(opts ...func(*CASBackendQuery)) *WorkflowRunQuery
WithCasBackends tells the query-builder to eager-load the nodes that are connected to the "cas_backends" edge. The optional arguments are used to configure the query builder of the edge.
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) 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) Modify ¶
func (wrs *WorkflowRunSelect) Modify(modifiers ...func(s *sql.Selector)) *WorkflowRunSelect
Modify adds a query modifier for attaching custom logic to queries.
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) AddCasBackendIDs ¶
func (wru *WorkflowRunUpdate) AddCasBackendIDs(ids ...uuid.UUID) *WorkflowRunUpdate
AddCasBackendIDs adds the "cas_backends" edge to the CASBackend entity by IDs.
func (*WorkflowRunUpdate) AddCasBackends ¶
func (wru *WorkflowRunUpdate) AddCasBackends(c ...*CASBackend) *WorkflowRunUpdate
AddCasBackends adds the "cas_backends" edges to the CASBackend entity.
func (*WorkflowRunUpdate) AddContractRevisionLatest ¶
func (wru *WorkflowRunUpdate) AddContractRevisionLatest(i int) *WorkflowRunUpdate
AddContractRevisionLatest adds i to the "contract_revision_latest" field.
func (*WorkflowRunUpdate) AddContractRevisionUsed ¶
func (wru *WorkflowRunUpdate) AddContractRevisionUsed(i int) *WorkflowRunUpdate
AddContractRevisionUsed adds i to the "contract_revision_used" field.
func (*WorkflowRunUpdate) ClearAttestation ¶
func (wru *WorkflowRunUpdate) ClearAttestation() *WorkflowRunUpdate
ClearAttestation clears the value of the "attestation" field.
func (*WorkflowRunUpdate) ClearAttestationDigest ¶
func (wru *WorkflowRunUpdate) ClearAttestationDigest() *WorkflowRunUpdate
ClearAttestationDigest clears the value of the "attestation_digest" field.
func (*WorkflowRunUpdate) ClearAttestationState ¶
func (wru *WorkflowRunUpdate) ClearAttestationState() *WorkflowRunUpdate
ClearAttestationState clears the value of the "attestation_state" field.
func (*WorkflowRunUpdate) ClearCasBackends ¶
func (wru *WorkflowRunUpdate) ClearCasBackends() *WorkflowRunUpdate
ClearCasBackends clears all "cas_backends" edges to the CASBackend entity.
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) 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) Modify ¶
func (wru *WorkflowRunUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *WorkflowRunUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*WorkflowRunUpdate) Mutation ¶
func (wru *WorkflowRunUpdate) Mutation() *WorkflowRunMutation
Mutation returns the WorkflowRunMutation object of the builder.
func (*WorkflowRunUpdate) RemoveCasBackendIDs ¶
func (wru *WorkflowRunUpdate) RemoveCasBackendIDs(ids ...uuid.UUID) *WorkflowRunUpdate
RemoveCasBackendIDs removes the "cas_backends" edge to CASBackend entities by IDs.
func (*WorkflowRunUpdate) RemoveCasBackends ¶
func (wru *WorkflowRunUpdate) RemoveCasBackends(c ...*CASBackend) *WorkflowRunUpdate
RemoveCasBackends removes "cas_backends" edges to CASBackend entities.
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 ¶
func (wru *WorkflowRunUpdate) SetAttestation(d *dsse.Envelope) *WorkflowRunUpdate
SetAttestation sets the "attestation" field.
func (*WorkflowRunUpdate) SetAttestationDigest ¶
func (wru *WorkflowRunUpdate) SetAttestationDigest(s string) *WorkflowRunUpdate
SetAttestationDigest sets the "attestation_digest" field.
func (*WorkflowRunUpdate) SetAttestationState ¶
func (wru *WorkflowRunUpdate) SetAttestationState(b []byte) *WorkflowRunUpdate
SetAttestationState sets the "attestation_state" field.
func (*WorkflowRunUpdate) SetContractRevisionLatest ¶
func (wru *WorkflowRunUpdate) SetContractRevisionLatest(i int) *WorkflowRunUpdate
SetContractRevisionLatest sets the "contract_revision_latest" field.
func (*WorkflowRunUpdate) SetContractRevisionUsed ¶
func (wru *WorkflowRunUpdate) SetContractRevisionUsed(i int) *WorkflowRunUpdate
SetContractRevisionUsed sets the "contract_revision_used" 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) SetNillableAttestationDigest ¶
func (wru *WorkflowRunUpdate) SetNillableAttestationDigest(s *string) *WorkflowRunUpdate
SetNillableAttestationDigest sets the "attestation_digest" field if the given value is not nil.
func (*WorkflowRunUpdate) SetNillableContractRevisionLatest ¶ added in v0.91.6
func (wru *WorkflowRunUpdate) SetNillableContractRevisionLatest(i *int) *WorkflowRunUpdate
SetNillableContractRevisionLatest sets the "contract_revision_latest" field if the given value is not nil.
func (*WorkflowRunUpdate) SetNillableContractRevisionUsed ¶ added in v0.91.6
func (wru *WorkflowRunUpdate) SetNillableContractRevisionUsed(i *int) *WorkflowRunUpdate
SetNillableContractRevisionUsed sets the "contract_revision_used" field if the given value is not nil.
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) 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) 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) AddCasBackendIDs ¶
func (wruo *WorkflowRunUpdateOne) AddCasBackendIDs(ids ...uuid.UUID) *WorkflowRunUpdateOne
AddCasBackendIDs adds the "cas_backends" edge to the CASBackend entity by IDs.
func (*WorkflowRunUpdateOne) AddCasBackends ¶
func (wruo *WorkflowRunUpdateOne) AddCasBackends(c ...*CASBackend) *WorkflowRunUpdateOne
AddCasBackends adds the "cas_backends" edges to the CASBackend entity.
func (*WorkflowRunUpdateOne) AddContractRevisionLatest ¶
func (wruo *WorkflowRunUpdateOne) AddContractRevisionLatest(i int) *WorkflowRunUpdateOne
AddContractRevisionLatest adds i to the "contract_revision_latest" field.
func (*WorkflowRunUpdateOne) AddContractRevisionUsed ¶
func (wruo *WorkflowRunUpdateOne) AddContractRevisionUsed(i int) *WorkflowRunUpdateOne
AddContractRevisionUsed adds i to the "contract_revision_used" field.
func (*WorkflowRunUpdateOne) ClearAttestation ¶
func (wruo *WorkflowRunUpdateOne) ClearAttestation() *WorkflowRunUpdateOne
ClearAttestation clears the value of the "attestation" field.
func (*WorkflowRunUpdateOne) ClearAttestationDigest ¶
func (wruo *WorkflowRunUpdateOne) ClearAttestationDigest() *WorkflowRunUpdateOne
ClearAttestationDigest clears the value of the "attestation_digest" field.
func (*WorkflowRunUpdateOne) ClearAttestationState ¶
func (wruo *WorkflowRunUpdateOne) ClearAttestationState() *WorkflowRunUpdateOne
ClearAttestationState clears the value of the "attestation_state" field.
func (*WorkflowRunUpdateOne) ClearCasBackends ¶
func (wruo *WorkflowRunUpdateOne) ClearCasBackends() *WorkflowRunUpdateOne
ClearCasBackends clears all "cas_backends" edges to the CASBackend entity.
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) 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) Modify ¶
func (wruo *WorkflowRunUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *WorkflowRunUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*WorkflowRunUpdateOne) Mutation ¶
func (wruo *WorkflowRunUpdateOne) Mutation() *WorkflowRunMutation
Mutation returns the WorkflowRunMutation object of the builder.
func (*WorkflowRunUpdateOne) RemoveCasBackendIDs ¶
func (wruo *WorkflowRunUpdateOne) RemoveCasBackendIDs(ids ...uuid.UUID) *WorkflowRunUpdateOne
RemoveCasBackendIDs removes the "cas_backends" edge to CASBackend entities by IDs.
func (*WorkflowRunUpdateOne) RemoveCasBackends ¶
func (wruo *WorkflowRunUpdateOne) RemoveCasBackends(c ...*CASBackend) *WorkflowRunUpdateOne
RemoveCasBackends removes "cas_backends" edges to CASBackend entities.
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 ¶
func (wruo *WorkflowRunUpdateOne) SetAttestation(d *dsse.Envelope) *WorkflowRunUpdateOne
SetAttestation sets the "attestation" field.
func (*WorkflowRunUpdateOne) SetAttestationDigest ¶
func (wruo *WorkflowRunUpdateOne) SetAttestationDigest(s string) *WorkflowRunUpdateOne
SetAttestationDigest sets the "attestation_digest" field.
func (*WorkflowRunUpdateOne) SetAttestationState ¶
func (wruo *WorkflowRunUpdateOne) SetAttestationState(b []byte) *WorkflowRunUpdateOne
SetAttestationState sets the "attestation_state" field.
func (*WorkflowRunUpdateOne) SetContractRevisionLatest ¶
func (wruo *WorkflowRunUpdateOne) SetContractRevisionLatest(i int) *WorkflowRunUpdateOne
SetContractRevisionLatest sets the "contract_revision_latest" field.
func (*WorkflowRunUpdateOne) SetContractRevisionUsed ¶
func (wruo *WorkflowRunUpdateOne) SetContractRevisionUsed(i int) *WorkflowRunUpdateOne
SetContractRevisionUsed sets the "contract_revision_used" 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) SetNillableAttestationDigest ¶
func (wruo *WorkflowRunUpdateOne) SetNillableAttestationDigest(s *string) *WorkflowRunUpdateOne
SetNillableAttestationDigest sets the "attestation_digest" field if the given value is not nil.
func (*WorkflowRunUpdateOne) SetNillableContractRevisionLatest ¶ added in v0.91.6
func (wruo *WorkflowRunUpdateOne) SetNillableContractRevisionLatest(i *int) *WorkflowRunUpdateOne
SetNillableContractRevisionLatest sets the "contract_revision_latest" field if the given value is not nil.
func (*WorkflowRunUpdateOne) SetNillableContractRevisionUsed ¶ added in v0.91.6
func (wruo *WorkflowRunUpdateOne) SetNillableContractRevisionUsed(i *int) *WorkflowRunUpdateOne
SetNillableContractRevisionUsed sets the "contract_revision_used" field if the given value is not nil.
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) 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) 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) Modify ¶
func (ws *WorkflowSelect) Modify(modifiers ...func(s *sql.Selector)) *WorkflowSelect
Modify adds a query modifier for attaching custom logic to queries.
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) AddReferrerIDs ¶
func (wu *WorkflowUpdate) AddReferrerIDs(ids ...uuid.UUID) *WorkflowUpdate
AddReferrerIDs adds the "referrers" edge to the Referrer entity by IDs.
func (*WorkflowUpdate) AddReferrers ¶
func (wu *WorkflowUpdate) AddReferrers(r ...*Referrer) *WorkflowUpdate
AddReferrers adds the "referrers" edges to the Referrer 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) ClearDescription ¶
func (wu *WorkflowUpdate) ClearDescription() *WorkflowUpdate
ClearDescription clears the value of the "description" 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) ClearReferrers ¶
func (wu *WorkflowUpdate) ClearReferrers() *WorkflowUpdate
ClearReferrers clears all "referrers" edges to the Referrer entity.
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) Modify ¶
func (wu *WorkflowUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *WorkflowUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
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) RemoveReferrerIDs ¶
func (wu *WorkflowUpdate) RemoveReferrerIDs(ids ...uuid.UUID) *WorkflowUpdate
RemoveReferrerIDs removes the "referrers" edge to Referrer entities by IDs.
func (*WorkflowUpdate) RemoveReferrers ¶
func (wu *WorkflowUpdate) RemoveReferrers(r ...*Referrer) *WorkflowUpdate
RemoveReferrers removes "referrers" edges to Referrer 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) SetDescription ¶
func (wu *WorkflowUpdate) SetDescription(s string) *WorkflowUpdate
SetDescription sets the "description" 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) SetNillableDescription ¶
func (wu *WorkflowUpdate) SetNillableDescription(s *string) *WorkflowUpdate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*WorkflowUpdate) SetNillableOrganizationID ¶ added in v0.91.6
func (wu *WorkflowUpdate) SetNillableOrganizationID(u *uuid.UUID) *WorkflowUpdate
SetNillableOrganizationID sets the "organization_id" 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) SetNillablePublic ¶
func (wu *WorkflowUpdate) SetNillablePublic(b *bool) *WorkflowUpdate
SetNillablePublic sets the "public" 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(u uuid.UUID) *WorkflowUpdate
SetOrganizationID sets the "organization_id" field.
func (*WorkflowUpdate) SetProject ¶
func (wu *WorkflowUpdate) SetProject(s string) *WorkflowUpdate
SetProject sets the "project" field.
func (*WorkflowUpdate) SetPublic ¶
func (wu *WorkflowUpdate) SetPublic(b bool) *WorkflowUpdate
SetPublic sets the "public" 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) AddReferrerIDs ¶
func (wuo *WorkflowUpdateOne) AddReferrerIDs(ids ...uuid.UUID) *WorkflowUpdateOne
AddReferrerIDs adds the "referrers" edge to the Referrer entity by IDs.
func (*WorkflowUpdateOne) AddReferrers ¶
func (wuo *WorkflowUpdateOne) AddReferrers(r ...*Referrer) *WorkflowUpdateOne
AddReferrers adds the "referrers" edges to the Referrer 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) ClearDescription ¶
func (wuo *WorkflowUpdateOne) ClearDescription() *WorkflowUpdateOne
ClearDescription clears the value of the "description" 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) ClearReferrers ¶
func (wuo *WorkflowUpdateOne) ClearReferrers() *WorkflowUpdateOne
ClearReferrers clears all "referrers" edges to the Referrer entity.
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) Modify ¶
func (wuo *WorkflowUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *WorkflowUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
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) RemoveReferrerIDs ¶
func (wuo *WorkflowUpdateOne) RemoveReferrerIDs(ids ...uuid.UUID) *WorkflowUpdateOne
RemoveReferrerIDs removes the "referrers" edge to Referrer entities by IDs.
func (*WorkflowUpdateOne) RemoveReferrers ¶
func (wuo *WorkflowUpdateOne) RemoveReferrers(r ...*Referrer) *WorkflowUpdateOne
RemoveReferrers removes "referrers" edges to Referrer 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) SetDescription ¶
func (wuo *WorkflowUpdateOne) SetDescription(s string) *WorkflowUpdateOne
SetDescription sets the "description" 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) SetNillableDescription ¶
func (wuo *WorkflowUpdateOne) SetNillableDescription(s *string) *WorkflowUpdateOne
SetNillableDescription sets the "description" field if the given value is not nil.
func (*WorkflowUpdateOne) SetNillableOrganizationID ¶ added in v0.91.6
func (wuo *WorkflowUpdateOne) SetNillableOrganizationID(u *uuid.UUID) *WorkflowUpdateOne
SetNillableOrganizationID sets the "organization_id" 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) SetNillablePublic ¶
func (wuo *WorkflowUpdateOne) SetNillablePublic(b *bool) *WorkflowUpdateOne
SetNillablePublic sets the "public" 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(u uuid.UUID) *WorkflowUpdateOne
SetOrganizationID sets the "organization_id" field.
func (*WorkflowUpdateOne) SetProject ¶
func (wuo *WorkflowUpdateOne) SetProject(s string) *WorkflowUpdateOne
SetProject sets the "project" field.
func (*WorkflowUpdateOne) SetPublic ¶
func (wuo *WorkflowUpdateOne) SetPublic(b bool) *WorkflowUpdateOne
SetPublic sets the "public" 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 ¶
- apitoken.go
- apitoken_create.go
- apitoken_delete.go
- apitoken_query.go
- apitoken_update.go
- casbackend.go
- casbackend_create.go
- casbackend_delete.go
- casbackend_query.go
- casbackend_update.go
- casmapping.go
- casmapping_create.go
- casmapping_delete.go
- casmapping_query.go
- casmapping_update.go
- 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
- organization.go
- organization_create.go
- organization_delete.go
- organization_query.go
- organization_update.go
- orginvitation.go
- orginvitation_create.go
- orginvitation_delete.go
- orginvitation_query.go
- orginvitation_update.go
- ping.go
- referrer.go
- referrer_create.go
- referrer_delete.go
- referrer_query.go
- referrer_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