v5

package
v0.1.30 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrsClientBuilder

func DrsClientBuilder() *http_client.HcHttpClientBuilder

func GenReqDefForBatchCreateJobsAsync

func GenReqDefForBatchCreateJobsAsync() *def.HttpRequestDef

func GenReqDefForBatchDeleteJobsById

func GenReqDefForBatchDeleteJobsById() *def.HttpRequestDef

func GenReqDefForBatchExecuteJobActions

func GenReqDefForBatchExecuteJobActions() *def.HttpRequestDef

func GenReqDefForCollectDbObjectsAsync added in v0.1.21

func GenReqDefForCollectDbObjectsAsync() *def.HttpRequestDef

func GenReqDefForCommitAsyncJob

func GenReqDefForCommitAsyncJob() *def.HttpRequestDef

func GenReqDefForCreateJob

func GenReqDefForCreateJob() *def.HttpRequestDef

func GenReqDefForDeleteJob

func GenReqDefForDeleteJob() *def.HttpRequestDef

func GenReqDefForDownloadDbObjectTemplate

func GenReqDefForDownloadDbObjectTemplate() *def.HttpRequestDef

func GenReqDefForExecuteJobAction

func GenReqDefForExecuteJobAction() *def.HttpRequestDef

func GenReqDefForListAsyncJobDetail

func GenReqDefForListAsyncJobDetail() *def.HttpRequestDef

func GenReqDefForListAsyncJobs

func GenReqDefForListAsyncJobs() *def.HttpRequestDef

func GenReqDefForListDbObjects

func GenReqDefForListDbObjects() *def.HttpRequestDef

func GenReqDefForListJobs

func GenReqDefForListJobs() *def.HttpRequestDef
func GenReqDefForListLinks() *def.HttpRequestDef

func GenReqDefForShowDbObjectCollectionStatus added in v0.1.21

func GenReqDefForShowDbObjectCollectionStatus() *def.HttpRequestDef

func GenReqDefForShowDbObjectTemplateProgress

func GenReqDefForShowDbObjectTemplateProgress() *def.HttpRequestDef

func GenReqDefForShowDbObjectTemplateResult

func GenReqDefForShowDbObjectTemplateResult() *def.HttpRequestDef

func GenReqDefForShowJobDetail

func GenReqDefForShowJobDetail() *def.HttpRequestDef

func GenReqDefForShowUpdateObjectSavingStatus added in v0.1.21

func GenReqDefForShowUpdateObjectSavingStatus() *def.HttpRequestDef

func GenReqDefForUpdateBatchAsyncJobs

func GenReqDefForUpdateBatchAsyncJobs() *def.HttpRequestDef

func GenReqDefForUpdateJob

func GenReqDefForUpdateJob() *def.HttpRequestDef

func GenReqDefForUploadDbObjectTemplate

func GenReqDefForUploadDbObjectTemplate() *def.HttpRequestDef

Types

type BatchCreateJobsAsyncInvoker

type BatchCreateJobsAsyncInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchCreateJobsAsyncInvoker) Invoke

type BatchDeleteJobsByIdInvoker

type BatchDeleteJobsByIdInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchDeleteJobsByIdInvoker) Invoke

type BatchExecuteJobActionsInvoker

type BatchExecuteJobActionsInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchExecuteJobActionsInvoker) Invoke

type CollectDbObjectsAsyncInvoker added in v0.1.21

type CollectDbObjectsAsyncInvoker struct {
	*invoker.BaseInvoker
}

func (*CollectDbObjectsAsyncInvoker) Invoke added in v0.1.21

type CommitAsyncJobInvoker

type CommitAsyncJobInvoker struct {
	*invoker.BaseInvoker
}

func (*CommitAsyncJobInvoker) Invoke

type CreateJobInvoker

type CreateJobInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateJobInvoker) Invoke

type DeleteJobInvoker

type DeleteJobInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteJobInvoker) Invoke

type DownloadDbObjectTemplateInvoker

type DownloadDbObjectTemplateInvoker struct {
	*invoker.BaseInvoker
}

func (*DownloadDbObjectTemplateInvoker) Invoke

type DrsClient

type DrsClient struct {
	HcClient *http_client.HcHttpClient
}

func NewDrsClient

func NewDrsClient(hcClient *http_client.HcHttpClient) *DrsClient

func (*DrsClient) BatchCreateJobsAsync

BatchCreateJobsAsync 批量异步创建任务

批量异步创建任务,根据请求参数不同,可以批量异步创建实时迁移、实时同步、实时灾备等任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) BatchCreateJobsAsyncInvoker

func (c *DrsClient) BatchCreateJobsAsyncInvoker(request *model.BatchCreateJobsAsyncRequest) *BatchCreateJobsAsyncInvoker

BatchCreateJobsAsyncInvoker 批量异步创建任务

func (*DrsClient) BatchDeleteJobsById

BatchDeleteJobsById 批量删除任务

批量删除租户指定ID任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) BatchDeleteJobsByIdInvoker

func (c *DrsClient) BatchDeleteJobsByIdInvoker(request *model.BatchDeleteJobsByIdRequest) *BatchDeleteJobsByIdInvoker

BatchDeleteJobsByIdInvoker 批量删除任务

func (*DrsClient) BatchExecuteJobActions

BatchExecuteJobActions 批量操作指定ID任务

批量操作租户指定ID任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) BatchExecuteJobActionsInvoker

func (c *DrsClient) BatchExecuteJobActionsInvoker(request *model.BatchExecuteJobActionsRequest) *BatchExecuteJobActionsInvoker

BatchExecuteJobActionsInvoker 批量操作指定ID任务

func (*DrsClient) CollectDbObjectsAsync added in v0.1.21

CollectDbObjectsAsync 提交查询数据库对象信息

提交查询数据库对象信息。例如: - 当type取值为source时,表示查询源库库表信息。 - 当源库库表信息有变化时,则type取值为source,is_refresh取值为true。 - 当已同步到目标库的库表信息过大,需要提前将数据加载到缓存中时,type取值为synchronized。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) CollectDbObjectsAsyncInvoker added in v0.1.21

func (c *DrsClient) CollectDbObjectsAsyncInvoker(request *model.CollectDbObjectsAsyncRequest) *CollectDbObjectsAsyncInvoker

CollectDbObjectsAsyncInvoker 提交查询数据库对象信息

func (*DrsClient) CommitAsyncJob

func (c *DrsClient) CommitAsyncJob(request *model.CommitAsyncJobRequest) (*model.CommitAsyncJobResponse, error)

CommitAsyncJob 提交批量创建异步任务

提交批量创建异步任务,当批量异步任务创建或更新参数后,系统会自动开始进行参数校验,待所有任务成功完成参数校验后并且无报错时,可调用此接口开始创建DRS任务实例。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) CommitAsyncJobInvoker

func (c *DrsClient) CommitAsyncJobInvoker(request *model.CommitAsyncJobRequest) *CommitAsyncJobInvoker

CommitAsyncJobInvoker 提交批量创建异步任务

func (*DrsClient) CreateJob

func (c *DrsClient) CreateJob(request *model.CreateJobRequest) (*model.CreateJobResponse, error)

CreateJob 创建任务

创建单个任务,根据请求参数不同,可以创建单个实时迁移、实时同步、实时灾备等任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) CreateJobInvoker

func (c *DrsClient) CreateJobInvoker(request *model.CreateJobRequest) *CreateJobInvoker

CreateJobInvoker 创建任务

func (*DrsClient) DeleteJob

func (c *DrsClient) DeleteJob(request *model.DeleteJobRequest) (*model.DeleteJobResponse, error)

DeleteJob 删除指定ID任务

删除租户指定ID任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) DeleteJobInvoker

func (c *DrsClient) DeleteJobInvoker(request *model.DeleteJobRequest) *DeleteJobInvoker

DeleteJobInvoker 删除指定ID任务

func (*DrsClient) DownloadDbObjectTemplate

DownloadDbObjectTemplate 对象选择(文件导入 - 模板下载)

对象选择(文件导入 - 模板下载)。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) DownloadDbObjectTemplateInvoker

func (c *DrsClient) DownloadDbObjectTemplateInvoker(request *model.DownloadDbObjectTemplateRequest) *DownloadDbObjectTemplateInvoker

DownloadDbObjectTemplateInvoker 对象选择(文件导入 - 模板下载)

func (*DrsClient) ExecuteJobAction

func (c *DrsClient) ExecuteJobAction(request *model.ExecuteJobActionRequest) (*model.ExecuteJobActionResponse, error)

ExecuteJobAction 操作指定ID任务

操作租户指定ID任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) ExecuteJobActionInvoker

func (c *DrsClient) ExecuteJobActionInvoker(request *model.ExecuteJobActionRequest) *ExecuteJobActionInvoker

ExecuteJobActionInvoker 操作指定ID任务

func (*DrsClient) ListAsyncJobDetail

func (c *DrsClient) ListAsyncJobDetail(request *model.ListAsyncJobDetailRequest) (*model.ListAsyncJobDetailResponse, error)

ListAsyncJobDetail 查询指定ID批量异步任务详情

查询租户指定ID批量异步任务详情,默认为任务的“create_time”降序排序获取结果,支持分页查询。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) ListAsyncJobDetailInvoker

func (c *DrsClient) ListAsyncJobDetailInvoker(request *model.ListAsyncJobDetailRequest) *ListAsyncJobDetailInvoker

ListAsyncJobDetailInvoker 查询指定ID批量异步任务详情

func (*DrsClient) ListAsyncJobs

func (c *DrsClient) ListAsyncJobs(request *model.ListAsyncJobsRequest) (*model.ListAsyncJobsResponse, error)

ListAsyncJobs 查询批量异步创建的任务列表

查询租户批量异步创建的任务列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) ListAsyncJobsInvoker

func (c *DrsClient) ListAsyncJobsInvoker(request *model.ListAsyncJobsRequest) *ListAsyncJobsInvoker

ListAsyncJobsInvoker 查询批量异步创建的任务列表

func (*DrsClient) ListDbObjects

func (c *DrsClient) ListDbObjects(request *model.ListDbObjectsRequest) (*model.ListDbObjectsResponse, error)

ListDbObjects 查询数据库对象信息

查询数据库对象信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) ListDbObjectsInvoker

func (c *DrsClient) ListDbObjectsInvoker(request *model.ListDbObjectsRequest) *ListDbObjectsInvoker

ListDbObjectsInvoker 查询数据库对象信息

func (*DrsClient) ListJobs

func (c *DrsClient) ListJobs(request *model.ListJobsRequest) (*model.ListJobsResponse, error)

ListJobs 查询任务列表

查询租户任务列表,可以根据企业项目,引擎类型,网络类型,任务状态,任务名称,任务ID进行查询。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) ListJobsInvoker

func (c *DrsClient) ListJobsInvoker(request *model.ListJobsRequest) *ListJobsInvoker

ListJobsInvoker 查询任务列表

func (c *DrsClient) ListLinks(request *model.ListLinksRequest) (*model.ListLinksResponse, error)

ListLinks 查询可用链路信息

查询可用链路信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) ListLinksInvoker

func (c *DrsClient) ListLinksInvoker(request *model.ListLinksRequest) *ListLinksInvoker

ListLinksInvoker 查询可用链路信息

func (*DrsClient) ShowDbObjectCollectionStatus added in v0.1.21

ShowDbObjectCollectionStatus 获取提交查询数据库对象信息的结果

获取提交查询数据库对象信息的结果。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) ShowDbObjectCollectionStatusInvoker added in v0.1.21

func (c *DrsClient) ShowDbObjectCollectionStatusInvoker(request *model.ShowDbObjectCollectionStatusRequest) *ShowDbObjectCollectionStatusInvoker

ShowDbObjectCollectionStatusInvoker 获取提交查询数据库对象信息的结果

func (*DrsClient) ShowDbObjectTemplateProgress

ShowDbObjectTemplateProgress 对象选择(文件导入 - 进度查询)

对象选择(文件导入 - 进度查询)。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) ShowDbObjectTemplateProgressInvoker

func (c *DrsClient) ShowDbObjectTemplateProgressInvoker(request *model.ShowDbObjectTemplateProgressRequest) *ShowDbObjectTemplateProgressInvoker

ShowDbObjectTemplateProgressInvoker 对象选择(文件导入 - 进度查询)

func (*DrsClient) ShowDbObjectTemplateResult

ShowDbObjectTemplateResult 对象选择(文件导入 - 获取导入结果)

对象选择(文件导入 - 获取导入结果)。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) ShowDbObjectTemplateResultInvoker

func (c *DrsClient) ShowDbObjectTemplateResultInvoker(request *model.ShowDbObjectTemplateResultRequest) *ShowDbObjectTemplateResultInvoker

ShowDbObjectTemplateResultInvoker 对象选择(文件导入 - 获取导入结果)

func (*DrsClient) ShowJobDetail

func (c *DrsClient) ShowJobDetail(request *model.ShowJobDetailRequest) (*model.ShowJobDetailResponse, error)

ShowJobDetail 查询任务详情

查询任务详情。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) ShowJobDetailInvoker

func (c *DrsClient) ShowJobDetailInvoker(request *model.ShowJobDetailRequest) *ShowJobDetailInvoker

ShowJobDetailInvoker 查询任务详情

func (*DrsClient) ShowUpdateObjectSavingStatus added in v0.1.21

ShowUpdateObjectSavingStatus 获取对象保存进度

获取对象保存进度。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) ShowUpdateObjectSavingStatusInvoker added in v0.1.21

func (c *DrsClient) ShowUpdateObjectSavingStatusInvoker(request *model.ShowUpdateObjectSavingStatusRequest) *ShowUpdateObjectSavingStatusInvoker

ShowUpdateObjectSavingStatusInvoker 获取对象保存进度

func (*DrsClient) UpdateBatchAsyncJobs

UpdateBatchAsyncJobs 更新指定ID批量异步任务详情

更新租户指定ID批量异步任务详情。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) UpdateBatchAsyncJobsInvoker

func (c *DrsClient) UpdateBatchAsyncJobsInvoker(request *model.UpdateBatchAsyncJobsRequest) *UpdateBatchAsyncJobsInvoker

UpdateBatchAsyncJobsInvoker 更新指定ID批量异步任务详情

func (*DrsClient) UpdateJob

func (c *DrsClient) UpdateJob(request *model.UpdateJobRequest) (*model.UpdateJobResponse, error)

UpdateJob 更新指定ID任务详情

更新租户指定ID任务详情。 当type取值为db_object, 进行异步处理。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) UpdateJobInvoker

func (c *DrsClient) UpdateJobInvoker(request *model.UpdateJobRequest) *UpdateJobInvoker

UpdateJobInvoker 更新指定ID任务详情

func (*DrsClient) UploadDbObjectTemplate

UploadDbObjectTemplate 对象选择(文件导入 - 模板上传)

对象选择(文件导入 - 模板上传)。

Please refer to HUAWEI cloud API Explorer for details.

func (*DrsClient) UploadDbObjectTemplateInvoker

func (c *DrsClient) UploadDbObjectTemplateInvoker(request *model.UploadDbObjectTemplateRequest) *UploadDbObjectTemplateInvoker

UploadDbObjectTemplateInvoker 对象选择(文件导入 - 模板上传)

type ExecuteJobActionInvoker

type ExecuteJobActionInvoker struct {
	*invoker.BaseInvoker
}

func (*ExecuteJobActionInvoker) Invoke

type ListAsyncJobDetailInvoker

type ListAsyncJobDetailInvoker struct {
	*invoker.BaseInvoker
}

func (*ListAsyncJobDetailInvoker) Invoke

type ListAsyncJobsInvoker

type ListAsyncJobsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListAsyncJobsInvoker) Invoke

type ListDbObjectsInvoker

type ListDbObjectsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListDbObjectsInvoker) Invoke

type ListJobsInvoker

type ListJobsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListJobsInvoker) Invoke

func (i *ListJobsInvoker) Invoke() (*model.ListJobsResponse, error)

type ListLinksInvoker

type ListLinksInvoker struct {
	*invoker.BaseInvoker
}

func (*ListLinksInvoker) Invoke

type ShowDbObjectCollectionStatusInvoker added in v0.1.21

type ShowDbObjectCollectionStatusInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDbObjectCollectionStatusInvoker) Invoke added in v0.1.21

type ShowDbObjectTemplateProgressInvoker

type ShowDbObjectTemplateProgressInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDbObjectTemplateProgressInvoker) Invoke

type ShowDbObjectTemplateResultInvoker

type ShowDbObjectTemplateResultInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDbObjectTemplateResultInvoker) Invoke

type ShowJobDetailInvoker

type ShowJobDetailInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowJobDetailInvoker) Invoke

type ShowUpdateObjectSavingStatusInvoker added in v0.1.21

type ShowUpdateObjectSavingStatusInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowUpdateObjectSavingStatusInvoker) Invoke added in v0.1.21

type UpdateBatchAsyncJobsInvoker

type UpdateBatchAsyncJobsInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateBatchAsyncJobsInvoker) Invoke

type UpdateJobInvoker

type UpdateJobInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateJobInvoker) Invoke

type UploadDbObjectTemplateInvoker

type UploadDbObjectTemplateInvoker struct {
	*invoker.BaseInvoker
}

func (*UploadDbObjectTemplateInvoker) Invoke

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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