Documentation ¶
Index ¶
- Constants
- Variables
- type AbortMultipartUploadRequest
- type AbortMultipartUploadResponse
- type App
- type CompleteMultipartUploadRequest
- type CompleteMultipartUploadResponse
- type GeneralResponse
- type GetHostReq
- type GetHostResp
- type InitMultipartUploadRequest
- type InitMultipartUploadResponse
- type Part
- type UploadPartRequest
- type UploadPartResponse
- type UploadRequest
- type UploadResponse
Constants ¶
View Source
const MaxPartSize = 1024 * 1024 * 1024 * 5
MaxPartSize - maximum part size 5GiB for a single multipart upload operation.
View Source
const MinPartSize = 1024 * 1024 * 5
MinPartSize - absolute minimum part size (5 MiB) below which a part in a multipart upload may not be uploaded.
View Source
const Oss_Aliyun = "aliyun"
View Source
const Oss_Huaweiuyn = "huaweiyun"
View Source
const Oss_Minio = "minio"
Variables ¶
View Source
var (
ErrNilPoint = errors.New("未知参数")
)
Functions ¶
This section is empty.
Types ¶
type AbortMultipartUploadResponse ¶
type AbortMultipartUploadResponse struct { }
type GeneralResponse ¶
type GetHostReq ¶
type GetHostReq struct {
// contains filtered or unexported fields
}
type GetHostResp ¶
type GetHostResp struct {
Host string `json:"host"`
}
type InitMultipartUploadRequest ¶
type InitMultipartUploadRequest struct { // 文件名(包含路径) Key string `json:"key" form:"key" binding:"required"` // contains filtered or unexported fields }
type Part ¶
type Part struct { // 段数据的MD5值 ETag string `json:"ETag" form:"ETag" binding:"required"` // 分段序号, 范围是1~10000 PartNumber int32 `json:"partNumber" form:"partNumber" binding:"required"` }
func (*Part) Convert2OssPart ¶
type UploadPartRequest ¶
type UploadPartRequest struct { // 文件名(包含路径) Key string `json:"key" form:"key" binding:"required"` // 分段上传任务全局唯一标识 UploadId string `json:"uploadId" form:"uploadId" binding:"required"` // 分段序号, 范围是1~10000 PartNumber int32 `json:"partNumber" form:"partNumber" binding:"required"` // 偏移量, 可不填 Offset int64 `json:"-" form:"-"` // 分段文件大小, 可不填 PartSize int64 `json:"-" form:"-"` // 文件内容 // aliyun, huaweiyun 除了最后一段以外,其他段的大小范围是100KB~5GB;最后段大小范围是0~5GB。 // minio 除了最后一段以外,其他段的大小范围是5MB~5GB;最后段大小范围是0~5GB。 Body io.Reader `json:"-" form:"-"` // contains filtered or unexported fields }
type UploadPartResponse ¶
type UploadRequest ¶
type UploadResponse ¶
Click to show internal directories.
Click to hide internal directories.