Documentation ¶
Overview ¶
Package nvdcommon provides a common interface for NVD JSON and XML feeds.
Index ¶
Constants ¶
View Source
const TimeLayout = "2006-01-02T15:04Z"
TimeLayout is the layout of NVD CVE timestamps.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CVEItem ¶
type CVEItem interface { CVEID() string Config() []LogicalTest ProblemTypes() []string CVSS20base() float64 CVSS30base() float64 }
CVEItem is an interface that provides access to CVE data from vulnerability feed
func MergeCVEItems ¶
MergeCVEItems combines two CVEItems: resulted CVEItem inherits all mutually exclusive methods (e.g. CVEID()) from CVEItem x; but Configuration() call returns rule equal to x.LogicalTests AND NOT y.LogicalTests
type LogicalTest ¶
type LogicalTest interface { LogicalOperator() string // "and", "or", "eq" NegateIfNeeded(bool) bool InnerTests() []LogicalTest MatchPlatform(platform *wfn.Attributes, requireVersion bool) bool CPEs() []*wfn.Attributes }
LogicalTest describes logical test performed during matching
Click to show internal directories.
Click to hide internal directories.