Skip to main content

Crate fraisier_adapter_support

Crate fraisier_adapter_support 

Source
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 tagged AdapterError (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 (http health, release artifact download).
  • Transport — run a shell-out command locally or on a remote host over ssh. The single-host adapters dispatch through it so a multi-host rollout can run the same commands on each host (see the transport module).

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 AdapterError of kind, tagged with adapter and operation.
retry_on_err
Retry an async fallible operation up to attempts times (minimum one), sleeping delay between tries, returning the first Ok or the last Err.
run_command
Spawn program with args, envs, and optional working directory, then capture its output.