ghw

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GHWLib

type GHWLib interface {
	// PCI returns a pointer to an Info that provide methods to access info about devices
	PCI() (Info, error)
}

func New

func New() GHWLib

type Info

type Info interface {
	// ListDevices returns a list of pointers to Device structs present on the
	// host system
	ListDevices() []*ghw.PCIDevice
}

Info interface provide methods to access info about devices

Directories

Path Synopsis
Package mock_ghw is a generated GoMock package.
Package mock_ghw is a generated GoMock package.

Jump to

Keyboard shortcuts

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