s3 minio, cos, oss support

This commit is contained in:
withchao
2023-07-10 16:24:59 +08:00
parent fea3c5358a
commit 29dade90ec
11 changed files with 485 additions and 243 deletions
+8
View File
@@ -53,6 +53,14 @@ func (o *OSS) Engine() string {
return "ali-oss"
}
func (o *OSS) PartLimit() *s3.PartLimit {
return &s3.PartLimit{
MinPartSize: minPartSize,
MaxPartSize: maxPartSize,
MaxNumSize: maxNumSize,
}
}
func (o *OSS) InitiateMultipartUpload(ctx context.Context, name string) (*s3.InitiateMultipartUploadResult, error) {
result, err := o.bucket.InitiateMultipartUpload(name)
if err != nil {