Add PutBucket and ListBuckets service

This commit is contained in:
Harshavardhana
2015-01-21 00:50:23 -08:00
parent e22ae2475a
commit 5b67da7d96
6 changed files with 197 additions and 25 deletions
+18 -8
View File
@@ -20,14 +20,24 @@ import (
"encoding/xml"
)
type ListResponse struct {
XMLName xml.Name `xml:"ListBucketResult"`
Name string `xml:"Name"`
storagerefix string
Marker string
MaxKeys int
IsTruncated bool
Contents []Content `xml:"Contents",innerxml`
type ObjectListResponse struct {
XMLName xml.Name `xml:"ListBucketResult"`
Name string `xml:"Name"`
Marker string
MaxKeys int
IsTruncated bool
Contents []Content `xml:"Contents",innerxml`
}
type BucketListResponse struct {
XMLName xml.Name `xml:"ListAllMyBucketsResult"`
Owner Owner
Buckets []Bucket `xml:"Buckets",innerxml`
}
type Bucket struct {
Name string
CreationDate string
}
type Content struct {