schema

package
v0.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advisories

type Advisories map[string][]*Advisory

language -> [advisories]

type Advisory

type Advisory struct {
	CVSSV3             string       `json:"cvssV3"`
	CreationTime       string       `json:"creationTime"`
	Credit             []string     `json:"credit"`
	Cves               []string     `json:"cves"`
	CvssScore          float64      `json:"cvssScore"`
	Cwes               []string     `json:"cwes"`
	Description        string       `json:"description"`
	DisclosureTime     string       `json:"disclosureTime"`
	Exploit            string       `json:"exploit"`
	Fixable            bool         `json:"fixable"`
	HashesRange        []string     `json:"hashesRange,omitempty"`
	SnykID             string       `json:"id"`
	Language           string       `json:"language"`
	ModificationTime   string       `json:"modificationTime"`
	Package            string       `json:"package"`
	PatchExists        bool         `json:"patchExists"`
	PublicationTime    string       `json:"publicationTime"`
	References         []*Reference `json:"references"`
	Severity           string       `json:"severity"`
	Title              string       `json:"title"`
	URL                string       `json:"url"`
	VulnerableHashes   []string     `json:"vulnerableHashes,omitempty"`
	VulnerableVersions []string     `json:"vulnerableVersions"`
}

func (*Advisory) Convert

func (advisory *Advisory) Convert() (*nvd.NVDCVEFeedJSON10DefCVEItem, error)

func (*Advisory) ID

func (advisory *Advisory) ID() string

type Reference

type Reference struct {
	Title string `json:"title"`
	URL   string `json:"url"`
}

Jump to

Keyboard shortcuts

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