Documentation
¶
Overview ¶
Package keyring stores the CLI credential. Default is a 0600 file (headless/CI-safe, never world-readable); the OS keychain (go-keyring) is opt-in via HEXREAD_KEYRING=system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("keyring: no stored credential")
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File is a 0600 credential file.
func DefaultFile ¶
func DefaultFile() *File
DefaultFile resolves <config-dir>/hexread/credential. With no config dir and no home the path would be relative, putting the API key in the working directory; it is left empty instead and Get/Set fail with errNoConfigDir.
Click to show internal directories.
Click to hide internal directories.