Versions in this module Expand all Collapse all v0 v0.0.3 Jun 5, 2025 v0.0.2 Jun 5, 2025 v0.0.1 Jun 4, 2025 v0.0.0 Jun 4, 2025 Changes in this version + var ErrAccessDenied = errors.New("access denied") + var ErrNotFound = errors.New("secret not found") + type Envelope struct + CreatedAt time.Time + Error string + ExpiresAt time.Time + ID ID + Provider string + ResolvedAt time.Time + Value []byte + Version string + type ID string + func ParseID(s string) (ID, error) + func (id ID) Match(pattern string) bool + func (id ID) String() string + func (id ID) Valid() error + type Request struct + ClientID string + ID ID + Provider string + RequestedAt time.Time + type Resolver interface + GetSecret func(request Request) (Envelope, error) + type Restricted struct + func NewRestricted(resolver Resolver, allowed ...ID) *Restricted + func (r *Restricted) Allow(allowed ...ID) + func (r *Restricted) GetSecret(request Request) (Envelope, error)