package
2.1.0+incompatible
Repository: https://github.com/intel/sriov-network-device-plugin.git
Documentation: pkg.go.dev

# Functions

GetPciAddrFromVFID returns PCI address for VF ID.
GetSriovVFcapacity returns SRIOV VF capacity.
GetUIODeviceFile returns a vfio device files for vfio-pci bound PCI device's PCI address.
GetVFconfigured returns number of VF configured for a PF.
GetVFIODeviceFile returns a vfio device files for vfio-pci bound PCI device's PCI address.
GetVFList returns a List containing PCI addr for all VF discovered in a given PF.
IsNetlinkStatusUp returns 'false' if 'operstate' is not "up" for a Linux network device.
SriovConfigured returns true if sriov_numvfs reads > 0 else false.
ValidPciAddr validates PciAddr given as string with host system.
ValidResourceName returns true if it contains permitted characters otherwise false.

# Structs

FakeFilesystem allows to setup isolated fake files structure used for the tests.