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.