migration

package
v0.9.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupFilesBody

type BackupFilesBody struct {
	// Data source. Currently, only OBS buckets are supported. The value is self_build_obs.
	FileSource string `json:"file_source,omitempty"`
	// OBS bucket name.
	BucketName string `json:"bucket_name" required:"true"`
	// List of backup files to be imported.
	Files []Files `json:"files" required:"true"`
}

type CreateMigrationTaskOpts

type CreateMigrationTaskOpts struct {
	// Name of the migration task.
	TaskName string `json:"task_name" required:"true"`
	// Description of the migration task.
	Description string `json:"description,omitempty"`
	// Mode of the migration.
	// Options:
	// backupfile_import: indicates importing backup files.
	// online_migration: indicates migrating data online.
	MigrationType string `json:"migration_type" required:"true"`
	// Type of the migration.
	// Options:
	// full_amount_migration: indicates a full migration.
	// incremental_migration: indicates an incremental migration.
	MigrationMethod string `json:"migration_method" required:"true"`
	// Backup files to be imported when the migration mode is importing backup files.
	BackupFiles BackupFilesBody `json:"backup_files,omitempty"`
	// Type of the network for communication between the source and
	// destination Redis when the migration mode is online data migration.
	// Options:
	// vpc
	// vpn
	NetworkType string `json:"network_type,omitempty"`
	// Source Redis information. This parameter is mandatory when the migration mode is online data migration.
	SourceInstance SourceInstanceBody `json:"source_instance,omitempty"`
	// Destination Redis instance information.
	TargetInstance TargetInstanceBody `json:"target_instance" required:"true"`
}

type CreateMigrationTaskResponse

type CreateMigrationTaskResponse struct {
	// ID of the migration task.
	Id string `json:"id"`
	// Name of the migration task.
	Name string `json:"name"`
	// Migration task status. The value can be:
	// SUCCESS: Migration succeeded.
	// FAILED: Migration failed.
	// MIGRATING: Migration is in progress.
	// TERMINATED: Migration has been stopped.
	// TERMINATING: Migration is being stopped.
	// RUNNING: The migration task has been created and is waiting to be executed.
	// CREATING: The migration task is being created.
	// FULLMIGRATING: Full migration is in progress.
	// INCRMIGEATING: Incremental migration is in progress.
	// ERROR: faulty
	// DELETED: faulty
	// RELEASED: automatically released
	// MIGRATION_SUCCESS: The migration is successful, and resources are to be cleared.
	// MIGRATION_FAILED: The migration failed, and resources are to be cleared.
	Status string `json:"status"`
}

type Files

type Files struct {
	// Name of a backup file.
	FileName string `json:"file_name" required:"true"`
	// File size in bytes.
	Size string `json:"size,omitempty"`
	// Time when the file is last modified. The format is YYYY-MM-DD HH:MM:SS.
	UpdateAt string `json:"update_at,omitempty"`
}

type SourceInstanceBody

type SourceInstanceBody struct {
	// Source Redis name (specified in the source_instance parameter).
	Addrs string `json:"addrs" required:"true"`
	// Redis password. If a password is set, this parameter is mandatory.
	Password string `json:"password,omitempty"`
}

type TargetInstanceBody

type TargetInstanceBody struct {
	// Destination Redis instance ID (mandatory in the target_instance parameter).
	Id string `json:"id" required:"true"`
	// Destination Redis instance name (specified in the target_instance parameter).
	Name string `json:"name,omitempty"`
	// Redis password. If a password is set, this parameter is mandatory.
	Password string `json:"password,omitempty"`
}

Jump to

Keyboard shortcuts

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