Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindContainerFiles ¶
FindContainerFiles is the exported version for the deps detector.
Types ¶
type ContainerFinding ¶
type ContainerFinding struct {
Type string `json:"type"` // "vuln", "misconfiguration"
Severity string `json:"severity"` // CRITICAL, HIGH, MEDIUM, LOW
Title string `json:"title"`
Description string `json:"description"`
File string `json:"file"`
Line int `json:"line"`
CVE *cve.CVE `json:"cve,omitempty"`
}
ContainerFinding represents a single finding from container scanning.
type ImageInfo ¶
type ImageInfo struct {
Name string `json:"name"`
Tag string `json:"tag"`
Digest string `json:"digest,omitempty"`
File string `json:"file"`
Line int `json:"line"`
BaseOS string `json:"base_os,omitempty"`
}
ImageInfo represents a detected base image.
type ScanResult ¶
type ScanResult struct {
Target string `json:"target"`
Duration string `json:"duration"`
Images []ImageInfo `json:"images"`
Findings []ContainerFinding `json:"findings"`
}
ScanResult holds container scan results.
Click to show internal directories.
Click to hide internal directories.