Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrImageNotFound = errors.New("image not found")
ErrImageNotFound represents that the image provided was not found in the repository.
Functions ¶
func ScanSnapshot ¶
func ScanSnapshot( ctx context.Context, scanner Scanner, snapshot *hub.SnapshotToScan, ) (*hub.SnapshotSecurityReport, error)
ScanSnapshot scans the provided package's snapshot for security vulnerabilities returning a report with the results.
Types ¶
type Target ¶
type Target struct {
Vulnerabilities []*Vulnerability `json:"Vulnerabilities"`
}
Target represents a target in a security report.
type TrivyScanner ¶
TrivyScanner is an implementation of the Scanner interface that uses Trivy.
type Vulnerability ¶
type Vulnerability struct {
Severity string `json:"Severity"`
}
Vulnerability represents a vulnerability in a security report target.
Click to show internal directories.
Click to hide internal directories.