Commit 5df5cc1 1 parent 30f920c commit 5df5cc1 Copy full SHA for 5df5cc1
File tree 7 files changed +11
-11
lines changed
7 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 92
92
93
93
// CORSConfiguration stores CORS configuration of a request.
94
94
CORSConfiguration struct {
95
- XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ CORSConfiguration" json:"-"`
95
+ XMLName xml.Name `xml:"CORSConfiguration" json:"-"`
96
96
CORSRules []CORSRule `xml:"CORSRule" json:"CORSRules"`
97
97
}
98
98
Original file line number Diff line number Diff line change 7
7
8
8
type (
9
9
ObjectLockConfiguration struct {
10
- XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ ObjectLockConfiguration" json:"-"`
10
+ XMLName xml.Name `xml:"ObjectLockConfiguration" json:"-"`
11
11
ObjectLockEnabled string `xml:"ObjectLockEnabled" json:"ObjectLockEnabled"`
12
12
Rule * ObjectLockRule `xml:"Rule" json:"Rule"`
13
13
}
@@ -23,12 +23,12 @@ type (
23
23
}
24
24
25
25
LegalHold struct {
26
- XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ LegalHold" json:"-"`
26
+ XMLName xml.Name `xml:"LegalHold" json:"-"`
27
27
Status string `xml:"Status" json:"Status"`
28
28
}
29
29
30
30
Retention struct {
31
- XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ Retention" json:"-"`
31
+ XMLName xml.Name `xml:"Retention" json:"-"`
32
32
Mode string `xml:"Mode" json:"Mode"`
33
33
RetainUntilDate string `xml:"RetainUntilDate" json:"RetainUntilDate"`
34
34
}
Original file line number Diff line number Diff line change 76
76
}
77
77
78
78
CompleteMultipartUpload struct {
79
- XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ CompleteMultipartUpload"`
79
+ XMLName xml.Name `xml:"CompleteMultipartUpload"`
80
80
Parts []* layer.CompletedPart `xml:"Part"`
81
81
}
82
82
Original file line number Diff line number Diff line change 26
26
}
27
27
28
28
NotificationConfiguration struct {
29
- XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ NotificationConfiguation"`
29
+ XMLName xml.Name `xml:"NotificationConfiguation"`
30
30
NotificationConfiguration data.NotificationConfiguration
31
31
}
32
32
)
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ const (
177
177
)
178
178
179
179
type createBucketParams struct {
180
- XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ CreateBucketConfiguration" json:"-"`
180
+ XMLName xml.Name `xml:"CreateBucketConfiguration" json:"-"`
181
181
LocationConstraint string
182
182
}
183
183
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ type Bucket struct {
57
57
58
58
// AccessControlPolicy contains ACL.
59
59
type AccessControlPolicy struct {
60
- XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ AccessControlPolicy" json:"-"`
60
+ XMLName xml.Name `xml:"AccessControlPolicy" json:"-"`
61
61
Owner Owner
62
62
AccessControlList []* Grant `xml:"AccessControlList>Grant"`
63
63
}
@@ -251,14 +251,14 @@ type ListObjectsVersionsResponse struct {
251
251
252
252
// VersioningConfiguration contains VersioningConfiguration XML representation.
253
253
type VersioningConfiguration struct {
254
- XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ VersioningConfiguration"`
254
+ XMLName xml.Name `xml:"VersioningConfiguration"`
255
255
Status string `xml:"Status,omitempty"`
256
256
MfaDelete string `xml:"MfaDelete,omitempty"`
257
257
}
258
258
259
259
// Tagging contains tag set.
260
260
type Tagging struct {
261
- XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ Tagging"`
261
+ XMLName xml.Name `xml:"Tagging"`
262
262
TagSet []Tag `xml:"TagSet>Tag"`
263
263
}
264
264
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ func TestAccessControlPolicyXML(t *testing.T) {
14
14
// https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html
15
15
var policyTemplate = `
16
16
<?xml version="1.0" encoding="UTF-8"?>
17
- <AccessControlPolicy xmlns="http://s3.amazonaws.com/doc/2006-03-01/" >
17
+ <AccessControlPolicy>
18
18
<Owner>
19
19
<ID>%[1]s</ID>
20
20
<DisplayName>display-name</DisplayName>
You can’t perform that action at this time.
0 commit comments