Documentation
¶
Overview ¶
列举出指定 UploadId 所属任务所有已经上传成功的分片
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListedPartInfo ¶
type ListedPartInfo struct {
Size int64 // 分片大小
Etag string // 分片内容的 etag
PartNumber int64 // 每一个上传的分片都有一个标识它的号码
PutTime int64 // 分片上传时间 UNIX 时间戳
}
单个已经上传的分片信息
func (*ListedPartInfo) MarshalJSON ¶
func (j *ListedPartInfo) MarshalJSON() ([]byte, error)
func (*ListedPartInfo) UnmarshalJSON ¶
func (j *ListedPartInfo) UnmarshalJSON(data []byte) error
type Request ¶
type Request struct {
BucketName string // 存储空间名称
ObjectName *string // 对象名称
UploadId string // 在服务端申请的 Multipart Upload 任务 id
MaxParts int64 // 响应中的最大分片数目。默认值:1000,最大值:1000
PartNumberMarker int64 // 指定列举的起始位置,只有 partNumber 值大于该参数的分片会被列出
UpToken uptoken.Provider // 上传凭证,如果为空,则使用 HTTPClientOptions 中的 UpToken
}
调用 API 所用的请求
type Response ¶
type Response struct {
UploadId string // 在服务端申请的 Multipart Upload 任务 id
ExpiredAt int64 // UploadId 的过期时间 UNIX 时间戳,过期之后 UploadId 不可用
PartNumberMarker int64 // 下次继续列举的起始位置,0 表示列举结束,没有更多分片
Parts ListedParts // 返回所有已经上传成功的分片信息
}
获取 API 所用的响应
func (*Response) MarshalJSON ¶
func (*Response) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.