Expand description
VPS record CRUD and persistence (XDG + atomic TOML + flock).
No .env at runtime. Schema v3 English wire (dual-read PT legacy).
Modules§
- model
- Data model for
VpsRecord(schema v3).
Structs§
- Config
File - Full configuration file.
- Config
Layer - Winning configuration layer (doctor).
- Exec
Options - Common remote execution options.
Functions§
- build_
connection_ config - Builds
ConnectionConfigfrom aVpsRecord. - default_
config_ path - Returns the config file path honoring
SSH_CLI_HOME. - find_
by_ name - Busca um registro de VPS por name.
- load
- Loads the configuration file (returns empty if missing).
- read_
active_ vps - Reads the active VPS name.
- read_
secret_ stdin - Reads a password line from stdin (no extra echo).
- resolve_
config_ path - Resolves the config file path from an optional override.
- run_
connect - Sets the active VPS by writing its name to
<config_dir>/active(sibling file). - run_
exec - Runs a shell command on a VPS over SSH.
- run_
exec_ with_ client - Testable version of run_exec.
- run_
health_ check - Health-check SSH. One-shot health-check with auth parity (GAP-SSH-CLI-006) and TOFU (M1).
- run_
secrets_ command - Dispatcher one-shot de
secrets status|init|reencrypt. - run_
su_ exec - Runs a command via
su -one-shot (consumessu_password). - run_
sudo_ exec - Runs a command with
sudo(packed viash -c). - run_
sudo_ exec_ with_ client - Testable version of sudo-exec.
- run_
vps_ command - Dispatcher dos subcomandos
vps. - save
- Saves the configuration file atomically with flock and 0o600.
- use_
json - JSON efetivo a partir de flag local e format global (IO-001/002).
- winning_
layer - Resolves and describes the winning config layer.
- write_
atomic - Writes bytes to
pathatomically (tempfile + fsync + rename + 0o600).