Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Report ¶
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 ¶
func (in *Scanner) Scan(tool console.StackType, options ...v1.ScanOption) ([]*console.StackPolicyViolationAttributes, error)
Scan implements v1.Scanner.Scan interface.
Click to show internal directories.
Click to hide internal directories.