Documentation ¶
Index ¶
Constants ¶
View Source
const SchemaVersion = 2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BearerAuth ¶
type BearerAuth struct {
Token string
}
type ImageRef ¶
type ImageRef struct { Name string Auth RegistryAuth Insecure bool }
type MockWrapper ¶
func NewMockWrapper ¶
func NewMockWrapper() *MockWrapper
func (*MockWrapper) GetVersion ¶
func (w *MockWrapper) GetVersion() (VersionInfo, error)
func (*MockWrapper) Scan ¶
func (w *MockWrapper) Scan(imageRef ImageRef) ([]Vulnerability, error)
type ScanReport ¶
type ScanReport struct { SchemaVersion int Results []ScanResult `json:"Results"` }
type ScanResult ¶
type ScanResult struct { Target string `json:"Target"` Vulnerabilities []Vulnerability `json:"Vulnerabilities"` }
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"` PrimaryURL string `json:"PrimaryURL"` Layer *Layer `json:"Layer"` CVSS map[string]CVSSInfo `json:"CVSS"` CweIDs []string `json:"CweIDs"` }
type Wrapper ¶
type Wrapper interface { Scan(imageRef ImageRef) ([]Vulnerability, error) GetVersion() (VersionInfo, error) }
func NewWrapper ¶
func NewWrapper(config etc.Tunnel, ambassador ext.Ambassador) Wrapper
Click to show internal directories.
Click to hide internal directories.