Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewScanner ¶
func NewScanner(clientset kubernetes.Interface) vulnerabilities.Scanner
Types ¶
type Converter ¶
type Converter interface {
Convert(reader io.Reader) (sec.VulnerabilityReport, error)
}
Converter is the interface that wraps the Convert method.
Convert converts the vulnerabilities model used by Trivy to a generic model defined by K8S-native security CRDs.
var DefaultConverter Converter = &converter{}
type ScanReport ¶
type ScanReport struct { Target string `json:"Target"` Vulnerabilities []Vulnerability `json:"Vulnerabilities"` }
type Vulnerability ¶
type Vulnerability struct { VulnerabilityID string `json:"VulnerabilityID"` PkgName string `json:"PkgName"` InstalledVersion string `json:"InstalledVersion"` FixedVersion string `json:"FixedVersion"` Title string `json:"Title"` Description string `json:"Description"` Severity sec.Severity `json:"Severity"` LayerID string `json:"LayerID"` References []string `json:"References"` }
Click to show internal directories.
Click to hide internal directories.