Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPolicyDataService ¶
func NewPolicyDataService(repo *db.VulnerabilityRepository) (api.PolicyDataServiceServer, error)
Types ¶
type VulnerabilitySchemaWrapper ¶
type VulnerabilitySchemaWrapper interface { References() []*api.VulnerabilityReference CVE() string CWEs() []string Affects() []*vulnerabilityAffected // Return on of CRITICAL, HIGH, MEDIUM, LOW FriendlySeverity() string FriendlySeverityCode() api.VulnerabilitySeverity // Standard form Severity() []*api.VulnerabilityScore }
We may have different vulnerability sources and data provider. The vulnerability data has meaning based on vuln.SchemaType and vuln.SchemaVersion We need adapters/wrappers that can be plugged in to make sense of vuln.Data and provide an uniform interface to the rest of the system
Click to show internal directories.
Click to hide internal directories.