Documentation
¶
Overview ¶
Package credstore keeps tokens in the OS keychain: the macOS Keychain, the Windows Credential Manager or the Secret Service on Linux.
Index ¶
Constants ¶
const Service = "checkend"
Service is the keychain service name of all Checkend tokens. The account is the instance URL.
Variables ¶
var ErrNotFound = errors.New("not found in the keychain")
ErrNotFound is returned when the keychain has no token for the account.
Functions ¶
This section is empty.
Types ¶
type Keyring ¶
type Keyring interface {
Get(account string) (string, error)
Set(account, secret string) error
Delete(account string) error
}
Keyring is the OS keychain. Tests use Memory.