plugin

package
v0.0.0-...-7c36f52 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package plugin aggregates plugins for Starboard.

Index

Constants

View Source
const (
	Trivy starboard.Scanner = "Trivy"
)

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

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

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