pub struct ExecOptions {Show 13 fields
pub password: Option<SecretString>,
pub sudo_password: Option<SecretString>,
pub su_password: Option<SecretString>,
pub timeout: Option<TimeoutMs>,
pub key: Option<String>,
pub key_passphrase: Option<SecretString>,
pub use_agent: bool,
pub agent_socket: Option<String>,
pub description: Option<String>,
pub replace_host_key: bool,
pub disable_sudo: bool,
pub steps: Vec<RemoteCommand>,
pub target_source: TargetSource,
}Expand description
Common remote execution options.
G-SECDEV-02: password fields are SecretString so zeroize-on-drop applies
through multi-host clone/fan-out (secrecy 0.10 SecretString: Clone).
G-TYPE-18/19: timeout is crate::domain::TimeoutMs; steps are
crate::domain::RemoteCommand.
Fields§
§password: Option<SecretString>Override password.
sudo_password: Option<SecretString>Override sudo.
su_password: Option<SecretString>Override su.
timeout: Option<TimeoutMs>Override timeout (refined at CLI boundary).
key: Option<String>Override key path.
key_passphrase: Option<SecretString>Override key passphrase.
use_agent: boolUse ssh-agent (G-SSH-04).
agent_socket: Option<String>Agent socket path (CLI/XDG).
description: Option<String>Optional shell description comment.
replace_host_key: boolreplace host key.
disable_sudo: booldisable sudo global.
steps: Vec<RemoteCommand>Extra commands on the same SSH session after the primary (G-O3 / G-TYPE-19).
target_source: TargetSourceHow the target host was designated, echoed into the execution envelope.
GAP-SSH-EXEC-ENVELOPE-002: the host is decided while parsing argv and the execution output only knows what happened, not where. Carrying the provenance alongside the credentials is what lets the single-host envelope name its own target without a second SSH round-trip.
Trait Implementations§
Source§impl Clone for ExecOptions
impl Clone for ExecOptions
Source§fn clone(&self) -> ExecOptions
fn clone(&self) -> ExecOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more