Versions in this module Expand all Collapse all v0 v0.2.0 May 1, 2026 v0.1.0 Feb 22, 2026 Changes in this version + var ErrCASFailed = errors.New("CAS version mismatch") + var ErrNotFound = errors.New("record not found") + var ErrVaultNotFound = errors.New("vault not found") + func OpenRecord(recordKey []byte, envelope *Envelope, aad []byte) ([]byte, error) + type BatchTx interface + Delete func(recordType string, recordID string) error + Put func(recordType string, recordID string, envelope *Envelope) error + PutCAS func(recordType string, recordID string, expectedVersion uint64, envelope *Envelope) error + type Envelope struct + Ciphertext []byte + Nonce []byte + Scheme string + Ver int + Version uint64 + func SealRecord(recordKey, plaintext, aad []byte, version ...uint64) (*Envelope, error) + type Repository interface + Batch func(vaultID string, fn func(tx BatchTx) error) error + Delete func(vaultID string, recordType string, recordID string) error + DeleteVault func(vaultID string) error + Get func(vaultID string, recordType string, recordID string) (*Envelope, error) + List func(vaultID string, recordType string) ([]string, error) + ListVaults func() ([]string, error) + Put func(vaultID string, recordType string, recordID string, envelope *Envelope) error + PutCAS func(vaultID string, recordType string, recordID string, expectedVersion uint64, ...) error