Skip to content

Commit

Permalink
azure: Implement CopyPart API (minio#9747)
Browse files Browse the repository at this point in the history
  • Loading branch information
vadmeste authored Jun 1, 2020
1 parent 4b68d69 commit bd59f15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/gateway/azure/gateway-azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,11 @@ func (a *azureObjects) NewMultipartUpload(ctx context.Context, bucket, object st
return uploadID, nil
}

func (a *azureObjects) CopyObjectPart(ctx context.Context, srcBucket, srcObject, dstBucket, dstObject string, uploadID string, partID int,
startOffset int64, length int64, srcInfo minio.ObjectInfo, srcOpts, dstOpts minio.ObjectOptions) (info minio.PartInfo, err error) {
return a.PutObjectPart(ctx, dstBucket, dstObject, uploadID, partID, srcInfo.PutObjReader, dstOpts)
}

// PutObjectPart - Use Azure equivalent `BlobURL.StageBlock`.
func (a *azureObjects) PutObjectPart(ctx context.Context, bucket, object, uploadID string, partID int, r *minio.PutObjReader, opts minio.ObjectOptions) (info minio.PartInfo, err error) {
data := r.Reader
Expand Down

0 comments on commit bd59f15

Please sign in to comment.