Documentation
¶
Overview ¶
Package pgstore persists opaque runkit approval checkpoints in PostgreSQL.
Index ¶
- type Store
- func (s *Store) ApproveAndLease(ctx context.Context, request runkit.ApprovalLeaseRequest) (runkit.ApprovalCheckpoint, error)
- func (s *Store) Close() error
- func (s *Store) CompleteLease(ctx context.Context, completion runkit.CheckpointLeaseCompletion) error
- func (s *Store) CreateCheckpoint(ctx context.Context, checkpoint runkit.ApprovalCheckpoint) error
- func (s *Store) ExpireCheckpoints(ctx context.Context, now time.Time) (int, error)
- func (s *Store) FailLease(ctx context.Context, completion runkit.CheckpointLeaseCompletion) error
- func (s *Store) FailPendingCheckpoint(ctx context.Context, request runkit.PendingCheckpointFailure) error
- func (s *Store) GetCheckpoint(ctx context.Context, checkpointID, tenantID string) (runkit.ApprovalCheckpoint, error)
- func (s *Store) RejectCheckpoint(ctx context.Context, request runkit.ApprovalLeaseRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ApproveAndLease ¶
func (s *Store) ApproveAndLease(ctx context.Context, request runkit.ApprovalLeaseRequest) (runkit.ApprovalCheckpoint, error)
func (*Store) CompleteLease ¶
func (*Store) CreateCheckpoint ¶
func (*Store) ExpireCheckpoints ¶
func (*Store) FailPendingCheckpoint ¶
func (*Store) GetCheckpoint ¶
func (*Store) RejectCheckpoint ¶
Click to show internal directories.
Click to hide internal directories.