nvd

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertNvdCpeDictionaryToModel

func ConvertNvdCpeDictionaryToModel(nvd List) (cpes []*models.CategorizedCpe, err error)

ConvertNvdCpeDictionaryToModel :

func FetchAndInsertCPE

func FetchAndInsertCPE(driver db.DB) (err error)

FetchAndInsertCPE : FetchAndInsertCPE

func FetchAndInsertCpeDictioanry

func FetchAndInsertCpeDictioanry(driver db.DB) (err error)

FetchAndInsertCpeDictioanry : FetchCPE

Types

type Cpe23Item

type Cpe23Item struct {
	Name string `xml:"name,attr"`
}

Cpe23Item : Cpe23Item

type Item

type Item struct {
	Name      string    `xml:"name,attr"`
	Cpe23Item Cpe23Item `xml:"cpe23-item"`
	Titles    []Title   `xml:"title"`
}

Item has CPE information

type List

type List struct {
	Items []Item `xml:"cpe-item"`
}

List has cpe-item list https://nvd.nist.gov/cpe.cfm

type Title

type Title struct {
	Lang  string `xml:"lang,attr"`
	Value string `xml:",chardata"`
}

Title has title, lang

Jump to

Keyboard shortcuts

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