Documentation ¶
Overview ¶
package s3wrapper contains functions for downloading and uploading files to/from S3
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFile ¶
GetFile downloads the file specified by s3://bucket/key and writes it to disk as dstFile
func RemoveFile ¶
RemoveFile deletes from S3 the file specified by s3://bucket/key
Types ¶
type S3FileData ¶
type S3FileData struct { Name string // name of the S3 file Size int64 // size of S3 file LastModified time.Time // last modified time Etag string // a unique identifier }
S3FileData contains metadata used when invoking ListFiles(bucket)
func ListFiles ¶
func ListFiles(bucket string) ([]S3FileData, error)
ListFiles lists files within an S3 bucket
Click to show internal directories.
Click to hide internal directories.