Module wire

Module wire 

Source
Expand description

Wire types for the agent’s HTTP traffic against CP.

These mirror the request / response shapes defined in nixfleet_control_plane::server::routes::{dispatch,heartbeat,events}. Hand-mirrored here because they live inside the CP crate (not in nixfleet-proto); a future cleanup could move them into nixfleet-proto::agent_wire so the two sides share one type.

Structs§

ActivationIntent
Intent signal sent by the applier to the activation worker. Triggers real systemd-run dispatch. (Stub in 7c — activation worker just emits the corresponding Started/Completed/Failed events directly through the input MPSC.)
DispatchResponse
Body of GET /v1/agent/dispatch?wait=60 when CP has a queued dispatch for this agent. Empty body / 204 means no work pending.
HeartbeatRequest
Body of POST /v1/agent/heartbeat.
HeartbeatResponse
ProbeResetCommand
Reset signal sent by the applier to the probe worker. Cleared on Effect::LocalResetProbeCache. Per-rollout scope.