github.com/khulnasoft-lab/tunnel-db@v0.0.0-20231117205118-74e1113bd007/pkg/vulnsrc/rocky/types.go (about) 1 package rocky 2 3 // RLSA has detailed data of RLSA 4 type RLSA struct { 5 ID string `json:"id,omitempty"` 6 Title string `json:"title,omitempty"` 7 Severity string `json:"severity,omitempty"` 8 Description string `json:"description,omitempty"` 9 Packages []Package `json:"packages,omitempty"` 10 References []Reference `json:"references,omitempty"` 11 CveIDs []string `json:"cveids,omitempty"` 12 IssuedDate Date `json:"issued,omitempty"` 13 } 14 15 // Reference has reference information 16 type Reference struct { 17 Href string `json:"href,omitempty"` 18 ID string `json:"id,omitempty"` 19 Title string `json:"title,omitempty"` 20 Type string `json:"type,omitempty"` 21 } 22 23 // Package has affected package information 24 type Package struct { 25 Name string `json:"name,omitempty"` 26 Epoch string `json:"epoch,omitempty"` 27 Version string `json:"version,omitempty"` 28 Release string `json:"release,omitempty"` 29 Arch string `json:"arch,omitempty"` 30 Filename string `json:"filename,omitempty"` 31 } 32 33 type Date struct { 34 Date string `json:"date"` 35 }