command

package
v0.0.0-...-c0e9cb7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(session *session.Session, bucket, key, path string)

Download using to download file from S3 by bucket and key

func DownloadFile

func DownloadFile(url, path string)

DownloadFile using result of GetPresignedURL for downloading file by pre-signed URL

func GetPresignedURL

func GetPresignedURL(session *session.Session, bucket, key string) (string, error)

GetPresignedURL generate pre-signed URL, which can be used for download file

func UploadDirectory

func UploadDirectory(session *session.Session, bucket, key, dir string, keep bool)

UploadDirectory will upload directory and all it's content while keeping it structure

func UploadFile

func UploadFile(session *session.Session, bucket, key string, file *os.File)

UploadFile will upload file to specific S3 bucket

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL