 Documentation
      ¶
      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)
func (*FSKeystore) Delete ¶
func (ks *FSKeystore) Delete(name string) error
Delete remove a key from the Keystore
func (*FSKeystore) Get ¶
func (ks *FSKeystore) Get(name string) (ci.PrivKey, error)
Get retrieve a key from the Keystore
func (*FSKeystore) Has ¶ added in v0.4.10
func (ks *FSKeystore) Has(name string) (bool, error)
Has return whether or not a key exist in the Keystore
func (*FSKeystore) List ¶
func (ks *FSKeystore) List() ([]string, error)
List return a list of key identifier
type Keystore ¶
type Keystore interface {
	// Has return whether or not a key exist in the Keystore
	Has(string) (bool, error)
	// Put store a key in the Keystore
	Put(string, ci.PrivKey) error
	// Get retrieve a key from the Keystore
	Get(string) (ci.PrivKey, error)
	// Delete remove a key from the Keystore
	Delete(string) error
	// List return a list of key identifier
	List() ([]string, error)
}
    type MemKeystore ¶
type MemKeystore struct {
	// contains filtered or unexported fields
}
    func NewMemKeystore ¶
func NewMemKeystore() *MemKeystore
func (*MemKeystore) Delete ¶
func (mk *MemKeystore) Delete(name string) error
Delete remove a key from the Keystore
func (*MemKeystore) Get ¶
func (mk *MemKeystore) Get(name string) (ci.PrivKey, error)
Get retrieve a key from the Keystore
func (*MemKeystore) Has ¶ added in v0.4.10
func (mk *MemKeystore) Has(name string) (bool, error)
Has return whether or not a key exist in the Keystore
func (*MemKeystore) List ¶
func (mk *MemKeystore) List() ([]string, error)
List return a list of key identifier
 Click to show internal directories. 
   Click to hide internal directories.