Documentation ¶
Index ¶
- func GenReqDefForCreateSyncEvents() *def.HttpRequestDef
- func GenReqDefForCreateTask() *def.HttpRequestDef
- func GenReqDefForDeleteTask() *def.HttpRequestDef
- func GenReqDefForListApiVersions() *def.HttpRequestDef
- func GenReqDefForListTasks() *def.HttpRequestDef
- func GenReqDefForShowApiInfo() *def.HttpRequestDef
- func GenReqDefForShowTask() *def.HttpRequestDef
- func GenReqDefForStartTask() *def.HttpRequestDef
- func GenReqDefForStopTask() *def.HttpRequestDef
- func GenReqDefForUpdateBandwidthPolicy() *def.HttpRequestDef
- func OmsClientBuilder() *http_client.HcHttpClientBuilder
- type CreateSyncEventsInvoker
- type CreateTaskInvoker
- type DeleteTaskInvoker
- type ListApiVersionsInvoker
- type ListTasksInvoker
- type OmsClient
- func (c *OmsClient) CreateSyncEvents(request *model.CreateSyncEventsRequest) (*model.CreateSyncEventsResponse, error)
- func (c *OmsClient) CreateSyncEventsInvoker(request *model.CreateSyncEventsRequest) *CreateSyncEventsInvoker
- func (c *OmsClient) CreateTask(request *model.CreateTaskRequest) (*model.CreateTaskResponse, error)
- func (c *OmsClient) CreateTaskInvoker(request *model.CreateTaskRequest) *CreateTaskInvoker
- func (c *OmsClient) DeleteTask(request *model.DeleteTaskRequest) (*model.DeleteTaskResponse, error)
- func (c *OmsClient) DeleteTaskInvoker(request *model.DeleteTaskRequest) *DeleteTaskInvoker
- func (c *OmsClient) ListApiVersions(request *model.ListApiVersionsRequest) (*model.ListApiVersionsResponse, error)
- func (c *OmsClient) ListApiVersionsInvoker(request *model.ListApiVersionsRequest) *ListApiVersionsInvoker
- func (c *OmsClient) ListTasks(request *model.ListTasksRequest) (*model.ListTasksResponse, error)
- func (c *OmsClient) ListTasksInvoker(request *model.ListTasksRequest) *ListTasksInvoker
- func (c *OmsClient) ShowApiInfo(request *model.ShowApiInfoRequest) (*model.ShowApiInfoResponse, error)
- func (c *OmsClient) ShowApiInfoInvoker(request *model.ShowApiInfoRequest) *ShowApiInfoInvoker
- func (c *OmsClient) ShowTask(request *model.ShowTaskRequest) (*model.ShowTaskResponse, error)
- func (c *OmsClient) ShowTaskInvoker(request *model.ShowTaskRequest) *ShowTaskInvoker
- func (c *OmsClient) StartTask(request *model.StartTaskRequest) (*model.StartTaskResponse, error)
- func (c *OmsClient) StartTaskInvoker(request *model.StartTaskRequest) *StartTaskInvoker
- func (c *OmsClient) StopTask(request *model.StopTaskRequest) (*model.StopTaskResponse, error)
- func (c *OmsClient) StopTaskInvoker(request *model.StopTaskRequest) *StopTaskInvoker
- func (c *OmsClient) UpdateBandwidthPolicy(request *model.UpdateBandwidthPolicyRequest) (*model.UpdateBandwidthPolicyResponse, error)
- func (c *OmsClient) UpdateBandwidthPolicyInvoker(request *model.UpdateBandwidthPolicyRequest) *UpdateBandwidthPolicyInvoker
- type ShowApiInfoInvoker
- type ShowTaskInvoker
- type StartTaskInvoker
- type StopTaskInvoker
- type UpdateBandwidthPolicyInvoker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenReqDefForCreateSyncEvents ¶
func GenReqDefForCreateSyncEvents() *def.HttpRequestDef
func GenReqDefForCreateTask ¶
func GenReqDefForCreateTask() *def.HttpRequestDef
func GenReqDefForDeleteTask ¶
func GenReqDefForDeleteTask() *def.HttpRequestDef
func GenReqDefForListApiVersions ¶
func GenReqDefForListApiVersions() *def.HttpRequestDef
func GenReqDefForListTasks ¶
func GenReqDefForListTasks() *def.HttpRequestDef
func GenReqDefForShowApiInfo ¶
func GenReqDefForShowApiInfo() *def.HttpRequestDef
func GenReqDefForShowTask ¶
func GenReqDefForShowTask() *def.HttpRequestDef
func GenReqDefForStartTask ¶
func GenReqDefForStartTask() *def.HttpRequestDef
func GenReqDefForStopTask ¶
func GenReqDefForStopTask() *def.HttpRequestDef
func GenReqDefForUpdateBandwidthPolicy ¶
func GenReqDefForUpdateBandwidthPolicy() *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
func (i *CreateSyncEventsInvoker) Invoke() (*model.CreateSyncEventsResponse, error)
type CreateTaskInvoker ¶ added in v0.0.90
type CreateTaskInvoker struct {
*invoker.BaseInvoker
}
func (*CreateTaskInvoker) Invoke ¶ added in v0.0.90
func (i *CreateTaskInvoker) Invoke() (*model.CreateTaskResponse, error)
type DeleteTaskInvoker ¶ added in v0.0.90
type DeleteTaskInvoker struct {
*invoker.BaseInvoker
}
func (*DeleteTaskInvoker) Invoke ¶ added in v0.0.90
func (i *DeleteTaskInvoker) Invoke() (*model.DeleteTaskResponse, error)
type ListApiVersionsInvoker ¶ added in v0.0.90
type ListApiVersionsInvoker struct {
*invoker.BaseInvoker
}
func (*ListApiVersionsInvoker) Invoke ¶ added in v0.0.90
func (i *ListApiVersionsInvoker) Invoke() (*model.ListApiVersionsResponse, error)
type ListTasksInvoker ¶ added in v0.0.90
type ListTasksInvoker struct {
*invoker.BaseInvoker
}
func (*ListTasksInvoker) Invoke ¶ added in v0.0.90
func (i *ListTasksInvoker) Invoke() (*model.ListTasksResponse, error)
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 创建同步事件
源端有对象需要进行同步时,调用该接口创建一个同步事件,系统将根据同步事件中包含的对象名称进行同步
详细说明请参考华为云API Explorer。 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 创建迁移任务
创建迁移任务,创建成功后,任务会被自动启动,不需要额外调用启动任务命令。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
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 删除迁移任务
调用该接口删除迁移任务。 正在运行的任务不允许删除,如果删除会返回失败;若要删除,请先行暂停任务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
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版本信息。
详细说明请参考华为云API Explorer。 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) ListTasks ¶
func (c *OmsClient) ListTasks(request *model.ListTasksRequest) (*model.ListTasksResponse, error)
ListTasks 查询迁移任务列表
查询用户账户下的所有任务信息。
详细说明请参考华为云API Explorer。 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) ShowApiInfo ¶
func (c *OmsClient) ShowApiInfo(request *model.ShowApiInfoRequest) (*model.ShowApiInfoResponse, error)
ShowApiInfo 查询指定API版本信息
查询对象存储迁移服务指定API版本信息。
详细说明请参考华为云API Explorer。 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的任务详情。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
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 启动迁移任务
迁移任务暂停或失败后,调用该接口以启动任务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
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 暂停迁移任务
当迁移任务处于迁移中时,调用该接口停止任务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OmsClient) StopTaskInvoker ¶ added in v0.0.90
func (c *OmsClient) StopTaskInvoker(request *model.StopTaskRequest) *StopTaskInvoker
StopTaskInvoker 暂停迁移任务
func (*OmsClient) UpdateBandwidthPolicy ¶
func (c *OmsClient) UpdateBandwidthPolicy(request *model.UpdateBandwidthPolicyRequest) (*model.UpdateBandwidthPolicyResponse, error)
UpdateBandwidthPolicy 更新任务带宽策略
当迁移任务未执行完成时,修改迁移任务的流量控制策略。
详细说明请参考华为云API Explorer。 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 更新任务带宽策略
type ShowApiInfoInvoker ¶ added in v0.0.90
type ShowApiInfoInvoker struct {
*invoker.BaseInvoker
}
func (*ShowApiInfoInvoker) Invoke ¶ added in v0.0.90
func (i *ShowApiInfoInvoker) Invoke() (*model.ShowApiInfoResponse, error)
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 StartTaskInvoker ¶ added in v0.0.90
type StartTaskInvoker struct {
*invoker.BaseInvoker
}
func (*StartTaskInvoker) Invoke ¶ added in v0.0.90
func (i *StartTaskInvoker) Invoke() (*model.StartTaskResponse, error)
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
func (i *UpdateBandwidthPolicyInvoker) Invoke() (*model.UpdateBandwidthPolicyResponse, error)