upgrade

package
v0.50.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

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 Gate added in v0.40.0

type Gate func(context.Context, string) error

Gate verifies the complete synchronized project.

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

type ProjectPresent func(string) (bool, error)

type SchemaGate added in v0.40.0

type SchemaGate func(string) (string, int, error)

type Sync added in v0.40.0

Sync performs the terminal publication and returns all output facts proved before a possible failure. Publisher owns writing the final current lock.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL