Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerJob ¶
type DockerJob struct {
UserData interface{}
ImageID string
Registry string
Repository string
Tag string
}
DockerJob is a docker container upload job
func (*DockerJob) GetUserData ¶
func (d *DockerJob) GetUserData() interface{}
GetUserData returns the UserData
func (*DockerJob) SetUserData ¶
func (d *DockerJob) SetUserData(u interface{})
SetUserData sets the UserData
type FileCopyJob ¶
FileCopyJob is an upload jobs for files to S3 repositories
func (*FileCopyJob) GetUserData ¶
func (f *FileCopyJob) GetUserData() interface{}
GetUserData returns the UserData
func (*FileCopyJob) SetUserData ¶
func (f *FileCopyJob) SetUserData(u interface{})
SetUserData sets the UserData
func (*FileCopyJob) String ¶
func (f *FileCopyJob) String() string
String returns the string representation
type Job ¶
type Job interface {
Type() JobType
GetUserData() interface{}
SetUserData(interface{})
String() string
}
Job is the interface for upload jobs
type JobType ¶
type JobType int
JobType describes the type of a job
const ( // JobS3 is the type for S3 file upload jobs JobS3 JobType // JobDocker is the type for Docker container uploader jobs JobDocker // JobFileCopy is a job for copying files from one place to another JobFileCopy )
type Manager ¶
type Manager interface {
Add(Job)
Start()
Stop()
}
Manager is an interface for upload managers
type S3Job ¶
S3Job is an upload jobs for files to S3 repositories
func (*S3Job) GetUserData ¶
func (s *S3Job) GetUserData() interface{}
GetUserData returns the UserData
func (*S3Job) SetUserData ¶
func (s *S3Job) SetUserData(u interface{})
SetUserData sets the UserData
Click to show internal directories.
Click to hide internal directories.