Documentation
¶
Overview ¶
Package keyring provides secure credential storage using the OS keychain. It falls back to file-based storage when the keychain is unavailable (e.g., in CI environments).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockForTesting ¶
func MockForTesting()
MockForTesting replaces the keyring backend with an in-memory store and resets the availability cache so subsequent New() calls reflect the mock.
Types ¶
type Keyring ¶
type Keyring struct {
// contains filtered or unexported fields
}
Keyring provides secure credential storage with fallback support
func New ¶
func New() *Keyring
New creates a new Keyring instance. It automatically detects if the system keyring is available.
func (*Keyring) IsAvailable ¶
IsAvailable returns true if the system keyring is available
Click to show internal directories.
Click to hide internal directories.