Documentation
¶
Overview ¶
Package configedit applies edits to a stored configuration: it replaces whole sections of a base payload with typed values and runs the result through the same chain as `store import` (strict decoding, defaults, validation, the store secret rule and the deterministic encoding). Callers such as the admin API map their DTOs to an Edit; the merge and the field-preservation rules live here.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Edit ¶
type Edit struct {
Entities []config.EntityConfig
Roles []Role
Users []User
// Settings replaces top-level sections other than datasources,
// entities, roles and users, as decoded JSON/YAML values.
Settings map[string]any
}
Edit replaces sections of a configuration. A nil section keeps the base.
Click to show internal directories.
Click to hide internal directories.