Versions in this module Expand all Collapse all v0 v0.2.0 Jul 14, 2026 v0.1.0 Jul 13, 2026 Changes in this version + var ErrCorrupt = errors.New("release audit store is corrupt") + var ErrIdempotencyConflict = errors.New("idempotency key conflicts with a different request") + var ErrNotFound = errors.New("release not found") + var ErrPreviewNotFound = errors.New("rollback preview not found") + func NewID() string + type AuditState struct + ObservedAt time.Time + RemoteETag string + Summary *remote.Summary + Version string + type Release struct + CompletedAt time.Time + CreatedAt time.Time + EnvironmentID string + Failure *operation.Failure + Kind string + OperationID string + Outcome string + PlanDigest string + PlanID string + ReleaseID string + RemoteAfter *AuditState + RemoteBefore AuditState + RemoteState string + RiskSummary string + RollbackOfReleaseID string + SemanticSummary string + SourceDigest string + type RollbackPreview struct + BlockingReasons json.RawMessage + ConfirmationRequirements json.RawMessage + CreatedAt time.Time + CurrentRemote AuditState + EnvironmentID string + ExpectedRemoteETag string + ExpiresAt time.Time + InvalidationReason string + RemoteParameterChanges json.RawMessage + RiskItems json.RawMessage + RollbackPreviewID string + SemanticChanges json.RawMessage + Severity string + Status string + TargetReleaseID string + TargetRemoteVersion string + type Store struct + func Open(path string) (*Store, error) + func (s *Store) Get(id string) (Release, bool, error) + func (s *Store) InvalidatePreview(id, reason string) error + func (s *Store) List(environmentID string, limit int, cursor string) ([]Release, error) + func (s *Store) Lookup(environmentID, key, digest string) (string, bool, error) + func (s *Store) LookupAction(environmentID, action, key, digest string) (string, bool, error) + func (s *Store) Preview(environmentID, targetID string) (RollbackPreview, error) + func (s *Store) PreviewByID(id string) (RollbackPreview, error) + func (s *Store) Reserve(environmentID, key, digest, operationID string) (string, error) + func (s *Store) ReserveAction(environmentID, action, key, digest, operationID string) (string, error) + func (s *Store) Save(value Release) error + func (s *Store) SavePreview(value RollbackPreview) error + func (s *Store) SaveWithTemplate(value Release, template []byte) error + func (s *Store) Template(id string) ([]byte, error)