Documentation
¶
Index ¶
- Variables
- func DeleteAPIKey(service, account string) error
- func ExtractKeyID(apiKey string) string
- func GetAPIKey(service, account string) (string, error)
- func GetMasterPasswordMode() *bool
- func IsKeyringAvailable() bool
- func SetUseMasterPassword(enabled *bool)
- func StoreAPIKey(service, account, apiKey string) error
- type ValidationResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeyNotFound = errors.New("API key not found")
ErrKeyNotFound reports that no key is stored for the account. It is returned by GetAPIKey regardless of the backing store so callers can distinguish "missing" from a genuine store failure.
Functions ¶
func DeleteAPIKey ¶
func ExtractKeyID ¶
func GetMasterPasswordMode ¶
func GetMasterPasswordMode() *bool
func IsKeyringAvailable ¶
func IsKeyringAvailable() bool
func SetUseMasterPassword ¶
func SetUseMasterPassword(enabled *bool)
func StoreAPIKey ¶
Types ¶
type ValidationResponse ¶
func ValidateAPIKey ¶
func ValidateAPIKey(apiKey, baseURL string) (*ValidationResponse, error)
Click to show internal directories.
Click to hide internal directories.