Documentation ¶
Index ¶
- type BakeryThirdPartyLocator
- type ExpirableStorageBakery
- func (s *ExpirableStorageBakery) Auth(mss ...macaroon.Slice) *bakery.AuthChecker
- func (s *ExpirableStorageBakery) ExpireStorageAfter(t time.Duration) (authentication.ExpirableStorageBakery, error)
- func (s *ExpirableStorageBakery) NewMacaroon(ctx context.Context, version bakery.Version, caveats []checkers.Caveat, ...) (*bakery.Macaroon, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BakeryThirdPartyLocator ¶
BakeryThirdPartyLocator is an implementation of bakery.BakeryThirdPartyLocator that simply returns the embedded public key.
func (BakeryThirdPartyLocator) ThirdPartyInfo ¶
func (b BakeryThirdPartyLocator) ThirdPartyInfo(ctx context.Context, loc string) (bakery.ThirdPartyInfo, error)
PublicKeyForLocation implements bakery.PublicKeyLocator.
type ExpirableStorageBakery ¶
type ExpirableStorageBakery struct { *bakery.Bakery Location string Key *bakery.KeyPair Store bakerystorage.ExpirableStorage Locator bakery.ThirdPartyLocator }
ExpirableStorageBakery wraps bakery.Bakery, adding the ExpireStorageAfter method.
func (*ExpirableStorageBakery) Auth ¶
func (s *ExpirableStorageBakery) Auth(mss ...macaroon.Slice) *bakery.AuthChecker
Auth implements MacaroonChecker.Auth.
func (*ExpirableStorageBakery) ExpireStorageAfter ¶
func (s *ExpirableStorageBakery) ExpireStorageAfter(t time.Duration) (authentication.ExpirableStorageBakery, error)
ExpireStorageAfter implements authentication.ExpirableStorageBakery.
Click to show internal directories.
Click to hide internal directories.