Documentation
¶
Index ¶
- Constants
- func NewImageVulnerabilitiesFinder(cred *types.VulnProviderAPICreds) (types.ImageVulnerabilitiesFinder, error)
- type BasicAuth
- type BearerAuth
- type CVSSInfo
- type ECRImageScanSeverity
- type ImageRef
- type Layer
- type Metadata
- type NoAuth
- type RegistryAuth
- type ScanReport
- type Trivy
- type VersionInfo
- type Vulnerability
Constants ¶
View Source
const ( //UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL TrivySeverityCritical = "CRITICAL" TrivySeverityHigh = "HIGH" TrivySeverityMedium = "MEDIUM" TrivySeverityLow = "LOW" TrivySeverityUnknown = "UNKNOWN" )
Variables ¶
This section is empty.
Functions ¶
func NewImageVulnerabilitiesFinder ¶
func NewImageVulnerabilitiesFinder(cred *types.VulnProviderAPICreds) (types.ImageVulnerabilitiesFinder, error)
Types ¶
type BearerAuth ¶
type BearerAuth struct {
Token string
}
type ECRImageScanSeverity ¶
type ECRImageScanSeverity string
type ImageRef ¶
type ImageRef struct { Name string Auth RegistryAuth Insecure bool }
type ScanReport ¶
type ScanReport struct { Target string `json:"Target"` Vulnerabilities []Vulnerability `json:"Vulnerabilities"` }
func ScanReportFrom ¶
func ScanReportFrom(f io.Reader) (ScanReport, error)
type Trivy ¶
type Trivy interface { Scan(imageRef ImageRef) (ScanReport, error) GetVersion() (VersionInfo, error) }
func NewScanner ¶
func NewScanner(config types.TrivyConfig, ambassador util.CmdRunner) Trivy
type VersionInfo ¶
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 string `json:"Severity"` References []string `json:"References"` Layer *Layer `json:"Layer"` CVSS map[string]CVSSInfo `json:"CVSS"` }
Click to show internal directories.
Click to hide internal directories.