Documentation ¶
Index ¶
- func FetchRedHatVulnList() (entries []models.RedhatCVEJSON, err error)
- func GetRedhatCveDetailURL(cveID string) (url string)
- func ListAllRedhatCves(before, after string, wait int) (entries []models.RedhatEntry, err error)
- func RetrieveDebianCveDetails() (cves models.DebianJSON, err error)
- func RetrieveMicrosoftBulletinSearch() (cves []models.MicrosoftBulletinSearch, err error)
- func RetrieveMicrosoftCveDetails(apikey string) (cves []models.MicrosoftXML, err error)
- func RetrieveRedhatCveDetails(urls []string) (cves []models.RedhatCVEJSON, err error)
- func XlsToModel(bs []byte) (cves []models.MicrosoftBulletinSearch, err error)
- type RedhatAffectedRelease
- type RedhatBugzilla
- type RedhatCVE
- type RedhatCVEAffectedReleaseArray
- type RedhatCVEAffectedReleaseObject
- type RedhatCVEPackageStateArray
- type RedhatCVEPackageStateObject
- type RedhatCvss
- type RedhatCvss3
- type RedhatDetail
- type RedhatPackageState
- type RedhatReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchRedHatVulnList ¶ added in v0.1.11
func FetchRedHatVulnList() (entries []models.RedhatCVEJSON, err error)
func GetRedhatCveDetailURL ¶
GetRedhatCveDetailURL returns CVE detail URL.
func ListAllRedhatCves ¶
func ListAllRedhatCves(before, after string, wait int) (entries []models.RedhatEntry, err error)
ListAllRedhatCves returns the list of all CVEs from RedHat API https://access.redhat.com/documentation/en-us/red_hat_security_data_api/0.1/html-single/red_hat_security_data_api/#list_all_cves
func RetrieveDebianCveDetails ¶
func RetrieveDebianCveDetails() (cves models.DebianJSON, err error)
func RetrieveMicrosoftBulletinSearch ¶ added in v0.1.11
func RetrieveMicrosoftBulletinSearch() (cves []models.MicrosoftBulletinSearch, err error)
RetrieveMicrosoftBulletinSearch :
func RetrieveMicrosoftCveDetails ¶ added in v0.1.11
func RetrieveMicrosoftCveDetails(apikey string) (cves []models.MicrosoftXML, err error)
RetrieveMicrosoftCveDetails : https://api.msrc.microsoft.com/cvrf/2017-Jan?api-version=2016-08-01
func RetrieveRedhatCveDetails ¶
func RetrieveRedhatCveDetails(urls []string) (cves []models.RedhatCVEJSON, err error)
RetrieveRedhatCveDetails returns full CVE details from RedHat API https://access.redhat.com/documentation/en-us/red_hat_security_data_api/0.1/html-single/red_hat_security_data_api/#retrieve_a_cve
func XlsToModel ¶ added in v0.1.11
func XlsToModel(bs []byte) (cves []models.MicrosoftBulletinSearch, err error)
XlsToModel :
Types ¶
type RedhatAffectedRelease ¶ added in v0.1.11
type RedhatBugzilla ¶ added in v0.1.11
type RedhatCVE ¶ added in v0.1.11
type RedhatCVE struct { ThreatSeverity string `json:"threat_severity"` PublicDate string `json:"public_date"` Bugzilla RedhatBugzilla `json:"bugzilla"` Cvss RedhatCvss `json:"cvss"` Cvss3 RedhatCvss3 `json:"cvss3"` Iava string `json:"iava"` Cwe string `json:"cwe"` Statement string `json:"statement"` Acknowledgement string `json:"acknowledgement"` Mitigation string `json:"mitigation"` TempAffectedRelease interface{} `json:"affected_release"` // affected_release is array or object AffectedRelease []RedhatAffectedRelease TempPackageState interface{} `json:"package_state"` // package_state is array or object PackageState []RedhatPackageState Name string `json:"name"` DocumentDistribution string `json:"document_distribution"` Details []string `json:"details"` References []string `json:"references"` }
type RedhatCVEAffectedReleaseArray ¶ added in v0.1.11
type RedhatCVEAffectedReleaseArray struct {
AffectedRelease []RedhatAffectedRelease `json:"affected_release"`
}
type RedhatCVEAffectedReleaseObject ¶ added in v0.1.11
type RedhatCVEAffectedReleaseObject struct {
AffectedRelease RedhatAffectedRelease `json:"affected_release"`
}
type RedhatCVEPackageStateArray ¶ added in v0.1.11
type RedhatCVEPackageStateArray struct {
PackageState []RedhatPackageState `json:"package_state"`
}
type RedhatCVEPackageStateObject ¶ added in v0.1.11
type RedhatCVEPackageStateObject struct {
PackageState RedhatPackageState `json:"package_state"`
}
type RedhatCvss ¶ added in v0.1.11
type RedhatCvss3 ¶ added in v0.1.11
type RedhatDetail ¶ added in v0.1.11
type RedhatDetail struct {
Detail string `sql:"type:text"`
}
type RedhatPackageState ¶ added in v0.1.11
type RedhatReference ¶ added in v0.1.11
type RedhatReference struct {
Reference string `sql:"type:text"`
}
Click to show internal directories.
Click to hide internal directories.