upload

package
v0.0.0-...-8779331 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UploadFile

func UploadFile(svc *s3.S3, uploadObject UploadObject, prefix string, dryRun bool) (string, error)

UploadFile returns the name of the file that was uploaded to S3 If manipulate name is true then the file the prefix will be applied and timestamp appended to the S3 file name

Types

type UploadObject

type UploadObject struct {
	PathToFile string
	S3FileName string
	Bucket     string
	BucketDir  string
	Manipulate bool
	Timeout    time.Duration
	NumWorkers int
	PartSize   int
}

UploadObject represents an object to be uploaded to S3

Jump to

Keyboard shortcuts

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