Documentation
¶
Index ¶
Constants ¶
View Source
const CVERecordURL = "https://www.cve.org/CVERecord?id=%s"
View Source
const DefaultBaseURL = "https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json"
View Source
const FileTypeJSON = "CISA KEV Catalog [JSON]"
Variables ¶
View Source
var ErrAPI = errors.New("KEV API error")
Functions ¶
func NewJSONDecoder ¶
func NewJSONDecoder() *gce.JSONWriterDecoder[Catalog]
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) GrypeDenyRuleFunc ¶
func (*Service) MatchedVulnerabilities ¶
func (s *Service) MatchedVulnerabilities(r *grype.ScanReport) []models.Match
type Vulnerability ¶
type Vulnerability struct {
CveID string `json:"cveID"`
VendorProject string `json:"vendorProject"`
Product string `json:"product"`
VulnerabilityName string `json:"vulnerabilityName"`
DateAdded string `json:"dateAdded"`
ShortDescription string `json:"shortDescription"`
RequiredAction string `json:"requiredAction"`
DueDate string `json:"dueDate"`
Notes string `json:"notes"`
}
Click to show internal directories.
Click to hide internal directories.