Documentation
¶
Overview ¶
Package storage owns transactional SQLite persistence.
Index ¶
- Constants
- type Store
- func (s *Store) Artifact(ctx context.Context, id string) (string, json.RawMessage, error)
- func (s *Store) Close() error
- func (s *Store) Finding(ctx context.Context, id string) (model.Finding, error)
- func (s *Store) SaveArtifact(ctx context.Context, id, kind string, value any) error
- func (s *Store) SaveEvidence(ctx context.Context, id string, value any) error
- func (s *Store) SaveFindings(ctx context.Context, findings []model.Finding) error
- func (s *Store) SaveSnapshot(ctx context.Context, snap model.Snapshot) error
- func (s *Store) Snapshot(ctx context.Context, repository, revision string) (model.Snapshot, error)
Constants ¶
View Source
const KeepWorkingTreeSnapshots = 10
KeepWorkingTreeSnapshots bounds informational working-tree snapshots per repository. Commit snapshots are retained because plans pin them.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Artifact ¶
Artifact reads a persisted evidence or report artifact; callers validate its kind.
func (*Store) SaveArtifact ¶
func (*Store) SaveEvidence ¶
SaveEvidence is insert-only: an existing proof cannot be overwritten by a new value.
func (*Store) SaveFindings ¶
func (*Store) SaveSnapshot ¶
Click to show internal directories.
Click to hide internal directories.