Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CurrentSchemaChange ¶ added in v0.40.0
type CurrentSchemaChange func() string
type LiveSchemaRange ¶ added in v0.40.0
type LiveSchemaRange func() (floor, current int)
type Migration ¶ added in v0.40.0
type Migration func(context.Context, string) (MigrationResult, error)
Migration plans, preflights, and applies the live migration bridge.
type MigrationResult ¶ added in v0.40.0
type MigrationResult struct {
Planned []string
Applied []string
Changes []string
Touched []string
Pending []string
}
MigrationResult contains semantic migration evidence and simple visible path lists. Upgrade intentionally knows no file-image or operation representation.
type OperationOutcome ¶ added in v0.40.0
type OperationOutcome struct {
Document presentation.Document
}
func Run ¶ added in v0.40.0
func Run(ctx context.Context, root string, sync Sync, gate Gate, present ProjectPresent, liveSchemaRange LiveSchemaRange, schemaGate SchemaGate, migrate Migration, currentSchemaChange CurrentSchemaChange) (OperationOutcome, error)
Run sequences authority validation, the live migration, terminal sync, and the ordinary post-sync gate. The migration never writes the schema lock.
type ProjectPresent ¶ added in v0.40.0
Click to show internal directories.
Click to hide internal directories.