cvrf

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	VulnListDir string
	URL         string
	AppFs       afero.Fs
	Retry       int
}

func NewConfig

func NewConfig() Config

func (Config) Update

func (c Config) Update() error

type Cvrf

type Cvrf struct {
	Title           string           `xml:"DocumentTitle"`
	Tracking        DocumentTracking `xml:"DocumentTracking"`
	Notes           []DocumentNote   `xml:"DocumentNotes>Note"`
	ProductTree     ProductTree      `xml:"ProductTree"`
	References      []Reference      `xml:"DocumentReferences>Reference"`
	Vulnerabilities []Vulnerability  `xml:"Vulnerability"`
}

type DocumentNote

type DocumentNote struct {
	Text  string `xml:",chardata"`
	Title string `xml:"Title,attr"`
	Type  string `xml:"Type,attr"`
}

type DocumentTracking

type DocumentTracking struct {
	ID                 string     `xml:"Identification>ID"`
	Status             string     `xml:"Status"`
	Version            string     `xml:"Version"`
	InitialReleaseDate string     `xml:"InitialReleaseDate"`
	CurrentReleaseDate string     `xml:"CurrentReleaseDate"`
	RevisionHistory    []Revision `xml:"RevisionHistory>Revision"`
}

type ProductTree

type ProductTree struct {
	Relationships []Relationship `xml:"Relationship"`
}

type Reference

type Reference struct {
	URL         string `xml:"URL"`
	Description string `xml:"Description"`
}

type Relationship

type Relationship struct {
	ProductReference          string `xml:"ProductReference,attr"`
	RelatesToProductReference string `xml:"RelatesToProductReference,attr"`
	RelationType              string `xml:"RelationType,attr"`
}

type Revision

type Revision struct {
	Number      string `xml:"Number"`
	Date        string `xml:"Date"`
	Description string `xml:"Description"`
}

type ScoreSet

type ScoreSet struct {
	BaseScore string `xml:"BaseScore" json:",omitempty"`
	Vector    string `xml:"Vector" json:",omitempty"`
}

type Status

type Status struct {
	Type      string   `xml:"Type,attr"`
	ProductID []string `xml:"ProductID"`
}

type Threat

type Threat struct {
	Type     string `xml:"Type,attr"`
	Severity string `xml:"Description"`
}

type Vulnerability

type Vulnerability struct {
	CVE             string      `xml:"CVE"`
	Description     string      `xml:"Notes>Note"`
	Threats         []Threat    `xml:"Threats>Threat"`
	References      []Reference `xml:"References>Reference"`
	ProductStatuses []Status    `xml:"ProductStatuses>Status"`
	CVSSScoreSets   ScoreSet    `xml:"CVSSScoreSets>ScoreSet" json:",omitempty"`
}

Jump to

Keyboard shortcuts

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