migrate

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

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

Task executes one migrate run: it uploads one backup directory to the cloud staging volume and triggers the cloud-side migrate job. It is not the job: admission, registration, and the lifecycle states live one layer up in app.MigrateJob, which drives Execute and records how it settles. The tracker writes here are progress facts only.

func NewTask

func NewTask(args TaskArgs) *Task

func (*Task) Execute

func (t *Task) Execute(ctx context.Context) error

type TaskArgs added in v0.6.1

type TaskArgs struct {
	TaskID        string
	ClusterID     string
	CloudCli      cloud.Client
	BackupStorage storage.Client
	BackupDir     string
	Tracker       *jobstate.MigrateTracker
	Concurrency   int
}

TaskArgs carries the dependencies one migrate run needs. The caller (app.MigrateJob) has already proved the backup meta is readable and registered the job, so the tracker arrives minted.

Jump to

Keyboard shortcuts

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