Documentation ¶
Index ¶
- type Checker
- type Controller
- func (_m *Controller) GetReport(ctx context.Context, _a1 *artifact.Artifact, mimeTypes []string) ([]*scan.Report, error)
- func (_m *Controller) GetScanLog(ctx context.Context, art *artifact.Artifact, uuid string) ([]byte, error)
- func (_m *Controller) GetSummary(ctx context.Context, _a1 *artifact.Artifact, scanType string, ...) (map[string]interface{}, error)
- func (_m *Controller) GetVulnerable(ctx context.Context, _a1 *artifact.Artifact, allowlist models.CVESet, ...) (*controllerscan.Vulnerable, error)
- func (_m *Controller) Scan(ctx context.Context, _a1 *artifact.Artifact, options ...controllerscan.Option) error
- func (_m *Controller) ScanAll(ctx context.Context, trigger string, async bool) (int64, error)
- func (_m *Controller) Stop(ctx context.Context, _a1 *artifact.Artifact, capType string) error
- func (_m *Controller) StopScanAll(ctx context.Context, executionID int64, async bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
Checker is an autogenerated mock type for the Checker type
func NewChecker ¶
NewChecker creates a new instance of Checker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type Controller ¶
Controller is an autogenerated mock type for the Controller type
func NewController ¶
func NewController(t interface { mock.TestingT Cleanup(func()) }) *Controller
NewController creates a new instance of Controller. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Controller) GetReport ¶
func (_m *Controller) GetReport(ctx context.Context, _a1 *artifact.Artifact, mimeTypes []string) ([]*scan.Report, error)
GetReport provides a mock function with given fields: ctx, _a1, mimeTypes
func (*Controller) GetScanLog ¶
func (_m *Controller) GetScanLog(ctx context.Context, art *artifact.Artifact, uuid string) ([]byte, error)
GetScanLog provides a mock function with given fields: ctx, art, uuid
func (*Controller) GetSummary ¶
func (_m *Controller) GetSummary(ctx context.Context, _a1 *artifact.Artifact, scanType string, mimeTypes []string) (map[string]interface{}, error)
GetSummary provides a mock function with given fields: ctx, _a1, scanType, mimeTypes
func (*Controller) GetVulnerable ¶
func (_m *Controller) GetVulnerable(ctx context.Context, _a1 *artifact.Artifact, allowlist models.CVESet, allowlistIsExpired bool) (*controllerscan.Vulnerable, error)
GetVulnerable provides a mock function with given fields: ctx, _a1, allowlist, allowlistIsExpired
func (*Controller) Scan ¶
func (_m *Controller) Scan(ctx context.Context, _a1 *artifact.Artifact, options ...controllerscan.Option) error
Scan provides a mock function with given fields: ctx, _a1, options
func (*Controller) ScanAll ¶
ScanAll provides a mock function with given fields: ctx, trigger, async
func (*Controller) StopScanAll ¶
StopScanAll provides a mock function with given fields: ctx, executionID, async