Documentation
¶
Index ¶
- func GetURLsFromJSON(body []byte) ([]string, error)
- func IsM3U8(resp *http.Response) bool
- func IsS3(resp *http.Response) bool
- func JSON(resp *http.Response) (URLs []*url.URL, err error)
- func M3U8(resp *http.Response) (URLs []*url.URL, err error)
- func S3(resp *http.Response) ([]*url.URL, error)
- func XML(resp *http.Response, strict bool) (URLs []*url.URL, sitemap bool, err error)
- type CommonPrefix
- type S3ListBucketResult
- type S3Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetURLsFromJSON ¶
Types ¶
type CommonPrefix ¶ added in v1.0.79
type CommonPrefix struct {
Prefix string `xml:"Prefix"`
}
type S3ListBucketResult ¶ added in v1.0.79
type S3ListBucketResult struct { XMLName xml.Name `xml:"ListBucketResult"` Name string `xml:"Name"` Prefix string `xml:"Prefix"` Marker string `xml:"Marker"` Contents []S3Object `xml:"Contents"` CommonPrefixes []CommonPrefix `xml:"CommonPrefixes"` IsTruncated bool `xml:"IsTruncated"` NextContinuationToken string `xml:"NextContinuationToken"` }
S3ListBucketResult represents the XML structure of an S3 bucket listing
func S3ProcessResponse ¶ added in v1.0.79
func S3ProcessResponse(resp *http.Response) (*S3ListBucketResult, error)
S3ProcessResponse parses an HTTP response into an S3ListBucketResult
Click to show internal directories.
Click to hide internal directories.