Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SysBusPci = "/sys/bus/pci/devices"
)
Functions ¶
func GetNetNames ¶ added in v1.1.0
GetNetNames returns host net interface names as string for a PCI device from its pci address
func GetPCIDevDriver ¶ added in v1.1.0
GetPCIDevDriver returns current driver attached to a pci device from its pci address
func GetPciAddress ¶
GetPciAddress return the pci address for given interface name
func GetRdmaDevices ¶
GetRdmaDevices return rdma devices for given device pci address
func IsEmptySelector ¶ added in v1.1.0
IsEmptySelector returns if the selector is empty
Types ¶
type FakeFilesystem ¶
type FakeFilesystem struct { RootDir string Dirs []string Files map[string][]byte Symlinks map[string]string }
FakeFilesystem allows to setup isolated fake files structure used for the tests.
func (*FakeFilesystem) Use ¶
func (fs *FakeFilesystem) Use() func()
Use function creates entire files structure and returns a function to tear it down. Example usage: defer fs.Use()()
Click to show internal directories.
Click to hide internal directories.