Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type S3URL ¶
S3URL holds interesting pieces after parsing a s3 URL
func ParseAmazonS3URL ¶
ParseAmazonS3URL parses an HTTP/HTTPS URL for an S3 resource and returns an S3URL object.
S3 URLs come in two flavors: virtual hosted-style URLs and path-style URLs. Virtual hosted-style URLs have the bucket name as the first component of the hostname, e.g.
https://mybucket.s3.us-east-1.amazonaws.com/a/b/c
Path-style URLs have the bucket name as the first component of the path, e.g.
https://s3.us-east-1.amazonaws.com/mybucket/a/b/c
Click to show internal directories.
Click to hide internal directories.