1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
package gobusters3
import "encoding/xml"
// AWSError represents a returned error from AWS
type AWSError struct {
XMLName xml.Name `xml:"Error"`
Code string `xml:"Code"`
Message string `xml:"Message"`
RequestID string `xml:"RequestId"`
HostID string `xml:"HostId"`
}
// AWSListing contains only a subset of returned properties
type AWSListing struct {
XMLName xml.Name `xml:"ListBucketResult"`
Name string `xml:"Name"`
IsTruncated string `xml:"IsTruncated"`
Contents []struct {
Key string `xml:"Key"`
LastModified string `xml:"LastModified"`
Size int `xml:"Size"`
} `xml:"Contents"`
}
|