Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBakeryService ¶
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.
Types ¶
type BakeryServicePublicKeyLocator ¶
BakeryServicePublicKeyLocator is an implementation of bakery.PublicKeyLocator that simply returns the embedded bakery service's public key.
func (BakeryServicePublicKeyLocator) PublicKeyForLocation ¶
func (b BakeryServicePublicKeyLocator) PublicKeyForLocation(string) (*bakery.PublicKey, error)
PublicKeyForLocation implements bakery.PublicKeyLocator.
type ExpirableStorageBakeryService ¶
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 ¶
func (s *ExpirableStorageBakeryService) ExpireStorageAfter(t time.Duration) (authentication.ExpirableStorageBakeryService, error)
ExpireStorageAfter implements authentication.ExpirableStorageBakeryService.
Click to show internal directories.
Click to hide internal directories.