upgradepath

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RegisteredHandlers = make([]*RegisteredHandler, 0)
View Source
var VersionDatas versionList

Functions

func AddHandler

func AddHandler(from, to int, fn handler)

func DefaultRollBackHandler

func DefaultRollBackHandler() error

func DefaultUpgradeHandler

func DefaultUpgradeHandler() error

func RegisterHandler

func RegisterHandler(fromVersion, toVersion string, fn handler)

func UpgradeWithBestPath

func UpgradeWithBestPath(from, to string) error

Types

type RegisteredHandler

type RegisteredHandler struct {
	FromVersion string
	ToVersion   string
	Fn          handler
}

Jump to

Keyboard shortcuts

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