volume_store

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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