Versions in this module Expand all Collapse all v0 v0.0.1 Nov 29, 2026 Changes in this version + const CommunityAPIKey + const CommunityOrgID + const CredentialsDirEnv + const KeychainSetupURL + const PackageFirewallHost + func AllSourceStatus() []string + func CredentialSource() string + func GetAuthHeader(creds *Credentials) string + func IsCommunity(creds *Credentials) bool + func KeyringAvailable() error + func NetrcPath() (string, error) + func PackageFirewallMachine() string + func RemoveCredentials() error + func SaveCredentials(creds *Credentials, store CredentialStore) error + func SaveCredentialsInDir(creds *Credentials, store CredentialStore, baseDir string) error + func StripOrgPrefix(org, value string) string + type AuthMethod string + const DirectAPIKey + const SigV4 + const Token + func ValidateMethod(method string) (AuthMethod, error) + type CredentialStore string + const StoreHome + const StoreKeyring + const StoreProject + func ValidateStore(store string) (CredentialStore, error) + type Credentials struct + APIKey string + APIKeyInKeyring bool + HMACInKeyring bool + Method AuthMethod + OrgID string + Secret string + Token string + TokenInKeyring bool + func CommunityCredentials() *Credentials + func CredentialStatus() (string, *Credentials) + func LoadCredentials() (*Credentials, error) + func LoadNetrcCredentials() (*Credentials, error) + type NetrcInfo struct + APIKey string + Err error + Found bool + MachineFound bool + OrgID string + Path string + Secure bool + func NetrcStatus() NetrcInfo + type SourceStatus struct + Active bool + Detail string + Label string + State string + func AllSourceStatusDetailed() []SourceStatus