Versions in this module Expand all Collapse all v0 v0.9.2 Dec 14, 2023 Changes in this version + func BuildVulnerabilityReportData(clock ext.Clock, registry v1alpha1.Registry, artifact v1alpha1.Artifact, ...) v1alpha1.VulnerabilityReportData + func GetCvssV3(findingCvss types.VendorCVSS) map[string]*CVSS + func GetScoreFromCVSS(CVSSs map[string]*CVSS) *float64 + func GetVulnerabilitiesFromScanResult(report ty.Result, addFields AdditionalFields) []v1alpha1.Vulnerability + type AdditionalFields struct + CVSS bool + Class bool + Description bool + Links bool + PackageType bool + PkgPath bool + Target bool + type CVSS struct + V3Score *float64 type ScanJobBuilder + func (s *ScanJobBuilder) WithSbomClusterReports(sbomClusterReports map[string]v1alpha1.SbomReportData) *ScanJobBuilder v0.0.1 Nov 22, 2023 Changes in this version + var SummaryCount = []LessFunc + func GetScanJobName(obj client.Object) string + func OrderedBy(less ...LessFunc) *multiSorter + func RegistryCredentialsSecretName(obj client.Object) string + type BySeverity struct + func (s BySeverity) Less(i, j int) bool + type LessFunc func(p1, p2 *v1alpha1.VulnerabilityReport) bool + type Plugin interface + GetScanJobSpec func(ctx tunneloperator.PluginContext, workload client.Object, ...) (corev1.PodSpec, []*corev1.Secret, error) + Init func(ctx tunneloperator.PluginContext) error + ParseReportData func(ctx tunneloperator.PluginContext, imageRef string, logsReader io.ReadCloser) (v1alpha1.VulnerabilityReportData, v1alpha1.ExposedSecretReportData, ...) + type ReadWriter interface + func NewReadWriter(objectResolver *kube.ObjectResolver) ReadWriter + type Reader interface + FindByOwner func(context.Context, kube.ObjectRef) ([]v1alpha1.VulnerabilityReport, error) + type ReportBuilder struct + func NewReportBuilder(scheme *runtime.Scheme) *ReportBuilder + func (b *ReportBuilder) AdditionalReportLabels(additionalReportLabels map[string]string) *ReportBuilder + func (b *ReportBuilder) Container(name string) *ReportBuilder + func (b *ReportBuilder) Controller(controller client.Object) *ReportBuilder + func (b *ReportBuilder) Data(data v1alpha1.VulnerabilityReportData) *ReportBuilder + func (b *ReportBuilder) Get() (v1alpha1.VulnerabilityReport, error) + func (b *ReportBuilder) PodSpecHash(hash string) *ReportBuilder + func (b *ReportBuilder) ReportTTL(ttl *time.Duration) *ReportBuilder + func (b *ReportBuilder) ResourceLabelsToInclude(resourceLabelsToInclude []string) *ReportBuilder + type ScanJobBuilder struct + func NewScanJobBuilder() *ScanJobBuilder + func (s *ScanJobBuilder) Get() (*batchv1.Job, []*corev1.Secret, error) + func (s *ScanJobBuilder) WithAnnotations(annotations map[string]string) *ScanJobBuilder + func (s *ScanJobBuilder) WithCredentials(credentials map[string]docker.Auth) *ScanJobBuilder + func (s *ScanJobBuilder) WithNodeSelector(nodeSelector map[string]string) *ScanJobBuilder + func (s *ScanJobBuilder) WithObject(object client.Object) *ScanJobBuilder + func (s *ScanJobBuilder) WithPlugin(plugin Plugin) *ScanJobBuilder + func (s *ScanJobBuilder) WithPluginContext(pluginContext tunneloperator.PluginContext) *ScanJobBuilder + func (s *ScanJobBuilder) WithPodPriorityClassName(podPriorityClassName string) *ScanJobBuilder + func (s *ScanJobBuilder) WithPodSecurityContext(podSecurityContext *corev1.PodSecurityContext) *ScanJobBuilder + func (s *ScanJobBuilder) WithPodTemplateLabels(podTemplateLabels map[string]string) *ScanJobBuilder + func (s *ScanJobBuilder) WithSecurityContext(securityContext *corev1.SecurityContext) *ScanJobBuilder + func (s *ScanJobBuilder) WithSkipInitContainers(skipInitContainers bool) *ScanJobBuilder + func (s *ScanJobBuilder) WithTTL(ttl *time.Duration) *ScanJobBuilder + func (s *ScanJobBuilder) WithTimeout(timeout time.Duration) *ScanJobBuilder + func (s *ScanJobBuilder) WithTolerations(tolerations []corev1.Toleration) *ScanJobBuilder + type Vulnerabilities []v1alpha1.Vulnerability + func (s Vulnerabilities) Len() int + func (s Vulnerabilities) Swap(i, j int) + type Writer interface + Write func(context.Context, []v1alpha1.VulnerabilityReport) error