Documentation
¶
Index ¶
Constants ¶
View Source
const ( SecureStoreConfigKey = "securestore" // OCM_CONFIG key to enable secure OS store KindInternetPassword = "Internet password" // MacOS Keychain item kind ItemKey = "RedHatSSO" CollectionName = "login" // Common OS default collection name DefaultFilePath = "~/.config/ocm" // File path when using File backend MaxWindowsByteSize = 2500 // Windows Credential Manager has a 2500 byte limit )
Variables ¶
This section is empty.
Functions ¶
func AvailableBackends ¶
func AvailableBackends() []string
AvailableBackends provides a slice of all available backend keys on the current OS.
The first backend in the slice is the first one that will be used.
func GetConfigFromKeyring ¶
GetConfigFromKeyring will retrieve the credentials from the first priority OS secure store.
func UpsertConfigToKeyring ¶
UpsertConfigToKeyring will upsert the provided credentials to first priority OS secure store.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.