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