Documentation
¶
Overview ¶
Package credentials provides secure storage for API keys using the OS keyring.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoAPIKey = errors.New("no API key configured") )
Functions ¶
func DeleteAPIKey ¶
func DeleteAPIKey() error
func GetAPIKey ¶
GetAPIKey retrieves the Weather API key using the following priority: 1. Environment variable (WEATHER_API_KEY) 2. OS Keyring
func HasStoredAPIKey ¶
func HasStoredAPIKey() bool
func IsKeyringAvailable ¶
func IsKeyringAvailable() bool
func PromptForAPIKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.