Version: v0.1.2 Latest Latest

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 12 Imported by: 0




This section is empty.


This section is empty.


func DownloadFile

func DownloadFile(ctx context.Context, s3URL, fileURL string, cfg *Config) error

DownloadFile downloads from s3 to file

func DownloadWriter

func DownloadWriter(ctx context.Context, s3URL string, writer io.WriterAt, cfg *Config) error

DownloadWriter downloads from s3 to writer

func Exists

func Exists(ctx context.Context, s3Url string, cfg *Config) (exits bool, err error)

Exists checks s3 exist or not

func GetSize

func GetSize(ctx context.Context, s3Url string, cfg *Config) (size int64, err error)

GetSize gets file size on s3

func UploadFile

func UploadFile(ctx context.Context, fileURL, s3URL, contentType, contentEncoding string, cfg *Config) error

UploadFile from file to s3

func UploadReader

func UploadReader(ctx context.Context, reader io.Reader, s3URL, contentType, contentEncoding string, cfg *Config) error

UploadReader upload reader to s3


type Config

type Config struct {
	Region, AccessKeyID, SecretAccessKey, SessionToken string

Config ..

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL