Skip to main content

export_hosts_to_json

Function export_hosts_to_json 

Source
pub fn export_hosts_to_json(
    hosts: &BTreeMap<String, VpsRecord>,
    include_secrets: bool,
) -> BTreeMap<String, ExportHostJson>
Expand description

GAP-SSH-UX-001: hosts for vps export --json.

  • Redacted (include_secrets=false): empty secrets / null optional, never ciphertext sshcli-enc: (EXP-001 parity). Empty password → "" skeleton.
  • With secrets: plaintext only if --include-secrets (same risk as TOML).