Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFolderUpload means that one or more file uploads failed when uploading // a folder. ErrFolderUpload = errors.New("text string") )
Functions ¶
This section is empty.
Types ¶
type UploadResult ¶
UploadResult represents the result of uploading a single file
type UploadResults ¶
type UploadResults []*UploadResult
UploadResults represents the result of uploading multiple files
func (UploadResults) Errors ¶
func (results UploadResults) Errors() []error
Errors returns a slice of all errors encountered when uploading a folder
func (UploadResults) HasErrors ¶
func (results UploadResults) HasErrors() bool
HasErrors returns true if any upload results contained errors
type Uploader ¶
type Uploader interface { UploadFiles(files []string, basePath, bucket, keyPrefix string) (UploadResults, error) UploadFile(file, bucket, key string) *UploadResult }
Uploader describes an interface for uploading files and folders to S3
Click to show internal directories.
Click to hide internal directories.