plugins

package
v0.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

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

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) WithClient

func (r *Resolver) WithClient(c client.Client) *Resolver

func (*Resolver) WithConfig

func (r *Resolver) WithConfig(config trivyoperator.ConfigData) *Resolver

func (*Resolver) WithNamespace

func (r *Resolver) WithNamespace(namespace string) *Resolver

func (*Resolver) WithObjectResolver

func (r *Resolver) WithObjectResolver(objectResolver *kube.ObjectResolver) *Resolver

func (*Resolver) WithServiceAccountName

func (r *Resolver) WithServiceAccountName(name string) *Resolver

Directories

Path Synopsis
Package trivy provides primitives for working with Trivy.
Package trivy provides primitives for working with Trivy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL