juju: github.com/juju/juju/apiserver/bakeryutil Index | Files

package bakeryutil

import "github.com/juju/juju/apiserver/bakeryutil"

Index

Package Files

service.go

type BakeryThirdPartyLocator Uses

type BakeryThirdPartyLocator struct {
    PublicKey bakery.PublicKey
}

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

func (BakeryThirdPartyLocator) ThirdPartyInfo Uses

func (b BakeryThirdPartyLocator) ThirdPartyInfo(ctx context.Context, loc string) (bakery.ThirdPartyInfo, error)

PublicKeyForLocation implements bakery.PublicKeyLocator.

type ExpirableStorageBakery Uses

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 Uses

func (s *ExpirableStorageBakery) Auth(mss ...macaroon.Slice) *bakery.AuthChecker

Auth implements MacaroonChecker.Auth.

func (*ExpirableStorageBakery) ExpireStorageAfter Uses

func (s *ExpirableStorageBakery) ExpireStorageAfter(t time.Duration) (authentication.ExpirableStorageBakery, error)

ExpireStorageAfter implements authentication.ExpirableStorageBakery.

func (*ExpirableStorageBakery) NewMacaroon Uses

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

NewMacaroon implements MacaroonMinter.NewMacaroon.

Package bakeryutil imports 7 packages (graph) and is imported by 8 packages. Updated 2020-02-18. Refresh now. Tools for package owners.