Documentation ¶
Overview ¶
Package keyring provides functions for reading and writing passwords securely.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedOS = errors.New("not supported")
Functions ¶
This section is empty.
Types ¶
type Keyring ¶
type Keyring interface { // Set sets a password for the service and username. Set(service, username string, password []byte) error // Get returns the password for the service and username if exists. Get(service, username string) ([]byte, error) // Delete deletes a password belongs to the service and username. Delete(service, username string) error }
Keyring defines the Keyring client available on the platform.
Click to show internal directories.
Click to hide internal directories.