github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/drivers/shared/executor/executor_basic.go (about) 1 // +build !linux 2 3 package executor 4 5 import ( 6 "os/exec" 7 8 hclog "github.com/hashicorp/go-hclog" 9 "github.com/hashicorp/nomad/plugins/drivers" 10 ) 11 12 func 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 18 func (e *UniversalExecutor) configureResourceContainer(_ int) error { return nil } 19 20 func (e *UniversalExecutor) getAllPids() (map[int]*nomadPid, error) { 21 return getAllPidsByScanning() 22 } 23 24 func (e *UniversalExecutor) start(command *ExecCommand) error { 25 return e.childCmd.Start() 26 } 27 28 func withNetworkIsolation(f func() error, _ *drivers.NetworkIsolationSpec) error { 29 return f() 30 } 31 32 func setCmdUser(*exec.Cmd, string) error { return nil }