github.com/khulnasoft-lab/tunnel-db@v0.0.0-20231117205118-74e1113bd007/pkg/vulnsrc/redhat/types.go (about) 1 package redhat 2 3 type RedhatCVE struct { 4 ThreatSeverity string `json:"threat_severity"` 5 PublicDate string `json:"public_date"` 6 Bugzilla RedhatBugzilla `json:"bugzilla"` 7 Cvss RedhatCvss `json:"cvss"` 8 Cvss3 RedhatCvss3 `json:"cvss3"` 9 Iava string `json:"iava"` 10 Cwe string `json:"cwe"` 11 Statement string `json:"statement"` 12 Acknowledgement string `json:"acknowledgement"` 13 Mitigation string `json:"mitigation"` 14 TempAffectedRelease interface{} `json:"affected_release"` // affected_release is array or object 15 AffectedRelease []RedhatAffectedRelease 16 TempPackageState interface{} `json:"package_state"` // package_state is array or object 17 PackageState []RedhatPackageState 18 Name string `json:"name"` 19 DocumentDistribution string `json:"document_distribution"` 20 21 Details []string `json:"details"` 22 References []string `json:"references"` 23 } 24 25 type RedhatCVEAffectedReleaseArray struct { 26 AffectedRelease []RedhatAffectedRelease `json:"affected_release"` 27 } 28 29 type RedhatCVEAffectedReleaseObject struct { 30 AffectedRelease RedhatAffectedRelease `json:"affected_release"` 31 } 32 33 type RedhatCVEPackageStateArray struct { 34 PackageState []RedhatPackageState `json:"package_state"` 35 } 36 37 type RedhatCVEPackageStateObject struct { 38 PackageState RedhatPackageState `json:"package_state"` 39 } 40 41 type RedhatDetail struct { 42 Detail string `sql:"type:text"` 43 } 44 45 type RedhatReference struct { 46 Reference string `sql:"type:text"` 47 } 48 49 type RedhatBugzilla struct { 50 Description string `json:"description" sql:"type:text"` 51 BugzillaID string `json:"id"` 52 URL string `json:"url"` 53 } 54 55 type RedhatCvss struct { 56 CvssBaseScore string `json:"cvss_base_score"` 57 CvssScoringVector string `json:"cvss_scoring_vector"` 58 Status string `json:"status"` 59 } 60 61 type RedhatCvss3 struct { 62 Cvss3BaseScore string `json:"cvss3_base_score"` 63 Cvss3ScoringVector string `json:"cvss3_scoring_vector"` 64 Status string `json:"status"` 65 } 66 67 type RedhatAffectedRelease struct { 68 ProductName string `json:"product_name"` 69 ReleaseDate string `json:"release_date"` 70 Advisory string `json:"advisory"` 71 Package string `json:"package"` 72 Cpe string `json:"cpe"` 73 } 74 75 type RedhatPackageState struct { 76 ProductName string `json:"product_name"` 77 FixState string `json:"fix_state"` 78 PackageName string `json:"package_name"` 79 Cpe string `json:"cpe"` 80 }