Help us shape the future of Go! Take the 2026 Go Developer Survey

internal

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2025 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Discover

func Discover(opts *types.WithOption) (io.ReadCloser, error)

Discover returns an io.Reader for an opened PCIIDS database file or gzipped database file. It examines the supplied context/options and determines where to find a PCIIDS database file, from a cached location, a supplied path override, one of a set of well-known filesystem locations (on Linux) or even fetching the canonical PCIIDS database file from the network (as a last resort and only when network fetching has been enabled with the PCIDB_ENABLE_NETWORK_FETCH=1 environment variable)

func FromReader

func FromReader(
	f io.ReadCloser,
) *types.DB

FromReader reads the supplied io.ReadCloser representing a PCIIDS database file or gzipped database file and returns a populated pcidb.DB with parsed PCI product, vendor and class information.

func MergeOptions

func MergeOptions(opts ...*types.WithOption) *types.WithOption

Types

This section is empty.

Jump to

Keyboard shortcuts

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