Documentation
¶
Overview ¶
Package session provides CLI session orchestration. This wraps internal/session with interactive prompting and TTY/env/FD policy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureUnlocked ¶
EnsureUnlocked ensures the vault is unlocked, prompting if needed. Returns error if unlock is needed but fails.
func Lock ¶
Lock terminates the agent session. Delegates to vault.Manager.Lock() which uses injected SessionDeps.Lock.
func NewManager ¶
NewManager creates a vault.Manager via the session composition root. This is a convenience wrapper that adds no policy - just delegates.
func TryUnlockIfTTY ¶
TryUnlockIfTTY attempts to unlock if TTY available and unlock needed. Returns nil on success or if no TTY (caller continues without credentials). Returns error only on unlock failure with TTY present.
Types ¶
This section is empty.