Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Fs = afero.NewOsFs()
Functions ¶
This section is empty.
Types ¶
type Keyring ¶
type Keyring interface { GetKeys() []*keysvc.Key GetKey(aliasOrID string) (*keysvc.Key, bool) AddKey(*keysvc.Key) error Decrypt([]byte) ([]byte, error) }
type YAMLKeyring ¶
func (*YAMLKeyring) AddKey ¶
func (kr *YAMLKeyring) AddKey(key *keysvc.Key) error
AddKey adds a predefined key to the keyring
func (*YAMLKeyring) GetKey ¶
func (kr *YAMLKeyring) GetKey(aliasOrID string) (*keysvc.Key, bool)
GetKey gets an individual key from the keyring
func (*YAMLKeyring) GetKeys ¶
func (kr *YAMLKeyring) GetKeys() []*keysvc.Key
GetKeys returns an array of all keys in the keyring
Click to show internal directories.
Click to hide internal directories.