plugin

package
v0.15.15 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package plugin aggregates plugins for Starboard.

Index

Constants

View Source
const (
	Vul        starboard.Scanner = "Vul"
	Khulnasoft starboard.Scanner = "Khulnasoft"
	Polaris    starboard.Scanner = "Polaris"
	Conftest   starboard.Scanner = "Conftest"
)

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.Plugin, starboard.PluginContext, error)

GetConfigAuditPlugin is a factory method that instantiates the configauditreport.Plugin.

Starboard supports Polaris and Conftest as configuration auditing tools.

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

func (*Resolver) GetVulnerabilityPlugin

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

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

Starboard currently supports Vul scanner in Standalone and ClientServer mode, and Khulnasoft Enterprise scanner.

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

func (*Resolver) WithBuildInfo

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

func (*Resolver) WithClient

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

func (*Resolver) WithConfig

func (r *Resolver) WithConfig(config starboard.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 conftest provides primitives for working with Conftest.
Package conftest provides primitives for working with Conftest.
Package khulnasoft provides primitives for working with Khulnasoft Enterprise scanner.
Package khulnasoft provides primitives for working with Khulnasoft Enterprise scanner.
client
Package client provides an HTTP client for selected Khulnasoft Enterprise API endpoints.
Package client provides an HTTP client for selected Khulnasoft Enterprise API endpoints.
scanner/api
Package api provides primitives for getting vulnerability reports via Khulnasoft Enterprise API
Package api provides primitives for getting vulnerability reports via Khulnasoft Enterprise API
scanner/cli
Package cli provides primitives for getting vulnerability reports by executing the scannercli command.
Package cli provides primitives for getting vulnerability reports by executing the scannercli command.
Package polaris provides primitives for working with Polaris.
Package polaris provides primitives for working with Polaris.
Package vul provides primitives for working with Vul.
Package vul provides primitives for working with Vul.

Jump to

Keyboard shortcuts

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