github.com/noqcks/syft@v0.0.0-20230920222752-a9e2c4e288e5/syft/pkg/cataloger/common/cpe/dictionary/index-generator/nvd.go (about) 1 package main 2 3 type CpeItem struct { 4 Name string `xml:"name,attr"` 5 Title string `xml:"title"` 6 References []struct { 7 Reference struct { 8 Href string `xml:"href,attr"` 9 Body string `xml:",chardata"` 10 } `xml:"reference"` 11 } `xml:"references"` 12 Cpe23Item struct { 13 Name string `xml:"name,attr"` 14 } `xml:"cpe23-item"` 15 } 16 17 type CpeList struct { 18 CpeItems []CpeItem `xml:"cpe-item"` 19 } 20 21 const cpeDictionaryURL = "https://nvd.nist.gov/feeds/xml/cpe/dictionary/official-cpe-dictionary_v2.3.xml.gz"