Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpChecker ¶ added in v0.9.0
HttpChecker check health with http server
func NewHttpChecker ¶ added in v0.9.0
func NewHttpChecker() HttpChecker
type SbomReports ¶ added in v0.17.0
type SbomReports struct {
// contains filtered or unexported fields
}
type ScanJobController ¶
type ScanJobController struct { logr.Logger etc.Config kube.ObjectResolver kube.LogsReader vulnerabilityreport.Plugin trivyoperator.PluginContext trivyoperator.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 ¶ added in v0.10.0
type ScanJobRequest struct { Workload client.Object Context context.Context ClusterSbomReport map[string]v1alpha1.SbomReportData }
ScanJobRequest encapsulate workload and context for processing
type ScanJobResult ¶ added in v0.10.0
ScanJobResult encapsulate processing result and error
type ServerHealthChecker ¶ added in v0.9.0
func NewTrivyServerChecker ¶ added in v0.9.0
func NewTrivyServerChecker(expiration *time.Duration, cache gcache.Cache, httpChecker HttpChecker) ServerHealthChecker
type VulnerabilityReports ¶ added in v0.18.0
type VulnerabilityReports struct {
// contains filtered or unexported fields
}
type WorkloadController ¶
type WorkloadController struct { logr.Logger etc.Config kube.ObjectResolver client.Client jobs.LimitChecker vulnerabilityreport.Plugin trivyoperator.PluginContext kube.SecretsReader trivyoperator.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 ¶ added in v0.10.0
func (r *WorkloadController) ProcessScanJob()
func (*WorkloadController) SetupWithManager ¶
func (r *WorkloadController) SetupWithManager(mgr ctrl.Manager) error
func (*WorkloadController) SubmitScanJob ¶ added in v0.18.0
func (r *WorkloadController) SubmitScanJob(ctx context.Context, owner client.Object, reusedReports map[string]v1alpha1.SbomReportData) error
Click to show internal directories.
Click to hide internal directories.