Versions in this module Expand all Collapse all v0 v0.0.6 Oct 15, 2026 Changes in this version + type RewrapKeysOptions struct + BatchSize int + DryRun bool + FromKEKID string + ToKEKID string + type RewrapKeysResult struct + Batches int + MatchedRows int + RemainingRows int + RewrappedRows int + SkippedRows int + func RewrapKeys(ctx context.Context, pool *pgxpool.Pool, cfg Config, env *envelope.Envelope, ...) (RewrapKeysResult, error) v0.0.5 Aug 31, 2026 Changes in this version + const DefaultSchema + const DefaultTable + type Config struct + Schema string + Table string + func ApplyDefaults(cfg Config) Config + func DefaultConfig() Config + type EncryptedKey struct + CreatedAt time.Time + EncryptedDEK []byte + KeyVersion int + RevokedAt *time.Time + Scope string + ScopeID string + SystemKeyID string + type RewrapSystemKeysOptions struct + BatchSize int + DryRun bool + FromSystemKeyID string + ToSystemKeyID string + type RewrapSystemKeysResult struct + Batches int + MatchedRows int + RemainingRows int + RewrappedRows int + SkippedRows int + func RewrapSystemKeys(ctx context.Context, pool *pgxpool.Pool, cfg Config, keyring systemkey.Keyring, ...) (RewrapSystemKeysResult, error) + type Store struct + func NewStore(env *envelope.Envelope, cfg Config) *Store + func (s *Store) ActiveKeyVersion(ctx context.Context, conn pgxConn, scope, scopeID string) (int, error) + func (s *Store) CreateKey(ctx context.Context, conn pgxConn, scope, scopeID string) (int, error) + func (s *Store) DestroyKeys(ctx context.Context, conn pgxConn, scope, scopeID string) error + func (s *Store) GetActiveKey(ctx context.Context, conn pgxConn, scope, scopeID string) (*EncryptedKey, error) + func (s *Store) GetKey(ctx context.Context, conn pgxConn, scope, scopeID string, version int) (*EncryptedKey, error) + func (s *Store) RevokeKeys(ctx context.Context, conn pgxConn, scope, scopeID string) error + func (s *Store) RotateKey(ctx context.Context, conn pgxConn, scope, scopeID string) (int, error)