Documentation
¶
Index ¶
- Constants
- Variables
- func Delete(service string) error
- func Get(service string) (string, error)
- func ServiceAnthropic(baseURL string) string
- func ServiceAnthropicOAuth(baseURL string) string
- func ServiceCircleCI(baseURL string) string
- func ServiceGitHub(baseURL string) string
- func Set(service, secret string) error
Constants ¶
View Source
const (
// SourceKeychain is the source label used when a value comes from the system keychain.
SourceKeychain = "System keychain"
)
Variables ¶
View Source
var ErrNotFound = errors.New("credential not found in keychain")
ErrNotFound is returned by Get when no credential is stored or the keyring is unavailable.
Functions ¶
func ServiceAnthropic ¶
ServiceAnthropic returns the keychain service key for the given Anthropic base URL.
func ServiceAnthropicOAuth ¶ added in v0.7.194
ServiceAnthropicOAuth returns the keychain service key for the long-lived Claude subscription token used for the given Anthropic base URL.
func ServiceCircleCI ¶
ServiceCircleCI returns the keychain service key for the given CircleCI base URL.
func ServiceGitHub ¶
ServiceGitHub returns the keychain service key for the given GitHub API URL.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.