nvd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 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 BaseMetricV2

type BaseMetricV2 struct {
	CvssV2   CvssV2
	Severity string
}

type BaseMetricV3

type BaseMetricV3 struct {
	CvssV3 CvssV3
}

type Cve

type Cve struct {
	Meta        Meta `json:"CVE_data_meta"`
	References  References
	Description Description
	ProblemType ProblemType
}

type CvssV2

type CvssV2 struct {
	BaseScore    float64 `json:"baseScore"`
	VectorString string  `json:"vectorString"`
}

type CvssV3

type CvssV3 struct {
	BaseScore    float64 `json:"baseScore"`
	BaseSeverity string
	VectorString string `json:"vectorString"`
}

type Description

type Description struct {
	DescriptionDataList []DescriptionData `json:"description_data"`
}

type DescriptionData

type DescriptionData struct {
	Lang  string
	Value string
}

type Impact

type Impact struct {
	BaseMetricV2 BaseMetricV2
	BaseMetricV3 BaseMetricV3
}

type Item

type Item struct {
	Cve              Cve
	Impact           Impact
	LastModifiedDate string `json:"lastModifiedDate"`
	PublishedDate    string `json:"publishedDate"`
}

type Meta

type Meta struct {
	ID string
}

type NVD

type NVD struct {
	CVEItems []Item `json:"CVE_Items"`
}

type ProblemType

type ProblemType struct {
	ProblemTypeData []ProblemTypeData `json:"problemtype_data"`
}

type ProblemTypeData

type ProblemTypeData struct {
	Description []ProblemTypeDataDescription
}

type ProblemTypeDataDescription

type ProblemTypeDataDescription struct {
	Lang  string
	Value string
}

type ReferenceData

type ReferenceData struct {
	Name      string
	Refsource string
	URL       string
}

type References

type References struct {
	ReferenceDataList []ReferenceData `json:"reference_data"`
}

type VulnSrc

type VulnSrc struct {
	// contains filtered or unexported fields
}

func NewVulnSrc

func NewVulnSrc() VulnSrc

func (VulnSrc) Name

func (vs VulnSrc) Name() types.SourceID

func (VulnSrc) Update

func (vs VulnSrc) Update(dir string) error

Jump to

Keyboard shortcuts

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