vulnerability

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ScanCommand is terrascan's scan command
	ScanCommand string = "scan"

	// FindVulnerabilityFlag is terrascan's flag used with scan command
	FindVulnerabilityFlag string = "--find-vuln"

	// VulnerabilityScanTimeout is default Vulnerability Scan timeout
	VulnerabilityScanTimeout time.Duration = 2 * time.Minute
)

Variables

This section is empty.

Functions

func RunScanAndVerifyVulnerabilityCount

func RunScanAndVerifyVulnerabilityCount(terrascanBinaryPath string, exitCode, expectedCount int, outWriter, errWriter io.Writer, args ...string)

RunScanAndVerifyVulnerabilityCount runs the scan command with supplied parameters and checks scan summary output

func RunScanCommandWithFindVulnerability

func RunScanCommandWithFindVulnerability(terrascanBinaryPath string, exitCode int, outWriter, errWriter io.Writer, args ...string) *gexec.Session

RunScanCommandWithFindVulnerability with --find-vuln flag executes the scan command, validates exit code

Types

This section is empty.

Jump to

Keyboard shortcuts

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