Documentation ¶
Index ¶
- Variables
- func MatchResultSeverity(severity string) buildsecurity.SeverityEnum
- func MatchResultType(resultType string) buildsecurity.Result_TypeEnum
- func Scan(path, severities string, debug bool) (report.Results, error)
- type AquaCache
- func (c AquaCache) Clear() (err error)
- func (c AquaCache) Close() (err error)
- func (c AquaCache) GetArtifact(artifactID string) (artifactInfo ftypes.ArtifactInfo, err error)
- func (c AquaCache) GetBlob(blobID string) (blobInfo ftypes.BlobInfo, err error)
- func (c AquaCache) MissingBlobs(imageID string, layerIDs []string) (bool, []string, error)
- func (c AquaCache) PutArtifact(imageID string, artifactInfo ftypes.ArtifactInfo) error
- func (c AquaCache) PutBlob(diffID string, blobInfo ftypes.BlobInfo) error
- type Severities
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
Types ¶
type AquaCache ¶
type AquaCache struct { cache.ArtifactCache cache.LocalArtifactCache }
func (AquaCache) GetArtifact ¶
func (c AquaCache) GetArtifact(artifactID string) (artifactInfo ftypes.ArtifactInfo, err error)
func (AquaCache) MissingBlobs ¶
func (AquaCache) PutArtifact ¶
func (c AquaCache) PutArtifact(imageID string, artifactInfo ftypes.ArtifactInfo) error
type Severities ¶
type Severities []string
func (Severities) Any ¶
func (s Severities) Any(checkSev string) bool
Click to show internal directories.
Click to hide internal directories.