misconf

package
v0.37.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCauseWithCode

func NewCauseWithCode(underlying scan.Result) types.CauseMetadata

func ResultsToMisconf

func ResultsToMisconf(configType string, scannerName string, results scan.Results) []types.Misconfiguration

This function is exported for trivy-plugin-aqua purposes only

Types

type Scanner

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

func NewScanner

func NewScanner(filePatterns []string, opt config.ScannerOption) (Scanner, error)

func (*Scanner) Scan

func (s *Scanner) Scan(ctx context.Context, files []types.File) ([]types.Misconfiguration, error)

Scan detects misconfigurations.

Jump to

Keyboard shortcuts

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