Documentation ¶
Index ¶
Constants ¶
View Source
const URL = "http://jvndb.jvn.jp/myjvn"
URL ... JVN URL
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CpeList ¶
type CpeList struct { CpeItem []cpeItem `xml:"cpe-item"` Generator generator `xml:"generator"` }
CpeList ... CPE List
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"` Creator string `xml:"creator"` Identifier string `xml:"identifier"` References []references `xml:"references"` CpeItem []cpeItem `xml:"cpe-item"` Cvss 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 FetchCVEs ¶
FetchCVEs Fetch vulnerabilty information from JVN http://jvndb.jvn.jp/apis/getVulnOverviewList_api.html TODO refresh after updatedAt in DB
type Result ¶
type Result struct { CpeList CpeList `xml:"cpe-list"` VendorInfo VendorInfo `xml:"VendorInfo"` Items []Item `xml:"item"` Vulinfo Vulinfo `xml:"Vulinfo"` Status status `xml:"Status"` Errors []error }
Result ... Result data
type VendorInfo ¶
type VendorInfo struct { Lang string `xml:"xml:lang,attr"` Vendors []vendor `xml:"Vendor"` }
VendorInfo Vendor Information
Click to show internal directories.
Click to hide internal directories.