github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/client/allocrunner/network_manager_nonlinux.go (about)

     1  //go:build !linux
     2  // +build !linux
     3  
     4  package allocrunner
     5  
     6  import (
     7  	hclog "github.com/hashicorp/go-hclog"
     8  	clientconfig "github.com/hashicorp/nomad/client/config"
     9  	"github.com/hashicorp/nomad/client/pluginmanager/drivermanager"
    10  	"github.com/hashicorp/nomad/nomad/structs"
    11  	"github.com/hashicorp/nomad/plugins/drivers"
    12  )
    13  
    14  // TODO: Support windows shared networking
    15  func newNetworkManager(alloc *structs.Allocation, driverManager drivermanager.Manager) (nm drivers.DriverNetworkManager, err error) {
    16  	return nil, nil
    17  }
    18  
    19  func newNetworkConfigurator(log hclog.Logger, alloc *structs.Allocation, config *clientconfig.Config) (NetworkConfigurator, error) {
    20  	return &hostNetworkConfigurator{}, nil
    21  }