add namespace for ListAllMyBucketsResult

This commit is contained in:
Chris Lu
2019-02-26 23:23:04 -08:00
parent 8a3e72566c
commit 70ac2f6ea8
2 changed files with 43 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ package s3api
import (
"context"
"encoding/xml"
"fmt"
"math"
"net/http"
@@ -21,8 +22,9 @@ var (
)
type ListAllMyBucketsResult struct {
Buckets []*s3.Bucket `xml:"Buckets>Bucket"`
XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ ListAllMyBucketsResult"`
Owner *s3.Owner
Buckets []*s3.Bucket `xml:"Buckets>Bucket"`
}
func (s3a *S3ApiServer) ListBucketsHandler(w http.ResponseWriter, r *http.Request) {