Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound is the expected error if the secret isn't found in the // keyring. ErrNotFound = fmt.Errorf("secret not found in keyring") )
View Source
var ErrUnsupportedPlatform = errors.New("Unsupported platform: " + runtime.GOOS)
All of the following methods error out on unsupported platforms
Functions ¶
Types ¶
type Keyring ¶
type Keyring interface { // Set password in keyring for user. Set(service, user, password string) error // Get password from keyring given service and user name. Get(service, user string) (string, error) // Delete secret from keyring. Delete(service, user string) error }
Keyring provides a simple set/get interface for a keyring service.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.