File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ linter
8000
s:
28
28
- importas
29
29
- ineffassign
30
30
- intrange
31
+ - musttag
31
32
- misspell
32
33
- nakedret
33
34
- nilnesserr
Original file line number Diff line number Diff line change @@ -20,10 +20,18 @@ import (
20
20
21
21
const ErrPrefix = "aws-error"
22
22
23
+ // See https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
24
+ // e.g. XML:
25
+ // <Error>
26
+ // <Code>NoSuchKey</Code>
27
+ // <Message>The resource you requested does not exist</Message>
28
+ // <Resource>/mybucket/myfoto.jpg</Resource>
29
+ // <RequestId>4442587FB7D0A2F9</RequestId>
30
+ // </Error>
23
31
type Error struct {
24
- Code string
25
- Message string
26
- Resource string
32
+ Code string `xml:"Code"`
33
+ Message string `xml:"Message"`
34
+ Resource string `xml:"Resource"`
27
35
RequestID string `xml:"RequestId"`
28
36
}
29
37
Original file line number Diff line number Diff line change 96
96
Bucket string `xml:"Bucket"`
97
97
UploadIDMarker string `xml:"UploadIdMarker"`
98
98
Uploads []UploadInfoResult `xml:"Upload"`
99
- MaxUploads int
100
- IsTruncated bool
99
+ MaxUploads int `xml:"MaxUploads"`
100
+ IsTruncated bool `xml:"IsTruncated"`
101
101
}
102
102
103
103
// Deleted result: list of deleted objects and errors
You can’t perform that action at this time.
0 commit comments