Implement GetBucketACL - fixes #893
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user