Documentation ¶
Index ¶
- Constants
- type NetDevice
- type NetDeviceProvider
- func (p *NetDeviceProvider) Configure(c *network.ResourceConfig) error
- func (p *NetDeviceProvider) Discover(c *network.ResourceConfig) error
- func (p *NetDeviceProvider) GetDevices() []*NetDevice
- func (p *NetDeviceProvider) GetVFDevices(dev *NetDevice) []*NetDevice
- func (p *NetDeviceProvider) Scan() error
- func (p *NetDeviceProvider) Unconfigure(c *network.ResourceConfig) error
Constants ¶
View Source
const ( DeviceTypeVfioPci = "vfio-pci" DeviceTypeNetDevice = "netdevice" )
View Source
const PCI_CLASS_NET = 0x02
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetDeviceProvider ¶
type NetDeviceProvider struct {
// contains filtered or unexported fields
}
func NewNetDeviceProvider ¶
func NewNetDeviceProvider() *NetDeviceProvider
NewNetDeviceProvider DeviceProvider implementation from netDeviceProvider instance
func (*NetDeviceProvider) Configure ¶
func (p *NetDeviceProvider) Configure(c *network.ResourceConfig) error
func (*NetDeviceProvider) Discover ¶
func (p *NetDeviceProvider) Discover(c *network.ResourceConfig) error
func (*NetDeviceProvider) GetDevices ¶
func (p *NetDeviceProvider) GetDevices() []*NetDevice
func (*NetDeviceProvider) GetVFDevices ¶
func (p *NetDeviceProvider) GetVFDevices(dev *NetDevice) []*NetDevice
func (*NetDeviceProvider) Scan ¶
func (p *NetDeviceProvider) Scan() error
func (*NetDeviceProvider) Unconfigure ¶
func (p *NetDeviceProvider) Unconfigure(c *network.ResourceConfig) error
Click to show internal directories.
Click to hide internal directories.