Documentation ¶
Index ¶
- Variables
- type Applier
- type ApplierApplyLayersArgs
- type ApplierApplyLayersExpectation
- type ApplierApplyLayersReturns
- type LibraryDetector
- type LibraryDetectorDetectArgs
- type LibraryDetectorDetectExpectation
- type LibraryDetectorDetectReturns
- type MockApplier
- type MockLibraryDetector
- func (_m *MockLibraryDetector) ApplyDetectExpectation(e LibraryDetectorDetectExpectation)
- func (_m *MockLibraryDetector) ApplyDetectExpectations(expectations []LibraryDetectorDetectExpectation)
- func (_m *MockLibraryDetector) Detect(imageName string, filePath string, created time.Time, pkgs []types.LibraryInfo) ([]pkgtypes.DetectedVulnerability, error)
- type MockOspkgDetector
- func (_m *MockOspkgDetector) ApplyDetectExpectation(e OspkgDetectorDetectExpectation)
- func (_m *MockOspkgDetector) ApplyDetectExpectations(expectations []OspkgDetectorDetectExpectation)
- func (_m *MockOspkgDetector) Detect(imageName string, osFamily string, osName string, created time.Time, ...) ([]pkgtypes.DetectedVulnerability, bool, error)
- type OspkgDetector
- type OspkgDetectorDetectArgs
- type OspkgDetectorDetectExpectation
- type OspkgDetectorDetectReturns
- type Scanner
Constants ¶
This section is empty.
Variables ¶
View Source
var SuperSet = wire.NewSet( analyzer.NewApplier, wire.Bind(new(Applier), new(analyzer.Applier)), ospkgDetector.SuperSet, wire.Bind(new(OspkgDetector), new(ospkgDetector.Detector)), libDetector.SuperSet, wire.Bind(new(LibraryDetector), new(libDetector.Detector)), NewScanner, )
Functions ¶
This section is empty.
Types ¶
type ApplierApplyLayersArgs ¶
type ApplierApplyLayersExpectation ¶
type ApplierApplyLayersExpectation struct { Args ApplierApplyLayersArgs Returns ApplierApplyLayersReturns }
type ApplierApplyLayersReturns ¶
type ApplierApplyLayersReturns struct { Detail types.ImageDetail Err error }
type LibraryDetector ¶
type LibraryDetector interface {
Detect(imageName, filePath string, created time.Time, pkgs []ftypes.LibraryInfo) (detectedVulns []types.DetectedVulnerability, err error)
}
type LibraryDetectorDetectExpectation ¶
type LibraryDetectorDetectExpectation struct { Args LibraryDetectorDetectArgs Returns LibraryDetectorDetectReturns }
type LibraryDetectorDetectReturns ¶
type LibraryDetectorDetectReturns struct { DetectedVulns []pkgtypes.DetectedVulnerability Err error }
type MockApplier ¶
MockApplier is an autogenerated mock type for the Applier type
func (*MockApplier) ApplyApplyLayersExpectation ¶
func (_m *MockApplier) ApplyApplyLayersExpectation(e ApplierApplyLayersExpectation)
func (*MockApplier) ApplyApplyLayersExpectations ¶
func (_m *MockApplier) ApplyApplyLayersExpectations(expectations []ApplierApplyLayersExpectation)
func (*MockApplier) ApplyLayers ¶
func (_m *MockApplier) ApplyLayers(imageID digest.Digest, layerIDs []string) (types.ImageDetail, error)
ApplyLayers provides a mock function with given fields: imageID, layerIDs
type MockLibraryDetector ¶
MockLibraryDetector is an autogenerated mock type for the LibraryDetector type
func (*MockLibraryDetector) ApplyDetectExpectation ¶
func (_m *MockLibraryDetector) ApplyDetectExpectation(e LibraryDetectorDetectExpectation)
func (*MockLibraryDetector) ApplyDetectExpectations ¶
func (_m *MockLibraryDetector) ApplyDetectExpectations(expectations []LibraryDetectorDetectExpectation)
func (*MockLibraryDetector) Detect ¶
func (_m *MockLibraryDetector) Detect(imageName string, filePath string, created time.Time, pkgs []types.LibraryInfo) ([]pkgtypes.DetectedVulnerability, error)
Detect provides a mock function with given fields: imageName, filePath, created, pkgs
type MockOspkgDetector ¶
MockOspkgDetector is an autogenerated mock type for the OspkgDetector type
func (*MockOspkgDetector) ApplyDetectExpectation ¶
func (_m *MockOspkgDetector) ApplyDetectExpectation(e OspkgDetectorDetectExpectation)
func (*MockOspkgDetector) ApplyDetectExpectations ¶
func (_m *MockOspkgDetector) ApplyDetectExpectations(expectations []OspkgDetectorDetectExpectation)
func (*MockOspkgDetector) Detect ¶
func (_m *MockOspkgDetector) Detect(imageName string, osFamily string, osName string, created time.Time, pkgs []types.Package) ([]pkgtypes.DetectedVulnerability, bool, error)
Detect provides a mock function with given fields: imageName, osFamily, osName, created, pkgs
type OspkgDetector ¶
type OspkgDetectorDetectArgs ¶
type OspkgDetectorDetectExpectation ¶
type OspkgDetectorDetectExpectation struct { Args OspkgDetectorDetectArgs Returns OspkgDetectorDetectReturns }
type OspkgDetectorDetectReturns ¶
type OspkgDetectorDetectReturns struct { DetectedVulns []pkgtypes.DetectedVulnerability Eosl bool Err error }
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func NewScanner ¶
func NewScanner(applier Applier, ospkgDetector OspkgDetector, libDetector LibraryDetector) Scanner
Click to show internal directories.
Click to hide internal directories.