mocks

package
v0.0.9-alpha Latest Latest
Warning

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

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

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCloser

type MockCloser struct {
	// contains filtered or unexported fields
}

MockCloser is a mock of Closer interface.

func NewMockCloser

func NewMockCloser(ctrl *gomock.Controller) *MockCloser

NewMockCloser creates a new mock instance.

func (*MockCloser) Close

func (m *MockCloser) Close(arg0 context.Context) error

Close mocks base method.

func (*MockCloser) EXPECT

func (m *MockCloser) EXPECT() *MockCloserMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

type MockCloserMockRecorder

type MockCloserMockRecorder struct {
	// contains filtered or unexported fields
}

MockCloserMockRecorder is the mock recorder for MockCloser.

func (*MockCloserMockRecorder) Close

func (mr *MockCloserMockRecorder) Close(arg0 any) *gomock.Call

Close indicates an expected call of Close.

type MockEnricher

type MockEnricher struct {
	// contains filtered or unexported fields
}

MockEnricher is a mock of Enricher interface.

func NewMockEnricher

func NewMockEnricher(ctrl *gomock.Controller) *MockEnricher

NewMockEnricher creates a new mock instance.

func (*MockEnricher) Annotate

Annotate mocks base method.

func (*MockEnricher) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockEnricherMockRecorder

type MockEnricherMockRecorder struct {
	// contains filtered or unexported fields
}

MockEnricherMockRecorder is the mock recorder for MockEnricher.

func (*MockEnricherMockRecorder) Annotate

func (mr *MockEnricherMockRecorder) Annotate(ctx, findings any) *gomock.Call

Annotate indicates an expected call of Annotate.

type MockFilter

type MockFilter struct {
	// contains filtered or unexported fields
}

MockFilter is a mock of Filter interface.

func NewMockFilter

func NewMockFilter(ctrl *gomock.Controller) *MockFilter

NewMockFilter creates a new mock instance.

func (*MockFilter) EXPECT

func (m *MockFilter) EXPECT() *MockFilterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFilter) Filter

Filter mocks base method.

type MockFilterMockRecorder

type MockFilterMockRecorder struct {
	// contains filtered or unexported fields
}

MockFilterMockRecorder is the mock recorder for MockFilter.

func (*MockFilterMockRecorder) Filter

func (mr *MockFilterMockRecorder) Filter(ctx, findings any) *gomock.Call

Filter indicates an expected call of Filter.

type MockReader

type MockReader struct {
	// contains filtered or unexported fields
}

MockReader is a mock of Reader interface.

func NewMockReader

func NewMockReader(ctrl *gomock.Controller) *MockReader

NewMockReader creates a new mock instance.

func (*MockReader) EXPECT

func (m *MockReader) EXPECT() *MockReaderMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockReader) Read

Read mocks base method.

type MockReaderMockRecorder

type MockReaderMockRecorder struct {
	// contains filtered or unexported fields
}

MockReaderMockRecorder is the mock recorder for MockReader.

func (*MockReaderMockRecorder) Read

func (mr *MockReaderMockRecorder) Read(ctx, instanceID any) *gomock.Call

Read indicates an expected call of Read.

type MockReporter

type MockReporter struct {
	// contains filtered or unexported fields
}

MockReporter is a mock of Reporter interface.

func NewMockReporter

func NewMockReporter(ctrl *gomock.Controller) *MockReporter

NewMockReporter creates a new mock instance.

func (*MockReporter) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockReporter) Report

Report mocks base method.

type MockReporterMockRecorder

type MockReporterMockRecorder struct {
	// contains filtered or unexported fields
}

MockReporterMockRecorder is the mock recorder for MockReporter.

func (*MockReporterMockRecorder) Report

func (mr *MockReporterMockRecorder) Report(ctx, findings any) *gomock.Call

Report indicates an expected call of Report.

type MockScanner

type MockScanner struct {
	// contains filtered or unexported fields
}

MockScanner is a mock of Scanner interface.

func NewMockScanner

func NewMockScanner(ctrl *gomock.Controller) *MockScanner

NewMockScanner creates a new mock instance.

func (*MockScanner) EXPECT

func (m *MockScanner) EXPECT() *MockScannerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockScanner) Transform

func (m *MockScanner) Transform(ctx context.Context) ([]*v1.VulnerabilityFinding, error)

Transform mocks base method.

type MockScannerMockRecorder

type MockScannerMockRecorder struct {
	// contains filtered or unexported fields
}

MockScannerMockRecorder is the mock recorder for MockScanner.

func (*MockScannerMockRecorder) Transform

func (mr *MockScannerMockRecorder) Transform(ctx any) *gomock.Call

Transform indicates an expected call of Transform.

type MockStorer

type MockStorer struct {
	// contains filtered or unexported fields
}

MockStorer is a mock of Storer interface.

func NewMockStorer

func NewMockStorer(ctrl *gomock.Controller) *MockStorer

NewMockStorer creates a new mock instance.

func (*MockStorer) Close

func (m *MockStorer) Close(arg0 context.Context) error

Close mocks base method.

func (*MockStorer) EXPECT

func (m *MockStorer) EXPECT() *MockStorerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStorer) Read

Read mocks base method.

func (*MockStorer) Update

func (m *MockStorer) Update(ctx context.Context, instanceID uuid.UUID, findings []*vulnerability_finding.VulnerabilityFinding) error

Update mocks base method.

func (*MockStorer) Validate

func (m *MockStorer) Validate(finding *v1.VulnerabilityFinding) error

Validate mocks base method.

func (*MockStorer) Write

func (m *MockStorer) Write(ctx context.Context, instanceID uuid.UUID, findings []*v1.VulnerabilityFinding) error

Write mocks base method.

type MockStorerMockRecorder

type MockStorerMockRecorder struct {
	// contains filtered or unexported fields
}

MockStorerMockRecorder is the mock recorder for MockStorer.

func (*MockStorerMockRecorder) Close

func (mr *MockStorerMockRecorder) Close(arg0 any) *gomock.Call

Close indicates an expected call of Close.

func (*MockStorerMockRecorder) Read

func (mr *MockStorerMockRecorder) Read(ctx, instanceID any) *gomock.Call

Read indicates an expected call of Read.

func (*MockStorerMockRecorder) Update

func (mr *MockStorerMockRecorder) Update(ctx, instanceID, findings any) *gomock.Call

Update indicates an expected call of Update.

func (*MockStorerMockRecorder) Validate

func (mr *MockStorerMockRecorder) Validate(finding any) *gomock.Call

Validate indicates an expected call of Validate.

func (*MockStorerMockRecorder) Write

func (mr *MockStorerMockRecorder) Write(ctx, instanceID, findings any) *gomock.Call

Write indicates an expected call of Write.

type MockTarget

type MockTarget struct {
	// contains filtered or unexported fields
}

MockTarget is a mock of Target interface.

func NewMockTarget

func NewMockTarget(ctrl *gomock.Controller) *MockTarget

NewMockTarget creates a new mock instance.

func (*MockTarget) EXPECT

func (m *MockTarget) EXPECT() *MockTargetMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTarget) Prepare

func (m *MockTarget) Prepare(ctx context.Context) error

Prepare mocks base method.

type MockTargetMockRecorder

type MockTargetMockRecorder struct {
	// contains filtered or unexported fields
}

MockTargetMockRecorder is the mock recorder for MockTarget.

func (*MockTargetMockRecorder) Prepare

func (mr *MockTargetMockRecorder) Prepare(ctx any) *gomock.Call

Prepare indicates an expected call of Prepare.

type MockUpdater

type MockUpdater struct {
	// contains filtered or unexported fields
}

MockUpdater is a mock of Updater interface.

func NewMockUpdater

func NewMockUpdater(ctrl *gomock.Controller) *MockUpdater

NewMockUpdater creates a new mock instance.

func (*MockUpdater) EXPECT

func (m *MockUpdater) EXPECT() *MockUpdaterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUpdater) Update

func (m *MockUpdater) Update(ctx context.Context, instanceID uuid.UUID, findings []*vulnerability_finding.VulnerabilityFinding) error

Update mocks base method.

type MockUpdaterMockRecorder

type MockUpdaterMockRecorder struct {
	// contains filtered or unexported fields
}

MockUpdaterMockRecorder is the mock recorder for MockUpdater.

func (*MockUpdaterMockRecorder) Update

func (mr *MockUpdaterMockRecorder) Update(ctx, instanceID, findings any) *gomock.Call

Update indicates an expected call of Update.

type MockValidator

type MockValidator struct {
	// contains filtered or unexported fields
}

MockValidator is a mock of Validator interface.

func NewMockValidator

func NewMockValidator(ctrl *gomock.Controller) *MockValidator

NewMockValidator creates a new mock instance.

func (*MockValidator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockValidator) Validate

func (m *MockValidator) Validate(finding *v1.VulnerabilityFinding) error

Validate mocks base method.

type MockValidatorMockRecorder

type MockValidatorMockRecorder struct {
	// contains filtered or unexported fields
}

MockValidatorMockRecorder is the mock recorder for MockValidator.

func (*MockValidatorMockRecorder) Validate

func (mr *MockValidatorMockRecorder) Validate(finding any) *gomock.Call

Validate indicates an expected call of Validate.

type MockWriter

type MockWriter struct {
	// contains filtered or unexported fields
}

MockWriter is a mock of Writer interface.

func NewMockWriter

func NewMockWriter(ctrl *gomock.Controller) *MockWriter

NewMockWriter creates a new mock instance.

func (*MockWriter) EXPECT

func (m *MockWriter) EXPECT() *MockWriterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockWriter) Write

func (m *MockWriter) Write(ctx context.Context, instanceID uuid.UUID, findings []*v1.VulnerabilityFinding) error

Write mocks base method.

type MockWriterMockRecorder

type MockWriterMockRecorder struct {
	// contains filtered or unexported fields
}

MockWriterMockRecorder is the mock recorder for MockWriter.

func (*MockWriterMockRecorder) Write

func (mr *MockWriterMockRecorder) Write(ctx, instanceID, findings any) *gomock.Call

Write indicates an expected call of Write.

Jump to

Keyboard shortcuts

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