v2

package
v0.1.53 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenReqDefForCreateSyncEvents

func GenReqDefForCreateSyncEvents() *def.HttpRequestDef

func GenReqDefForCreateTask

func GenReqDefForCreateTask() *def.HttpRequestDef

func GenReqDefForCreateTaskGroup added in v0.1.3

func GenReqDefForCreateTaskGroup() *def.HttpRequestDef

func GenReqDefForDeleteTask

func GenReqDefForDeleteTask() *def.HttpRequestDef

func GenReqDefForDeleteTaskGroup added in v0.1.3

func GenReqDefForDeleteTaskGroup() *def.HttpRequestDef

func GenReqDefForListApiVersions

func GenReqDefForListApiVersions() *def.HttpRequestDef

func GenReqDefForListTaskGroup added in v0.1.3

func GenReqDefForListTaskGroup() *def.HttpRequestDef

func GenReqDefForListTasks

func GenReqDefForListTasks() *def.HttpRequestDef

func GenReqDefForRetryTaskGroup added in v0.1.3

func GenReqDefForRetryTaskGroup() *def.HttpRequestDef

func GenReqDefForShowApiInfo

func GenReqDefForShowApiInfo() *def.HttpRequestDef

func GenReqDefForShowTask

func GenReqDefForShowTask() *def.HttpRequestDef

func GenReqDefForShowTaskGroup added in v0.1.3

func GenReqDefForShowTaskGroup() *def.HttpRequestDef

func GenReqDefForStartTask

func GenReqDefForStartTask() *def.HttpRequestDef

func GenReqDefForStartTaskGroup added in v0.1.3

func GenReqDefForStartTaskGroup() *def.HttpRequestDef

func GenReqDefForStopTask

func GenReqDefForStopTask() *def.HttpRequestDef

func GenReqDefForStopTaskGroup added in v0.1.3

func GenReqDefForStopTaskGroup() *def.HttpRequestDef

func GenReqDefForUpdateBandwidthPolicy

func GenReqDefForUpdateBandwidthPolicy() *def.HttpRequestDef

func GenReqDefForUpdateTaskGroup added in v0.1.3

func GenReqDefForUpdateTaskGroup() *def.HttpRequestDef

func OmsClientBuilder

func OmsClientBuilder() *http_client.HcHttpClientBuilder

Types

type CreateSyncEventsInvoker added in v0.0.90

type CreateSyncEventsInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateSyncEventsInvoker) Invoke added in v0.0.90

type CreateTaskGroupInvoker added in v0.1.3

type CreateTaskGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateTaskGroupInvoker) Invoke added in v0.1.3

type CreateTaskInvoker added in v0.0.90

type CreateTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateTaskInvoker) Invoke added in v0.0.90

type DeleteTaskGroupInvoker added in v0.1.3

type DeleteTaskGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteTaskGroupInvoker) Invoke added in v0.1.3

type DeleteTaskInvoker added in v0.0.90

type DeleteTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteTaskInvoker) Invoke added in v0.0.90

type ListApiVersionsInvoker added in v0.0.90

type ListApiVersionsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListApiVersionsInvoker) Invoke added in v0.0.90

type ListTaskGroupInvoker added in v0.1.3

type ListTaskGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*ListTaskGroupInvoker) Invoke added in v0.1.3

type ListTasksInvoker added in v0.0.90

type ListTasksInvoker struct {
	*invoker.BaseInvoker
}

func (*ListTasksInvoker) Invoke added in v0.0.90

type OmsClient

type OmsClient struct {
	HcClient *http_client.HcHttpClient
}

func NewOmsClient

func NewOmsClient(hcClient *http_client.HcHttpClient) *OmsClient

func (*OmsClient) CreateSyncEvents

func (c *OmsClient) CreateSyncEvents(request *model.CreateSyncEventsRequest) (*model.CreateSyncEventsResponse, error)

CreateSyncEvents 创建同步事件

源端有对象需要进行同步时,调用该接口创建一个同步事件,系统将根据同步事件中包含的对象名称进行同步。

Please refer to HUAWEI cloud API Explorer for details.

func (*OmsClient) CreateSyncEventsInvoker added in v0.0.90

func (c *OmsClient) CreateSyncEventsInvoker(request *model.CreateSyncEventsRequest) *CreateSyncEventsInvoker

CreateSyncEventsInvoker 创建同步事件

func (*OmsClient) CreateTask

func (c *OmsClient) CreateTask(request *model.CreateTaskRequest) (*model.CreateTaskResponse, error)

CreateTask 创建迁移任务

创建迁移任务,创建成功后,任务会被自动启动,不需要额外调用启动任务命令。

Please refer to HUAWEI cloud API Explorer for details.

func (*OmsClient) CreateTaskGroup added in v0.1.3

func (c *OmsClient) CreateTaskGroup(request *model.CreateTaskGroupRequest) (*model.CreateTaskGroupResponse, error)

CreateTaskGroup 创建迁移任务组

创建迁移任务组,创建成功后,迁移任务组会自动创建迁移任务,不需要额外调用启动任务命令。

Please refer to HUAWEI cloud API Explorer for details.

func (*OmsClient) CreateTaskGroupInvoker added in v0.1.3

func (c *OmsClient) CreateTaskGroupInvoker(request *model.CreateTaskGroupRequest) *CreateTaskGroupInvoker

CreateTaskGroupInvoker 创建迁移任务组

func (*OmsClient) CreateTaskInvoker added in v0.0.90

func (c *OmsClient) CreateTaskInvoker(request *model.CreateTaskRequest) *CreateTaskInvoker

CreateTaskInvoker 创建迁移任务

func (*OmsClient) DeleteTask

func (c *OmsClient) DeleteTask(request *model.DeleteTaskRequest) (*model.DeleteTaskResponse, error)

DeleteTask 删除迁移任务

调用该接口删除迁移任务。 正在运行的任务不允许删除,如果删除会返回失败;若要删除,请先行暂停任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*OmsClient) DeleteTaskGroup added in v0.1.3

func (c *OmsClient) DeleteTaskGroup(request *model.DeleteTaskGroupRequest) (*model.DeleteTaskGroupResponse, error)

DeleteTaskGroup 删除指定ID的迁移任务组

删除指定的迁移任务组. 创建任务中、监控中、暂停中状态的任务不允许删除,如果删除会返回失败;若要删除,请先行暂停任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*OmsClient) DeleteTaskGroupInvoker added in v0.1.3

func (c *OmsClient) DeleteTaskGroupInvoker(request *model.DeleteTaskGroupRequest) *DeleteTaskGroupInvoker

DeleteTaskGroupInvoker 删除指定ID的迁移任务组

func (*OmsClient) DeleteTaskInvoker added in v0.0.90

func (c *OmsClient) DeleteTaskInvoker(request *model.DeleteTaskRequest) *DeleteTaskInvoker

DeleteTaskInvoker 删除迁移任务

func (*OmsClient) ListApiVersions

func (c *OmsClient) ListApiVersions(request *model.ListApiVersionsRequest) (*model.ListApiVersionsResponse, error)

ListApiVersions 查询API版本信息列表

查询对象存储迁移服务的API版本信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*OmsClient) ListApiVersionsInvoker added in v0.0.90

func (c *OmsClient) ListApiVersionsInvoker(request *model.ListApiVersionsRequest) *ListApiVersionsInvoker

ListApiVersionsInvoker 查询API版本信息列表

func (*OmsClient) ListTaskGroup added in v0.1.3

func (c *OmsClient) ListTaskGroup(request *model.ListTaskGroupRequest) (*model.ListTaskGroupResponse, error)

ListTaskGroup 查询迁移任务组列表

查询用户账户下的任务组信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*OmsClient) ListTaskGroupInvoker added in v0.1.3

func (c *OmsClient) ListTaskGroupInvoker(request *model.ListTaskGroupRequest) *ListTaskGroupInvoker

ListTaskGroupInvoker 查询迁移任务组列表

func (*OmsClient) ListTasks

func (c *OmsClient) ListTasks(request *model.ListTasksRequest) (*model.ListTasksResponse, error)

ListTasks 查询迁移任务列表

查询用户账户下的所有任务信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*OmsClient) ListTasksInvoker added in v0.0.90

func (c *OmsClient) ListTasksInvoker(request *model.ListTasksRequest) *ListTasksInvoker

ListTasksInvoker 查询迁移任务列表

func (*OmsClient) RetryTaskGroup added in v0.1.3

func (c *OmsClient) RetryTaskGroup(request *model.RetryTaskGroupRequest) (*model.RetryTaskGroupResponse, error)

RetryTaskGroup 对已经失败的指定ID迁移任务组进行重启

当迁移任务组处于迁移失败状态时,调用该接口重启指定ID的迁移任务组。

Please refer to HUAWEI cloud API Explorer for details.

func (*OmsClient) RetryTaskGroupInvoker added in v0.1.3

func (c *OmsClient) RetryTaskGroupInvoker(request *model.RetryTaskGroupRequest) *RetryTaskGroupInvoker

RetryTaskGroupInvoker 对已经失败的指定ID迁移任务组进行重启

func (*OmsClient) ShowApiInfo

func (c *OmsClient) ShowApiInfo(request *model.ShowApiInfoRequest) (*model.ShowApiInfoResponse, error)

ShowApiInfo 查询指定API版本信息

查询对象存储迁移服务指定API版本信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*OmsClient) ShowApiInfoInvoker added in v0.0.90

func (c *OmsClient) ShowApiInfoInvoker(request *model.ShowApiInfoRequest) *ShowApiInfoInvoker

ShowApiInfoInvoker 查询指定API版本信息

func (*OmsClient) ShowTask

func (c *OmsClient) ShowTask(request *model.ShowTaskRequest) (*model.ShowTaskResponse, error)

ShowTask 查询指定ID的任务详情

查询指定ID的任务详情。

Please refer to HUAWEI cloud API Explorer for details.

func (*OmsClient) ShowTaskGroup added in v0.1.3

func (c *OmsClient) ShowTaskGroup(request *model.ShowTaskGroupRequest) (*model.ShowTaskGroupResponse, error)

ShowTaskGroup 获取指定ID的taskgroup信息

获取指定ID的taskgroup信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*OmsClient) ShowTaskGroupInvoker added in v0.1.3

func (c *OmsClient) ShowTaskGroupInvoker(request *model.ShowTaskGroupRequest) *ShowTaskGroupInvoker

ShowTaskGroupInvoker 获取指定ID的taskgroup信息

func (*OmsClient) ShowTaskInvoker added in v0.0.90

func (c *OmsClient) ShowTaskInvoker(request *model.ShowTaskRequest) *ShowTaskInvoker

ShowTaskInvoker 查询指定ID的任务详情

func (*OmsClient) StartTask

func (c *OmsClient) StartTask(request *model.StartTaskRequest) (*model.StartTaskResponse, error)

StartTask 启动迁移任务

迁移任务暂停或失败后,调用该接口以启动任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*OmsClient) StartTaskGroup added in v0.1.3

func (c *OmsClient) StartTaskGroup(request *model.StartTaskGroupRequest) (*model.StartTaskGroupResponse, error)

StartTaskGroup 恢复指定ID的迁移任务组

当迁移任务组处于暂停状态时,调用该接口启动指定ID的迁移任务组。

Please refer to HUAWEI cloud API Explorer for details.

func (*OmsClient) StartTaskGroupInvoker added in v0.1.3

func (c *OmsClient) StartTaskGroupInvoker(request *model.StartTaskGroupRequest) *StartTaskGroupInvoker

StartTaskGroupInvoker 恢复指定ID的迁移任务组

func (*OmsClient) StartTaskInvoker added in v0.0.90

func (c *OmsClient) StartTaskInvoker(request *model.StartTaskRequest) *StartTaskInvoker

StartTaskInvoker 启动迁移任务

func (*OmsClient) StopTask

func (c *OmsClient) StopTask(request *model.StopTaskRequest) (*model.StopTaskResponse, error)

StopTask 暂停迁移任务

当迁移任务处于迁移中时,调用该接口停止任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*OmsClient) StopTaskGroup added in v0.1.3

func (c *OmsClient) StopTaskGroup(request *model.StopTaskGroupRequest) (*model.StopTaskGroupResponse, error)

StopTaskGroup 暂停指定ID的迁移任务组

当迁移任务组处于创建任务中或监控中时,调用该接口暂停指定迁移任务组。

Please refer to HUAWEI cloud API Explorer for details.

func (*OmsClient) StopTaskGroupInvoker added in v0.1.3

func (c *OmsClient) StopTaskGroupInvoker(request *model.StopTaskGroupRequest) *StopTaskGroupInvoker

StopTaskGroupInvoker 暂停指定ID的迁移任务组

func (*OmsClient) StopTaskInvoker added in v0.0.90

func (c *OmsClient) StopTaskInvoker(request *model.StopTaskRequest) *StopTaskInvoker

StopTaskInvoker 暂停迁移任务

func (*OmsClient) UpdateBandwidthPolicy

UpdateBandwidthPolicy 更新任务带宽策略

当迁移任务未执行完成时,修改迁移任务的流量控制策略。

Please refer to HUAWEI cloud API Explorer for details.

func (*OmsClient) UpdateBandwidthPolicyInvoker added in v0.0.90

func (c *OmsClient) UpdateBandwidthPolicyInvoker(request *model.UpdateBandwidthPolicyRequest) *UpdateBandwidthPolicyInvoker

UpdateBandwidthPolicyInvoker 更新任务带宽策略

func (*OmsClient) UpdateTaskGroup added in v0.1.3

func (c *OmsClient) UpdateTaskGroup(request *model.UpdateTaskGroupRequest) (*model.UpdateTaskGroupResponse, error)

UpdateTaskGroup 更新指定ID的迁移任务组的流控策略

当迁移任务组未执行完成时,修改迁移任务组的流量控制策略。

Please refer to HUAWEI cloud API Explorer for details.

func (*OmsClient) UpdateTaskGroupInvoker added in v0.1.3

func (c *OmsClient) UpdateTaskGroupInvoker(request *model.UpdateTaskGroupRequest) *UpdateTaskGroupInvoker

UpdateTaskGroupInvoker 更新指定ID的迁移任务组的流控策略

type RetryTaskGroupInvoker added in v0.1.3

type RetryTaskGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*RetryTaskGroupInvoker) Invoke added in v0.1.3

type ShowApiInfoInvoker added in v0.0.90

type ShowApiInfoInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowApiInfoInvoker) Invoke added in v0.0.90

type ShowTaskGroupInvoker added in v0.1.3

type ShowTaskGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowTaskGroupInvoker) Invoke added in v0.1.3

type ShowTaskInvoker added in v0.0.90

type ShowTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowTaskInvoker) Invoke added in v0.0.90

func (i *ShowTaskInvoker) Invoke() (*model.ShowTaskResponse, error)

type StartTaskGroupInvoker added in v0.1.3

type StartTaskGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*StartTaskGroupInvoker) Invoke added in v0.1.3

type StartTaskInvoker added in v0.0.90

type StartTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*StartTaskInvoker) Invoke added in v0.0.90

type StopTaskGroupInvoker added in v0.1.3

type StopTaskGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*StopTaskGroupInvoker) Invoke added in v0.1.3

type StopTaskInvoker added in v0.0.90

type StopTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*StopTaskInvoker) Invoke added in v0.0.90

func (i *StopTaskInvoker) Invoke() (*model.StopTaskResponse, error)

type UpdateBandwidthPolicyInvoker added in v0.0.90

type UpdateBandwidthPolicyInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateBandwidthPolicyInvoker) Invoke added in v0.0.90

type UpdateTaskGroupInvoker added in v0.1.3

type UpdateTaskGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateTaskGroupInvoker) Invoke added in v0.1.3

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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