Documentation ¶
Overview ¶
Package nvd implements a vulnerability metadata appender using the NIST NVD database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SeverityFromCVSS ¶
SeverityFromCVSS converts the CVSS Score (0.0 - 10.0) into a database.Severity following the qualitative rating scale available in the CVSS v3.0 specification (https://www.first.org/cvss/specification-document), Table 14.
The Negligible level is set for CVSS scores between [0, 1), replacing the specified None level, originally used for a score of 0.
Types ¶
type NVDMetadata ¶
type NVDMetadata struct {
CVSSv2 NVDmetadataCVSSv2
}
type NVDmetadataCVSSv2 ¶
type NestedReadCloser ¶
type NestedReadCloser struct { io.Reader NestedReadClosers []io.ReadCloser }
NestedReadCloser wraps an io.Reader and implements io.ReadCloser by closing every embed io.ReadCloser. It allows chaining io.ReadCloser together and still keep the ability to close them all in a simple manner.
func (*NestedReadCloser) Close ¶
func (nrc *NestedReadCloser) Close()
Close closes the gzip.Reader and the underlying io.ReadCloser.