Help us shape the future of Go! Take the 2026 Go Developer Survey

migrate

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionCopy          = internal.ActionCopy
	ActionSkip          = internal.ActionSkip
	ActionBackup        = internal.ActionBackup
	ActionConvertConfig = internal.ActionConvertConfig
	ActionCreateDir     = internal.ActionCreateDir
	ActionMergeConfig   = internal.ActionMergeConfig
)

Variables

This section is empty.

Functions

func Confirm

func Confirm() bool

func PrintPlan

func PrintPlan(actions []Action, warnings []string)

Types

type Action

type Action = internal.Action

type ActionType

type ActionType = internal.ActionType

type HandlerFactory added in v0.2.0

type HandlerFactory = internal.HandlerFactory

type MigrateInstance added in v0.2.0

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

func NewMigrateInstance added in v0.2.0

func NewMigrateInstance(opts Options) *MigrateInstance

func (*MigrateInstance) Execute added in v0.2.0

func (m *MigrateInstance) Execute(actions []Action, sourceHome, targetHome string) *Result

func (*MigrateInstance) Plan added in v0.2.0

func (m *MigrateInstance) Plan(opts Options, sourceHome, targetHome string) ([]Action, []string, error)

func (*MigrateInstance) PrintSummary added in v0.2.0

func (m *MigrateInstance) PrintSummary(result *Result)

func (*MigrateInstance) Register added in v0.2.0

func (m *MigrateInstance) Register(moduleName string, module Operation)

func (*MigrateInstance) Run added in v0.2.0

func (m *MigrateInstance) Run(opts Options) (*Result, error)

type Operation added in v0.2.0

type Operation = internal.Operation

type Options

type Options = internal.Options

type Result

type Result = internal.Result

Directories

Path Synopsis
sources

Jump to

Keyboard shortcuts

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