Browse Source

optional header for complete upload part

tags/v0.7.8
jojoliang 5 years ago
parent
commit
44546a4037
  1. 6
      object_part.go

6
object_part.go

@ -114,8 +114,9 @@ func (s *ObjectService) ListParts(ctx context.Context, name, uploadID string, op
// CompleteMultipartUploadOptions is the option of CompleteMultipartUpload
type CompleteMultipartUploadOptions struct {
XMLName xml.Name `xml:"CompleteMultipartUpload"`
Parts []Object `xml:"Part"`
XMLName xml.Name `xml:"CompleteMultipartUpload" header:"-" url:"-"`
Parts []Object `xml:"Part" header:"-" url:"-"`
XOptionHeader *http.Header `header:"-,omitempty" xml:"-" url:"-"`
}
// CompleteMultipartUploadResult is the result CompleteMultipartUpload
@ -164,6 +165,7 @@ func (s *ObjectService) CompleteMultipartUpload(ctx context.Context, name, uploa
baseURL: s.client.BaseURL.BucketURL,
uri: u,
method: http.MethodPost,
optHeader: opt,
body: opt,
result: &res,
}

Loading…
Cancel
Save