Documentation
¶
Overview ¶
Package secrets keeps account passwords out of the database: in the OS keychain (macOS Keychain, Windows Credential Manager, Secret Service).
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNotFound = errors.New("secret not found")
ErrNotFound is returned when no secret is stored for an account.
Functions ¶
This section is empty.
Types ¶
type Fallback ¶
Fallback keeps secrets in the OS keychain and, where there is none (a Linux box without a Secret Service), in a file only this user can read.
type File ¶
type File struct {
Path string
// contains filtered or unexported fields
}
File is a JSON map of secrets in a 0600 file.
type Keychain ¶
type Keychain struct{}
Keychain is the OS keychain.