Versions in this module Expand all Collapse all v1 v1.0.0 Nov 19, 2026 Changes in this version + var ErrAccessDenied = errors.New("access denied") + var ErrEmptySecret = errors.New("secret value must not be empty") + var ErrInvalidPattern = errors.New("invalid pattern") + var ErrNotFound = errors.New("secret not found") + type Envelope struct + CreatedAt time.Time + ExpiresAt time.Time + ID ID + Metadata map[string]string + Provider string + ResolvedAt time.Time + Value []byte + Version string + func (e Envelope) MarshalJSON() ([]byte, error) + type ErrInvalidID struct + ID string + func (e ErrInvalidID) Error() string + type Factory func(context.Context, ID) T + type ID interface + Match func(pattern Pattern) bool + String func() string + func MustParseID(s string) ID + func ParseID(s string) (ID, error) + type Pattern interface + Contains func(other Pattern) bool + ExpandID func(other ID) (ID, error) + ExpandPattern func(other Pattern) (Pattern, error) + Match func(id ID) bool + Overlaps func(other Pattern) bool + String func() string + func Minimize(patterns []Pattern) []Pattern + func MustParsePattern(s string) Pattern + func ParsePattern(s string) (Pattern, error) + type Secret interface + Marshal func() ([]byte, error) + Metadata func() map[string]string + SetMetadata func(map[string]string) error + Unmarshal func(data []byte) error + type Store interface + Delete func(ctx context.Context, id ID) error + Filter func(ctx context.Context, pattern Pattern) (map[ID]Secret, error) + Get func(ctx context.Context, id ID) (Secret, error) + GetAllMetadata func(ctx context.Context) (map[ID]Secret, error) + Save func(ctx context.Context, id ID, secret Secret) error + Upsert func(ctx context.Context, id ID, secret Secret) error