Documentation ¶
Index ¶
- type GCPAdaptor
- func (GCPAdaptor *GCPAdaptor) DescribeAdaptor() string
- func (GCPAdaptor *GCPAdaptor) GetImageVulnerability(imageID *registryvulnerabilities.ContainerImageIdentifier) (*registryvulnerabilities.ContainerImageVulnerabilityReport, error)
- func (GCPAdaptor *GCPAdaptor) GetImagesInformation(imageIDs []registryvulnerabilities.ContainerImageIdentifier) ([]registryvulnerabilities.ContainerImageInformation, error)
- func (GCPAdaptor *GCPAdaptor) GetImagesScanStatus(imageIDs []registryvulnerabilities.ContainerImageIdentifier) ([]registryvulnerabilities.ContainerImageScanStatus, error)
- func (GCPAdaptor *GCPAdaptor) GetImagesVulnerabilities(imageIDs []registryvulnerabilities.ContainerImageIdentifier) ([]registryvulnerabilities.ContainerImageVulnerabilityReport, error)
- func (GCPAdaptor *GCPAdaptor) Login() error
- type GCPAdaptorMock
- func (GCPAdaptorMock *GCPAdaptorMock) DescribeAdaptor() string
- func (GCPAdaptorMock *GCPAdaptorMock) GetImageVulnerability(imageID *registryvulnerabilities.ContainerImageIdentifier) (*registryvulnerabilities.ContainerImageVulnerabilityReport, error)
- func (GCPAdaptorMock *GCPAdaptorMock) GetImagesInformation(imageIDs []registryvulnerabilities.ContainerImageIdentifier) ([]registryvulnerabilities.ContainerImageInformation, error)
- func (GCPAdaptorMock *GCPAdaptorMock) GetImagesScanStatus(imageIDs []registryvulnerabilities.ContainerImageIdentifier) ([]registryvulnerabilities.ContainerImageScanStatus, error)
- func (GCPAdaptorMock *GCPAdaptorMock) GetImagesVulnerabilities(imageIDs []registryvulnerabilities.ContainerImageIdentifier) ([]registryvulnerabilities.ContainerImageVulnerabilityReport, error)
- func (GCPAdaptorMock *GCPAdaptorMock) Login() error
- type Mock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCPAdaptor ¶
type GCPAdaptor struct {
GCPCloudAPI *getter.GCPCloudAPI
}
func NewGCPAdaptor ¶
func NewGCPAdaptor(GCPCloudAPI *getter.GCPCloudAPI) *GCPAdaptor
func (*GCPAdaptor) DescribeAdaptor ¶
func (GCPAdaptor *GCPAdaptor) DescribeAdaptor() string
func (*GCPAdaptor) GetImageVulnerability ¶
func (GCPAdaptor *GCPAdaptor) GetImageVulnerability(imageID *registryvulnerabilities.ContainerImageIdentifier) (*registryvulnerabilities.ContainerImageVulnerabilityReport, error)
func (*GCPAdaptor) GetImagesInformation ¶
func (GCPAdaptor *GCPAdaptor) GetImagesInformation(imageIDs []registryvulnerabilities.ContainerImageIdentifier) ([]registryvulnerabilities.ContainerImageInformation, error)
func (*GCPAdaptor) GetImagesScanStatus ¶
func (GCPAdaptor *GCPAdaptor) GetImagesScanStatus(imageIDs []registryvulnerabilities.ContainerImageIdentifier) ([]registryvulnerabilities.ContainerImageScanStatus, error)
func (*GCPAdaptor) GetImagesVulnerabilities ¶
func (GCPAdaptor *GCPAdaptor) GetImagesVulnerabilities(imageIDs []registryvulnerabilities.ContainerImageIdentifier) ([]registryvulnerabilities.ContainerImageVulnerabilityReport, error)
func (*GCPAdaptor) Login ¶
func (GCPAdaptor *GCPAdaptor) Login() error
type GCPAdaptorMock ¶
type GCPAdaptorMock struct {
// contains filtered or unexported fields
}
func NewGCPAdaptorMock ¶
func NewGCPAdaptorMock() (*GCPAdaptorMock, error)
func (*GCPAdaptorMock) DescribeAdaptor ¶
func (GCPAdaptorMock *GCPAdaptorMock) DescribeAdaptor() string
func (*GCPAdaptorMock) GetImageVulnerability ¶
func (GCPAdaptorMock *GCPAdaptorMock) GetImageVulnerability(imageID *registryvulnerabilities.ContainerImageIdentifier) (*registryvulnerabilities.ContainerImageVulnerabilityReport, error)
func (*GCPAdaptorMock) GetImagesInformation ¶
func (GCPAdaptorMock *GCPAdaptorMock) GetImagesInformation(imageIDs []registryvulnerabilities.ContainerImageIdentifier) ([]registryvulnerabilities.ContainerImageInformation, error)
func (*GCPAdaptorMock) GetImagesScanStatus ¶
func (GCPAdaptorMock *GCPAdaptorMock) GetImagesScanStatus(imageIDs []registryvulnerabilities.ContainerImageIdentifier) ([]registryvulnerabilities.ContainerImageScanStatus, error)
func (*GCPAdaptorMock) GetImagesVulnerabilities ¶
func (GCPAdaptorMock *GCPAdaptorMock) GetImagesVulnerabilities(imageIDs []registryvulnerabilities.ContainerImageIdentifier) ([]registryvulnerabilities.ContainerImageVulnerabilityReport, error)
func (*GCPAdaptorMock) Login ¶
func (GCPAdaptorMock *GCPAdaptorMock) Login() error
type Mock ¶
type Mock struct { Name string Notename string CvssScore float32 CreatedTime int64 UpdatedTime int64 Type string ShortDescription string AffectedCPEURI string AffectedPackage string FixAvailable bool AffectedVersion string FixedVersion string }
func GetMockData ¶
func GetMockData() []Mock
Click to show internal directories.
Click to hide internal directories.