Expand description
Context inheritance and resolution logic.
This module provides functionality for resolving context inheritance chains, merging configurations from parent contexts into child contexts according to defined merge rules.
§Inheritance Rules
- Scalar values (strings, numbers, booleans): Child completely overrides parent
- Arrays: Child replaces parent array entirely (use
+prefix in config to append) - Maps (HashMaps): Deep merge with child taking precedence
- Secrets: Child can add new secrets or override provider for existing ones
- Mounts: Merged by mount ID, child overrides parent mounts with same ID
Structs§
- Context
Resolver - Resolves context inheritance chains.
Functions§
- merge_
environments - Merge environment configurations.
- merge_
mounts - Merge mounts from parent and child.
- merge_
resources - Merge resource configurations.
- merge_
secrets - Merge secrets configurations.
- resolve_
context - Resolve a single context with its inheritance chain.