Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseManagedOverrides ¶
ParseManagedOverrides parses a JSON object of managed overrides into normalized strings.
Types ¶
type KeyState ¶
type KeyState struct {
Value string `json:"value"`
Source Source `json:"source"`
RollbackTarget Source `json:"rollback_target,omitempty"`
}
KeyState reports the effective value and source for a managed key.
type LayerInputs ¶
type LayerInputs struct {
EffectiveValues map[string]string
Defaults map[string]string
RepoSet map[string]bool
EnvSet map[string]bool
ManagedSet map[string]bool
ManagedEnabled bool
Authority string
}
LayerInputs contains the layer state needed to compute a managed config report.
type Mode ¶
type Mode string
Mode identifies whether the runtime is self-managed or externally managed.
type ProcessDefaults ¶
ProcessDefaults holds fallback process values when report keys are absent.
type ProcessTopology ¶
type ProcessTopology struct {
Web ProcessTopologyEntry `json:"web"`
Worker ProcessTopologyEntry `json:"worker"`
Scheduler ProcessTopologyEntry `json:"scheduler"`
CoLocated ProcessTopologyEntry `json:"co_located"`
}
ProcessTopology reports process topology with managed-source provenance.
func BuildProcessTopology ¶
func BuildProcessTopology(report Report, defaults ProcessDefaults) ProcessTopology
BuildProcessTopology maps process keys from a managed report into typed topology entries.
type ProcessTopologyEntry ¶
ProcessTopologyEntry reports one process flag with its source layer.
type Report ¶
type Report struct {
Mode Mode `json:"mode"`
Authority string `json:"authority,omitempty"`
Keys map[string]KeyState `json:"keys"`
}
Report captures source-of-truth metadata for allowlisted managed keys.
func BuildReport ¶
func BuildReport(input LayerInputs) Report
BuildReport computes per-key source precedence using the standard layer order.