Documentation ¶
Overview ¶
Package passwordcache provides a utility to save secrets into the linux keyring
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheSecret ¶
CacheSecret - Saves a secret to the User Session Keyring. It will cache the secret for a given number of seconds.
To invalidate a secret, save it with a 1 second timeout.
func GetAndCacheSecret ¶
GetAndCacheSecret - Gets a secret from the User Session Keyring. If the key doesn't exist, it asks the user to enter the password value. It also saves the secret to the User Session Keyring. It will cache the secret for a given number of seconds.
To invalidate a secret, save it with a 1 second timeout. Every read will refresh the cache timeout.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.