Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeyExists = fmt.Errorf("key by that name already exists, refusing to overwrite")
View Source
var ErrNoSuchKey = fmt.Errorf("no key by the given name was found")
Functions ¶
This section is empty.
Types ¶
type FSKeystore ¶
type FSKeystore struct {
// contains filtered or unexported fields
}
func NewFSKeystore ¶
func NewFSKeystore(dir string) (*FSKeystore, error)
type Keystore ¶
type Keystore interface {
Put(string, ci.PrivKey) error
Get(string) (ci.PrivKey, error)
Delete(string) error
List() ([]string, error)
}
type MemKeystore ¶
type MemKeystore struct {
// contains filtered or unexported fields
}
func NewMemKeystore ¶
func NewMemKeystore() *MemKeystore
Click to show internal directories.
Click to hide internal directories.