nvd

package
v2.0.7+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

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

func SeverityFromCVSS(score float64) database.Severity

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 NVDmetadataCVSSv2 struct {
	Vectors string
	Score   float64
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL