auth

package
v0.0.0-...-6bb147f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

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

func StoreAPIKeyInKeyring(key string) error

Store the API key in the system keyring. Returns an error if this action failed.

func ValidateAPIKey

func ValidateAPIKey(url string, key string) bool

Does an key allow authentication? I.e., is is valid?

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL