Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterDriver ¶ added in v0.23.0
RegisterDriver is defined for extensibility and not supposed to be used in Trivy.
Types ¶
type DetectExpectation ¶
type DetectExpectation struct { Args DetectInput ReturnArgs DetectOutput }
type DetectInput ¶
type DetectOutput ¶
type DetectOutput struct { Vulns []types.DetectedVulnerability Eosl bool Err error }
type Driver ¶
type Driver interface { Detect(string, []ftypes.Package) ([]types.DetectedVulnerability, error) IsSupportedVersion(string, string) bool }
Driver defines operations for OS package scan
type MockDetector ¶
func NewMockDetector ¶
func NewMockDetector(detectExpectations []DetectExpectation) *MockDetector
Click to show internal directories.
Click to hide internal directories.