migration

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandRecreateContainers added in v0.12.0

type CommandRecreateContainers struct{}

CommandRecreateContainers allows a migration to recreate all containers.

type CommandsDispatcher added in v0.12.0

type CommandsDispatcher interface {
	DispatchCommands() []interface{}
}

The CommandsDispatcher allows a migration to dispatch commands to Vertex. e.g. Send CommandRecreateContainers if a migration needs to recreate all containers.

type LiveVersion

type LiveVersion struct {
	Version int
}

type Migration

type Migration interface {
	Up(livePath string) error
}

type MigrationTool

type MigrationTool struct {
	// contains filtered or unexported fields
}

func NewMigrationTool

func NewMigrationTool(livePath string) *MigrationTool

func (*MigrationTool) Migrate

func (t *MigrationTool) Migrate() ([]interface{}, error)

Jump to

Keyboard shortcuts

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