state

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL