Documentation ¶
Overview ¶
lib package contains core s3 functions for the cmdline executables - s3 location format parsers, basic file functions for removing, uploading, downloading and listing, etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFromS3 ¶
Download a file from an S3 location identified by "source", to a local file identified by "destination". Returns error if the source path is not in the proper format, if the source path is not readable with the current credentials, or if the destination is not writeable.
func CopyToS3 ¶
Upload a file to an S3 location identified by "destination", from a local file identified by "source". Returns an error if the source file is not readable, if the destination s3 path is not writable, or if the destination path is not in the right format.
func RemoveS3Path ¶
RemoveS3Path removes an object in an S3 location specified in "path". Returns an error if the "path" is not a valid s3 path, or if the service failed to remove the object
Types ¶
type S3path ¶
S3path is a struct representing the parts of the s3 path
func ParseS3Path ¶
ParseS3Path returns a struct of type S3path, from the string "path". Returns an error if the "path" is not a valid s3 path of the form "s3:bucket:/path/to/file"