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.
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.
Click to show internal directories.
Click to hide internal directories.