Versions in this module Expand all Collapse all v0 v0.1.0 Nov 1, 2022 Changes in this version + const DefaultLabels + const FieldScopeReport + const FieldScopeVulnerability + const LabelGroupAll + var ImageVulnerability *prometheus.GaugeVec + var VulnerabilityLabels []VulnerabilityLabel + func GetLabelNames(list []VulnerabilityLabel) []string + func RegisterVulnerabilityCollector(registry *prometheus.Registry, l string) + type Exporter struct + Container *v1.Container + Image *parser.Reference + ImageDigest string + Namespace string + TrivyResult *types.Result + func NewExporter(container *v1.Container, namespace string, trivyResult *types.Result, ...) Exporter + func (e Exporter) PublishReportMetrics() + type FieldScope string + type VulnerabilityLabel struct + Groups []string + Name string + Scope FieldScope + func GetMetricsLabels(l string) []VulnerabilityLabel