shared

package
v3.0.9-rc.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownSeverity = fmt.Errorf("unknown severity. Supported severities are: %s", strings.Join(reporthandlingapis.GetSupportedSeverities(), ", "))

Functions

func TerminateOnExceedingSeverity

func TerminateOnExceedingSeverity(scanInfo *cautils.ScanInfo, l helpers.ILogger)

TerminateOnExceedingSeverity terminates the program if the result exceeds the severity threshold

func ValidateImageScanInfo

func ValidateImageScanInfo(scanInfo *cautils.ScanInfo) error

ValidateImageScanInfo validates the ScanInfo struct for image scanning commands

func ValidateSeverity

func ValidateSeverity(severity string) error

ValidateSeverity returns an error if a given severity is not known, nil otherwise

Types

type ImageCredentials

type ImageCredentials struct {
	Username string
	Password string
}

Jump to

Keyboard shortcuts

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