Versions in this module Expand all Collapse all v0 v0.1.0 Sep 28, 2015 Changes in this version + var BuiltinDrivers = map[string]Factory + func TaskEnvironmentVariables(ctx *ExecContext, task *structs.Task) environment.TaskEnvironment + type DockerDriver struct + func (d *DockerDriver) Fingerprint(cfg *config.Config, node *structs.Node) (bool, error) + func (d *DockerDriver) Open(ctx *ExecContext, handleID string) (DriverHandle, error) + func (d *DockerDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle, error) + type Driver interface + Open func(ctx *ExecContext, handleID string) (DriverHandle, error) + Start func(ctx *ExecContext, task *structs.Task) (DriverHandle, error) + func NewDockerDriver(ctx *DriverContext) Driver + func NewDriver(name string, ctx *DriverContext) (Driver, error) + func NewExecDriver(ctx *DriverContext) Driver + func NewJavaDriver(ctx *DriverContext) Driver + func NewQemuDriver(ctx *DriverContext) Driver + type DriverContext struct + func NewDriverContext(taskName string, config *config.Config, node *structs.Node, logger *log.Logger) *DriverContext + type DriverHandle interface + ID func() string + Kill func() error + Update func(task *structs.Task) error + WaitCh func() chan error + type ExecContext struct + AllocDir *allocdir.AllocDir + func NewExecContext(alloc *allocdir.AllocDir) *ExecContext + type ExecDriver struct + func (d *ExecDriver) Fingerprint(cfg *config.Config, node *structs.Node) (bool, error) + func (d *ExecDriver) Open(ctx *ExecContext, handleID string) (DriverHandle, error) + func (d *ExecDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle, error) + type Factory func(*DriverContext) Driver + type JavaDriver struct + func (d *JavaDriver) Fingerprint(cfg *config.Config, node *structs.Node) (bool, error) + func (d *JavaDriver) Open(ctx *ExecContext, handleID string) (DriverHandle, error) + func (d *JavaDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle, error) + type QemuDriver struct + func (d *QemuDriver) Fingerprint(cfg *config.Config, node *structs.Node) (bool, error) + func (d *QemuDriver) Open(ctx *ExecContext, handleID string) (DriverHandle, error) + func (d *QemuDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle, error)