jaypipes / pcidb

Small golang library for querying PCI database (pciids) information
Apache License 2.0
33 stars 15 forks source link

Allow disabling network fetch of pci-ids DB file #22

Closed jaypipes closed 5 years ago

jaypipes commented 5 years ago

In secure environments or environments with no network connectivity, we want to be able to disable the default behaviour of fetching a pci-ids DB file from the network.

This patch adds a new pcidb.WithDisableNetworkFetch() function and corresponding PCIDB_DISABLE_NETWORK_FETCH environs variable to do exactly that.

Closes Issue #19