Expand description
§fraisier-adapter-support
Shared building blocks for fraisier’s in-process adapters:
run_command— spawn a subprocess, capture its output, and turn a spawn failure into a taggedAdapterError(the caller interprets the exit code). Used by the shell-out adapters (command,systemd).retry_on_err— retry an async fallible operation with a fixed delay. Used by the network adapters (httphealth,releaseartifact download).Transport— run a shell-out command locally or on a remote host overssh. The single-host adapters dispatch through it so a multi-host rollout can run the same commands on each host (see thetransportmodule).
These deliberately do not encode any axis-specific policy: error-kind selection and result interpretation stay in each adapter.
Re-exports§
pub use transport::SshTransport;pub use transport::Transport;
Modules§
- staging
- Shared artifact staging mechanics.
- transport
- Where an adapter’s shell-out command runs: locally, or on a remote host over
ssh.
Structs§
- Captured
- The captured result of a finished subprocess.
Functions§
- error
- Build an
AdapterErrorofkind, tagged withadapterandoperation. - retry_
on_ err - Retry an async fallible operation up to
attemptstimes (minimum one), sleepingdelaybetween tries, returning the firstOkor the lastErr. - run_
command - Spawn
programwithargs,envs, and optional working directory, then capture its output.