1
1
mirror of https://github.com/OJ/gobuster.git synced 2025-09-23 06:37:40 +02:00
gobuster/gobusters3/types.go
2020-06-20 14:10:50 +02:00

25 lines
661 B
Go

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"`
}