Documentation ¶
Overview ¶
Package keychain implements a native secure password store for each platform.
Index ¶
Constants ¶
View Source
const Version = "k11"
Version is the keychain data version.
View Source
const WindowsCredentials = "windows-credentials"
Variables ¶
View Source
var ( // ErrNoKeychain indicates that no suitable keychain implementation could be loaded. ErrNoKeychain = errors.New("no keychain") //nolint:gochecknoglobals // ErrMacKeychainRebuild is returned on macOS with blocked or corrupted keychain. ErrMacKeychainRebuild = errors.New("keychain error -25293") // Helpers holds all discovered keychain helpers. It is populated in init(). Helpers map[string]helperConstructor //nolint:gochecknoglobals )
Functions ¶
This section is empty.
Types ¶
type Keychain ¶
type Keychain struct {
// contains filtered or unexported fields
}
func NewKeychain ¶
NewKeychain creates a new native keychain.
func NewMissingKeychain ¶
func NewMissingKeychain() *Keychain
NewMissingKeychain returns a new keychain that always returns an error.
Click to show internal directories.
Click to hide internal directories.