mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
* Refactoring of switch to if statement * Edited the core/pkg/score/score.go Signed-off-by: Dipankar Das <dipankardas0115@gmail.com> * Changes to function comments * core/pkg/registryadaptors/registryvulnerabilities/interfaces.go Signed-off-by: Dipankar Das <dipankardas0115@gmail.com> Signed-off-by: Dipankar Das <dipankardas0115@gmail.com>
18 lines
842 B
Go
18 lines
842 B
Go
package registryvulnerabilities
|
|
|
|
type IContainerImageVulnerabilityAdaptor interface {
|
|
// Login 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
|
|
|
|
// DescribeAdaptor 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)
|
|
}
|