Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrNotFound ¶
ErrNotFound is returned by Get when no entry exists.
func (*ErrNotFound) Error ¶
func (e *ErrNotFound) Error() string
type Keyring ¶
type Keyring interface {
// Get returns the value stored under (service, account). Returns ErrNotFound if missing.
Get(service, account string) (string, error)
// Set stores a value under (service, account), creating or overwriting.
Set(service, account, value string) error
}
Keyring abstracts OS keychain access for storing and retrieving key material.
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory is an in-process keyring for testing.
Click to show internal directories.
Click to hide internal directories.