migration

package
v0.0.0-...-18c6e13 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultChkPDirPrefix = "/var/lib/docker/containers/"
	UploadFileKey        = "files"
)

Functions

func Migrate

func Migrate(mOpts types.MigrateOpts) error

Migrate migrate a whole service or a container

func MigrateOneWithLogging

func MigrateOneWithLogging(options types.MigrateOpts) error

func PushCheckpoint

func PushCheckpoint(migOpts PushOpts) error

PushCheckpoint push checkpoint to destination and deliver restore request

func TryMigrate

func TryMigrate(mOpts types.MigrateOpts) error

TryMigrate migrate a container

Types

type PushOpts

type PushOpts struct {
	CheckPointID  string
	CheckPointDir string
	Dest          types.Address
	CID           string
	SID           string
	Port          string
}

PushOpts push checkpoint to dst node

Jump to

Keyboard shortcuts

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