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"` }
func CreateMigrationTask ¶
func CreateMigrationTask(client *golangsdk.ServiceClient, opts CreateMigrationTaskOpts) (*CreateMigrationTaskResponse, error)
type SourceInstanceBody ¶
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"` }
Click to show internal directories.
Click to hide internal directories.