Documentation ¶
Overview ¶
Package keyring provides a cross-platform interface to keychains for password management
Currently implemented:
- OSX
- SecretService
- gnome-keychain (via "gnome_keyring" build flag)
Usage ¶
Example usage:
err := keyring.Set("libraryFoo", "jack", "sacrifice") password, err := keyring.Get("libraryFoo", "jack") fmt.Println(password) Output: sacrifice
TODO
- Write Windows provider
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound means the requested password was not found ErrNotFound = errors.New("keyring: Password not found") // ErrNoDefault means that no default keyring provider has been found ErrNoDefault = errors.New("keyring: No suitable keyring provider found (check your build flags)") )
Functions ¶
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Shows example use of the keyring package
|
Shows example use of the keyring package |
Click to show internal directories.
Click to hide internal directories.