Documentation ¶
Index ¶
- func GetVhostNetDeviceSpec() []*pluginapi.DeviceSpec
- func NewNadUtils() types.NadUtils
- func NewNetDeviceProvider(rf types.ResourceFactory) types.DeviceProvider
- func NewNetResourcePool(nadutils types.NadUtils, rc *types.ResourceConfig, ...) types.ResourcePool
- func NewPciNetDevice(dev *ghw.PCIDevice, rFactory types.ResourceFactory, rc *types.ResourceConfig) (types.PciNetDevice, error)
- func NewRdmaInfoProvider(rdmaSpec types.RdmaSpec) types.DeviceInfoProvider
- func NewRdmaSpec(pciAddrs string) types.RdmaSpec
- func NewVhostNetInfoProvider() types.DeviceInfoProvider
- func VhostNetDeviceExist() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVhostNetDeviceSpec ¶
func GetVhostNetDeviceSpec() []*pluginapi.DeviceSpec
GetVhostNetDeviceSpec returns an instance of DeviceSpec for vhost-net
func NewNetDeviceProvider ¶
func NewNetDeviceProvider(rf types.ResourceFactory) types.DeviceProvider
NewNetDeviceProvider DeviceProvider implementation from netDeviceProvider instance
func NewNetResourcePool ¶
func NewNetResourcePool(nadutils types.NadUtils, rc *types.ResourceConfig, apiDevices map[string]*pluginapi.Device, devicePool map[string]types.PciDevice) types.ResourcePool
NewNetResourcePool returns an instance of resourcePool
func NewPciNetDevice ¶
func NewPciNetDevice(dev *ghw.PCIDevice, rFactory types.ResourceFactory, rc *types.ResourceConfig) (types.PciNetDevice, error)
NewPciNetDevice returns an instance of PciNetDevice interface
func NewRdmaInfoProvider ¶
func NewRdmaInfoProvider(rdmaSpec types.RdmaSpec) types.DeviceInfoProvider
NewRdmaInfoProvider returns a new Rdma Information Provider
func NewRdmaSpec ¶
NewRdmaSpec returns the RdmaSpec
func NewVhostNetInfoProvider ¶
func NewVhostNetInfoProvider() types.DeviceInfoProvider
NewVhostNetInfoProvider returns a new Vhost Information Provider
func VhostNetDeviceExist ¶
func VhostNetDeviceExist() bool
VhostNetDeviceExist returns true if /dev/vhost-net exists
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.