Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDone = errors.New("done") ErrKey = errors.New("unsupported key type") )
ErrDone is the error returned by iterator when the iteration is done.
Functions ¶
func RegisterCommand ¶
func RegisterVault ¶
func RegisterVault(name string, newFunc newVaultFunc)
Types ¶
type FactoryFunc ¶
type Importer ¶
type Importer interface { Vault Import(ctx context.Context, pk crypt.PrivateKey, opt utils.Options) (StoredKey, error) }
Importer interface representing an importer backend
type ReadinessChecker ¶
ReadinessChecker is an optional interface implemented by a backend
type StoredKey ¶
StoredKey represents a public key which has a private counterpart stored on the backend side
type StoredKeysIterator ¶
StoredKeysIterator is used to iterate over stored public keys
type Vault ¶
type Vault interface { GetPublicKey(ctx context.Context, id string) (StoredKey, error) ListPublicKeys(ctx context.Context) StoredKeysIterator SignMessage(ctx context.Context, msg []byte, key StoredKey) (crypt.Signature, error) Name() string }
Vault interface that represent a secure key store
type VaultNamer ¶
type VaultNamer interface {
VaultName() string
}
VaultNamer might be implemented by some backends which can handle multiple vaults under single account
Click to show internal directories.
Click to hide internal directories.