Documentation
¶
Index ¶
Constants ¶
View Source
const DependencytrackSourceName = "dependencytrack"
View Source
const SeverityCritical = Severity("CRITICAL")
View Source
const SeverityHigh = Severity("HIGH")
View Source
const SeverityLow = Severity("LOW")
View Source
const SeverityMedium = Severity("MEDIUM")
View Source
const SeverityUnassigned = Severity("UNASSIGNED")
Variables ¶
View Source
var ErrNoMetrics = fmt.Errorf("no metrics found")
View Source
var ErrNoProject = fmt.Errorf("no project found")
Functions ¶
This section is empty.
Types ¶
type Findings ¶
type Findings struct { WorkloadRef *Workload Vulnerabilities []*Vulnerability }
type Source ¶
type Source interface { Name() string SuppressVulnerability(ctx context.Context, suppressedVulnerability *SuppressedVulnerability) error GetVulnerabilities(ctx context.Context, imageName, imageTag string, includeSuppressed bool) ([]*Vulnerability, error) // TODO: add includeSuppressed bool GetVulnerabilitySummary(ctx context.Context, imageName, imageTag string) (*VulnerabilitySummary, error) MaintainSuppressedVulnerabilities(ctx context.Context, suppressed []*SuppressedVulnerability) error }
func NewDependencytrackSource ¶
func NewDependencytrackSource(client dependencytrack.Client, log *logrus.Entry) Source
TODO: add a cache? maybe for projects only?
type SuppressedVulnerability ¶
type Vulnerability ¶
type Vulnerability struct { Package string Suppressed bool Cve *Cve LatestVersion string Metadata VulnerabilityMetadata }
type VulnerabilityMatch ¶
type VulnerabilityMetadata ¶
type VulnerabilityMetadata interface { }
type VulnerabilitySummary ¶
Click to show internal directories.
Click to hide internal directories.