controllers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package controllers holds Draugr's built-in controllers (e.g. images, sast, opensource, dast), each orchestrating scanners for one security control.

See docs/ARCHITECTURE.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewImages

func NewImages() plugin.Controller

NewImages returns the images controller.

func NewSCA

func NewSCA() plugin.Controller

NewSCA returns the sca controller.

Types

type Images

type Images struct{}

Images is the container-image security control. It plans one Trivy scan per image in a component and aggregates the results.

func (Images) Aggregate

func (Images) Aggregate(reports []sarif.Report) (plugin.ControlResult, error)

Aggregate merges the scan reports and summarizes findings by severity.

func (Images) Info

func (Images) Info() plugin.ControllerInfo

Info identifies the controller (component-scoped).

func (Images) Plan

func (Images) Plan(_ saga.Model, comp *saga.Component) ([]plugin.ScanJob, error)

Plan produces one scan job per image declared on the component.

type SCA

type SCA struct{}

SCA is the Software Composition Analysis control: dependency vulnerabilities (and, later, licenses) for a component's source repositories. It plans one scan per repository.

func (SCA) Aggregate

func (SCA) Aggregate(reports []sarif.Report) (plugin.ControlResult, error)

Aggregate merges the scan reports and summarizes findings by severity.

func (SCA) Info

func (SCA) Info() plugin.ControllerInfo

Info identifies the controller (component-scoped).

func (SCA) Plan

func (SCA) Plan(_ saga.Model, comp *saga.Component) ([]plugin.ScanJob, error)

Plan produces one scan job per repository declared on the component.

Jump to

Keyboard shortcuts

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