Documentation ¶
Index ¶
Constants ¶
View Source
const (
TrivyScannerVersion = "@sha256:f7fe23c37e0545435e4b8cf3c8c1712ab5584677e119edfb749b0f50ca4de895" // nolint:gosec
)
Variables ¶
View Source
var TrivyScanner = report.ScannerDetails{
ID: "starboard_trivy",
Name: "Trivy (via Starboard Operator)",
Vendor: report.Vendor{
Name: "GitLab",
},
}
Functions ¶
This section is empty.
Types ¶
type CronScheduler ¶
type CronScheduler struct {
// contains filtered or unexported fields
}
CronScheduler can run tasks on a cron schedule, with cancellation.
func NewCronScheduler ¶
func NewCronScheduler() *CronScheduler
func (*CronScheduler) Run ¶
func (s *CronScheduler) Run(ctx context.Context)
type Factory ¶
type Factory struct{}
func (*Factory) IsProducingLeaderModules ¶ added in v16.3.0
func (*Factory) StartStopPhase ¶
func (f *Factory) StartStopPhase() modshared.ModuleStartStopPhase
type Payload ¶
type Payload struct { Vulnerability *report.Vulnerability `json:"vulnerability"` Scanner report.ScannerDetails `json:"scanner"` }
Payload resembles the create-starboard-vulnerability payload of the KAS API https://docs.gitlab.com/ee/development/internal_api/#create-starboard-vulnerability
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
func (*Reporter) ResolveVulnerabilities ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.