Module host_rollout_records

Module host_rollout_records 

Source
Expand description

Persistence for nixfleet_state_machine::HostRolloutState.

Phase 4 (additive): provides the SQL row <-> in-memory struct mapping and basic CRUD. Phase 6 wires this into the CP runtime’s reducer-loop applier; until then the old host_dispatch_state + host_rollout_state tables continue to serve the old reconciler.

The probe map is serialised as a JSON column to avoid a side table; at ~5–20 probes per host the row stays well under any practical SQLite row-size limit, and the probe map is opaque to SQL queries by design.

StructsΒ§

HostRolloutRecords

FunctionsΒ§

load_inner πŸ”’
parse_rfc3339_optional πŸ”’
parse_rfc3339_required πŸ”’
policy_from_db πŸ”’
policy_to_db πŸ”’
row_to_state πŸ”’
state_from_db πŸ”’
state_to_db πŸ”’
upsert_inner πŸ”’