1// +build !linux 2 3package executor 4 5import ( 6 "os/exec" 7 8 hclog "github.com/hashicorp/go-hclog" 9 "github.com/hashicorp/nomad/plugins/drivers" 10) 11 12func NewExecutorWithIsolation(logger hclog.Logger) Executor { 13 logger = logger.Named("executor") 14 logger.Error("isolation executor is not supported on this platform, using default") 15 return NewExecutor(logger) 16} 17 18func (e *UniversalExecutor) configureResourceContainer(_ int) error { return nil } 19 20func (e *UniversalExecutor) getAllPids() (map[int]*nomadPid, error) { 21 return getAllPidsByScanning() 22} 23 24func (e *UniversalExecutor) start(command *ExecCommand) error { 25 return e.childCmd.Start() 26} 27 28func withNetworkIsolation(f func() error, _ *drivers.NetworkIsolationSpec) error { 29 return f() 30} 31 32func setCmdUser(*exec.Cmd, string) error { return nil } 33