keymanager

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIKey

func GetAPIKey() string

GetAPIKey allows packages to request the api key

func LuxHasAPIKey

func LuxHasAPIKey() bool

LuxHasAPIKey uses the KeyStore class to check if the software is setup

func PrintLuxHasAPIKey

func PrintLuxHasAPIKey() bool

PrintLuxHasAPIKey uses LuxHasAPIKey to print an error if the user has no api key.

Types

type KeyStore

type KeyStore struct {
	Key string `json:"key"`
}

KeyStore manages the user's API key

func (*KeyStore) Extract

func (k *KeyStore) Extract()

Extract the key from the user's storage

func (*KeyStore) Store

func (k *KeyStore) Store()

Store the current key to the user's storage

Jump to

Keyboard shortcuts

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