Expand description
Port of internal/config/migration.go: structural upgrade of a config
file to the latest schema, in memory (PlanMigration) or committed to
disk (MigrationPlan::write).
Structs§
- Migration
Options - Migration
Plan - A computed, in-memory upgrade of a config file to the latest format,
produced by
plan_migrationwithout touching disk. - Migration
Result
Functions§
- plan_
migration - Reads the config at
pathand computes its upgrade to the latest format without writing anything. ReturnsConfigError::AlreadyMigratedif the file is already at the latest version.