Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePathPrefix ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.