devices

package
v0.0.0-...-bea6b7f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 NetDevice

type NetDevice struct {
	Name       string
	MACAddress string
	PCIAddress string
	Vendor     string
	Driver     string
	// contains filtered or unexported fields
}

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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL