ids

package
v1.3.1-0...-b0583a5 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PCIID

type PCIID struct {
	VendorID   string `json:"vendorID"`
	DeviceID   string `json:"deviceID"`
	VendorName string `json:"vendorName"`
	DeviceName string `json:"deviceName"`

	SubVendorID   string `json:"subVendorID"`
	SubDeviceID   string `json:"subDeviceID"`
	SubVendorName string `json:"subVendorName"`
	SubDeviceName string `json:"subDeviceName"`
}

PCIID struct.

func Parse

func Parse(rawIDs string) ([]PCIID, error)

Parse returns a list of all PCI IDs in a slice after parsing the PCI ID file.

func (*PCIID) JSON

func (p *PCIID) JSON() string

JSON representation of the struct.

func (*PCIID) String

func (p *PCIID) String() string

String representation of the struct.

Jump to

Keyboard shortcuts

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