trivy

package
v0.6.39 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: AGPL-3.0, Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New creates a new Trivy scanner.

Types

type Report

type Report struct {
	types.Report `json:",inline"`
}

Report is an inline wrapper around original trivy report to better organize the data transformation to console.StackPolicyViolationAttributes.

func (*Report) Attributes

func (in *Report) Attributes() []*console.StackPolicyViolationAttributes

Attributes transforms a trivy types.Report into the format acceptable by the Console API. Violations are grouped by policyId (the server enforces uniqueness per stack run); multiple affected resources for the same policy are merged as separate causes.

type Scanner

type Scanner struct {
	v1.DefaultScanner `json:",inline"`

	// CustomPolicies enables loading custom policies from the .plural/policies
	// subdirectory of the stack tarball.
	CustomPolicies bool
}

Scanner is a scanner implementation for trivy.

func (*Scanner) Scan

Scan implements v1.Scanner.Scan interface.

Jump to

Keyboard shortcuts

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