upload

package
v0.0.0-...-c8f6fff Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2014 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePathPrefix

func GeneratePathPrefix(fileInfo os.FileInfo) string

Types

type S3Uploader

type S3Uploader struct {
	// contains filtered or unexported fields
}

func NewS3Uploader

func NewS3Uploader(bucket, contentType string) *S3Uploader

func (*S3Uploader) Upload

func (self *S3Uploader) Upload(filePath string)

this method will upload to s3 based on the key strategy

type UploadCommand

type UploadCommand struct {
	*commands.Command
	// contains filtered or unexported fields
}

this upload command is the base for all types of uploading to a destination

func NewUploadCommand

func NewUploadCommand(monitorDir conf.MonitorDir) *UploadCommand

the only constructor for generating a upload command

func (*UploadCommand) Run

func (self *UploadCommand) Run() ([]string, error)

the run command for the stand upload command

type Uploader

type Uploader interface {
	Upload(filePath string)
}

Jump to

Keyboard shortcuts

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