scanner

package
v0.77.0-github-enter-1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllSeverities = Severities{"UNKNOWN", "LOW", "MEDIUM", "HIGH", "CRITICAL"}

Functions

func MatchResultSeverity

func MatchResultSeverity(severity string) buildsecurity.SeverityEnum

func MatchResultType

func MatchResultType(resultType string) buildsecurity.Result_TypeEnum

func MatchTriggeredBy added in v0.24.0

func MatchTriggeredBy(triggeredBy string) buildsecurity.TriggeredByEnum

func Scan

func Scan(ctx context.Context, opts flag.Options, cmdName, path string, envConfig *models.Configuration) (*trivyTypes.Report, []*buildsecurity.Pipeline, error)

Types

type DiffFile added in v0.77.1

type DiffFile struct {
	Status     string
	Name       string
	DirName    string
	NewName    string
	NewDirName string
}

type Severities

type Severities []string

func (Severities) Any

func (s Severities) Any(checkSev string) bool

Jump to

Keyboard shortcuts

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