mirror of
https://github.com/OJ/gobuster.git
synced 2024-12-18 09:54:10 +01:00
0a0cab949f
* retry on timeout * Google Cloud Bucket enumeration * colors in output * goreleaser * fix nil reference errors
26 lines
684 B
Go
26 lines
684 B
Go
package gobustergcs
|
|
|
|
// GCSError represents a returned error from GCS
|
|
type GCSError struct {
|
|
Error struct {
|
|
Code int `json:"code"`
|
|
Message string `json:"message"`
|
|
Errors []struct {
|
|
Message string `json:"message"`
|
|
Reason string `json:"reason"`
|
|
LocationType string `json:"locationType"`
|
|
Location string `json:"location"`
|
|
} `json:"errors"`
|
|
} `json:"error"`
|
|
}
|
|
|
|
// GCSListing contains only a subset of returned properties
|
|
type GCSListing struct {
|
|
IsTruncated string `json:"nextPageToken"`
|
|
Items []struct {
|
|
Name string `json:"name"`
|
|
LastModified string `json:"updated"`
|
|
Size string `json:"size"`
|
|
} `json:"items"`
|
|
}
|