agent

package
v14.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TrivyScanner = report.ScannerDetails{
	ID:   "starboard_trivy",
	Name: "Trivy (via Starboard Operator)",
	Vendor: report.Vendor{
		Name: "GitLab",
	},
}

Functions

func IsSupportedScanner

func IsSupportedScanner(scannerName string) bool

Types

type Factory

type Factory struct{}

func (*Factory) Name

func (f *Factory) Name() string

func (*Factory) New

func (f *Factory) New(cfg *modagent.Config) (modagent.Module, error)

type Payload

type Payload struct {
	Vulnerability *report.Vulnerability `json:"vulnerability"`
	Scanner       report.ScannerDetails `json:"scanner"`
}

func Convert

func Convert(vulnReport *v1alpha1.VulnerabilityReport, agentID int64) ([]*Payload, error)

Convert turns a Starboard vulnerability report into a slice of payloads which can be sent to the internal vulnerability API

type Reporter added in v14.9.0

type Reporter struct {
	// contains filtered or unexported fields
}

func NewReporter added in v14.9.0

func NewReporter(log *zap.Logger, api modagent.Api) *Reporter

func (*Reporter) Transmit added in v14.9.0

func (r *Reporter) Transmit(ctx context.Context, payloads []*Payload) error

Jump to

Keyboard shortcuts

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