Versions in this module Expand all Collapse all v0 v0.2.0 Nov 19, 2015 Changes in this version + func SetCommand(e Executor, name string, args []string) + type BasicExecutor struct + func (e *BasicExecutor) Command() *exec.Cmd + func (e *BasicExecutor) ConfigureTaskDir(taskName string, alloc *allocdir.AllocDir) error + func (e *BasicExecutor) ForceStop() error + func (e *BasicExecutor) ID() (string, error) + func (e *BasicExecutor) Limit(resources *structs.Resources) error + func (e *BasicExecutor) Open(id string) error + func (e *BasicExecutor) Shutdown() error + func (e *BasicExecutor) Start() error + func (e *BasicExecutor) Wait() *cstructs.WaitResult + type ExecLinuxID struct — linux/amd64 + Groups *cgroupConfig.Cgroup + Spawn *spawn.Spawner + TaskDir string + type Executor interface + Command func() *exec.Cmd + ConfigureTaskDir func(taskName string, alloc *allocdir.AllocDir) error + ForceStop func() error + ID func() (string, error) + Limit func(*structs.Resources) error + Open func(string) error + Shutdown func() error + Start func() error + Wait func() *cstructs.WaitResult + func Command(name string, args ...string) Executor + func NewBasicExecutor() Executor + func NewExecutor() Executor + func NewLinuxExecutor() Executor + func OpenId(id string) (Executor, error) + type LinuxExecutor struct — linux/amd64 + func (e *LinuxExecutor) Command() *exec.Cmd + func (e *LinuxExecutor) ConfigureTaskDir(taskName string, alloc *allocdir.AllocDir) error + func (e *LinuxExecutor) ForceStop() error + func (e *LinuxExecutor) ID() (string, error) + func (e *LinuxExecutor) Limit(resources *structs.Resources) error + func (e *LinuxExecutor) Open(id string) error + func (e *LinuxExecutor) Shutdown() error + func (e *LinuxExecutor) Start() error + func (e *LinuxExecutor) Wait() *cstructs.WaitResult + type UniversalExecutor struct — darwin/amd64, js/wasm, windows/amd64