keystore

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: Apache-2.0, MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskKeyStore

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

func OpenOrInitKeystore

func OpenOrInitKeystore(p string) (*DiskKeyStore, error)

func (*DiskKeyStore) Delete

func (fsr *DiskKeyStore) Delete(name string) error

func (*DiskKeyStore) Get

func (fsr *DiskKeyStore) Get(name string) (types.KeyInfo, error)

Get gets a key out of keystore and returns types.KeyInfo coresponding to named key

func (*DiskKeyStore) List

func (fsr *DiskKeyStore) List() ([]string, error)

List lists all the keys stored in the KeyStore

func (*DiskKeyStore) Put

func (fsr *DiskKeyStore) Put(name string, info types.KeyInfo) error

Put saves key info under given name

Jump to

Keyboard shortcuts

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