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

package bakeryutil

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

Index

Package Files

service.go

func NewBakeryService Uses

func NewBakeryService(
    st *state.State,
    store bakerystorage.ExpirableStorage,
    locator bakery.PublicKeyLocator,
) (*bakery.Service, *bakery.KeyPair, error)

NewBakeryService returns a new bakery.Service and bakery.KeyPair. The bakery service is identifeid by the model corresponding to the State.

type BakeryServicePublicKeyLocator Uses

type BakeryServicePublicKeyLocator struct {
    Service *bakery.Service
}

BakeryServicePublicKeyLocator is an implementation of bakery.PublicKeyLocator that simply returns the embedded bakery service's public key.

func (BakeryServicePublicKeyLocator) PublicKeyForLocation Uses

func (b BakeryServicePublicKeyLocator) PublicKeyForLocation(string) (*bakery.PublicKey, error)

PublicKeyForLocation implements bakery.PublicKeyLocator.

type ExpirableStorageBakeryService Uses

type ExpirableStorageBakeryService struct {
    *bakery.Service
    Key     *bakery.KeyPair
    Store   bakerystorage.ExpirableStorage
    Locator bakery.PublicKeyLocator
}

ExpirableStorageBakeryService wraps bakery.Service, adding the ExpireStorageAfter method.

func (*ExpirableStorageBakeryService) ExpireStorageAfter Uses

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

ExpireStorageAfter implements authentication.ExpirableStorageBakeryService.

Package bakeryutil imports 6 packages (graph) and is imported by 6 packages. Updated 2018-05-26. Refresh now. Tools for package owners.