Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SuperSet = wire.NewSet( wire.Struct(new(DriverFactory)), wire.Bind(new(Factory), new(DriverFactory)), NewDetector, wire.Bind(new(Operation), new(Detector)), )
Functions ¶
This section is empty.
Types ¶
type DetectExpectation ¶
type DetectExpectation struct { Args DetectInput ReturnArgs DetectOutput }
type DetectInput ¶
type DetectOutput ¶
type DetectOutput struct { Vulns []types.DetectedVulnerability Err error }
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
func NewDetector ¶
type DriverFactory ¶
type DriverFactory struct{}
func (DriverFactory) NewDriver ¶
func (d DriverFactory) NewDriver(filename string) Driver
type MockDetector ¶
func NewMockDetector ¶
func NewMockDetector(detectExpectations []DetectExpectation) *MockDetector
func (*MockDetector) Detect ¶
func (_m *MockDetector) Detect(a string, b []ptypes.Library) ([]types.DetectedVulnerability, error)
Click to show internal directories.
Click to hide internal directories.