Implement GetBucketACL - fixes #893

This commit is contained in:
Harshavardhana
2015-10-08 11:12:02 -07:00
parent bf901d3b9a
commit 11048708bb
8 changed files with 139 additions and 44 deletions

View File

@@ -23,6 +23,26 @@ const (
maxObjectList = 1000
)
// AccessControlPolicyResponse - format for get bucket acl response
type AccessControlPolicyResponse struct {
AccessControlList struct {
Grant []Grant
}
Owner Owner
}
// Grant container for grantee and permission
type Grant struct {
Grantee struct {
ID string
DisplayName string
EmailAddress string
Type string
URI string
}
Permission string
}
// ListObjectsResponse - format for list objects response
type ListObjectsResponse struct {
XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ ListBucketResult" json:"-"`
@@ -182,6 +202,7 @@ var notimplementedBucketResourceNames = map[string]bool{
"location": true,
"logging": true,
"notification": true,
"replication": true,
"tagging": true,
"versions": true,
"requestPayment": true,