Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpChecker ¶
HttpChecker check health with http server
func NewHttpChecker ¶
func NewHttpChecker() HttpChecker
type ScanJobController ¶
type ScanJobController struct { logr.Logger etc.Config kube.ObjectResolver kube.LogsReader vulnerabilityreport.Plugin tunneloperator.PluginContext tunneloperator.ConfigData SbomReadWriter sbomreport.ReadWriter VulnerabilityReadWriter vulnerabilityreport.ReadWriter ExposedSecretReadWriter exposedsecretreport.ReadWriter }
ScanJobController watches Kubernetes workloads and generates v1alpha1.VulnerabilityReport instances using vulnerability scanner that that implements the Plugin interface.
func (*ScanJobController) SetupWithManager ¶
func (r *ScanJobController) SetupWithManager(mgr ctrl.Manager) error
type ScanJobRequest ¶
ScanJobRequest encapsulate workload and context for processing
type ScanJobResult ¶
ScanJobResult encapsulate processing result and error
type ServerHealthChecker ¶
func NewTunnelServerChecker ¶
func NewTunnelServerChecker(expiration *time.Duration, cache gcache.Cache, httpChecker HttpChecker) ServerHealthChecker
type WorkloadController ¶
type WorkloadController struct { logr.Logger etc.Config kube.ObjectResolver client.Client jobs.LimitChecker vulnerabilityreport.Plugin tunneloperator.PluginContext kube.SecretsReader tunneloperator.ConfigData ServerHealthChecker ServerHealthChecker VulnerabilityReadWriter vulnerabilityreport.ReadWriter ExposedSecretReadWriter exposedsecretreport.ReadWriter SbomReadWriter sbomreport.ReadWriter SubmitScanJobChan chan ScanJobRequest ResultScanJobChan chan ScanJobResult CacheSyncTimeout time.Duration }
WorkloadController watches Kubernetes workloads and generates v1alpha1.VulnerabilityReport instances using vulnerability scanner that that implements the Plugin interface.
func (*WorkloadController) ProcessScanJob ¶
func (r *WorkloadController) ProcessScanJob()
func (*WorkloadController) SetupWithManager ¶
func (r *WorkloadController) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.