Documentation
¶
Overview ¶
package state provides a secure, in-memory cache for transient application state, such as passwords or passphrases, that need to be shared between different parts of the application (e.g., CLI flags and TUI components).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PasswordCache = &passwordMailbox{}
PasswordCache is a simple, concurrency-safe, in-memory "mailbox" for temporarily storing a password or passphrase. It uses a byte slice instead of a string so that the sensitive data can be explicitly zeroed out after use.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.