Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Worker ¶
type Worker struct { CommandParameters []string DockerClient *client.Client DockerContext context.Context DockerHost string EntryPoint string ExitStatus chan int64 ExecutionTimeout time.Duration ImageName string }
Worker represents a container executor. It has a lifetime of a single command execution.
func NewWorker ¶
func NewWorker(image string, tag string, entryPoint string, commandParams ...string) (*Worker, error)
NewWorker will build and returns a new Worker for a single command execution.
Click to show internal directories.
Click to hide internal directories.