Documentation ¶
Overview ¶
Package plugins aggregates plugins for Trivy-Operator.
Index ¶
- type Resolver
- func (r *Resolver) GetConfigAuditPlugin() (configauditreport.PluginInMemory, trivyoperator.PluginContext, error)
- func (r *Resolver) GetVulnerabilityPlugin() (vulnerabilityreport.Plugin, trivyoperator.PluginContext, error)
- func (r *Resolver) WithBuildInfo(buildInfo trivyoperator.BuildInfo) *Resolver
- func (r *Resolver) WithClient(c client.Client) *Resolver
- func (r *Resolver) WithConfig(config trivyoperator.ConfigData) *Resolver
- func (r *Resolver) WithNamespace(namespace string) *Resolver
- func (r *Resolver) WithObjectResolver(objectResolver *kube.ObjectResolver) *Resolver
- func (r *Resolver) WithServiceAccountName(name string) *Resolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func NewResolver ¶
func NewResolver() *Resolver
func (*Resolver) GetConfigAuditPlugin ¶
func (r *Resolver) GetConfigAuditPlugin() (configauditreport.PluginInMemory, trivyoperator.PluginContext, error)
GetConfigAuditPlugin is a factory method that instantiates the configauditreport.Plugin.
func (*Resolver) GetVulnerabilityPlugin ¶
func (r *Resolver) GetVulnerabilityPlugin() (vulnerabilityreport.Plugin, trivyoperator.PluginContext, error)
GetVulnerabilityPlugin is a factory method that instantiates the vulnerabilityreport.Plugin.
Trivy-Operator currently supports Trivy scanner in Standalone and ClientServer mode.
You could add your own scanner by implementing the vulnerabilityreport.Plugin interface.
func (*Resolver) WithBuildInfo ¶
func (r *Resolver) WithBuildInfo(buildInfo trivyoperator.BuildInfo) *Resolver
func (*Resolver) WithConfig ¶
func (r *Resolver) WithConfig(config trivyoperator.ConfigData) *Resolver
func (*Resolver) WithNamespace ¶
func (*Resolver) WithObjectResolver ¶
func (r *Resolver) WithObjectResolver(objectResolver *kube.ObjectResolver) *Resolver
func (*Resolver) WithServiceAccountName ¶
Click to show internal directories.
Click to hide internal directories.