Documentation ¶
Index ¶
- func FetchArch() ([]models.ArchADVJSON, error)
- func FetchRedHatVulnList() (entries []models.RedhatCVEJSON, err error)
- func FetchUbuntuVulnList() (entries []models.UbuntuCVEJSON, err error)
- func GetRedhatCveDetailURL(cveID string) (url string)
- func ListAllRedhatCves(before, after string, wait int) (entries []models.RedhatEntry, err error)
- func RetrieveDebianCveDetails() (models.DebianJSON, error)
- func RetrieveMicrosoftCveDetails() ([]models.MicrosoftVulnerability, []models.MicrosoftSupercedence, error)
- func RetrieveRedhatCveDetails(urls []string) (cves []models.RedhatCVEJSON, 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 FetchArch ¶ added in v0.5.0
func FetchArch() ([]models.ArchADVJSON, error)
FetchArch fetch Advisory JSONs
func FetchRedHatVulnList ¶ added in v0.3.0
func FetchRedHatVulnList() (entries []models.RedhatCVEJSON, err error)
FetchRedHatVulnList clones vuln-list and returns CVE JSONs
func FetchUbuntuVulnList ¶ added in v0.3.0
func FetchUbuntuVulnList() (entries []models.UbuntuCVEJSON, err error)
FetchUbuntuVulnList clones vuln-list and returns CVE JSONs
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() (models.DebianJSON, error)
RetrieveDebianCveDetails returns CVE details
func RetrieveMicrosoftCveDetails ¶ added in v0.3.0
func RetrieveMicrosoftCveDetails() ([]models.MicrosoftVulnerability, []models.MicrosoftSupercedence, error)
RetrieveMicrosoftCveDetails :
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
Types ¶
type RedhatAffectedRelease ¶ added in v0.3.0
type RedhatAffectedRelease struct { ProductName string `json:"product_name"` ReleaseDate string `json:"release_date"` Advisory string `json:"advisory"` Package string `json:"package"` Cpe string `json:"cpe"` }
RedhatAffectedRelease :
type RedhatBugzilla ¶ added in v0.3.0
type RedhatBugzilla struct { Description string `json:"description" sql:"type:text"` BugzillaID string `json:"id"` URL string `json:"url"` }
RedhatBugzilla :
type RedhatCVE ¶ added in v0.3.0
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"` }
RedhatCVE :
type RedhatCVEAffectedReleaseArray ¶ added in v0.3.0
type RedhatCVEAffectedReleaseArray struct {
AffectedRelease []RedhatAffectedRelease `json:"affected_release"`
}
RedhatCVEAffectedReleaseArray :
type RedhatCVEAffectedReleaseObject ¶ added in v0.3.0
type RedhatCVEAffectedReleaseObject struct {
AffectedRelease RedhatAffectedRelease `json:"affected_release"`
}
RedhatCVEAffectedReleaseObject :
type RedhatCVEPackageStateArray ¶ added in v0.3.0
type RedhatCVEPackageStateArray struct {
PackageState []RedhatPackageState `json:"package_state"`
}
RedhatCVEPackageStateArray :
type RedhatCVEPackageStateObject ¶ added in v0.3.0
type RedhatCVEPackageStateObject struct {
PackageState RedhatPackageState `json:"package_state"`
}
RedhatCVEPackageStateObject :
type RedhatCvss ¶ added in v0.3.0
type RedhatCvss struct { CvssBaseScore string `json:"cvss_base_score"` CvssScoringVector string `json:"cvss_scoring_vector"` Status string `json:"status"` }
RedhatCvss :
type RedhatCvss3 ¶ added in v0.3.0
type RedhatCvss3 struct { Cvss3BaseScore string `json:"cvss3_base_score"` Cvss3ScoringVector string `json:"cvss3_scoring_vector"` Status string `json:"status"` }
RedhatCvss3 :
type RedhatDetail ¶ added in v0.3.0
type RedhatDetail struct {
Detail string `sql:"type:text"`
}
RedhatDetail :
type RedhatPackageState ¶ added in v0.3.0
type RedhatPackageState struct { ProductName string `json:"product_name"` FixState string `json:"fix_state"` PackageName string `json:"package_name"` Cpe string `json:"cpe"` }
RedhatPackageState :
type RedhatReference ¶ added in v0.3.0
type RedhatReference struct {
Reference string `sql:"type:text"`
}
RedhatReference :