Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- type FillInfoArgs
- type FillInfoExpectation
- type FilterArgs
- type FilterExpectation
- type FilterReturns
- type MockOperation
- func (_m *MockOperation) ApplyFillInfoExpectation(e FillInfoExpectation)
- func (_m *MockOperation) ApplyFillInfoExpectations(expectations []FillInfoExpectation)
- func (_m *MockOperation) ApplyFilterExpectation(e FilterExpectation)
- func (_m *MockOperation) ApplyFilterExpectations(expectations []FilterExpectation)
- func (_m *MockOperation) FillInfo(vulns []types.DetectedVulnerability, reportType string)
- func (_m *MockOperation) Filter(vulns []types.DetectedVulnerability, severities []pkgtypes.Severity, ...) []types.DetectedVulnerability
- type Operation
Constants ¶
View Source
const (
DefaultIgnoreFile = ".trivyignore"
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type FillInfoArgs ¶ added in v0.5.0
type FillInfoArgs struct { Vulns []types.DetectedVulnerability VulnsAnything bool ReportType string ReportTypeAnything bool }
type FillInfoExpectation ¶ added in v0.5.0
type FillInfoExpectation struct {
Args FillInfoArgs
}
type FilterArgs ¶ added in v0.5.0
type FilterExpectation ¶ added in v0.5.0
type FilterExpectation struct { Args FilterArgs Returns FilterReturns }
type FilterReturns ¶ added in v0.5.0
type FilterReturns struct {
// contains filtered or unexported fields
}
type MockOperation ¶ added in v0.5.0
MockOperation is an autogenerated mock type for the Operation type
func (*MockOperation) ApplyFillInfoExpectation ¶ added in v0.5.0
func (_m *MockOperation) ApplyFillInfoExpectation(e FillInfoExpectation)
func (*MockOperation) ApplyFillInfoExpectations ¶ added in v0.5.0
func (_m *MockOperation) ApplyFillInfoExpectations(expectations []FillInfoExpectation)
func (*MockOperation) ApplyFilterExpectation ¶ added in v0.5.0
func (_m *MockOperation) ApplyFilterExpectation(e FilterExpectation)
func (*MockOperation) ApplyFilterExpectations ¶ added in v0.5.0
func (_m *MockOperation) ApplyFilterExpectations(expectations []FilterExpectation)
func (*MockOperation) FillInfo ¶ added in v0.5.0
func (_m *MockOperation) FillInfo(vulns []types.DetectedVulnerability, reportType string)
FillInfo provides a mock function with given fields: vulns, reportType
func (*MockOperation) Filter ¶ added in v0.5.0
func (_m *MockOperation) Filter(vulns []types.DetectedVulnerability, severities []pkgtypes.Severity, ignoreUnfixed bool, ignoreFile string) []types.DetectedVulnerability
Filter provides a mock function with given fields: vulns, severities, ignoreUnfixed, ignoreFile
type Operation ¶ added in v0.3.0
type Operation interface { FillInfo(vulns []types.DetectedVulnerability, reportType string) Filter(vulns []types.DetectedVulnerability, severities []dbTypes.Severity, ignoreUnfixed bool, ignoreFile string) []types.DetectedVulnerability }
Click to show internal directories.
Click to hide internal directories.