Documentation
¶
Index ¶
- func SchemaStatements(dialect db.Dialect) ([]string, error)
- type Store
- func (s *Store) Accept(ctx context.Context, input management.AcceptCommand) (management.Operation, error)
- func (s *Store) ClaimDue(ctx context.Context, owner string, limit uint16, lease time.Duration) ([]management.Claim, error)
- func (s *Store) ClaimDueForDeployment(ctx context.Context, owner string, limit uint16, lease time.Duration, ...) ([]management.Claim, error)
- func (s *Store) EnsureSchema(ctx context.Context) error
- func (s *Store) Finish(ctx context.Context, claim management.Claim, outcome management.FinishResult) error
- func (s *Store) Get(ctx context.Context, caller contract.PrincipalID, id contract.OperationID) (management.Operation, error)
- func (s *Store) Release(ctx context.Context, claim management.Claim) error
- func (s *Store) Renew(ctx context.Context, claim management.Claim, lease time.Duration) (management.Claim, error)
- func (s *Store) RetryDeleteOperation(ctx context.Context, caller contract.PrincipalID, id contract.OperationID, ...) (management.Operation, error)
- func (s *Store) RetryInvitationOperation(ctx context.Context, caller contract.PrincipalID, id contract.OperationID, ...) (management.Operation, error)
- func (s *Store) RetryPackageOperation(ctx context.Context, caller contract.PrincipalID, id contract.OperationID, ...) (management.Operation, error)
- func (s *Store) RetryProvisionOperation(ctx context.Context, caller contract.PrincipalID, id contract.OperationID, ...) (management.Operation, error)
- func (s *Store) RetryStateOperation(ctx context.Context, caller contract.PrincipalID, id contract.OperationID, ...) (management.Operation, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Accept ¶
func (s *Store) Accept(ctx context.Context, input management.AcceptCommand) (management.Operation, error)
func (*Store) ClaimDueForDeployment ¶
func (*Store) Finish ¶
func (s *Store) Finish(ctx context.Context, claim management.Claim, outcome management.FinishResult) error
func (*Store) Get ¶
func (s *Store) Get(ctx context.Context, caller contract.PrincipalID, id contract.OperationID) (management.Operation, error)
func (*Store) Renew ¶
func (s *Store) Renew(ctx context.Context, claim management.Claim, lease time.Duration) (management.Claim, error)
func (*Store) RetryDeleteOperation ¶
func (s *Store) RetryDeleteOperation(ctx context.Context, caller contract.PrincipalID, id contract.OperationID, key contract.IdempotencyKey, reason string) (management.Operation, error)
RetryDeleteOperation requeues only an uncertain deletion with the original, validated checkpoint reference. The Engine executor must reverify that reference against the current allocation before continuing teardown.
func (*Store) RetryInvitationOperation ¶
func (s *Store) RetryInvitationOperation(ctx context.Context, caller contract.PrincipalID, id contract.OperationID, key contract.IdempotencyKey, outcome contract.InvitationDeliveryOutcome, reason string) (management.Operation, error)
func (*Store) RetryPackageOperation ¶
func (s *Store) RetryPackageOperation(ctx context.Context, caller contract.PrincipalID, id contract.OperationID, key contract.IdempotencyKey, reason string) (management.Operation, error)
RetryPackageOperation requeues an uncertain package command without changing its operation ID or command. Package activation is safe to resume only through its tenant-local journal, artifact digest check, and claim fencing; the executor owns those checks.
func (*Store) RetryProvisionOperation ¶
func (s *Store) RetryProvisionOperation(ctx context.Context, caller contract.PrincipalID, id contract.OperationID, key contract.IdempotencyKey, reason string) (management.Operation, error)
RetryProvisionOperation requeues only a recovery_required base-provision command with no package effect. The Engine executor revalidates its configured deployment/allocation and compares any existing directory row before replay.
func (*Store) RetryStateOperation ¶
func (s *Store) RetryStateOperation(ctx context.Context, caller contract.PrincipalID, id contract.OperationID, key contract.IdempotencyKey, reason string) (management.Operation, error)