grypeerr

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrAboveSeverityThreshold indicates when a vulnerability severity is discovered that is above the given --fail-on severity value
	ErrAboveSeverityThreshold = NewExpectedErr("discovered vulnerabilities at or above the severity threshold")
)

Functions

This section is empty.

Types

type ExpectedErr

type ExpectedErr struct {
	Err error
}

ExpectedErr represents a class of expected errors that grype may produce.

func NewExpectedErr

func NewExpectedErr(msgFormat string, args ...interface{}) ExpectedErr

New generates a new ExpectedErr.

func (ExpectedErr) Error

func (e ExpectedErr) Error() string

Error returns a string representing the underlying error condition.

Jump to

Keyboard shortcuts

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