Documentation
¶
Overview ¶
Package epss contains data models and the service for cross referencing vulnerabilities with EPSS scores.
Index ¶
- Constants
- Variables
- type APIAgent
- type CVE
- type Scores
- type Service
- func (s *Service) Fetch() error
- func (s *Service) GetCVE(match models.Match) (CVE, error)
- func (s *Service) GetCVEs(matches []models.Match) ([]CVE, error)
- func (s *Service) GrypeAllowRuleFunc() func(models.Match, grype.Config) bool
- func (s *Service) GrypeDenyRuleFunc() func([]models.Match, grype.Config) error
Constants ¶
View Source
const DefaultBaseURL = "https://epss.cyentia.com"
DefaultBaseURL for EPSS FIRST API
Variables ¶
View Source
var ErrAPI = errors.New("EPSS API error")
ErrAPI errors in EPSS API requests
Functions ¶
This section is empty.
Types ¶
type APIAgent ¶ added in v0.1.0
type APIAgent struct {
// contains filtered or unexported fields
}
APIAgent performs the actual API query
type CVE ¶
type CVE struct {
ID string
Severity string
Link string
ScoreDate time.Time
Probability float64
Percentile float64
}
CVE data model
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service used to perform EPSS API request or decoding from a file
func NewService ¶ added in v0.1.0
NewService initializes internal structures, and lazily assigns reader.
func (*Service) Fetch ¶ added in v0.1.0
Fetch uses the internal reader to fill the internal dataStore
func (*Service) GrypeAllowRuleFunc ¶ added in v0.1.0
GrypeAllowRuleFunc returns the function used for allow rule cross referenced with internal service data store
Click to show internal directories.
Click to hide internal directories.