Skip to main content

Module transport

Module transport 

Source
Expand description

Transport abstraction: decouple tools from direct filesystem/shell access.

The ToolTransport trait lets tools delegate I/O to a pluggable backend. The default LocalTransport calls tokio::fs / tokio::process directly. A mock transport can be injected in tests to avoid touching the real disk.

§SSH Transport

SshTransport executes commands and file operations on a remote host via the system ssh binary. No Rust SSH library needed — delegates to the installed OpenSSH client.

Host format: user@host or user@host:port.

Structs§

DirEntry
Result of listing a directory entry.
ExecResult
Result of running a shell command.
LocalTransport
The default transport that performs real I/O via tokio::fs and tokio::process.
ReadResult
Result of reading a file.
SshTransport
SSH transport: executes commands and file operations on a remote host via the system ssh binary.

Traits§

ToolTransport
Abstract transport for filesystem and shell operations.