Documentation ¶
Overview ¶
Package plugin aggregates plugins for Starboard.
Index ¶
- Constants
- type Resolver
- func (r *Resolver) GetVulnerabilityPlugin() (vulnerabilityreport.Plugin, starboard.PluginContext, error)
- func (r *Resolver) WithBuildInfo(buildInfo starboard.BuildInfo) *Resolver
- func (r *Resolver) WithClient(client client.Client) *Resolver
- func (r *Resolver) WithConfig(config starboard.ConfigData) *Resolver
- func (r *Resolver) WithNamespace(namespace string) *Resolver
- func (r *Resolver) WithServiceAccountName(name string) *Resolver
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 (*Resolver) WithConfig ¶
func (r *Resolver) WithConfig(config starboard.ConfigData) *Resolver
func (*Resolver) WithNamespace ¶
func (*Resolver) WithServiceAccountName ¶
Click to show internal directories.
Click to hide internal directories.