bakeryutil

package
v0.0.0-...-9ec3720 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BakeryThirdPartyLocator

type BakeryThirdPartyLocator struct {
	PublicKey bakery.PublicKey
}

BakeryThirdPartyLocator is an implementation of bakery.BakeryThirdPartyLocator that simply returns the embedded public key.

func (BakeryThirdPartyLocator) ThirdPartyInfo

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

ExpireStorageAfter implements authentication.ExpirableStorageBakery.

func (*ExpirableStorageBakery) NewMacaroon

func (s *ExpirableStorageBakery) NewMacaroon(ctx context.Context, version bakery.Version, caveats []checkers.Caveat, ops ...bakery.Op) (*bakery.Macaroon, error)

NewMacaroon implements MacaroonMinter.NewMacaroon.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL