package
0.1.3
Repository: https://github.com/liquidata-inc/nvdtools.git
Documentation: pkg.go.dev

# Packages

Package nvdcommon provides a common interface for NVD JSON and XML feeds.
Package nvdjson provides a parser for the NVD JSON feed format.
Package nvdxml provides a parser for the NVD XML feed format.

# Functions

LoadFeed calls loadFunc for each file in paths and returns the combined outputs in a Dictionary.
LoadJSONDictionary parses dictionary from multiple NVD vulenrability feed JSON files.
LoadXMLDictionary parses dictionary from multiple NVD vulenrability feed XML files.
Match matches list of software in inventory to a number of rules; returns the CPE names that matched and the boolean result of the match.
NewCache creates new Cache instance with dictionary dict.
NewIndex creates new Index from a slice of CVE entries.
ParseJSON loads CVE feed from JSON.
ParseXML loads CVE feed from XML.

# Structs

Cache caches CVEs for known CPEs.
MatchResult stores CVE and a slice of CPEs that matched it.

# Type aliases

CVEItem is an interface that provides access to CVE data from vulnerability feed type CVEItem interface { CVE() string Configuration() []LogicalTest }.
Dictionary is a slice of entries.
Index maps the CPEs to the entries in the NVD feed they mentioned in.
LogicalTest describes logical test performed during matching type LogicalTest interface { LogicalOperator() string // "and", "or", "eq" NegateIfNeeded(bool) bool InnerTests() []LogicalTest MatchPlatform(platform *wfn.Attributes, requireVersion bool) bool CPEs() []*wfn.Attributes }.