file

package
v0.1.4-beta.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	File string `yaml:"file" validate:"required"`
}

Config contains file based backend configuration

type Vault

type Vault struct {
	// contains filtered or unexported fields
}

Vault is a file system based vault

func NewVault

func NewVault(ctx context.Context, config *Config) (vault *Vault, err error)

NewVault create a new file based vault

func (*Vault) GetPublicKey

func (v *Vault) GetPublicKey(ctx context.Context, keyID string) (vault.StoredKey, error)

GetPublicKey retrieve a public key

func (*Vault) ListPublicKeys

func (v *Vault) ListPublicKeys(ctx context.Context) vault.StoredKeysIterator

ListPublicKeys list all public key available on disk

func (*Vault) Name

func (v *Vault) Name() string

Name returns backend name

func (*Vault) Sign

func (v *Vault) Sign(ctx context.Context, digest []byte, k vault.StoredKey) (sig cryptoutils.Signature, err error)

Sign sign using the specified key

func (*Vault) Unlock

func (v *Vault) Unlock(ctx context.Context) error

Unlock unlock all encrypted keys on disk

Jump to

Keyboard shortcuts

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