Versions in this module Expand all Collapse all v0 v0.5.0 Nov 29, 2024 v0.4.0 Nov 15, 2024 v0.3.0 Oct 29, 2024 v0.2.0 Oct 23, 2024 v0.1.0 Oct 2, 2024 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypePkg + const TypePreservationAction + const TypePreservationTask + var ErrTxStarted = errors.New("db: cannot start a transaction within a transaction") + 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 + type AggregateFunc func(*sql.Selector) string + func As(fn AggregateFunc, end string) AggregateFunc + func Count() AggregateFunc + func Max(field string) AggregateFunc + func Mean(field string) AggregateFunc + func Min(field string) AggregateFunc + func Sum(field string) AggregateFunc + type Client struct + Pkg *PkgClient + PreservationAction *PreservationActionClient + PreservationTask *PreservationTaskClient + Schema *migrate.Schema + func FromContext(ctx context.Context) *Client + func NewClient(opts ...Option) *Client + func Open(driverName, dataSourceName string, options ...Option) (*Client, error) + func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error) + func (c *Client) Close() error + func (c *Client) Debug() *Client + func (c *Client) Intercept(interceptors ...Interceptor) + func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error) + func (c *Client) Tx(ctx context.Context) (*Tx, error) + func (c *Client) Use(hooks ...Hook) + type CommitFunc func(context.Context, *Tx) error + func (f CommitFunc) Commit(ctx context.Context, tx *Tx) error + type CommitHook func(Committer) Committer + type Committer interface + Commit func(context.Context, *Tx) error + type ConstraintError struct + func (e *ConstraintError) Unwrap() error + func (e ConstraintError) Error() string + type Hook = ent.Hook + type InterceptFunc = ent.InterceptFunc + type Interceptor = ent.Interceptor + type MutateFunc = ent.MutateFunc + type Mutation = ent.Mutation + type Mutator = ent.Mutator + type NotFoundError struct + func (e *NotFoundError) Error() string + type NotLoadedError struct + func (e *NotLoadedError) Error() string + type NotSingularError struct + func (e *NotSingularError) Error() string + type Op = ent.Op + type Option func(*config) + func Debug() Option + func Driver(driver dialect.Driver) Option + func Log(fn func(...any)) Option + type OrderFunc func(*sql.Selector) + type Pkg struct + AipID uuid.UUID + CompletedAt time.Time + CreatedAt time.Time + Edges PkgEdges + ID int + LocationID uuid.UUID + Name string + RunID uuid.UUID + StartedAt time.Time + Status int8 + WorkflowID string + func (pk *Pkg) QueryPreservationActions() *PreservationActionQuery + func (pk *Pkg) String() string + func (pk *Pkg) Unwrap() *Pkg + func (pk *Pkg) Update() *PkgUpdateOne + func (pk *Pkg) Value(name string) (ent.Value, error) + type PkgClient struct + func NewPkgClient(c config) *PkgClient + func (c *PkgClient) Create() *PkgCreate + func (c *PkgClient) CreateBulk(builders ...*PkgCreate) *PkgCreateBulk + func (c *PkgClient) Delete() *PkgDelete + func (c *PkgClient) DeleteOne(pk *Pkg) *PkgDeleteOne + func (c *PkgClient) DeleteOneID(id int) *PkgDeleteOne + func (c *PkgClient) Get(ctx context.Context, id int) (*Pkg, error) + func (c *PkgClient) GetX(ctx context.Context, id int) *Pkg + func (c *PkgClient) Hooks() []Hook + func (c *PkgClient) Intercept(interceptors ...Interceptor) + func (c *PkgClient) Interceptors() []Interceptor + func (c *PkgClient) MapCreateBulk(slice any, setFunc func(*PkgCreate, int)) *PkgCreateBulk + func (c *PkgClient) Query() *PkgQuery + func (c *PkgClient) QueryPreservationActions(pk *Pkg) *PreservationActionQuery + func (c *PkgClient) Update() *PkgUpdate + func (c *PkgClient) UpdateOne(pk *Pkg) *PkgUpdateOne + func (c *PkgClient) UpdateOneID(id int) *PkgUpdateOne + func (c *PkgClient) Use(hooks ...Hook) + type PkgCreate struct + func (pc *PkgCreate) AddPreservationActionIDs(ids ...int) *PkgCreate + func (pc *PkgCreate) AddPreservationActions(p ...*PreservationAction) *PkgCreate + func (pc *PkgCreate) Exec(ctx context.Context) error + func (pc *PkgCreate) ExecX(ctx context.Context) + func (pc *PkgCreate) Mutation() *PkgMutation + func (pc *PkgCreate) Save(ctx context.Context) (*Pkg, error) + func (pc *PkgCreate) SaveX(ctx context.Context) *Pkg + func (pc *PkgCreate) SetAipID(u uuid.UUID) *PkgCreate + func (pc *PkgCreate) SetCompletedAt(t time.Time) *PkgCreate + func (pc *PkgCreate) SetCreatedAt(t time.Time) *PkgCreate + func (pc *PkgCreate) SetLocationID(u uuid.UUID) *PkgCreate + func (pc *PkgCreate) SetName(s string) *PkgCreate + func (pc *PkgCreate) SetNillableAipID(u *uuid.UUID) *PkgCreate + func (pc *PkgCreate) SetNillableCompletedAt(t *time.Time) *PkgCreate + func (pc *PkgCreate) SetNillableCreatedAt(t *time.Time) *PkgCreate + func (pc *PkgCreate) SetNillableLocationID(u *uuid.UUID) *PkgCreate + func (pc *PkgCreate) SetNillableStartedAt(t *time.Time) *PkgCreate + func (pc *PkgCreate) SetRunID(u uuid.UUID) *PkgCreate + func (pc *PkgCreate) SetStartedAt(t time.Time) *PkgCreate + func (pc *PkgCreate) SetStatus(i int8) *PkgCreate + func (pc *PkgCreate) SetWorkflowID(s string) *PkgCreate + type PkgCreateBulk struct + func (pcb *PkgCreateBulk) Exec(ctx context.Context) error + func (pcb *PkgCreateBulk) ExecX(ctx context.Context) + func (pcb *PkgCreateBulk) Save(ctx context.Context) ([]*Pkg, error) + func (pcb *PkgCreateBulk) SaveX(ctx context.Context) []*Pkg + type PkgDelete struct + func (pd *PkgDelete) Exec(ctx context.Context) (int, error) + func (pd *PkgDelete) ExecX(ctx context.Context) int + func (pd *PkgDelete) Where(ps ...predicate.Pkg) *PkgDelete + type PkgDeleteOne struct + func (pdo *PkgDeleteOne) Exec(ctx context.Context) error + func (pdo *PkgDeleteOne) ExecX(ctx context.Context) + func (pdo *PkgDeleteOne) Where(ps ...predicate.Pkg) *PkgDeleteOne + type PkgEdges struct + PreservationActions []*PreservationAction + func (e PkgEdges) PreservationActionsOrErr() ([]*PreservationAction, error) + type PkgGroupBy struct + func (pgb *PkgGroupBy) Aggregate(fns ...AggregateFunc) *PkgGroupBy + func (pgb *PkgGroupBy) Scan(ctx context.Context, v any) error + func (s *PkgGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *PkgGroupBy) BoolX(ctx context.Context) bool + func (s *PkgGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *PkgGroupBy) BoolsX(ctx context.Context) []bool + func (s *PkgGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *PkgGroupBy) Float64X(ctx context.Context) float64 + func (s *PkgGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *PkgGroupBy) Float64sX(ctx context.Context) []float64 + func (s *PkgGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *PkgGroupBy) IntX(ctx context.Context) int + func (s *PkgGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *PkgGroupBy) IntsX(ctx context.Context) []int + func (s *PkgGroupBy) ScanX(ctx context.Context, v any) + func (s *PkgGroupBy) String(ctx context.Context) (_ string, err error) + func (s *PkgGroupBy) StringX(ctx context.Context) string + func (s *PkgGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *PkgGroupBy) StringsX(ctx context.Context) []string + type PkgMutation struct + func (m *PkgMutation) AddField(name string, value ent.Value) error + func (m *PkgMutation) AddPreservationActionIDs(ids ...int) + func (m *PkgMutation) AddStatus(i int8) + func (m *PkgMutation) AddedEdges() []string + func (m *PkgMutation) AddedField(name string) (ent.Value, bool) + func (m *PkgMutation) AddedFields() []string + func (m *PkgMutation) AddedIDs(name string) []ent.Value + func (m *PkgMutation) AddedStatus() (r int8, exists bool) + func (m *PkgMutation) AipID() (r uuid.UUID, exists bool) + func (m *PkgMutation) AipIDCleared() bool + func (m *PkgMutation) ClearAipID() + func (m *PkgMutation) ClearCompletedAt() + func (m *PkgMutation) ClearEdge(name string) error + func (m *PkgMutation) ClearField(name string) error + func (m *PkgMutation) ClearLocationID() + func (m *PkgMutation) ClearPreservationActions() + func (m *PkgMutation) ClearStartedAt() + func (m *PkgMutation) ClearedEdges() []string + func (m *PkgMutation) ClearedFields() []string + func (m *PkgMutation) CompletedAt() (r time.Time, exists bool) + func (m *PkgMutation) CompletedAtCleared() bool + func (m *PkgMutation) CreatedAt() (r time.Time, exists bool) + func (m *PkgMutation) EdgeCleared(name string) bool + func (m *PkgMutation) Field(name string) (ent.Value, bool) + func (m *PkgMutation) FieldCleared(name string) bool + func (m *PkgMutation) Fields() []string + func (m *PkgMutation) ID() (id int, exists bool) + func (m *PkgMutation) IDs(ctx context.Context) ([]int, error) + func (m *PkgMutation) LocationID() (r uuid.UUID, exists bool) + func (m *PkgMutation) LocationIDCleared() bool + func (m *PkgMutation) Name() (r string, exists bool) + func (m *PkgMutation) OldAipID(ctx context.Context) (v uuid.UUID, err error) + func (m *PkgMutation) OldCompletedAt(ctx context.Context) (v time.Time, err error) + func (m *PkgMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) + func (m *PkgMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *PkgMutation) OldLocationID(ctx context.Context) (v uuid.UUID, err error) + func (m *PkgMutation) OldName(ctx context.Context) (v string, err error) + func (m *PkgMutation) OldRunID(ctx context.Context) (v uuid.UUID, err error) + func (m *PkgMutation) OldStartedAt(ctx context.Context) (v time.Time, err error) + func (m *PkgMutation) OldStatus(ctx context.Context) (v int8, err error) + func (m *PkgMutation) OldWorkflowID(ctx context.Context) (v string, err error) + func (m *PkgMutation) Op() Op + func (m *PkgMutation) PreservationActionsCleared() bool + func (m *PkgMutation) PreservationActionsIDs() (ids []int) + func (m *PkgMutation) RemovePreservationActionIDs(ids ...int) + func (m *PkgMutation) RemovedEdges() []string + func (m *PkgMutation) RemovedIDs(name string) []ent.Value + func (m *PkgMutation) RemovedPreservationActionsIDs() (ids []int) + func (m *PkgMutation) ResetAipID() + func (m *PkgMutation) ResetCompletedAt() + func (m *PkgMutation) ResetCreatedAt() + func (m *PkgMutation) ResetEdge(name string) error + func (m *PkgMutation) ResetField(name string) error + func (m *PkgMutation) ResetLocationID() + func (m *PkgMutation) ResetName() + func (m *PkgMutation) ResetPreservationActions() + func (m *PkgMutation) ResetRunID() + func (m *PkgMutation) ResetStartedAt() + func (m *PkgMutation) ResetStatus() + func (m *PkgMutation) ResetWorkflowID() + func (m *PkgMutation) RunID() (r uuid.UUID, exists bool) + func (m *PkgMutation) SetAipID(u uuid.UUID) + func (m *PkgMutation) SetCompletedAt(t time.Time) + func (m *PkgMutation) SetCreatedAt(t time.Time) + func (m *PkgMutation) SetField(name string, value ent.Value) error + func (m *PkgMutation) SetLocationID(u uuid.UUID) + func (m *PkgMutation) SetName(s string) + func (m *PkgMutation) SetOp(op Op) + func (m *PkgMutation) SetRunID(u uuid.UUID) + func (m *PkgMutation) SetStartedAt(t time.Time) + func (m *PkgMutation) SetStatus(i int8) + func (m *PkgMutation) SetWorkflowID(s string) + func (m *PkgMutation) StartedAt() (r time.Time, exists bool) + func (m *PkgMutation) StartedAtCleared() bool + func (m *PkgMutation) Status() (r int8, exists bool) + func (m *PkgMutation) Type() string + func (m *PkgMutation) Where(ps ...predicate.Pkg) + func (m *PkgMutation) WhereP(ps ...func(*sql.Selector)) + func (m *PkgMutation) WorkflowID() (r string, exists bool) + func (m PkgMutation) Client() *Client + func (m PkgMutation) Tx() (*Tx, error) + type PkgQuery struct + func (pq *PkgQuery) Aggregate(fns ...AggregateFunc) *PkgSelect + func (pq *PkgQuery) All(ctx context.Context) ([]*Pkg, error) + func (pq *PkgQuery) AllX(ctx context.Context) []*Pkg + func (pq *PkgQuery) Clone() *PkgQuery + func (pq *PkgQuery) Count(ctx context.Context) (int, error) + func (pq *PkgQuery) CountX(ctx context.Context) int + func (pq *PkgQuery) Exist(ctx context.Context) (bool, error) + func (pq *PkgQuery) ExistX(ctx context.Context) bool + func (pq *PkgQuery) First(ctx context.Context) (*Pkg, error) + func (pq *PkgQuery) FirstID(ctx context.Context) (id int, err error) + func (pq *PkgQuery) FirstIDX(ctx context.Context) int + func (pq *PkgQuery) FirstX(ctx context.Context) *Pkg + func (pq *PkgQuery) GroupBy(field string, fields ...string) *PkgGroupBy + func (pq *PkgQuery) IDs(ctx context.Context) (ids []int, err error) + func (pq *PkgQuery) IDsX(ctx context.Context) []int + func (pq *PkgQuery) Limit(limit int) *PkgQuery + func (pq *PkgQuery) Offset(offset int) *PkgQuery + func (pq *PkgQuery) Only(ctx context.Context) (*Pkg, error) + func (pq *PkgQuery) OnlyID(ctx context.Context) (id int, err error) + func (pq *PkgQuery) OnlyIDX(ctx context.Context) int + func (pq *PkgQuery) OnlyX(ctx context.Context) *Pkg + func (pq *PkgQuery) Order(o ...pkg.OrderOption) *PkgQuery + func (pq *PkgQuery) QueryPreservationActions() *PreservationActionQuery + func (pq *PkgQuery) Select(fields ...string) *PkgSelect + func (pq *PkgQuery) Unique(unique bool) *PkgQuery + func (pq *PkgQuery) Where(ps ...predicate.Pkg) *PkgQuery + func (pq *PkgQuery) WithPreservationActions(opts ...func(*PreservationActionQuery)) *PkgQuery + type PkgSelect struct + func (ps *PkgSelect) Aggregate(fns ...AggregateFunc) *PkgSelect + func (ps *PkgSelect) Scan(ctx context.Context, v any) error + func (s *PkgSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *PkgSelect) BoolX(ctx context.Context) bool + func (s *PkgSelect) Bools(ctx context.Context) ([]bool, error) + func (s *PkgSelect) BoolsX(ctx context.Context) []bool + func (s *PkgSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *PkgSelect) Float64X(ctx context.Context) float64 + func (s *PkgSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *PkgSelect) Float64sX(ctx context.Context) []float64 + func (s *PkgSelect) Int(ctx context.Context) (_ int, err error) + func (s *PkgSelect) IntX(ctx context.Context) int + func (s *PkgSelect) Ints(ctx context.Context) ([]int, error) + func (s *PkgSelect) IntsX(ctx context.Context) []int + func (s *PkgSelect) ScanX(ctx context.Context, v any) + func (s *PkgSelect) String(ctx context.Context) (_ string, err error) + func (s *PkgSelect) StringX(ctx context.Context) string + func (s *PkgSelect) Strings(ctx context.Context) ([]string, error) + func (s *PkgSelect) StringsX(ctx context.Context) []string + type PkgUpdate struct + func (pu *PkgUpdate) AddPreservationActionIDs(ids ...int) *PkgUpdate + func (pu *PkgUpdate) AddPreservationActions(p ...*PreservationAction) *PkgUpdate + func (pu *PkgUpdate) AddStatus(i int8) *PkgUpdate + func (pu *PkgUpdate) ClearAipID() *PkgUpdate + func (pu *PkgUpdate) ClearCompletedAt() *PkgUpdate + func (pu *PkgUpdate) ClearLocationID() *PkgUpdate + func (pu *PkgUpdate) ClearPreservationActions() *PkgUpdate + func (pu *PkgUpdate) ClearStartedAt() *PkgUpdate + func (pu *PkgUpdate) Exec(ctx context.Context) error + func (pu *PkgUpdate) ExecX(ctx context.Context) + func (pu *PkgUpdate) Mutation() *PkgMutation + func (pu *PkgUpdate) RemovePreservationActionIDs(ids ...int) *PkgUpdate + func (pu *PkgUpdate) RemovePreservationActions(p ...*PreservationAction) *PkgUpdate + func (pu *PkgUpdate) Save(ctx context.Context) (int, error) + func (pu *PkgUpdate) SaveX(ctx context.Context) int + func (pu *PkgUpdate) SetAipID(u uuid.UUID) *PkgUpdate + func (pu *PkgUpdate) SetCompletedAt(t time.Time) *PkgUpdate + func (pu *PkgUpdate) SetLocationID(u uuid.UUID) *PkgUpdate + func (pu *PkgUpdate) SetName(s string) *PkgUpdate + func (pu *PkgUpdate) SetNillableAipID(u *uuid.UUID) *PkgUpdate + func (pu *PkgUpdate) SetNillableCompletedAt(t *time.Time) *PkgUpdate + func (pu *PkgUpdate) SetNillableLocationID(u *uuid.UUID) *PkgUpdate + func (pu *PkgUpdate) SetNillableName(s *string) *PkgUpdate + func (pu *PkgUpdate) SetNillableRunID(u *uuid.UUID) *PkgUpdate + func (pu *PkgUpdate) SetNillableStartedAt(t *time.Time) *PkgUpdate + func (pu *PkgUpdate) SetNillableStatus(i *int8) *PkgUpdate + func (pu *PkgUpdate) SetNillableWorkflowID(s *string) *PkgUpdate + func (pu *PkgUpdate) SetRunID(u uuid.UUID) *PkgUpdate + func (pu *PkgUpdate) SetStartedAt(t time.Time) *PkgUpdate + func (pu *PkgUpdate) SetStatus(i int8) *PkgUpdate + func (pu *PkgUpdate) SetWorkflowID(s string) *PkgUpdate + func (pu *PkgUpdate) Where(ps ...predicate.Pkg) *PkgUpdate + type PkgUpdateOne struct + func (puo *PkgUpdateOne) AddPreservationActionIDs(ids ...int) *PkgUpdateOne + func (puo *PkgUpdateOne) AddPreservationActions(p ...*PreservationAction) *PkgUpdateOne + func (puo *PkgUpdateOne) AddStatus(i int8) *PkgUpdateOne + func (puo *PkgUpdateOne) ClearAipID() *PkgUpdateOne + func (puo *PkgUpdateOne) ClearCompletedAt() *PkgUpdateOne + func (puo *PkgUpdateOne) ClearLocationID() *PkgUpdateOne + func (puo *PkgUpdateOne) ClearPreservationActions() *PkgUpdateOne + func (puo *PkgUpdateOne) ClearStartedAt() *PkgUpdateOne + func (puo *PkgUpdateOne) Exec(ctx context.Context) error + func (puo *PkgUpdateOne) ExecX(ctx context.Context) + func (puo *PkgUpdateOne) Mutation() *PkgMutation + func (puo *PkgUpdateOne) RemovePreservationActionIDs(ids ...int) *PkgUpdateOne + func (puo *PkgUpdateOne) RemovePreservationActions(p ...*PreservationAction) *PkgUpdateOne + func (puo *PkgUpdateOne) Save(ctx context.Context) (*Pkg, error) + func (puo *PkgUpdateOne) SaveX(ctx context.Context) *Pkg + func (puo *PkgUpdateOne) Select(field string, fields ...string) *PkgUpdateOne + func (puo *PkgUpdateOne) SetAipID(u uuid.UUID) *PkgUpdateOne + func (puo *PkgUpdateOne) SetCompletedAt(t time.Time) *PkgUpdateOne + func (puo *PkgUpdateOne) SetLocationID(u uuid.UUID) *PkgUpdateOne + func (puo *PkgUpdateOne) SetName(s string) *PkgUpdateOne + func (puo *PkgUpdateOne) SetNillableAipID(u *uuid.UUID) *PkgUpdateOne + func (puo *PkgUpdateOne) SetNillableCompletedAt(t *time.Time) *PkgUpdateOne + func (puo *PkgUpdateOne) SetNillableLocationID(u *uuid.UUID) *PkgUpdateOne + func (puo *PkgUpdateOne) SetNillableName(s *string) *PkgUpdateOne + func (puo *PkgUpdateOne) SetNillableRunID(u *uuid.UUID) *PkgUpdateOne + func (puo *PkgUpdateOne) SetNillableStartedAt(t *time.Time) *PkgUpdateOne + func (puo *PkgUpdateOne) SetNillableStatus(i *int8) *PkgUpdateOne + func (puo *PkgUpdateOne) SetNillableWorkflowID(s *string) *PkgUpdateOne + func (puo *PkgUpdateOne) SetRunID(u uuid.UUID) *PkgUpdateOne + func (puo *PkgUpdateOne) SetStartedAt(t time.Time) *PkgUpdateOne + func (puo *PkgUpdateOne) SetStatus(i int8) *PkgUpdateOne + func (puo *PkgUpdateOne) SetWorkflowID(s string) *PkgUpdateOne + func (puo *PkgUpdateOne) Where(ps ...predicate.Pkg) *PkgUpdateOne + type Pkgs []*Pkg + type Policy = ent.Policy + type PreservationAction struct + CompletedAt time.Time + Edges PreservationActionEdges + ID int + PackageID int + StartedAt time.Time + Status int8 + Type int8 + WorkflowID string + func (pa *PreservationAction) QueryPackage() *PkgQuery + func (pa *PreservationAction) QueryTasks() *PreservationTaskQuery + func (pa *PreservationAction) String() string + func (pa *PreservationAction) Unwrap() *PreservationAction + func (pa *PreservationAction) Update() *PreservationActionUpdateOne + func (pa *PreservationAction) Value(name string) (ent.Value, error) + type PreservationActionClient struct + func NewPreservationActionClient(c config) *PreservationActionClient + func (c *PreservationActionClient) Create() *PreservationActionCreate + func (c *PreservationActionClient) CreateBulk(builders ...*PreservationActionCreate) *PreservationActionCreateBulk + func (c *PreservationActionClient) Delete() *PreservationActionDelete + func (c *PreservationActionClient) DeleteOne(pa *PreservationAction) *PreservationActionDeleteOne + func (c *PreservationActionClient) DeleteOneID(id int) *PreservationActionDeleteOne + func (c *PreservationActionClient) Get(ctx context.Context, id int) (*PreservationAction, error) + func (c *PreservationActionClient) GetX(ctx context.Context, id int) *PreservationAction + func (c *PreservationActionClient) Hooks() []Hook + func (c *PreservationActionClient) Intercept(interceptors ...Interceptor) + func (c *PreservationActionClient) Interceptors() []Interceptor + func (c *PreservationActionClient) MapCreateBulk(slice any, setFunc func(*PreservationActionCreate, int)) *PreservationActionCreateBulk + func (c *PreservationActionClient) Query() *PreservationActionQuery + func (c *PreservationActionClient) QueryPackage(pa *PreservationAction) *PkgQuery + func (c *PreservationActionClient) QueryTasks(pa *PreservationAction) *PreservationTaskQuery + func (c *PreservationActionClient) Update() *PreservationActionUpdate + func (c *PreservationActionClient) UpdateOne(pa *PreservationAction) *PreservationActionUpdateOne + func (c *PreservationActionClient) UpdateOneID(id int) *PreservationActionUpdateOne + func (c *PreservationActionClient) Use(hooks ...Hook) + type PreservationActionCreate struct + func (pac *PreservationActionCreate) AddTaskIDs(ids ...int) *PreservationActionCreate + func (pac *PreservationActionCreate) AddTasks(p ...*PreservationTask) *PreservationActionCreate + func (pac *PreservationActionCreate) Exec(ctx context.Context) error + func (pac *PreservationActionCreate) ExecX(ctx context.Context) + func (pac *PreservationActionCreate) Mutation() *PreservationActionMutation + func (pac *PreservationActionCreate) Save(ctx context.Context) (*PreservationAction, error) + func (pac *PreservationActionCreate) SaveX(ctx context.Context) *PreservationAction + func (pac *PreservationActionCreate) SetCompletedAt(t time.Time) *PreservationActionCreate + func (pac *PreservationActionCreate) SetNillableCompletedAt(t *time.Time) *PreservationActionCreate + func (pac *PreservationActionCreate) SetNillableStartedAt(t *time.Time) *PreservationActionCreate + func (pac *PreservationActionCreate) SetPackage(p *Pkg) *PreservationActionCreate + func (pac *PreservationActionCreate) SetPackageID(i int) *PreservationActionCreate + func (pac *PreservationActionCreate) SetStartedAt(t time.Time) *PreservationActionCreate + func (pac *PreservationActionCreate) SetStatus(i int8) *PreservationActionCreate + func (pac *PreservationActionCreate) SetType(i int8) *PreservationActionCreate + func (pac *PreservationActionCreate) SetWorkflowID(s string) *PreservationActionCreate + type PreservationActionCreateBulk struct + func (pacb *PreservationActionCreateBulk) Exec(ctx context.Context) error + func (pacb *PreservationActionCreateBulk) ExecX(ctx context.Context) + func (pacb *PreservationActionCreateBulk) Save(ctx context.Context) ([]*PreservationAction, error) + func (pacb *PreservationActionCreateBulk) SaveX(ctx context.Context) []*PreservationAction + type PreservationActionDelete struct + func (pad *PreservationActionDelete) Exec(ctx context.Context) (int, error) + func (pad *PreservationActionDelete) ExecX(ctx context.Context) int + func (pad *PreservationActionDelete) Where(ps ...predicate.PreservationAction) *PreservationActionDelete + type PreservationActionDeleteOne struct + func (pado *PreservationActionDeleteOne) Exec(ctx context.Context) error + func (pado *PreservationActionDeleteOne) ExecX(ctx context.Context) + func (pado *PreservationActionDeleteOne) Where(ps ...predicate.PreservationAction) *PreservationActionDeleteOne + type PreservationActionEdges struct + Package *Pkg + Tasks []*PreservationTask + func (e PreservationActionEdges) PackageOrErr() (*Pkg, error) + func (e PreservationActionEdges) TasksOrErr() ([]*PreservationTask, error) + type PreservationActionGroupBy struct + func (pagb *PreservationActionGroupBy) Aggregate(fns ...AggregateFunc) *PreservationActionGroupBy + func (pagb *PreservationActionGroupBy) Scan(ctx context.Context, v any) error + func (s *PreservationActionGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *PreservationActionGroupBy) BoolX(ctx context.Context) bool + func (s *PreservationActionGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *PreservationActionGroupBy) BoolsX(ctx context.Context) []bool + func (s *PreservationActionGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *PreservationActionGroupBy) Float64X(ctx context.Context) float64 + func (s *PreservationActionGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *PreservationActionGroupBy) Float64sX(ctx context.Context) []float64 + func (s *PreservationActionGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *PreservationActionGroupBy) IntX(ctx context.Context) int + func (s *PreservationActionGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *PreservationActionGroupBy) IntsX(ctx context.Context) []int + func (s *PreservationActionGroupBy) ScanX(ctx context.Context, v any) + func (s *PreservationActionGroupBy) String(ctx context.Context) (_ string, err error) + func (s *PreservationActionGroupBy) StringX(ctx context.Context) string + func (s *PreservationActionGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *PreservationActionGroupBy) StringsX(ctx context.Context) []string + type PreservationActionMutation struct + func (m *PreservationActionMutation) AddField(name string, value ent.Value) error + func (m *PreservationActionMutation) AddStatus(i int8) + func (m *PreservationActionMutation) AddTaskIDs(ids ...int) + func (m *PreservationActionMutation) AddType(i int8) + func (m *PreservationActionMutation) AddedEdges() []string + func (m *PreservationActionMutation) AddedField(name string) (ent.Value, bool) + func (m *PreservationActionMutation) AddedFields() []string + func (m *PreservationActionMutation) AddedIDs(name string) []ent.Value + func (m *PreservationActionMutation) AddedStatus() (r int8, exists bool) + func (m *PreservationActionMutation) AddedType() (r int8, exists bool) + func (m *PreservationActionMutation) ClearCompletedAt() + func (m *PreservationActionMutation) ClearEdge(name string) error + func (m *PreservationActionMutation) ClearField(name string) error + func (m *PreservationActionMutation) ClearPackage() + func (m *PreservationActionMutation) ClearStartedAt() + func (m *PreservationActionMutation) ClearTasks() + func (m *PreservationActionMutation) ClearedEdges() []string + func (m *PreservationActionMutation) ClearedFields() []string + func (m *PreservationActionMutation) CompletedAt() (r time.Time, exists bool) + func (m *PreservationActionMutation) CompletedAtCleared() bool + func (m *PreservationActionMutation) EdgeCleared(name string) bool + func (m *PreservationActionMutation) Field(name string) (ent.Value, bool) + func (m *PreservationActionMutation) FieldCleared(name string) bool + func (m *PreservationActionMutation) Fields() []string + func (m *PreservationActionMutation) GetType() (r int8, exists bool) + func (m *PreservationActionMutation) ID() (id int, exists bool) + func (m *PreservationActionMutation) IDs(ctx context.Context) ([]int, error) + func (m *PreservationActionMutation) OldCompletedAt(ctx context.Context) (v time.Time, err error) + func (m *PreservationActionMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *PreservationActionMutation) OldPackageID(ctx context.Context) (v int, err error) + func (m *PreservationActionMutation) OldStartedAt(ctx context.Context) (v time.Time, err error) + func (m *PreservationActionMutation) OldStatus(ctx context.Context) (v int8, err error) + func (m *PreservationActionMutation) OldType(ctx context.Context) (v int8, err error) + func (m *PreservationActionMutation) OldWorkflowID(ctx context.Context) (v string, err error) + func (m *PreservationActionMutation) Op() Op + func (m *PreservationActionMutation) PackageCleared() bool + func (m *PreservationActionMutation) PackageID() (r int, exists bool) + func (m *PreservationActionMutation) PackageIDs() (ids []int) + func (m *PreservationActionMutation) RemoveTaskIDs(ids ...int) + func (m *PreservationActionMutation) RemovedEdges() []string + func (m *PreservationActionMutation) RemovedIDs(name string) []ent.Value + func (m *PreservationActionMutation) RemovedTasksIDs() (ids []int) + func (m *PreservationActionMutation) ResetCompletedAt() + func (m *PreservationActionMutation) ResetEdge(name string) error + func (m *PreservationActionMutation) ResetField(name string) error + func (m *PreservationActionMutation) ResetPackage() + func (m *PreservationActionMutation) ResetPackageID() + func (m *PreservationActionMutation) ResetStartedAt() + func (m *PreservationActionMutation) ResetStatus() + func (m *PreservationActionMutation) ResetTasks() + func (m *PreservationActionMutation) ResetType() + func (m *PreservationActionMutation) ResetWorkflowID() + func (m *PreservationActionMutation) SetCompletedAt(t time.Time) + func (m *PreservationActionMutation) SetField(name string, value ent.Value) error + func (m *PreservationActionMutation) SetOp(op Op) + func (m *PreservationActionMutation) SetPackageID(i int) + func (m *PreservationActionMutation) SetStartedAt(t time.Time) + func (m *PreservationActionMutation) SetStatus(i int8) + func (m *PreservationActionMutation) SetType(i int8) + func (m *PreservationActionMutation) SetWorkflowID(s string) + func (m *PreservationActionMutation) StartedAt() (r time.Time, exists bool) + func (m *PreservationActionMutation) StartedAtCleared() bool + func (m *PreservationActionMutation) Status() (r int8, exists bool) + func (m *PreservationActionMutation) TasksCleared() bool + func (m *PreservationActionMutation) TasksIDs() (ids []int) + func (m *PreservationActionMutation) Type() string + func (m *PreservationActionMutation) Where(ps ...predicate.PreservationAction) + func (m *PreservationActionMutation) WhereP(ps ...func(*sql.Selector)) + func (m *PreservationActionMutation) WorkflowID() (r string, exists bool) + func (m PreservationActionMutation) Client() *Client + func (m PreservationActionMutation) Tx() (*Tx, error) + type PreservationActionQuery struct + func (paq *PreservationActionQuery) Aggregate(fns ...AggregateFunc) *PreservationActionSelect + func (paq *PreservationActionQuery) All(ctx context.Context) ([]*PreservationAction, error) + func (paq *PreservationActionQuery) AllX(ctx context.Context) []*PreservationAction + func (paq *PreservationActionQuery) Clone() *PreservationActionQuery + func (paq *PreservationActionQuery) Count(ctx context.Context) (int, error) + func (paq *PreservationActionQuery) CountX(ctx context.Context) int + func (paq *PreservationActionQuery) Exist(ctx context.Context) (bool, error) + func (paq *PreservationActionQuery) ExistX(ctx context.Context) bool + func (paq *PreservationActionQuery) First(ctx context.Context) (*PreservationAction, error) + func (paq *PreservationActionQuery) FirstID(ctx context.Context) (id int, err error) + func (paq *PreservationActionQuery) FirstIDX(ctx context.Context) int + func (paq *PreservationActionQuery) FirstX(ctx context.Context) *PreservationAction + func (paq *PreservationActionQuery) GroupBy(field string, fields ...string) *PreservationActionGroupBy + func (paq *PreservationActionQuery) IDs(ctx context.Context) (ids []int, err error) + func (paq *PreservationActionQuery) IDsX(ctx context.Context) []int + func (paq *PreservationActionQuery) Limit(limit int) *PreservationActionQuery + func (paq *PreservationActionQuery) Offset(offset int) *PreservationActionQuery + func (paq *PreservationActionQuery) Only(ctx context.Context) (*PreservationAction, error) + func (paq *PreservationActionQuery) OnlyID(ctx context.Context) (id int, err error) + func (paq *PreservationActionQuery) OnlyIDX(ctx context.Context) int + func (paq *PreservationActionQuery) OnlyX(ctx context.Context) *PreservationAction + func (paq *PreservationActionQuery) Order(o ...preservationaction.OrderOption) *PreservationActionQuery + func (paq *PreservationActionQuery) QueryPackage() *PkgQuery + func (paq *PreservationActionQuery) QueryTasks() *PreservationTaskQuery + func (paq *PreservationActionQuery) Select(fields ...string) *PreservationActionSelect + func (paq *PreservationActionQuery) Unique(unique bool) *PreservationActionQuery + func (paq *PreservationActionQuery) Where(ps ...predicate.PreservationAction) *PreservationActionQuery + func (paq *PreservationActionQuery) WithPackage(opts ...func(*PkgQuery)) *PreservationActionQuery + func (paq *PreservationActionQuery) WithTasks(opts ...func(*PreservationTaskQuery)) *PreservationActionQuery + type PreservationActionSelect struct + func (pas *PreservationActionSelect) Aggregate(fns ...AggregateFunc) *PreservationActionSelect + func (pas *PreservationActionSelect) Scan(ctx context.Context, v any) error + func (s *PreservationActionSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *PreservationActionSelect) BoolX(ctx context.Context) bool + func (s *PreservationActionSelect) Bools(ctx context.Context) ([]bool, error) + func (s *PreservationActionSelect) BoolsX(ctx context.Context) []bool + func (s *PreservationActionSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *PreservationActionSelect) Float64X(ctx context.Context) float64 + func (s *PreservationActionSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *PreservationActionSelect) Float64sX(ctx context.Context) []float64 + func (s *PreservationActionSelect) Int(ctx context.Context) (_ int, err error) + func (s *PreservationActionSelect) IntX(ctx context.Context) int + func (s *PreservationActionSelect) Ints(ctx context.Context) ([]int, error) + func (s *PreservationActionSelect) IntsX(ctx context.Context) []int + func (s *PreservationActionSelect) ScanX(ctx context.Context, v any) + func (s *PreservationActionSelect) String(ctx context.Context) (_ string, err error) + func (s *PreservationActionSelect) StringX(ctx context.Context) string + func (s *PreservationActionSelect) Strings(ctx context.Context) ([]string, error) + func (s *PreservationActionSelect) StringsX(ctx context.Context) []string + type PreservationActionUpdate struct + func (pau *PreservationActionUpdate) AddStatus(i int8) *PreservationActionUpdate + func (pau *PreservationActionUpdate) AddTaskIDs(ids ...int) *PreservationActionUpdate + func (pau *PreservationActionUpdate) AddTasks(p ...*PreservationTask) *PreservationActionUpdate + func (pau *PreservationActionUpdate) AddType(i int8) *PreservationActionUpdate + func (pau *PreservationActionUpdate) ClearCompletedAt() *PreservationActionUpdate + func (pau *PreservationActionUpdate) ClearPackage() *PreservationActionUpdate + func (pau *PreservationActionUpdate) ClearStartedAt() *PreservationActionUpdate + func (pau *PreservationActionUpdate) ClearTasks() *PreservationActionUpdate + func (pau *PreservationActionUpdate) Exec(ctx context.Context) error + func (pau *PreservationActionUpdate) ExecX(ctx context.Context) + func (pau *PreservationActionUpdate) Mutation() *PreservationActionMutation + func (pau *PreservationActionUpdate) RemoveTaskIDs(ids ...int) *PreservationActionUpdate + func (pau *PreservationActionUpdate) RemoveTasks(p ...*PreservationTask) *PreservationActionUpdate + func (pau *PreservationActionUpdate) Save(ctx context.Context) (int, error) + func (pau *PreservationActionUpdate) SaveX(ctx context.Context) int + func (pau *PreservationActionUpdate) SetCompletedAt(t time.Time) *PreservationActionUpdate + func (pau *PreservationActionUpdate) SetNillableCompletedAt(t *time.Time) *PreservationActionUpdate + func (pau *PreservationActionUpdate) SetNillablePackageID(i *int) *PreservationActionUpdate + func (pau *PreservationActionUpdate) SetNillableStartedAt(t *time.Time) *PreservationActionUpdate + func (pau *PreservationActionUpdate) SetNillableStatus(i *int8) *PreservationActionUpdate + func (pau *PreservationActionUpdate) SetNillableType(i *int8) *PreservationActionUpdate + func (pau *PreservationActionUpdate) SetNillableWorkflowID(s *string) *PreservationActionUpdate + func (pau *PreservationActionUpdate) SetPackage(p *Pkg) *PreservationActionUpdate + func (pau *PreservationActionUpdate) SetPackageID(i int) *PreservationActionUpdate + func (pau *PreservationActionUpdate) SetStartedAt(t time.Time) *PreservationActionUpdate + func (pau *PreservationActionUpdate) SetStatus(i int8) *PreservationActionUpdate + func (pau *PreservationActionUpdate) SetType(i int8) *PreservationActionUpdate + func (pau *PreservationActionUpdate) SetWorkflowID(s string) *PreservationActionUpdate + func (pau *PreservationActionUpdate) Where(ps ...predicate.PreservationAction) *PreservationActionUpdate + type PreservationActionUpdateOne struct + func (pauo *PreservationActionUpdateOne) AddStatus(i int8) *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) AddTaskIDs(ids ...int) *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) AddTasks(p ...*PreservationTask) *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) AddType(i int8) *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) ClearCompletedAt() *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) ClearPackage() *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) ClearStartedAt() *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) ClearTasks() *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) Exec(ctx context.Context) error + func (pauo *PreservationActionUpdateOne) ExecX(ctx context.Context) + func (pauo *PreservationActionUpdateOne) Mutation() *PreservationActionMutation + func (pauo *PreservationActionUpdateOne) RemoveTaskIDs(ids ...int) *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) RemoveTasks(p ...*PreservationTask) *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) Save(ctx context.Context) (*PreservationAction, error) + func (pauo *PreservationActionUpdateOne) SaveX(ctx context.Context) *PreservationAction + func (pauo *PreservationActionUpdateOne) Select(field string, fields ...string) *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) SetCompletedAt(t time.Time) *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) SetNillableCompletedAt(t *time.Time) *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) SetNillablePackageID(i *int) *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) SetNillableStartedAt(t *time.Time) *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) SetNillableStatus(i *int8) *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) SetNillableType(i *int8) *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) SetNillableWorkflowID(s *string) *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) SetPackage(p *Pkg) *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) SetPackageID(i int) *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) SetStartedAt(t time.Time) *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) SetStatus(i int8) *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) SetType(i int8) *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) SetWorkflowID(s string) *PreservationActionUpdateOne + func (pauo *PreservationActionUpdateOne) Where(ps ...predicate.PreservationAction) *PreservationActionUpdateOne + type PreservationActions []*PreservationAction + type PreservationTask struct + CompletedAt time.Time + Edges PreservationTaskEdges + ID int + Name string + Note string + PreservationActionID int + StartedAt time.Time + Status int8 + TaskID uuid.UUID + func (pt *PreservationTask) QueryAction() *PreservationActionQuery + func (pt *PreservationTask) String() string + func (pt *PreservationTask) Unwrap() *PreservationTask + func (pt *PreservationTask) Update() *PreservationTaskUpdateOne + func (pt *PreservationTask) Value(name string) (ent.Value, error) + type PreservationTaskClient struct + func NewPreservationTaskClient(c config) *PreservationTaskClient + func (c *PreservationTaskClient) Create() *PreservationTaskCreate + func (c *PreservationTaskClient) CreateBulk(builders ...*PreservationTaskCreate) *PreservationTaskCreateBulk + func (c *PreservationTaskClient) Delete() *PreservationTaskDelete + func (c *PreservationTaskClient) DeleteOne(pt *PreservationTask) *PreservationTaskDeleteOne + func (c *PreservationTaskClient) DeleteOneID(id int) *PreservationTaskDeleteOne + func (c *PreservationTaskClient) Get(ctx context.Context, id int) (*PreservationTask, error) + func (c *PreservationTaskClient) GetX(ctx context.Context, id int) *PreservationTask + func (c *PreservationTaskClient) Hooks() []Hook + func (c *PreservationTaskClient) Intercept(interceptors ...Interceptor) + func (c *PreservationTaskClient) Interceptors() []Interceptor + func (c *PreservationTaskClient) MapCreateBulk(slice any, setFunc func(*PreservationTaskCreate, int)) *PreservationTaskCreateBulk + func (c *PreservationTaskClient) Query() *PreservationTaskQuery + func (c *PreservationTaskClient) QueryAction(pt *PreservationTask) *PreservationActionQuery + func (c *PreservationTaskClient) Update() *PreservationTaskUpdate + func (c *PreservationTaskClient) UpdateOne(pt *PreservationTask) *PreservationTaskUpdateOne + func (c *PreservationTaskClient) UpdateOneID(id int) *PreservationTaskUpdateOne + func (c *PreservationTaskClient) Use(hooks ...Hook) + type PreservationTaskCreate struct + func (ptc *PreservationTaskCreate) Exec(ctx context.Context) error + func (ptc *PreservationTaskCreate) ExecX(ctx context.Context) + func (ptc *PreservationTaskCreate) Mutation() *PreservationTaskMutation + func (ptc *PreservationTaskCreate) Save(ctx context.Context) (*PreservationTask, error) + func (ptc *PreservationTaskCreate) SaveX(ctx context.Context) *PreservationTask + func (ptc *PreservationTaskCreate) SetAction(p *PreservationAction) *PreservationTaskCreate + func (ptc *PreservationTaskCreate) SetActionID(id int) *PreservationTaskCreate + func (ptc *PreservationTaskCreate) SetCompletedAt(t time.Time) *PreservationTaskCreate + func (ptc *PreservationTaskCreate) SetName(s string) *PreservationTaskCreate + func (ptc *PreservationTaskCreate) SetNillableCompletedAt(t *time.Time) *PreservationTaskCreate + func (ptc *PreservationTaskCreate) SetNillableStartedAt(t *time.Time) *PreservationTaskCreate + func (ptc *PreservationTaskCreate) SetNote(s string) *PreservationTaskCreate + func (ptc *PreservationTaskCreate) SetPreservationActionID(i int) *PreservationTaskCreate + func (ptc *PreservationTaskCreate) SetStartedAt(t time.Time) *PreservationTaskCreate + func (ptc *PreservationTaskCreate) SetStatus(i int8) *PreservationTaskCreate + func (ptc *PreservationTaskCreate) SetTaskID(u uuid.UUID) *PreservationTaskCreate + type PreservationTaskCreateBulk struct + func (ptcb *PreservationTaskCreateBulk) Exec(ctx context.Context) error + func (ptcb *PreservationTaskCreateBulk) ExecX(ctx context.Context) + func (ptcb *PreservationTaskCreateBulk) Save(ctx context.Context) ([]*PreservationTask, error) + func (ptcb *PreservationTaskCreateBulk) SaveX(ctx context.Context) []*PreservationTask + type PreservationTaskDelete struct + func (ptd *PreservationTaskDelete) Exec(ctx context.Context) (int, error) + func (ptd *PreservationTaskDelete) ExecX(ctx context.Context) int + func (ptd *PreservationTaskDelete) Where(ps ...predicate.PreservationTask) *PreservationTaskDelete + type PreservationTaskDeleteOne struct + func (ptdo *PreservationTaskDeleteOne) Exec(ctx context.Context) error + func (ptdo *PreservationTaskDeleteOne) ExecX(ctx context.Context) + func (ptdo *PreservationTaskDeleteOne) Where(ps ...predicate.PreservationTask) *PreservationTaskDeleteOne + type PreservationTaskEdges struct + Action *PreservationAction + func (e PreservationTaskEdges) ActionOrErr() (*PreservationAction, error) + type PreservationTaskGroupBy struct + func (ptgb *PreservationTaskGroupBy) Aggregate(fns ...AggregateFunc) *PreservationTaskGroupBy + func (ptgb *PreservationTaskGroupBy) Scan(ctx context.Context, v any) error + func (s *PreservationTaskGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *PreservationTaskGroupBy) BoolX(ctx context.Context) bool + func (s *PreservationTaskGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *PreservationTaskGroupBy) BoolsX(ctx context.Context) []bool + func (s *PreservationTaskGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *PreservationTaskGroupBy) Float64X(ctx context.Context) float64 + func (s *PreservationTaskGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *PreservationTaskGroupBy) Float64sX(ctx context.Context) []float64 + func (s *PreservationTaskGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *PreservationTaskGroupBy) IntX(ctx context.Context) int + func (s *PreservationTaskGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *PreservationTaskGroupBy) IntsX(ctx context.Context) []int + func (s *PreservationTaskGroupBy) ScanX(ctx context.Context, v any) + func (s *PreservationTaskGroupBy) String(ctx context.Context) (_ string, err error) + func (s *PreservationTaskGroupBy) StringX(ctx context.Context) string + func (s *PreservationTaskGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *PreservationTaskGroupBy) StringsX(ctx context.Context) []string + type PreservationTaskMutation struct + func (m *PreservationTaskMutation) ActionCleared() bool + func (m *PreservationTaskMutation) ActionID() (id int, exists bool) + func (m *PreservationTaskMutation) ActionIDs() (ids []int) + func (m *PreservationTaskMutation) AddField(name string, value ent.Value) error + func (m *PreservationTaskMutation) AddStatus(i int8) + func (m *PreservationTaskMutation) AddedEdges() []string + func (m *PreservationTaskMutation) AddedField(name string) (ent.Value, bool) + func (m *PreservationTaskMutation) AddedFields() []string + func (m *PreservationTaskMutation) AddedIDs(name string) []ent.Value + func (m *PreservationTaskMutation) AddedStatus() (r int8, exists bool) + func (m *PreservationTaskMutation) ClearAction() + func (m *PreservationTaskMutation) ClearCompletedAt() + func (m *PreservationTaskMutation) ClearEdge(name string) error + func (m *PreservationTaskMutation) ClearField(name string) error + func (m *PreservationTaskMutation) ClearStartedAt() + func (m *PreservationTaskMutation) ClearedEdges() []string + func (m *PreservationTaskMutation) ClearedFields() []string + func (m *PreservationTaskMutation) CompletedAt() (r time.Time, exists bool) + func (m *PreservationTaskMutation) CompletedAtCleared() bool + func (m *PreservationTaskMutation) EdgeCleared(name string) bool + func (m *PreservationTaskMutation) Field(name string) (ent.Value, bool) + func (m *PreservationTaskMutation) FieldCleared(name string) bool + func (m *PreservationTaskMutation) Fields() []string + func (m *PreservationTaskMutation) ID() (id int, exists bool) + func (m *PreservationTaskMutation) IDs(ctx context.Context) ([]int, error) + func (m *PreservationTaskMutation) Name() (r string, exists bool) + func (m *PreservationTaskMutation) Note() (r string, exists bool) + func (m *PreservationTaskMutation) OldCompletedAt(ctx context.Context) (v time.Time, err error) + func (m *PreservationTaskMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *PreservationTaskMutation) OldName(ctx context.Context) (v string, err error) + func (m *PreservationTaskMutation) OldNote(ctx context.Context) (v string, err error) + func (m *PreservationTaskMutation) OldPreservationActionID(ctx context.Context) (v int, err error) + func (m *PreservationTaskMutation) OldStartedAt(ctx context.Context) (v time.Time, err error) + func (m *PreservationTaskMutation) OldStatus(ctx context.Context) (v int8, err error) + func (m *PreservationTaskMutation) OldTaskID(ctx context.Context) (v uuid.UUID, err error) + func (m *PreservationTaskMutation) Op() Op + func (m *PreservationTaskMutation) PreservationActionID() (r int, exists bool) + func (m *PreservationTaskMutation) RemovedEdges() []string + func (m *PreservationTaskMutation) RemovedIDs(name string) []ent.Value + func (m *PreservationTaskMutation) ResetAction() + func (m *PreservationTaskMutation) ResetCompletedAt() + func (m *PreservationTaskMutation) ResetEdge(name string) error + func (m *PreservationTaskMutation) ResetField(name string) error + func (m *PreservationTaskMutation) ResetName() + func (m *PreservationTaskMutation) ResetNote() + func (m *PreservationTaskMutation) ResetPreservationActionID() + func (m *PreservationTaskMutation) ResetStartedAt() + func (m *PreservationTaskMutation) ResetStatus() + func (m *PreservationTaskMutation) ResetTaskID() + func (m *PreservationTaskMutation) SetActionID(id int) + func (m *PreservationTaskMutation) SetCompletedAt(t time.Time) + func (m *PreservationTaskMutation) SetField(name string, value ent.Value) error + func (m *PreservationTaskMutation) SetName(s string) + func (m *PreservationTaskMutation) SetNote(s string) + func (m *PreservationTaskMutation) SetOp(op Op) + func (m *PreservationTaskMutation) SetPreservationActionID(i int) + func (m *PreservationTaskMutation) SetStartedAt(t time.Time) + func (m *PreservationTaskMutation) SetStatus(i int8) + func (m *PreservationTaskMutation) SetTaskID(u uuid.UUID) + func (m *PreservationTaskMutation) StartedAt() (r time.Time, exists bool) + func (m *PreservationTaskMutation) StartedAtCleared() bool + func (m *PreservationTaskMutation) Status() (r int8, exists bool) + func (m *PreservationTaskMutation) TaskID() (r uuid.UUID, exists bool) + func (m *PreservationTaskMutation) Type() string + func (m *PreservationTaskMutation) Where(ps ...predicate.PreservationTask) + func (m *PreservationTaskMutation) WhereP(ps ...func(*sql.Selector)) + func (m PreservationTaskMutation) Client() *Client + func (m PreservationTaskMutation) Tx() (*Tx, error) + type PreservationTaskQuery struct + func (ptq *PreservationTaskQuery) Aggregate(fns ...AggregateFunc) *PreservationTaskSelect + func (ptq *PreservationTaskQuery) All(ctx context.Context) ([]*PreservationTask, error) + func (ptq *PreservationTaskQuery) AllX(ctx context.Context) []*PreservationTask + func (ptq *PreservationTaskQuery) Clone() *PreservationTaskQuery + func (ptq *PreservationTaskQuery) Count(ctx context.Context) (int, error) + func (ptq *PreservationTaskQuery) CountX(ctx context.Context) int + func (ptq *PreservationTaskQuery) Exist(ctx context.Context) (bool, error) + func (ptq *PreservationTaskQuery) ExistX(ctx context.Context) bool + func (ptq *PreservationTaskQuery) First(ctx context.Context) (*PreservationTask, error) + func (ptq *PreservationTaskQuery) FirstID(ctx context.Context) (id int, err error) + func (ptq *PreservationTaskQuery) FirstIDX(ctx context.Context) int + func (ptq *PreservationTaskQuery) FirstX(ctx context.Context) *PreservationTask + func (ptq *PreservationTaskQuery) GroupBy(field string, fields ...string) *PreservationTaskGroupBy + func (ptq *PreservationTaskQuery) IDs(ctx context.Context) (ids []int, err error) + func (ptq *PreservationTaskQuery) IDsX(ctx context.Context) []int + func (ptq *PreservationTaskQuery) Limit(limit int) *PreservationTaskQuery + func (ptq *PreservationTaskQuery) Offset(offset int) *PreservationTaskQuery + func (ptq *PreservationTaskQuery) Only(ctx context.Context) (*PreservationTask, error) + func (ptq *PreservationTaskQuery) OnlyID(ctx context.Context) (id int, err error) + func (ptq *PreservationTaskQuery) OnlyIDX(ctx context.Context) int + func (ptq *PreservationTaskQuery) OnlyX(ctx context.Context) *PreservationTask + func (ptq *PreservationTaskQuery) Order(o ...preservationtask.OrderOption) *PreservationTaskQuery + func (ptq *PreservationTaskQuery) QueryAction() *PreservationActionQuery + func (ptq *PreservationTaskQuery) Select(fields ...string) *PreservationTaskSelect + func (ptq *PreservationTaskQuery) Unique(unique bool) *PreservationTaskQuery + func (ptq *PreservationTaskQuery) Where(ps ...predicate.PreservationTask) *PreservationTaskQuery + func (ptq *PreservationTaskQuery) WithAction(opts ...func(*PreservationActionQuery)) *PreservationTaskQuery + type PreservationTaskSelect struct + func (pts *PreservationTaskSelect) Aggregate(fns ...AggregateFunc) *PreservationTaskSelect + func (pts *PreservationTaskSelect) Scan(ctx context.Context, v any) error + func (s *PreservationTaskSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *PreservationTaskSelect) BoolX(ctx context.Context) bool + func (s *PreservationTaskSelect) Bools(ctx context.Context) ([]bool, error) + func (s *PreservationTaskSelect) BoolsX(ctx context.Context) []bool + func (s *PreservationTaskSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *PreservationTaskSelect) Float64X(ctx context.Context) float64 + func (s *PreservationTaskSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *PreservationTaskSelect) Float64sX(ctx context.Context) []float64 + func (s *PreservationTaskSelect) Int(ctx context.Context) (_ int, err error) + func (s *PreservationTaskSelect) IntX(ctx context.Context) int + func (s *PreservationTaskSelect) Ints(ctx context.Context) ([]int, error) + func (s *PreservationTaskSelect) IntsX(ctx context.Context) []int + func (s *PreservationTaskSelect) ScanX(ctx context.Context, v any) + func (s *PreservationTaskSelect) String(ctx context.Context) (_ string, err error) + func (s *PreservationTaskSelect) StringX(ctx context.Context) string + func (s *PreservationTaskSelect) Strings(ctx context.Context) ([]string, error) + func (s *PreservationTaskSelect) StringsX(ctx context.Context) []string + type PreservationTaskUpdate struct + func (ptu *PreservationTaskUpdate) AddStatus(i int8) *PreservationTaskUpdate + func (ptu *PreservationTaskUpdate) ClearAction() *PreservationTaskUpdate + func (ptu *PreservationTaskUpdate) ClearCompletedAt() *PreservationTaskUpdate + func (ptu *PreservationTaskUpdate) ClearStartedAt() *PreservationTaskUpdate + func (ptu *PreservationTaskUpdate) Exec(ctx context.Context) error + func (ptu *PreservationTaskUpdate) ExecX(ctx context.Context) + func (ptu *PreservationTaskUpdate) Mutation() *PreservationTaskMutation + func (ptu *PreservationTaskUpdate) Save(ctx context.Context) (int, error) + func (ptu *PreservationTaskUpdate) SaveX(ctx context.Context) int + func (ptu *PreservationTaskUpdate) SetAction(p *PreservationAction) *PreservationTaskUpdate + func (ptu *PreservationTaskUpdate) SetActionID(id int) *PreservationTaskUpdate + func (ptu *PreservationTaskUpdate) SetCompletedAt(t time.Time) *PreservationTaskUpdate + func (ptu *PreservationTaskUpdate) SetName(s string) *PreservationTaskUpdate + func (ptu *PreservationTaskUpdate) SetNillableCompletedAt(t *time.Time) *PreservationTaskUpdate + func (ptu *PreservationTaskUpdate) SetNillableName(s *string) *PreservationTaskUpdate + func (ptu *PreservationTaskUpdate) SetNillableNote(s *string) *PreservationTaskUpdate + func (ptu *PreservationTaskUpdate) SetNillablePreservationActionID(i *int) *PreservationTaskUpdate + func (ptu *PreservationTaskUpdate) SetNillableStartedAt(t *time.Time) *PreservationTaskUpdate + func (ptu *PreservationTaskUpdate) SetNillableStatus(i *int8) *PreservationTaskUpdate + func (ptu *PreservationTaskUpdate) SetNillableTaskID(u *uuid.UUID) *PreservationTaskUpdate + func (ptu *PreservationTaskUpdate) SetNote(s string) *PreservationTaskUpdate + func (ptu *PreservationTaskUpdate) SetPreservationActionID(i int) *PreservationTaskUpdate + func (ptu *PreservationTaskUpdate) SetStartedAt(t time.Time) *PreservationTaskUpdate + func (ptu *PreservationTaskUpdate) SetStatus(i int8) *PreservationTaskUpdate + func (ptu *PreservationTaskUpdate) SetTaskID(u uuid.UUID) *PreservationTaskUpdate + func (ptu *PreservationTaskUpdate) Where(ps ...predicate.PreservationTask) *PreservationTaskUpdate + type PreservationTaskUpdateOne struct + func (ptuo *PreservationTaskUpdateOne) AddStatus(i int8) *PreservationTaskUpdateOne + func (ptuo *PreservationTaskUpdateOne) ClearAction() *PreservationTaskUpdateOne + func (ptuo *PreservationTaskUpdateOne) ClearCompletedAt() *PreservationTaskUpdateOne + func (ptuo *PreservationTaskUpdateOne) ClearStartedAt() *PreservationTaskUpdateOne + func (ptuo *PreservationTaskUpdateOne) Exec(ctx context.Context) error + func (ptuo *PreservationTaskUpdateOne) ExecX(ctx context.Context) + func (ptuo *PreservationTaskUpdateOne) Mutation() *PreservationTaskMutation + func (ptuo *PreservationTaskUpdateOne) Save(ctx context.Context) (*PreservationTask, error) + func (ptuo *PreservationTaskUpdateOne) SaveX(ctx context.Context) *PreservationTask + func (ptuo *PreservationTaskUpdateOne) Select(field string, fields ...string) *PreservationTaskUpdateOne + func (ptuo *PreservationTaskUpdateOne) SetAction(p *PreservationAction) *PreservationTaskUpdateOne + func (ptuo *PreservationTaskUpdateOne) SetActionID(id int) *PreservationTaskUpdateOne + func (ptuo *PreservationTaskUpdateOne) SetCompletedAt(t time.Time) *PreservationTaskUpdateOne + func (ptuo *PreservationTaskUpdateOne) SetName(s string) *PreservationTaskUpdateOne + func (ptuo *PreservationTaskUpdateOne) SetNillableCompletedAt(t *time.Time) *PreservationTaskUpdateOne + func (ptuo *PreservationTaskUpdateOne) SetNillableName(s *string) *PreservationTaskUpdateOne + func (ptuo *PreservationTaskUpdateOne) SetNillableNote(s *string) *PreservationTaskUpdateOne + func (ptuo *PreservationTaskUpdateOne) SetNillablePreservationActionID(i *int) *PreservationTaskUpdateOne + func (ptuo *PreservationTaskUpdateOne) SetNillableStartedAt(t *time.Time) *PreservationTaskUpdateOne + func (ptuo *PreservationTaskUpdateOne) SetNillableStatus(i *int8) *PreservationTaskUpdateOne + func (ptuo *PreservationTaskUpdateOne) SetNillableTaskID(u *uuid.UUID) *PreservationTaskUpdateOne + func (ptuo *PreservationTaskUpdateOne) SetNote(s string) *PreservationTaskUpdateOne + func (ptuo *PreservationTaskUpdateOne) SetPreservationActionID(i int) *PreservationTaskUpdateOne + func (ptuo *PreservationTaskUpdateOne) SetStartedAt(t time.Time) *PreservationTaskUpdateOne + func (ptuo *PreservationTaskUpdateOne) SetStatus(i int8) *PreservationTaskUpdateOne + func (ptuo *PreservationTaskUpdateOne) SetTaskID(u uuid.UUID) *PreservationTaskUpdateOne + func (ptuo *PreservationTaskUpdateOne) Where(ps ...predicate.PreservationTask) *PreservationTaskUpdateOne + type PreservationTasks []*PreservationTask + type Querier = ent.Querier + type QuerierFunc = ent.QuerierFunc + type Query = ent.Query + type QueryContext = ent.QueryContext + type RollbackFunc func(context.Context, *Tx) error + func (f RollbackFunc) Rollback(ctx context.Context, tx *Tx) error + type RollbackHook func(Rollbacker) Rollbacker + type Rollbacker interface + Rollback func(context.Context, *Tx) error + type TraverseFunc = ent.TraverseFunc + type Traverser = ent.Traverser + type Tx struct + Pkg *PkgClient + PreservationAction *PreservationActionClient + PreservationTask *PreservationTaskClient + func TxFromContext(ctx context.Context) *Tx + func (tx *Tx) Client() *Client + func (tx *Tx) Commit() error + func (tx *Tx) OnCommit(f CommitHook) + func (tx *Tx) OnRollback(f RollbackHook) + func (tx *Tx) Rollback() error + type ValidationError struct + Name string + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Value = ent.Value