Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KeyringService = "PiCLI"
Keyring Service: Required for use in authentication and API key management
View Source
var KeyringUsr = "api-key"
Keyring User: Required for use in authentication and API key management
Functions ¶
func APIKeyIsInKeyring ¶
func APIKeyIsInKeyring() bool
Is there an entry for the API key in the system keyring?
func DeleteAPIKeyFromKeyring ¶
func DeleteAPIKeyFromKeyring() bool
Delete the stored API key if it exists
func RetrieveAPIKeyFromKeyring ¶
func RetrieveAPIKeyFromKeyring() string
Retrieve the API key from the system keyring
func StoreAPIKeyInKeyring ¶
Store the API key in the system keyring. Returns an error if this action failed.
func ValidateAPIKey ¶
Does an key allow authentication? I.e., is is valid?
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.