Documentation ¶
Index ¶
- func GenerateVulnerabilityBreakdown(productionVulnerabilities []*grafeaspb.Occurrence) map[string]ImageVulnBreakdown
- func GetAllVulnerabilities(projectID string) ([]*grafeaspb.Occurrence, error)
- func UpdateVulnerabilityDashboard(dashboardPath string, vulnProject string, dashboardBucket string) error
- type ImageVulnBreakdown
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateVulnerabilityBreakdown ¶
func GenerateVulnerabilityBreakdown( productionVulnerabilities []*grafeaspb.Occurrence, ) map[string]ImageVulnBreakdown
GenerateVulnerabilityBreakdown parses the a slice of vulnerability occurrences into a breakdown that only contains the necessary information for each vulnerability.
func GetAllVulnerabilities ¶
func GetAllVulnerabilities( projectID string, ) ([]*grafeaspb.Occurrence, error)
GetAllVulnerabilities gets all of the vulnerability occurrences associated with images in a specific project using the Container Analysis Service. nolint[errcheck]
Types ¶
type ImageVulnBreakdown ¶
type ImageVulnBreakdown struct { ResourceURI string ImageName string ImageDigest string NumVulnerabilities int CriticalVulnerabilities []string FixableVulnerabilities []string }
ImageVulnBreakdown is used by the adapter in order to store the information from image vulnerability occurrences that the dashboard needs.
Click to show internal directories.
Click to hide internal directories.