github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/drivers/shared/executor/executor_basic.go (about)

     1  // +build !linux
     2  
     3  package executor
     4  
     5  import (
     6  	hclog "github.com/hashicorp/go-hclog"
     7  	"github.com/hashicorp/nomad/plugins/drivers"
     8  )
     9  
    10  func NewExecutorWithIsolation(logger hclog.Logger) Executor {
    11  	logger = logger.Named("executor")
    12  	logger.Error("isolation executor is not supported on this platform, using default")
    13  	return NewExecutor(logger)
    14  }
    15  
    16  func (e *UniversalExecutor) configureResourceContainer(_ int) error { return nil }
    17  
    18  func (e *UniversalExecutor) runAs(_ string) 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  }