Documentation
¶
Overview ¶
查询持久化数据处理命令的执行状态
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PfopTaskItem ¶
type PfopTaskItem struct { Command string // 云操作命令 Code int64 // 云操作状态码 Description string // 与状态码相对应的详细描述 Error string // 如果处理失败,该字段会给出失败的详细原因 Hash string // 云处理结果保存在服务端的唯一标识 ObjectName string // 云处理结果的外链对象名称 ReturnOld int64 // 是否返回了旧的数据 }
返回的持久化数据处理任务中的云处理操作状态
func (*PfopTaskItem) MarshalJSON ¶
func (j *PfopTaskItem) MarshalJSON() ([]byte, error)
func (*PfopTaskItem) UnmarshalJSON ¶
func (j *PfopTaskItem) UnmarshalJSON(data []byte) error
type Request ¶
type Request struct { PersistentId string // 持久化数据处理任务 ID Credentials credentials.CredentialsProvider // 鉴权参数,用于生成鉴权凭证,如果为空,则使用 HTTPClientOptions 中的 CredentialsProvider }
调用 API 所用的请求
type Response ¶
type Response struct { PersistentId string // 持久化数据处理任务 ID Code int64 // 持久化数据处理任务状态码 Description string // 与状态码相对应的详细描述 ObjectName string // 源对象名称 BucketName string // 源空间名称 Pipeline string // 云处理操作的处理队列 TaskFrom string // 如果没有,则表示通过 `api+fops` 命令提交的任务,否则遵循规则 `<source>: <source_id>`,其中 `<source>` 当前可选 `workflow` 或 `trigger` RequestId string // 云处理请求的请求 ID Type int64 // 任务类型,支持 `0` 表示普通任务,`1` 表示闲时任务 CreatedAt string // 任务创建时间 Items PfopTaskItems // 云处理操作列表 }
获取 API 所用的响应
func (*Response) MarshalJSON ¶
func (*Response) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.