Documentation
¶
Overview ¶
Package sqlitestore implements runkit.Store with SQLite persistence.
Run identity and query fields are stored as columns. Metadata and terminal summary tool lists are stored as JSON so hosts can keep bounded audit context without putting prompts, messages, or large artifacts in the run store.
Index ¶
- Constants
- type Store
- func (s *Store) AppendEvent(ctx context.Context, event runkit.RunEvent) error
- func (s *Store) ApproveAndLease(ctx context.Context, request runkit.ApprovalLeaseRequest) (runkit.ApprovalCheckpoint, error)
- func (s *Store) Close() error
- func (s *Store) Complete(ctx context.Context, runID string, summary runkit.TerminalSummary) error
- func (s *Store) CompleteLease(ctx context.Context, completion runkit.CheckpointLeaseCompletion) error
- func (s *Store) Create(ctx context.Context, record runkit.RunRecord) error
- func (s *Store) CreateCheckpoint(ctx context.Context, checkpoint runkit.ApprovalCheckpoint) error
- func (s *Store) Events(ctx context.Context, runID string) ([]runkit.RunEvent, 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) FindByWorkflowID(ctx context.Context, workflowID string) ([]runkit.RunRecord, error)
- func (s *Store) Get(ctx context.Context, runID string) (runkit.RunRecord, 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 ¶
View Source
const SchemaVersion = 2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AppendEvent ¶
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) FindByWorkflowID ¶
func (*Store) GetCheckpoint ¶
func (*Store) RejectCheckpoint ¶
Click to show internal directories.
Click to hide internal directories.