Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) DeregisterMigrationTask(request *DeregisterMigrationTaskRequest) (response *DeregisterMigrationTaskResponse, err error)
- func (c *Client) DescribeMigrationTask(request *DescribeMigrationTaskRequest) (response *DescribeMigrationTaskResponse, err error)
- func (c *Client) ListMigrationProject(request *ListMigrationProjectRequest) (response *ListMigrationProjectResponse, err error)
- func (c *Client) ListMigrationTask(request *ListMigrationTaskRequest) (response *ListMigrationTaskResponse, err error)
- func (c *Client) ModifyMigrationTaskBelongToProject(request *ModifyMigrationTaskBelongToProjectRequest) (response *ModifyMigrationTaskBelongToProjectResponse, err error)
- func (c *Client) ModifyMigrationTaskStatus(request *ModifyMigrationTaskStatusRequest) (response *ModifyMigrationTaskStatusResponse, err error)
- func (c *Client) RegisterMigrationTask(request *RegisterMigrationTaskRequest) (response *RegisterMigrationTaskResponse, err error)
- type DeregisterMigrationTaskRequest
- type DeregisterMigrationTaskResponse
- type DescribeMigrationTaskRequest
- type DescribeMigrationTaskResponse
- type DstInfo
- type ListMigrationProjectRequest
- type ListMigrationProjectResponse
- type ListMigrationTaskRequest
- type ListMigrationTaskResponse
- type ModifyMigrationTaskBelongToProjectRequest
- type ModifyMigrationTaskBelongToProjectResponse
- type ModifyMigrationTaskStatusRequest
- type ModifyMigrationTaskStatusResponse
- type Project
- type RegisterMigrationTaskRequest
- type RegisterMigrationTaskResponse
- type SrcInfo
- type Task
- type TaskStatus
- type TimeObj
Constants ¶
View Source
const APIVersion = "2018-03-19"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) DeregisterMigrationTask ¶
func (c *Client) DeregisterMigrationTask(request *DeregisterMigrationTaskRequest) (response *DeregisterMigrationTaskResponse, err error)
取消注册迁移任务
func (*Client) DescribeMigrationTask ¶
func (c *Client) DescribeMigrationTask(request *DescribeMigrationTaskRequest) (response *DescribeMigrationTaskResponse, err error)
获取指定迁移任务详情
func (*Client) ListMigrationProject ¶
func (c *Client) ListMigrationProject(request *ListMigrationProjectRequest) (response *ListMigrationProjectResponse, err error)
获取迁移项目名称列表
func (*Client) ListMigrationTask ¶
func (c *Client) ListMigrationTask(request *ListMigrationTaskRequest) (response *ListMigrationTaskResponse, err error)
获取迁移任务列表
func (*Client) ModifyMigrationTaskBelongToProject ¶
func (c *Client) ModifyMigrationTaskBelongToProject(request *ModifyMigrationTaskBelongToProjectRequest) (response *ModifyMigrationTaskBelongToProjectResponse, err error)
更改迁移任务所属项目
func (*Client) ModifyMigrationTaskStatus ¶
func (c *Client) ModifyMigrationTaskStatus(request *ModifyMigrationTaskStatusRequest) (response *ModifyMigrationTaskStatusResponse, err error)
更新迁移任务状态
func (*Client) RegisterMigrationTask ¶
func (c *Client) RegisterMigrationTask(request *RegisterMigrationTaskRequest) (response *RegisterMigrationTaskResponse, err error)
注册迁移任务
type DeregisterMigrationTaskRequest ¶
type DeregisterMigrationTaskRequest struct { *tchttp.BaseRequest // 任务ID TaskId *string `json:"TaskId,omitempty" name:"TaskId"` }
func NewDeregisterMigrationTaskRequest ¶
func NewDeregisterMigrationTaskRequest() (request *DeregisterMigrationTaskRequest)
func (*DeregisterMigrationTaskRequest) FromJsonString ¶
func (r *DeregisterMigrationTaskRequest) FromJsonString(s string) error
func (*DeregisterMigrationTaskRequest) ToJsonString ¶
func (r *DeregisterMigrationTaskRequest) ToJsonString() string
type DeregisterMigrationTaskResponse ¶
type DeregisterMigrationTaskResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeregisterMigrationTaskResponse ¶
func NewDeregisterMigrationTaskResponse() (response *DeregisterMigrationTaskResponse)
func (*DeregisterMigrationTaskResponse) FromJsonString ¶
func (r *DeregisterMigrationTaskResponse) FromJsonString(s string) error
func (*DeregisterMigrationTaskResponse) ToJsonString ¶
func (r *DeregisterMigrationTaskResponse) ToJsonString() string
type DescribeMigrationTaskRequest ¶
type DescribeMigrationTaskRequest struct { *tchttp.BaseRequest // 任务ID,例如msp-jitoh33n TaskId *string `json:"TaskId,omitempty" name:"TaskId"` }
func NewDescribeMigrationTaskRequest ¶
func NewDescribeMigrationTaskRequest() (request *DescribeMigrationTaskRequest)
func (*DescribeMigrationTaskRequest) FromJsonString ¶
func (r *DescribeMigrationTaskRequest) FromJsonString(s string) error
func (*DescribeMigrationTaskRequest) ToJsonString ¶
func (r *DescribeMigrationTaskRequest) ToJsonString() string
type DescribeMigrationTaskResponse ¶
type DescribeMigrationTaskResponse struct { *tchttp.BaseResponse Response *struct { // 迁移详情列表 TaskStatus []*TaskStatus `json:"TaskStatus,omitempty" name:"TaskStatus" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeMigrationTaskResponse ¶
func NewDescribeMigrationTaskResponse() (response *DescribeMigrationTaskResponse)
func (*DescribeMigrationTaskResponse) FromJsonString ¶
func (r *DescribeMigrationTaskResponse) FromJsonString(s string) error
func (*DescribeMigrationTaskResponse) ToJsonString ¶
func (r *DescribeMigrationTaskResponse) ToJsonString() string
type ListMigrationProjectRequest ¶
type ListMigrationProjectRequest struct { *tchttp.BaseRequest // 记录起始数,默认值为0 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 返回条数,默认值为500 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` }
func NewListMigrationProjectRequest ¶
func NewListMigrationProjectRequest() (request *ListMigrationProjectRequest)
func (*ListMigrationProjectRequest) FromJsonString ¶
func (r *ListMigrationProjectRequest) FromJsonString(s string) error
func (*ListMigrationProjectRequest) ToJsonString ¶
func (r *ListMigrationProjectRequest) ToJsonString() string
type ListMigrationProjectResponse ¶
type ListMigrationProjectResponse struct { *tchttp.BaseResponse Response *struct { // 项目列表 Projects []*Project `json:"Projects,omitempty" name:"Projects" list` // 项目总数 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListMigrationProjectResponse ¶
func NewListMigrationProjectResponse() (response *ListMigrationProjectResponse)
func (*ListMigrationProjectResponse) FromJsonString ¶
func (r *ListMigrationProjectResponse) FromJsonString(s string) error
func (*ListMigrationProjectResponse) ToJsonString ¶
func (r *ListMigrationProjectResponse) ToJsonString() string
type ListMigrationTaskRequest ¶
type ListMigrationTaskRequest struct { *tchttp.BaseRequest // 记录起始数,默认值为0 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 记录条数,默认值为10 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 项目ID,默认值为空 ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` }
func NewListMigrationTaskRequest ¶
func NewListMigrationTaskRequest() (request *ListMigrationTaskRequest)
func (*ListMigrationTaskRequest) FromJsonString ¶
func (r *ListMigrationTaskRequest) FromJsonString(s string) error
func (*ListMigrationTaskRequest) ToJsonString ¶
func (r *ListMigrationTaskRequest) ToJsonString() string
type ListMigrationTaskResponse ¶
type ListMigrationTaskResponse struct { *tchttp.BaseResponse Response *struct { // 记录总条数 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 迁移任务列表 Tasks []*Task `json:"Tasks,omitempty" name:"Tasks" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListMigrationTaskResponse ¶
func NewListMigrationTaskResponse() (response *ListMigrationTaskResponse)
func (*ListMigrationTaskResponse) FromJsonString ¶
func (r *ListMigrationTaskResponse) FromJsonString(s string) error
func (*ListMigrationTaskResponse) ToJsonString ¶
func (r *ListMigrationTaskResponse) ToJsonString() string
type ModifyMigrationTaskBelongToProjectRequest ¶
type ModifyMigrationTaskBelongToProjectRequest struct { *tchttp.BaseRequest // 任务ID,例如msp-jitoh33n TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // 项目ID,例如10005 ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` }
func NewModifyMigrationTaskBelongToProjectRequest ¶
func NewModifyMigrationTaskBelongToProjectRequest() (request *ModifyMigrationTaskBelongToProjectRequest)
func (*ModifyMigrationTaskBelongToProjectRequest) FromJsonString ¶
func (r *ModifyMigrationTaskBelongToProjectRequest) FromJsonString(s string) error
func (*ModifyMigrationTaskBelongToProjectRequest) ToJsonString ¶
func (r *ModifyMigrationTaskBelongToProjectRequest) ToJsonString() string
type ModifyMigrationTaskBelongToProjectResponse ¶
type ModifyMigrationTaskBelongToProjectResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyMigrationTaskBelongToProjectResponse ¶
func NewModifyMigrationTaskBelongToProjectResponse() (response *ModifyMigrationTaskBelongToProjectResponse)
func (*ModifyMigrationTaskBelongToProjectResponse) FromJsonString ¶
func (r *ModifyMigrationTaskBelongToProjectResponse) FromJsonString(s string) error
func (*ModifyMigrationTaskBelongToProjectResponse) ToJsonString ¶
func (r *ModifyMigrationTaskBelongToProjectResponse) ToJsonString() string
type ModifyMigrationTaskStatusRequest ¶
type ModifyMigrationTaskStatusRequest struct { *tchttp.BaseRequest // 任务状态,取值为unstart,migrating,finish,fail之一,分别代表该迁移任务状态为迁移未开始,迁移中,迁移完成,迁移失败 Status *string `json:"Status,omitempty" name:"Status"` // 任务ID,例如msp-jitoh33n TaskId *string `json:"TaskId,omitempty" name:"TaskId"` }
func NewModifyMigrationTaskStatusRequest ¶
func NewModifyMigrationTaskStatusRequest() (request *ModifyMigrationTaskStatusRequest)
func (*ModifyMigrationTaskStatusRequest) FromJsonString ¶
func (r *ModifyMigrationTaskStatusRequest) FromJsonString(s string) error
func (*ModifyMigrationTaskStatusRequest) ToJsonString ¶
func (r *ModifyMigrationTaskStatusRequest) ToJsonString() string
type ModifyMigrationTaskStatusResponse ¶
type ModifyMigrationTaskStatusResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyMigrationTaskStatusResponse ¶
func NewModifyMigrationTaskStatusResponse() (response *ModifyMigrationTaskStatusResponse)
func (*ModifyMigrationTaskStatusResponse) FromJsonString ¶
func (r *ModifyMigrationTaskStatusResponse) FromJsonString(s string) error
func (*ModifyMigrationTaskStatusResponse) ToJsonString ¶
func (r *ModifyMigrationTaskStatusResponse) ToJsonString() string
type RegisterMigrationTaskRequest ¶
type RegisterMigrationTaskRequest struct { *tchttp.BaseRequest // 任务类型,取值database(数据库迁移)、file(文件迁移)、host(主机迁移) TaskType *string `json:"TaskType,omitempty" name:"TaskType"` // 任务名称 TaskName *string `json:"TaskName,omitempty" name:"TaskName"` // 服务提供商名称 ServiceSupplier *string `json:"ServiceSupplier,omitempty" name:"ServiceSupplier"` // 迁移任务创建时间 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // 迁移任务更新时间 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` // 迁移类别,如数据库迁移中mysql:mysql代表从mysql迁移到mysql,文件迁移中oss:cos代表从阿里云oss迁移到腾讯云cos MigrateClass *string `json:"MigrateClass,omitempty" name:"MigrateClass"` // 迁移任务源信息 SrcInfo *SrcInfo `json:"SrcInfo,omitempty" name:"SrcInfo"` // 迁移任务目的信息 DstInfo *DstInfo `json:"DstInfo,omitempty" name:"DstInfo"` // 源实例接入类型,数据库迁移时填写值为:extranet(外网),cvm(cvm自建实例),dcg(专线接入的实例),vpncloud(云vpn接入的实例),vpnselfbuild(自建vpn接入的实例),cdb(云上cdb实例) SrcAccessType *string `json:"SrcAccessType,omitempty" name:"SrcAccessType"` // 源实例数据库类型,数据库迁移时填写,取值为mysql,redis,percona,mongodb,postgresql,sqlserver,mariadb 之一 SrcDatabaseType *string `json:"SrcDatabaseType,omitempty" name:"SrcDatabaseType"` // 目标实例接入类型,数据库迁移时填写值为:extranet(外网),cvm(cvm自建实例),dcg(专线接入的实例),vpncloud(云vpn接入的实例),vpnselfbuild(自建vpn接入的实例),cdb(云上cdb实例) DstAccessType *string `json:"DstAccessType,omitempty" name:"DstAccessType"` // 目标实例数据库类型,数据库迁移时填写,取值为mysql,redis,percona,mongodb,postgresql,sqlserver,mariadb 之一 DstDatabaseType *string `json:"DstDatabaseType,omitempty" name:"DstDatabaseType"` }
func NewRegisterMigrationTaskRequest ¶
func NewRegisterMigrationTaskRequest() (request *RegisterMigrationTaskRequest)
func (*RegisterMigrationTaskRequest) FromJsonString ¶
func (r *RegisterMigrationTaskRequest) FromJsonString(s string) error
func (*RegisterMigrationTaskRequest) ToJsonString ¶
func (r *RegisterMigrationTaskRequest) ToJsonString() string
type RegisterMigrationTaskResponse ¶
type RegisterMigrationTaskResponse struct { *tchttp.BaseResponse Response *struct { // 任务ID TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRegisterMigrationTaskResponse ¶
func NewRegisterMigrationTaskResponse() (response *RegisterMigrationTaskResponse)
func (*RegisterMigrationTaskResponse) FromJsonString ¶
func (r *RegisterMigrationTaskResponse) FromJsonString(s string) error
func (*RegisterMigrationTaskResponse) ToJsonString ¶
func (r *RegisterMigrationTaskResponse) ToJsonString() string
type Task ¶
type Task struct { // 任务Id TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // 任务名称 TaskName *string `json:"TaskName,omitempty" name:"TaskName"` // 迁移类型 MigrationType *string `json:"MigrationType,omitempty" name:"MigrationType"` // 迁移状态 Status *string `json:"Status,omitempty" name:"Status"` // 项目Id ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // 项目名称 ProjectName *string `json:"ProjectName,omitempty" name:"ProjectName"` // 迁移源信息 SrcInfo *SrcInfo `json:"SrcInfo,omitempty" name:"SrcInfo"` // 迁移时间信息 MigrationTimeLine *TimeObj `json:"MigrationTimeLine,omitempty" name:"MigrationTimeLine"` // 状态更新时间 Updated *string `json:"Updated,omitempty" name:"Updated"` // 迁移目的信息 DstInfo *DstInfo `json:"DstInfo,omitempty" name:"DstInfo"` }
type TaskStatus ¶
Click to show internal directories.
Click to hide internal directories.