Versions in this module Expand all Collapse all v0 v0.1.0 Oct 12, 2026 Changes in this version + type Store struct + func NewStore() *Store + func (s *Store) ActiveKEK(ctx context.Context, purpose keyforge.Purpose) (keyforge.KEKVersion, error) + func (s *Store) AddVersion(ctx context.Context, v registry.VersionRecord) error + func (s *Store) AdvanceDEK(ctx context.Context, purpose keyforge.Purpose, subject string, from uint32, ...) (keyforge.DEKRecord, error) + func (s *Store) Bootstrap(ctx context.Context, purpose keyforge.Purpose, ref provider.KeyRef, ...) error + func (s *Store) CompleteShred(ctx context.Context, purpose keyforge.Purpose, subject string, at time.Time) (registry.ShredRecord, error) + func (s *Store) CountDEKStates(ctx context.Context, purpose keyforge.Purpose) (map[keyforge.DEKState]int, error) + func (s *Store) CountDEKs(ctx context.Context, kekID envelope.ID, version uint32) (int, error) + func (s *Store) CreateKEK(ctx context.Context, k registry.KEK) error + func (s *Store) CurrentDEK(ctx context.Context, purpose keyforge.Purpose, subject string) (keyforge.DEKRecord, error) + func (s *Store) GetDEK(ctx context.Context, id envelope.ID) (keyforge.DEKRecord, error) + func (s *Store) GetKEK(ctx context.Context, id envelope.ID) (registry.KEK, error) + func (s *Store) GetSentinel(ctx context.Context, kekID envelope.ID, version uint32) (registry.Sentinel, error) + func (s *Store) GetShred(ctx context.Context, purpose keyforge.Purpose, subject string) (registry.ShredRecord, error) + func (s *Store) GetVersion(ctx context.Context, kekID envelope.ID, version uint32) (registry.VersionRecord, error) + func (s *Store) KEK(ctx context.Context, id envelope.ID) (provider.KeyRef, error) + func (s *Store) KEKForPurpose(ctx context.Context, purpose keyforge.Purpose) (registry.KEK, error) + func (s *Store) KEKVersionUsable(ctx context.Context, id envelope.ID, version uint32) (bool, error) + func (s *Store) ListDEKs(ctx context.Context, f registry.DEKFilter) ([]keyforge.DEKRecord, error) + func (s *Store) ListKEKs(ctx context.Context) ([]registry.KEK, error) + func (s *Store) ListSentinels(ctx context.Context, kekID envelope.ID) ([]registry.Sentinel, error) + func (s *Store) ListShreds(ctx context.Context) ([]registry.ShredRecord, error) + func (s *Store) ListVersions(ctx context.Context, kekID envelope.ID) ([]registry.VersionRecord, error) + func (s *Store) MarkDEK(ctx context.Context, id envelope.ID, to keyforge.DEKState) error + func (s *Store) PutSentinel(ctx context.Context, sn registry.Sentinel) error + func (s *Store) ReserveEncryptions(ctx context.Context, id envelope.ID, n, limit uint64) (uint64, error) + func (s *Store) RewrapDEK(ctx context.Context, r registry.Rewrap) error + func (s *Store) ShredSubject(ctx context.Context, purpose keyforge.Purpose, subject string, at time.Time) (registry.ShredRecord, error) + func (s *Store) TransitionVersion(ctx context.Context, kekID envelope.ID, version uint32, ...) error