feature: s3upload support multipart upload

This commit is contained in:
Qiu Jian
2019-08-12 10:34:51 +08:00
parent f37b1f213f
commit 4b2316208c
33 changed files with 1008 additions and 188 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ func (cache *SStoragecache) UploadImage(ctx context.Context, userCred mcclient.T
func (cache *SStoragecache) uploadImage(ctx context.Context, userCred mcclient.TokenCredential, image *cloudprovider.SImageCreateOption, isForce bool) (string, error) {
s := auth.GetAdminSession(ctx, options.Options.Region, "")
meta, reader, err := modules.Images.Download(s, image.ImageId, string(qemuimg.VMDK), false)
meta, reader, _, err := modules.Images.Download(s, image.ImageId, string(qemuimg.VMDK), false)
if err != nil {
return "", err
}