Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Categories ¶
type Categories struct {
IsRCE bool `json:"isRce"`
}
type ContainerImageInformation ¶
type ContainerImageInformation struct { ImageID ContainerImageIdentifier Bom []string }
type ContainerImageScanStatus ¶
type ContainerImageScanStatus struct { ImageID ContainerImageIdentifier IsScanAvailable bool IsBomAvailable bool LastScanDate time.Time }
type ContainerImageVulnerabilityReport ¶
type ContainerImageVulnerabilityReport struct { ImageID ContainerImageIdentifier Vulnerabilities []Vulnerability }
type IContainerImageVulnerabilityAdaptor ¶
type IContainerImageVulnerabilityAdaptor interface { // Credentials are coming from user input (CLI or configuration file) and they are abstracted at string to string map level // so and example use would be like registry: "simpledockerregistry:80" and credentials like {"username":"joedoe","password":"abcd1234"} Login() error // For "help" purposes DescribeAdaptor() string GetImagesScanStatus(imageIDs []ContainerImageIdentifier) ([]ContainerImageScanStatus, error) GetImagesVulnerabilities(imageIDs []ContainerImageIdentifier) ([]ContainerImageVulnerabilityReport, error) GetImageVulnerability(imageID *ContainerImageIdentifier) (*ContainerImageVulnerabilityReport, error) GetImagesInformation(imageIDs []ContainerImageIdentifier) ([]ContainerImageInformation, error) }
type Vulnerability ¶
type Vulnerability struct { Name string `json:"name"` RelatedPackageName string `json:"packageName"` PackageVersion string `json:"packageVersion"` Link string `json:"link"` Description string `json:"description"` Severity string `json:"severity"` Metadata interface{} `json:"metadata"` Fixes []FixedIn `json:"fixedIn"` Relevancy string `json:"relevant"` // use the related enum UrgentCount int `json:"urgent"` NeglectedCount int `json:"neglected"` HealthStatus string `json:"healthStatus"` Categories Categories `json:"categories"` }
Click to show internal directories.
Click to hide internal directories.