plugin

package
v0.0.0-...-0fc2ddc Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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

func (r *Resolver) GetVulnerabilityPlugin() (vulnerabilityreport.Plugin, imgvuln.PluginContext, error)

GetVulnerabilityPlugin is a factory method that instantiates the vulnerabilityreport.Plugin.

trivy-adapter currently supports Trivy scanner in Standalone and ClientServer mode, and Aqua Enterprise scanner.

You could add your own scanner by implementing the vulnerabilityreport.Plugin interface.

func (*Resolver) WithBuildInfo

func (r *Resolver) WithBuildInfo(buildInfo imgvuln.BuildInfo) *Resolver

func (*Resolver) WithClient

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

func (*Resolver) WithConfig

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

func (*Resolver) WithNamespace

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

func (*Resolver) WithServiceAccountName

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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