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
@@ -59,6 +59,14 @@ func (m *Minio) Engine() string {
return "minio"
}
func (m *Minio) PartLimit() *s3.PartLimit {
return &s3.PartLimit{
MinPartSize: minPartSize,
MaxPartSize: maxPartSize,
MaxNumSize: maxNumSize,
}
}
func (m *Minio) InitiateMultipartUpload(ctx context.Context, name string) (*s3.InitiateMultipartUploadResult, error) {
uploadID, err := m.core.NewMultipartUpload(ctx, m.bucket, name, minio.PutObjectOptions{})
if err != nil {