Module inheritance

Module inheritance 

Source
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§

ContextResolver
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.