Documentation ¶
Index ¶
- Variables
- func GetObject(url string) (*http.Response, error)
- func GetObjectRange(url, byteRange string) (*http.Response, error)
- func HeadObject(url string) (*http.Response, error)
- func Int64Value(i *int64) int64
- func IsLocation(loc string) bool
- func ReadNgcFile(path string) ([]byte, error)
- func ResolveRegion() (string, error)
- func String(s string) *string
- type CloudDirectory
Constants ¶
This section is empty.
Variables ¶
var Directory = CloudDirectory{ "gs": map[string]bool{ "US": true, "us-east1-b": true, "us-east1-c": true, "us-east1-d": true, "us-east4-a": true, "us-east4-b": true, "us-east4-c": true, "us-central1-a": true, "us-central1-b": true, "us-central1-c": true, "us-central1-f": true, "us-west1-a": true, "us-west1-b": true, "us-west1-c": true, }, "s3": map[string]bool{ "us-east-1": true, }, }
var IncorrectLocationMessage = `` /* 427-byte string literal not displayed */
Functions ¶
func GetObject ¶
Makes an http GET request using the URL provided. URL should either point to a public obejct or be a signed URL giving the user GET permissions. url: full url path to the object on AWS
func GetObjectRange ¶
Makes a ranged http GET request using the URL and byteRange provided. URL should either point to a public obejct or be a signed URL giving the user GET permissions. url: full url path to the object on AWS byteRange: the desired range of bytes of a file Should resemble the format for an http header Range. Example: "bytes="0-1000" Example: "bytes="1000-"
func HeadObject ¶
Makes an http HEAD request using the URL provided. URL should either point to a public obejct or be a signed URL giving the user GET permissions.
func Int64Value ¶
func IsLocation ¶ added in v0.0.2
func ReadNgcFile ¶ added in v0.0.1
Expects the url to point to a valid ngc file. Uses the aws-sdk to read the file, assuming that this file will not be publicly accessible and will need to utilize aws credentials on the machine.