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§
- Activation
Intent - 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.)
- Dispatch
Response - Body of
GET /v1/agent/dispatch?wait=60when CP has a queued dispatch for this agent. Empty body / 204 means no work pending. - Heartbeat
Request - Body of
POST /v1/agent/heartbeat. - Heartbeat
Response - Probe
Reset Command - Reset signal sent by the applier to the probe worker. Cleared on
Effect::LocalResetProbeCache. Per-rollout scope.