scanner

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Apache-2.0 Imports: 26 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 Scan

func Scan(path, severities string, debug bool) (report.Results, error)

Types

type AquaCache

type AquaCache struct {
	cache.ArtifactCache
	cache.LocalArtifactCache
}

func (AquaCache) Clear

func (c AquaCache) Clear() (err error)

func (AquaCache) Close

func (c AquaCache) Close() (err error)

func (AquaCache) GetArtifact

func (c AquaCache) GetArtifact(artifactID string) (artifactInfo ftypes.ArtifactInfo, err error)

func (AquaCache) GetBlob

func (c AquaCache) GetBlob(blobID string) (blobInfo ftypes.BlobInfo, err error)

func (AquaCache) MissingBlobs

func (c AquaCache) MissingBlobs(imageID string, layerIDs []string) (bool, []string, error)

func (AquaCache) PutArtifact

func (c AquaCache) PutArtifact(imageID string, artifactInfo ftypes.ArtifactInfo) error

func (AquaCache) PutBlob

func (c AquaCache) PutBlob(diffID string, blobInfo ftypes.BlobInfo) error

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