auth

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

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 DeleteAPIKey(service, account string) error

func ExtractKeyID

func ExtractKeyID(apiKey string) string

func GetAPIKey

func GetAPIKey(service, account string) (string, error)

func GetMasterPasswordMode

func GetMasterPasswordMode() *bool

func IsKeyringAvailable

func IsKeyringAvailable() bool

func SetUseMasterPassword

func SetUseMasterPassword(enabled *bool)

func StoreAPIKey

func StoreAPIKey(service, account, apiKey string) error

Types

type ValidationResponse

type ValidationResponse struct {
	Valid   bool
	Error   string
	Message string
}

func ValidateAPIKey

func ValidateAPIKey(apiKey, baseURL string) (*ValidationResponse, error)

Jump to

Keyboard shortcuts

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