Documentation ¶
Index ¶
Constants ¶
View Source
const (
LabelGroupAll = "all"
)
View Source
const (
VulnerabilityReportFinalizer = "starboard-exporter.giantswarm.io/vulnerabilityreport"
)
Variables ¶
View Source
var VulnerabilityInfo *prometheus.GaugeVec
Gauge reporting the score of each CVE present in an image. Registered during first reconcile loop in registerMetrics().
View Source
var ( VulnerabilitySummary = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: metricNamespace, Subsystem: metricSubsystem, Name: "image_vulnerability_severity_count", Help: "Exposes the number of vulnerabilities of a particular severity per-image.", }, labelNamesForGroup(labelGroupSummary), ) )
Gauge for the count of all vulnerabilities of a particular severity contained in an image.
Functions ¶
func LabelNamesForList ¶
func LabelNamesForList(list []VulnerabilityLabel) []string
Types ¶
type FieldScope ¶
type FieldScope string
const ( FieldScopeReport FieldScope = "report" FieldScopeVulnerability FieldScope = "vulnerability" )
type VulnerabilityLabel ¶
type VulnerabilityLabel struct { Name string Groups []string Scope FieldScope }
func LabelWithName ¶
func LabelWithName(name string) (label VulnerabilityLabel, ok bool)
func LabelsForGroup ¶
func LabelsForGroup(group string) []VulnerabilityLabel
type VulnerabilityReportReconciler ¶
type VulnerabilityReportReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme MaxJitterPercent int ShardHelper *utils.ShardHelper TargetLabels []VulnerabilityLabel }
VulnerabilityReportReconciler reconciles a VulnerabilityReport object
func (*VulnerabilityReportReconciler) SetupWithManager ¶
func (r *VulnerabilityReportReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.