Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface {
// LoadPeerPriv attempts to load the volume private key.
// May return nil if there is no key stored.
LoadPeerPriv(ctx context.Context) (crypto.PrivKey, error)
// StorePeerPriv overwrites the volume's stored private key.
// Note: the store should transform the data to protect the key.
StorePeerPriv(ctx context.Context, privKey crypto.PrivKey) error
}
Store implements the volume state store.
Click to show internal directories.
Click to hide internal directories.