Documentation
¶
Overview ¶
Package configedit applies edits to a stored configuration: it replaces whole sections of a base configuration with typed values and runs the result through the same chain as `store import` (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.EntitySpec
Roles []Role
Users []User
// Settings replaces top-level sections other than datasources,
// entities, roles and users, as decoded JSON/YAML values; a nil value
// removes the section (its defaults apply).
Settings map[string]any
}
Edit replaces sections of a configuration with what they say (Specs: an unset value stays unset, and takes its default when the configuration loads). A nil section keeps the base.
type Role ¶
type Role struct {
Name string
config.RoleDefinitionSpec
}
Role is a named role definition.
Click to show internal directories.
Click to hide internal directories.