Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetObject ¶
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 ¶
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 ¶
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 ¶
Types ¶
type Client ¶ added in v0.0.12
Client This strut provides a clean interface to making a requester pays type of request to the AWS API. Instead of having to construct the AWS configuration, client, session, and ObjectInput, one can simply provide the most basic fields and request an ObjectRange.
func NewClient ¶ added in v0.0.12
NewClient This function should be used to create a Client to avoid missing required fields.
func (Client) GetObjectRange ¶ added in v0.0.12
func (c Client) GetObjectRange(byteRange string) (io.ReadCloser, error)
GetObjectRange Fetches the range of bytes from the file located at the destination on AWS derived from the Client's Bucket and Key fields.