Documentation
¶
Overview ¶
Package credstore holds the CLI's secrets: one item per key in the OS keyring, or one 0600 file per key when no keyring is available.
Index ¶
Constants ¶
View Source
const KeyringService = "norcube"
KeyringService is the service name of every keyring item. Single word so Keychain Access shows "norcube"; changing it orphans users' sessions.
Variables ¶
View Source
var ErrNotFound = errors.New("secret not found")
ErrNotFound is returned by Store.Get for a missing key.
View Source
var ErrTooBig = errors.New("secret too big for the credential store")
ErrTooBig is returned by Set when the value exceeds what the store can hold (the Windows Credential Manager caps an item at 2.5 KB).
Functions ¶
Types ¶
type File ¶
type File struct{ Dir string }
File stores each key in its own 0600 file under Dir (0700).
type Keyring ¶
type Keyring struct{}
Keyring is the OS keyring (macOS Keychain, Secret Service, Windows Credential Manager).
Click to show internal directories.
Click to hide internal directories.