Skip to main content

Module reload

Module reload 

Source
Expand description

Hot reload types and diffing for bundle changes.

When a bundle is updated via the admin API, the reload module computes what changed (added/removed/changed packs, providers, tenants) and produces a ReloadPlan that the consuming runtime can apply.

The actual runtime reload (swapping Arc<RunnerHost>, draining connections) lives in the consuming crate (e.g. greentic-operator).

Structs§

BundleDiff
A computed diff between two bundle states.
ReloadPlan
A plan for applying a bundle diff at runtime.

Enums§

ReloadAction
Individual reload action.

Functions§

diff_discoveries
Compute the diff between two discovery results (previous and current state).
plan_reload
Build a reload plan from a bundle diff.