scan

package
v0.0.0-...-12382fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	mock.Mock
}

Checker is an autogenerated mock type for the Checker type

func NewChecker

func NewChecker(t interface {
	mock.TestingT
	Cleanup(func())
}) *Checker

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.

func (*Checker) IsScannable

func (_m *Checker) IsScannable(ctx context.Context, _a1 *artifact.Artifact) (bool, error)

IsScannable provides a mock function with given fields: ctx, _a1

type Controller

type Controller struct {
	mock.Mock
}

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

func (_m *Controller) ScanAll(ctx context.Context, trigger string, async bool) (int64, error)

ScanAll provides a mock function with given fields: ctx, trigger, async

func (*Controller) Stop

func (_m *Controller) Stop(ctx context.Context, _a1 *artifact.Artifact, capType string) error

Stop provides a mock function with given fields: ctx, _a1, capType

func (*Controller) StopScanAll

func (_m *Controller) StopScanAll(ctx context.Context, executionID int64, async bool) error

StopScanAll provides a mock function with given fields: ctx, executionID, async

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL