Documentation ¶
Index ¶
- func AomClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForCreateFastExecuteScript() *def.HttpRequestDef
- func GenReqDefForCreateWorkflow() *def.HttpRequestDef
- func GenReqDefForExecuteWorkflow() *def.HttpRequestDef
- func GenReqDefForListAllJobByName() *def.HttpRequestDef
- func GenReqDefForListAllScriptByName() *def.HttpRequestDef
- func GenReqDefForListAllVersionByVersionId() *def.HttpRequestDef
- func GenReqDefForListTemplateByJobId() *def.HttpRequestDef
- func GenReqDefForListWorkflow() *def.HttpRequestDef
- func GenReqDefForListWorkflowExecutions() *def.HttpRequestDef
- func GenReqDefForSearchTemplateById() *def.HttpRequestDef
- func GenReqDefForSearchWorkflowExecutionDetail() *def.HttpRequestDef
- func GenReqDefForStartPausingWorkflowExecutions() *def.HttpRequestDef
- func GenReqDefForStopExecution() *def.HttpRequestDef
- func GenReqDefForUpdateWorkflowTriggerStatus() *def.HttpRequestDef
- type AomClient
- func (c *AomClient) CreateFastExecuteScript(request *model.CreateFastExecuteScriptRequest) (*model.CreateFastExecuteScriptResponse, error)
- func (c *AomClient) CreateFastExecuteScriptInvoker(request *model.CreateFastExecuteScriptRequest) *CreateFastExecuteScriptInvoker
- func (c *AomClient) CreateWorkflow(request *model.CreateWorkflowRequest) (*model.CreateWorkflowResponse, error)
- func (c *AomClient) CreateWorkflowInvoker(request *model.CreateWorkflowRequest) *CreateWorkflowInvoker
- func (c *AomClient) ExecuteWorkflow(request *model.ExecuteWorkflowRequest) (*model.ExecuteWorkflowResponse, error)
- func (c *AomClient) ExecuteWorkflowInvoker(request *model.ExecuteWorkflowRequest) *ExecuteWorkflowInvoker
- func (c *AomClient) ListAllJobByName(request *model.ListAllJobByNameRequest) (*model.ListAllJobByNameResponse, error)
- func (c *AomClient) ListAllJobByNameInvoker(request *model.ListAllJobByNameRequest) *ListAllJobByNameInvoker
- func (c *AomClient) ListAllScriptByName(request *model.ListAllScriptByNameRequest) (*model.ListAllScriptByNameResponse, error)
- func (c *AomClient) ListAllScriptByNameInvoker(request *model.ListAllScriptByNameRequest) *ListAllScriptByNameInvoker
- func (c *AomClient) ListAllVersionByVersionId(request *model.ListAllVersionByVersionIdRequest) (*model.ListAllVersionByVersionIdResponse, error)
- func (c *AomClient) ListAllVersionByVersionIdInvoker(request *model.ListAllVersionByVersionIdRequest) *ListAllVersionByVersionIdInvoker
- func (c *AomClient) ListTemplateByJobId(request *model.ListTemplateByJobIdRequest) (*model.ListTemplateByJobIdResponse, error)
- func (c *AomClient) ListTemplateByJobIdInvoker(request *model.ListTemplateByJobIdRequest) *ListTemplateByJobIdInvoker
- func (c *AomClient) ListWorkflow(request *model.ListWorkflowRequest) (*model.ListWorkflowResponse, error)
- func (c *AomClient) ListWorkflowExecutions(request *model.ListWorkflowExecutionsRequest) (*model.ListWorkflowExecutionsResponse, error)
- func (c *AomClient) ListWorkflowExecutionsInvoker(request *model.ListWorkflowExecutionsRequest) *ListWorkflowExecutionsInvoker
- func (c *AomClient) ListWorkflowInvoker(request *model.ListWorkflowRequest) *ListWorkflowInvoker
- func (c *AomClient) SearchTemplateById(request *model.SearchTemplateByIdRequest) (*model.SearchTemplateByIdResponse, error)
- func (c *AomClient) SearchTemplateByIdInvoker(request *model.SearchTemplateByIdRequest) *SearchTemplateByIdInvoker
- func (c *AomClient) SearchWorkflowExecutionDetail(request *model.SearchWorkflowExecutionDetailRequest) (*model.SearchWorkflowExecutionDetailResponse, error)
- func (c *AomClient) SearchWorkflowExecutionDetailInvoker(request *model.SearchWorkflowExecutionDetailRequest) *SearchWorkflowExecutionDetailInvoker
- func (c *AomClient) StartPausingWorkflowExecutions(request *model.StartPausingWorkflowExecutionsRequest) (*model.StartPausingWorkflowExecutionsResponse, error)
- func (c *AomClient) StartPausingWorkflowExecutionsInvoker(request *model.StartPausingWorkflowExecutionsRequest) *StartPausingWorkflowExecutionsInvoker
- func (c *AomClient) StopExecution(request *model.StopExecutionRequest) (*model.StopExecutionResponse, error)
- func (c *AomClient) StopExecutionInvoker(request *model.StopExecutionRequest) *StopExecutionInvoker
- func (c *AomClient) UpdateWorkflowTriggerStatus(request *model.UpdateWorkflowTriggerStatusRequest) (*model.UpdateWorkflowTriggerStatusResponse, error)
- func (c *AomClient) UpdateWorkflowTriggerStatusInvoker(request *model.UpdateWorkflowTriggerStatusRequest) *UpdateWorkflowTriggerStatusInvoker
- type CreateFastExecuteScriptInvoker
- type CreateWorkflowInvoker
- type ExecuteWorkflowInvoker
- type ListAllJobByNameInvoker
- type ListAllScriptByNameInvoker
- type ListAllVersionByVersionIdInvoker
- type ListTemplateByJobIdInvoker
- type ListWorkflowExecutionsInvoker
- type ListWorkflowInvoker
- type SearchTemplateByIdInvoker
- type SearchWorkflowExecutionDetailInvoker
- type StartPausingWorkflowExecutionsInvoker
- type StopExecutionInvoker
- type UpdateWorkflowTriggerStatusInvoker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AomClientBuilder ¶
func AomClientBuilder() *http_client.HcHttpClientBuilder
func GenReqDefForCreateFastExecuteScript ¶
func GenReqDefForCreateFastExecuteScript() *def.HttpRequestDef
func GenReqDefForCreateWorkflow ¶
func GenReqDefForCreateWorkflow() *def.HttpRequestDef
func GenReqDefForExecuteWorkflow ¶
func GenReqDefForExecuteWorkflow() *def.HttpRequestDef
func GenReqDefForListAllJobByName ¶
func GenReqDefForListAllJobByName() *def.HttpRequestDef
func GenReqDefForListAllScriptByName ¶
func GenReqDefForListAllScriptByName() *def.HttpRequestDef
func GenReqDefForListAllVersionByVersionId ¶
func GenReqDefForListAllVersionByVersionId() *def.HttpRequestDef
func GenReqDefForListTemplateByJobId ¶
func GenReqDefForListTemplateByJobId() *def.HttpRequestDef
func GenReqDefForListWorkflow ¶
func GenReqDefForListWorkflow() *def.HttpRequestDef
func GenReqDefForListWorkflowExecutions ¶
func GenReqDefForListWorkflowExecutions() *def.HttpRequestDef
func GenReqDefForSearchTemplateById ¶
func GenReqDefForSearchTemplateById() *def.HttpRequestDef
func GenReqDefForSearchWorkflowExecutionDetail ¶
func GenReqDefForSearchWorkflowExecutionDetail() *def.HttpRequestDef
func GenReqDefForStartPausingWorkflowExecutions ¶
func GenReqDefForStartPausingWorkflowExecutions() *def.HttpRequestDef
func GenReqDefForStopExecution ¶
func GenReqDefForStopExecution() *def.HttpRequestDef
func GenReqDefForUpdateWorkflowTriggerStatus ¶
func GenReqDefForUpdateWorkflowTriggerStatus() *def.HttpRequestDef
Types ¶
type AomClient ¶
type AomClient struct {
HcClient *http_client.HcHttpClient
}
func NewAomClient ¶
func NewAomClient(hcClient *http_client.HcHttpClient) *AomClient
func (*AomClient) CreateFastExecuteScript ¶
func (c *AomClient) CreateFastExecuteScript(request *model.CreateFastExecuteScriptRequest) (*model.CreateFastExecuteScriptResponse, error)
CreateFastExecuteScript 快速创建并执行脚本
该接口用于创建快速执行脚本的任务,可以指定脚本类型,执行用户,脚本参数,执行机器,脚本内容,在用户指定的机器上执行脚本。(注:接口目前开放的region为:苏州201)。
Please refer to HUAWEI cloud API Explorer for details.
func (*AomClient) CreateFastExecuteScriptInvoker ¶
func (c *AomClient) CreateFastExecuteScriptInvoker(request *model.CreateFastExecuteScriptRequest) *CreateFastExecuteScriptInvoker
CreateFastExecuteScriptInvoker 快速创建并执行脚本
func (*AomClient) CreateWorkflow ¶
func (c *AomClient) CreateWorkflow(request *model.CreateWorkflowRequest) (*model.CreateWorkflowResponse, error)
CreateWorkflow 创建任务
该接口用于创建工作流(任务),返回工作流详情。任务类型取决于模板名称和'input'参数。(注:接口目前开放的region为:上海一)。
Please refer to HUAWEI cloud API Explorer for details.
func (*AomClient) CreateWorkflowInvoker ¶
func (c *AomClient) CreateWorkflowInvoker(request *model.CreateWorkflowRequest) *CreateWorkflowInvoker
CreateWorkflowInvoker 创建任务
func (*AomClient) ExecuteWorkflow ¶
func (c *AomClient) ExecuteWorkflow(request *model.ExecuteWorkflowRequest) (*model.ExecuteWorkflowResponse, error)
ExecuteWorkflow 执行工作流
该接口可下发执行指定的任务。(注:接口目前开放的region为:上海一)。
Please refer to HUAWEI cloud API Explorer for details.
func (*AomClient) ExecuteWorkflowInvoker ¶
func (c *AomClient) ExecuteWorkflowInvoker(request *model.ExecuteWorkflowRequest) *ExecuteWorkflowInvoker
ExecuteWorkflowInvoker 执行工作流
func (*AomClient) ListAllJobByName ¶
func (c *AomClient) ListAllJobByName(request *model.ListAllJobByNameRequest) (*model.ListAllJobByNameResponse, error)
ListAllJobByName 作业管理主页模糊查询
该接口可查询已创建的作业,可指定作业名称和作业创建人去精确查询,返回作业列表信息。(注:接口目前开放的region为:上海一)。
Please refer to HUAWEI cloud API Explorer for details.
func (*AomClient) ListAllJobByNameInvoker ¶
func (c *AomClient) ListAllJobByNameInvoker(request *model.ListAllJobByNameRequest) *ListAllJobByNameInvoker
ListAllJobByNameInvoker 作业管理主页模糊查询
func (*AomClient) ListAllScriptByName ¶
func (c *AomClient) ListAllScriptByName(request *model.ListAllScriptByNameRequest) (*model.ListAllScriptByNameResponse, error)
ListAllScriptByName 脚本查询
该接口是脚本主页查询,可指定脚本名称和脚本创建人进行精确查询,返回包含脚本基本信息的列表数据。(注:接口目前开放的region为:上海一)。
Please refer to HUAWEI cloud API Explorer for details.
func (*AomClient) ListAllScriptByNameInvoker ¶
func (c *AomClient) ListAllScriptByNameInvoker(request *model.ListAllScriptByNameRequest) *ListAllScriptByNameInvoker
ListAllScriptByNameInvoker 脚本查询
func (*AomClient) ListAllVersionByVersionId ¶
func (c *AomClient) ListAllVersionByVersionId(request *model.ListAllVersionByVersionIdRequest) (*model.ListAllVersionByVersionIdResponse, error)
ListAllVersionByVersionId 脚本版本查询
该接口可查询指定脚本ID下的所有版本,返回该名称的脚本版本列表信息。(注:接口目前开放的region为:上海一)。
Please refer to HUAWEI cloud API Explorer for details.
func (*AomClient) ListAllVersionByVersionIdInvoker ¶
func (c *AomClient) ListAllVersionByVersionIdInvoker(request *model.ListAllVersionByVersionIdRequest) *ListAllVersionByVersionIdInvoker
ListAllVersionByVersionIdInvoker 脚本版本查询
func (*AomClient) ListTemplateByJobId ¶
func (c *AomClient) ListTemplateByJobId(request *model.ListTemplateByJobIdRequest) (*model.ListTemplateByJobIdResponse, error)
ListTemplateByJobId 根据作业id查询方案(自定义模板)列表
该接口可根据作业ID查询执行方案,分页返回执行方案列表。(注:接口目前开放的region为:上海一)。
Please refer to HUAWEI cloud API Explorer for details.
func (*AomClient) ListTemplateByJobIdInvoker ¶
func (c *AomClient) ListTemplateByJobIdInvoker(request *model.ListTemplateByJobIdRequest) *ListTemplateByJobIdInvoker
ListTemplateByJobIdInvoker 根据作业id查询方案(自定义模板)列表
func (*AomClient) ListWorkflow ¶
func (c *AomClient) ListWorkflow(request *model.ListWorkflowRequest) (*model.ListWorkflowResponse, error)
ListWorkflow 查询任务列表
该接口可返回已经创建的任务列表,可按任务名称,任务状态,任务类型,执行人,更新时间为查询条件分页查询任务。(注:接口目前开放的region为:上海一)。
Please refer to HUAWEI cloud API Explorer for details.
func (*AomClient) ListWorkflowExecutions ¶
func (c *AomClient) ListWorkflowExecutions(request *model.ListWorkflowExecutionsRequest) (*model.ListWorkflowExecutionsResponse, error)
ListWorkflowExecutions 获取任务执行历史
该接口可获取执行任务的执行历史。(注:接口目前开放的region为:上海一)。
Please refer to HUAWEI cloud API Explorer for details.
func (*AomClient) ListWorkflowExecutionsInvoker ¶
func (c *AomClient) ListWorkflowExecutionsInvoker(request *model.ListWorkflowExecutionsRequest) *ListWorkflowExecutionsInvoker
ListWorkflowExecutionsInvoker 获取任务执行历史
func (*AomClient) ListWorkflowInvoker ¶
func (c *AomClient) ListWorkflowInvoker(request *model.ListWorkflowRequest) *ListWorkflowInvoker
ListWorkflowInvoker 查询任务列表
func (*AomClient) SearchTemplateById ¶
func (c *AomClient) SearchTemplateById(request *model.SearchTemplateByIdRequest) (*model.SearchTemplateByIdResponse, error)
SearchTemplateById 获取方案信息
该接口可根据执行方案id查询执行方案详情。(注:接口目前开放的region为:上海一)。
Please refer to HUAWEI cloud API Explorer for details.
func (*AomClient) SearchTemplateByIdInvoker ¶
func (c *AomClient) SearchTemplateByIdInvoker(request *model.SearchTemplateByIdRequest) *SearchTemplateByIdInvoker
SearchTemplateByIdInvoker 获取方案信息
func (*AomClient) SearchWorkflowExecutionDetail ¶
func (c *AomClient) SearchWorkflowExecutionDetail(request *model.SearchWorkflowExecutionDetailRequest) (*model.SearchWorkflowExecutionDetailResponse, error)
SearchWorkflowExecutionDetail 获取工作流执行中的执行详情
该接口可获取任务的执行详情,可指定工作流ID和执行ID去查询对应的任务,返回任务执行详情。(注:接口目前开放的region为:上海一)。
Please refer to HUAWEI cloud API Explorer for details.
func (*AomClient) SearchWorkflowExecutionDetailInvoker ¶
func (c *AomClient) SearchWorkflowExecutionDetailInvoker(request *model.SearchWorkflowExecutionDetailRequest) *SearchWorkflowExecutionDetailInvoker
SearchWorkflowExecutionDetailInvoker 获取工作流执行中的执行详情
func (*AomClient) StartPausingWorkflowExecutions ¶
func (c *AomClient) StartPausingWorkflowExecutions(request *model.StartPausingWorkflowExecutionsRequest) (*model.StartPausingWorkflowExecutionsResponse, error)
StartPausingWorkflowExecutions 对暂停中的任务进行操作
该接口可对任务进行失败重试、失败跳过、暂停继续操作,返回操作结果。(注:接口目前开放的region为:上海一)。
Please refer to HUAWEI cloud API Explorer for details.
func (*AomClient) StartPausingWorkflowExecutionsInvoker ¶
func (c *AomClient) StartPausingWorkflowExecutionsInvoker(request *model.StartPausingWorkflowExecutionsRequest) *StartPausingWorkflowExecutionsInvoker
StartPausingWorkflowExecutionsInvoker 对暂停中的任务进行操作
func (*AomClient) StopExecution ¶
func (c *AomClient) StopExecution(request *model.StopExecutionRequest) (*model.StopExecutionResponse, error)
StopExecution 终止任务执行
该接口可终止正在执行的任务,指定工作流ID和执行ID去终止对应的任务,返回终止操作状态。(注:接口目前开放的region为:上海一)。
Please refer to HUAWEI cloud API Explorer for details.
func (*AomClient) StopExecutionInvoker ¶
func (c *AomClient) StopExecutionInvoker(request *model.StopExecutionRequest) *StopExecutionInvoker
StopExecutionInvoker 终止任务执行
func (*AomClient) UpdateWorkflowTriggerStatus ¶
func (c *AomClient) UpdateWorkflowTriggerStatus(request *model.UpdateWorkflowTriggerStatusRequest) (*model.UpdateWorkflowTriggerStatusResponse, error)
UpdateWorkflowTriggerStatus 更新任务
更新定时任务的启停状态,可启动定时任务或停止定时任务,返回操作任务结果。(注:接口目前开放的region为:上海一)。
Please refer to HUAWEI cloud API Explorer for details.
func (*AomClient) UpdateWorkflowTriggerStatusInvoker ¶
func (c *AomClient) UpdateWorkflowTriggerStatusInvoker(request *model.UpdateWorkflowTriggerStatusRequest) *UpdateWorkflowTriggerStatusInvoker
UpdateWorkflowTriggerStatusInvoker 更新任务
type CreateFastExecuteScriptInvoker ¶
type CreateFastExecuteScriptInvoker struct {
*invoker.BaseInvoker
}
func (*CreateFastExecuteScriptInvoker) Invoke ¶
func (i *CreateFastExecuteScriptInvoker) Invoke() (*model.CreateFastExecuteScriptResponse, error)
type CreateWorkflowInvoker ¶
type CreateWorkflowInvoker struct {
*invoker.BaseInvoker
}
func (*CreateWorkflowInvoker) Invoke ¶
func (i *CreateWorkflowInvoker) Invoke() (*model.CreateWorkflowResponse, error)
type ExecuteWorkflowInvoker ¶
type ExecuteWorkflowInvoker struct {
*invoker.BaseInvoker
}
func (*ExecuteWorkflowInvoker) Invoke ¶
func (i *ExecuteWorkflowInvoker) Invoke() (*model.ExecuteWorkflowResponse, error)
type ListAllJobByNameInvoker ¶
type ListAllJobByNameInvoker struct {
*invoker.BaseInvoker
}
func (*ListAllJobByNameInvoker) Invoke ¶
func (i *ListAllJobByNameInvoker) Invoke() (*model.ListAllJobByNameResponse, error)
type ListAllScriptByNameInvoker ¶
type ListAllScriptByNameInvoker struct {
*invoker.BaseInvoker
}
func (*ListAllScriptByNameInvoker) Invoke ¶
func (i *ListAllScriptByNameInvoker) Invoke() (*model.ListAllScriptByNameResponse, error)
type ListAllVersionByVersionIdInvoker ¶
type ListAllVersionByVersionIdInvoker struct {
*invoker.BaseInvoker
}
func (*ListAllVersionByVersionIdInvoker) Invoke ¶
func (i *ListAllVersionByVersionIdInvoker) Invoke() (*model.ListAllVersionByVersionIdResponse, error)
type ListTemplateByJobIdInvoker ¶
type ListTemplateByJobIdInvoker struct {
*invoker.BaseInvoker
}
func (*ListTemplateByJobIdInvoker) Invoke ¶
func (i *ListTemplateByJobIdInvoker) Invoke() (*model.ListTemplateByJobIdResponse, error)
type ListWorkflowExecutionsInvoker ¶
type ListWorkflowExecutionsInvoker struct {
*invoker.BaseInvoker
}
func (*ListWorkflowExecutionsInvoker) Invoke ¶
func (i *ListWorkflowExecutionsInvoker) Invoke() (*model.ListWorkflowExecutionsResponse, error)
type ListWorkflowInvoker ¶
type ListWorkflowInvoker struct {
*invoker.BaseInvoker
}
func (*ListWorkflowInvoker) Invoke ¶
func (i *ListWorkflowInvoker) Invoke() (*model.ListWorkflowResponse, error)
type SearchTemplateByIdInvoker ¶
type SearchTemplateByIdInvoker struct {
*invoker.BaseInvoker
}
func (*SearchTemplateByIdInvoker) Invoke ¶
func (i *SearchTemplateByIdInvoker) Invoke() (*model.SearchTemplateByIdResponse, error)
type SearchWorkflowExecutionDetailInvoker ¶
type SearchWorkflowExecutionDetailInvoker struct {
*invoker.BaseInvoker
}
func (*SearchWorkflowExecutionDetailInvoker) Invoke ¶
func (i *SearchWorkflowExecutionDetailInvoker) Invoke() (*model.SearchWorkflowExecutionDetailResponse, error)
type StartPausingWorkflowExecutionsInvoker ¶
type StartPausingWorkflowExecutionsInvoker struct {
*invoker.BaseInvoker
}
func (*StartPausingWorkflowExecutionsInvoker) Invoke ¶
func (i *StartPausingWorkflowExecutionsInvoker) Invoke() (*model.StartPausingWorkflowExecutionsResponse, error)
type StopExecutionInvoker ¶
type StopExecutionInvoker struct {
*invoker.BaseInvoker
}
func (*StopExecutionInvoker) Invoke ¶
func (i *StopExecutionInvoker) Invoke() (*model.StopExecutionResponse, error)
type UpdateWorkflowTriggerStatusInvoker ¶
type UpdateWorkflowTriggerStatusInvoker struct {
*invoker.BaseInvoker
}
func (*UpdateWorkflowTriggerStatusInvoker) Invoke ¶
func (i *UpdateWorkflowTriggerStatusInvoker) Invoke() (*model.UpdateWorkflowTriggerStatusResponse, error)