Re-exports§
pub use crate::addon::InstalledAddonRecord;
Structs§
- Addon
Modify - In-memory draft for modifying an instance’s addon order and patch modes with zero-I/O
PatchTracepreviewing before committing changes to disk. - Addon
State - Persisted addon state stored under
.elemental/addons.json.
Functions§
- load_
addon_ state - Loads
.elemental/addons.jsonfor an instance, returning default state when absent. - normalize_
managed_ file_ path - Normalizes a managed file path relative to
instance_root, rejecting path escapes. - remove_
addon_ from_ instance - Removes an installed addon record, deletes its managed files, and resyncs metadata patches.
- reorder_
instance_ addons - Reorders installed addons on
instanceand resyncs metadata patches. - save_
addon_ state - Persists
.elemental/addons.json, removing the file if state is completely empty default. - set_
addon_ patch_ mode - Updates an individual addon’s
AddonPatchModepreference and resyncs metadata. - set_
instance_ patch_ mode - Switches an instance’s
PatchModepolicy (Virtual<->Physical) and resyncs metadata. - sync_
instance_ patches - Applies all
AddonStatemetadata patches according to scoped instance & addon policies. - trace_
instance_ patches - Replays all active metadata patches against the clean baseline without modifying disk.