uploaders

package
v0.0.0-...-4cfa141 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FTPUpload

func FTPUpload(logger *logging.Logger, dbInstance db.Storage, jobID string) error

FTPUpload uploads the file using FTP. Job Destination should be in format: ftp://login:password@host/path

func S3Upload

func S3Upload(logger *logging.Logger, dbInstance db.Storage, jobID string) error

S3Upload sends the file to S3 bucket. Job Destination should be in format: http://AWSKEY:AWSSECRET@BUCKET.s3.amazonaws.com/OBJECT

Types

type UploadFunc

type UploadFunc func(logger *logging.Logger, dbInstance db.Storage, jobID string) error

UploadFunc is a function type for the multiple possible ways to upload the source file

func GetUploadFunc

func GetUploadFunc(jobDestination string) UploadFunc

GetUploadFunc returns the upload function based on the job source.

Jump to

Keyboard shortcuts

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