Documentation
¶
Index ¶
Constants ¶
View Source
const ( // APIKeyEnv overrides the stored credential for CI, coding agents, and // temporary overrides. APIKeyEnv = "LINEAR_API_KEY" )
Variables ¶
View Source
var ErrAPIKeyNotFound = errors.New("api key not found")
Functions ¶
func DeleteAPIKey ¶
func DeleteAPIKey() error
func SaveAPIKey ¶
Types ¶
type CredentialSource ¶
type CredentialSource string
const ( CredentialSourceEnvironment CredentialSource = "environment" CredentialSourceKeyring CredentialSource = "keyring" CredentialSourceMissing CredentialSource = "missing" )
func ResolveAPIKey ¶
func ResolveAPIKey() (string, CredentialSource, error)
ResolveAPIKey returns the Linear API key. LINEAR_API_KEY wins; otherwise the key is read from the OS keyring where `linear auth login` stored it.
Click to show internal directories.
Click to hide internal directories.