-
Notifications
You must be signed in to change notification settings - Fork 0
Branch main Interface IConfigAdapter
github-actions[bot] edited this page Mar 22, 2026
·
106 revisions
Bridges file-specific I/O concerns with the core healing engine. Each config format (JSON, future YAML, etc.) has its own adapter implementation.
Read and parse a config file, returning the observed state.
Parameters:
-
filePath(string) — path to the configuration file
Returns: ObservedState with parsed data, source file path, and timestamp
Flatten and encode observed and desired states into canonical dot-path form for drift comparison.
Parameters:
-
observed(ObservedState) — the observed state -
desired(DesiredState) — the desired state
Returns: EncodedState with flattened maps for both states
Apply a repair plan to the config file by executing each RepairAction.
Parameters:
-
filePath(string) — path to the configuration file -
plan(RepairPlan) — the repair plan to apply
Returns: true if repair was applied successfully