upload

package
v0.0.0-...-e5dfa8b Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package upload defines a service for uploading one or more file paths to AWS S3. Uploading each individual file should happen in a non-blocking manner. The work of actually calling to the AWS SDK for S3 is delegated to the `s3` package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Uploader

type Uploader interface {
	UploadFilesFromPathToBucket(filePaths []string) error
}

Uploader uploads files from one or more local paths to AWS S3

func NewUploader

func NewUploader(
	shouldDeleteFileAfterUpload bool,
	shouldWatchPaths bool,
	numConcurrentUploads int,
	s3Uploader s3.S3Uploader,
	keyTemplate tpl.KeyTemplate,
	logger *logrus.Logger,
) Uploader

NewUploader creates a new service to upload files to S3

Jump to

Keyboard shortcuts

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