Versions in this module Expand all Collapse all v3 v3.0.0 Mar 8, 2021 Changes in this version + type Backing interface + FindLatestKey func(createdAfter, expiresAfter, expiresBefore time.Time) (RootKey, error) + GetKey func(id []byte) (RootKey, error) + InsertKey func(key RootKey) error + type Clock interface + Now func() time.Time + type ContextBacking interface + FindLatestKeyContext func(ctx context.Context, createdAfter, expiresAfter, expiresBefore time.Time) (RootKey, error) + GetKeyContext func(ctx context.Context, id []byte) (RootKey, error) + InsertKeyContext func(ctx context.Context, key RootKey) error + type Policy struct + ExpiryDuration time.Duration + GenerateInterval time.Duration + type RootKey struct + Created time.Time + Expires time.Time + Id []byte + RootKey []byte + func (rk RootKey) IsValid() bool + func (rk RootKey) IsValidWithPolicy(p Policy, now time.Time) bool + type RootKeys struct + func NewRootKeys(maxCacheSize int, clock Clock) *RootKeys + func (s *RootKeys) NewStore(b Backing, policy Policy) bakery.RootKeyStore Other modules containing this package gopkg.in/macaroon-bakery.v2 gopkg.in/macaroon-bakery.v2-unstable