jvn

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchConvert

func FetchConvert(metas []models.FeedMeta) (cves []models.CveDetail, err error)

FetchConvert fetches vulnerability information from JVN and convert it to model

func FetchLatestFeedMeta

func FetchLatestFeedMeta(driver db.DB, years []int) (metas []models.FeedMeta, err error)

FetchLatestFeedMeta Fetch CVE meta information from JVN

func ListFetchedFeeds

func ListFetchedFeeds(driver db.DB) (metas []models.FeedMeta, err error)

ListFetchedFeeds list fetched feeds information

func UpdateMeta

func UpdateMeta(driver db.DB, metas []models.FeedMeta) error

UpdateMeta updates meta table

Types

type Cvss

type Cvss struct {
	Score    string `xml:"score,attr"`
	Severity string `xml:"severity,attr"`
	Vector   string `xml:"vector,attr"`
	Version  string `xml:"version,attr"`
}

Cvss ... CVSS

type Item

type Item struct {
	About       string       `xml:"about,attr"`
	Title       string       `xml:"title"`
	Link        string       `xml:"link"`
	Description string       `xml:"description"`
	Publisher   string       `xml:"publisher"`
	Identifier  string       `xml:"identifier"`
	References  []references `xml:"references"`
	Cpes        []cpe        `xml:"cpe"`
	Cvsses      []Cvss       `xml:"cvss"`
	Date        string       `xml:"date"`
	Issued      string       `xml:"issued"`
	Modified    string       `xml:"modified"`
}

Item ... http://jvndb.jvn.jp/apis/getVulnOverviewList_api.html

func Fetch

func Fetch(metas []models.FeedMeta) ([]Item, error)

Fetch fetches vulnerability information from JVN and convert it to model

type Meta

type Meta struct {
	URL          string `json:"url"`
	Hash         string `json:"sha256"`
	LastModified string `json:"lastModified"`
}

Meta ... https://jvndb.jvn.jp/ja/feed/checksum.txt

Jump to

Keyboard shortcuts

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