refactor: add multipart code to the object layer.

This commit is contained in:
Krishna Srinivas
2016-04-11 13:59:18 +05:30
committed by Harshavardhana
parent 3c48537f20
commit 01a439f95b
7 changed files with 482 additions and 80 deletions

View File

@@ -16,7 +16,10 @@
package main
import "time"
import (
"encoding/xml"
"time"
)
// BucketInfo - bucket name and create date
type BucketInfo struct {
@@ -104,5 +107,6 @@ func (a completedParts) Less(i, j int) bool { return a[i].PartNumber < a[j].Part
// completeMultipartUpload container for completing multipart upload
type completeMultipartUpload struct {
Parts []completePart `xml:"Part"`
XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ CompleteMultipartUpload" json:"-"`
Parts []completePart `xml:"Part"`
}