mock_datastore

package
v1.5.35 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mock_datastore is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEnrichment

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

MockEnrichment is a mock of Enrichment interface.

func NewMockEnrichment

func NewMockEnrichment(ctrl *gomock.Controller) *MockEnrichment

NewMockEnrichment creates a new mock instance.

func (*MockEnrichment) EXPECT

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

func (*MockEnrichment) GetEnrichment

func (m *MockEnrichment) GetEnrichment(arg0 context.Context, arg1 string, arg2 []string) ([]driver.EnrichmentRecord, error)

GetEnrichment mocks base method.

type MockEnrichmentMockRecorder

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

MockEnrichmentMockRecorder is the mock recorder for MockEnrichment.

func (*MockEnrichmentMockRecorder) GetEnrichment

func (mr *MockEnrichmentMockRecorder) GetEnrichment(arg0, arg1, arg2 any) *gomock.Call

GetEnrichment indicates an expected call of GetEnrichment.

type MockEnrichmentUpdater

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

MockEnrichmentUpdater is a mock of EnrichmentUpdater interface.

func NewMockEnrichmentUpdater

func NewMockEnrichmentUpdater(ctrl *gomock.Controller) *MockEnrichmentUpdater

NewMockEnrichmentUpdater creates a new mock instance.

func (*MockEnrichmentUpdater) EXPECT

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

func (*MockEnrichmentUpdater) UpdateEnrichments

func (m *MockEnrichmentUpdater) UpdateEnrichments(arg0 context.Context, arg1 string, arg2 driver.Fingerprint, arg3 []driver.EnrichmentRecord) (uuid.UUID, error)

UpdateEnrichments mocks base method.

func (*MockEnrichmentUpdater) UpdateEnrichmentsIter

func (m *MockEnrichmentUpdater) UpdateEnrichmentsIter(arg0 context.Context, arg1 string, arg2 driver.Fingerprint, arg3 datastore.EnrichmentIter) (uuid.UUID, error)

UpdateEnrichmentsIter mocks base method.

type MockEnrichmentUpdaterMockRecorder

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

MockEnrichmentUpdaterMockRecorder is the mock recorder for MockEnrichmentUpdater.

func (*MockEnrichmentUpdaterMockRecorder) UpdateEnrichments

func (mr *MockEnrichmentUpdaterMockRecorder) UpdateEnrichments(arg0, arg1, arg2, arg3 any) *gomock.Call

UpdateEnrichments indicates an expected call of UpdateEnrichments.

func (*MockEnrichmentUpdaterMockRecorder) UpdateEnrichmentsIter

func (mr *MockEnrichmentUpdaterMockRecorder) UpdateEnrichmentsIter(arg0, arg1, arg2, arg3 any) *gomock.Call

UpdateEnrichmentsIter indicates an expected call of UpdateEnrichmentsIter.

type MockMatcherStore

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

MockMatcherStore is a mock of MatcherStore interface.

func NewMockMatcherStore

func NewMockMatcherStore(ctrl *gomock.Controller) *MockMatcherStore

NewMockMatcherStore creates a new mock instance.

func (*MockMatcherStore) DeleteUpdateOperations

func (m *MockMatcherStore) DeleteUpdateOperations(arg0 context.Context, arg1 ...uuid.UUID) (int64, error)

DeleteUpdateOperations mocks base method.

func (*MockMatcherStore) DeltaUpdateVulnerabilities

func (m *MockMatcherStore) DeltaUpdateVulnerabilities(arg0 context.Context, arg1 string, arg2 driver.Fingerprint, arg3 []*claircore.Vulnerability, arg4 []string) (uuid.UUID, error)

DeltaUpdateVulnerabilities mocks base method.

func (*MockMatcherStore) EXPECT

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

func (*MockMatcherStore) GC

func (m *MockMatcherStore) GC(arg0 context.Context, arg1 int) (int64, error)

GC mocks base method.

func (*MockMatcherStore) Get

Get mocks base method.

func (*MockMatcherStore) GetEnrichment

func (m *MockMatcherStore) GetEnrichment(arg0 context.Context, arg1 string, arg2 []string) ([]driver.EnrichmentRecord, error)

GetEnrichment mocks base method.

func (*MockMatcherStore) GetLatestUpdateRef

func (m *MockMatcherStore) GetLatestUpdateRef(arg0 context.Context, arg1 driver.UpdateKind) (uuid.UUID, error)

GetLatestUpdateRef mocks base method.

func (*MockMatcherStore) GetLatestUpdateRefs

func (m *MockMatcherStore) GetLatestUpdateRefs(arg0 context.Context, arg1 driver.UpdateKind) (map[string][]driver.UpdateOperation, error)

GetLatestUpdateRefs mocks base method.

func (*MockMatcherStore) GetUpdateDiff

func (m *MockMatcherStore) GetUpdateDiff(arg0 context.Context, arg1, arg2 uuid.UUID) (*driver.UpdateDiff, error)

GetUpdateDiff mocks base method.

func (*MockMatcherStore) GetUpdateOperations

func (m *MockMatcherStore) GetUpdateOperations(arg0 context.Context, arg1 driver.UpdateKind, arg2 ...string) (map[string][]driver.UpdateOperation, error)

GetUpdateOperations mocks base method.

func (*MockMatcherStore) Initialized

func (m *MockMatcherStore) Initialized(arg0 context.Context) (bool, error)

Initialized mocks base method.

func (*MockMatcherStore) RecordUpdaterSetStatus

func (m *MockMatcherStore) RecordUpdaterSetStatus(arg0 context.Context, arg1 string, arg2 time.Time) error

RecordUpdaterSetStatus mocks base method.

func (*MockMatcherStore) RecordUpdaterStatus

func (m *MockMatcherStore) RecordUpdaterStatus(arg0 context.Context, arg1 string, arg2 time.Time, arg3 driver.Fingerprint, arg4 error) error

RecordUpdaterStatus mocks base method.

func (*MockMatcherStore) UpdateEnrichments

func (m *MockMatcherStore) UpdateEnrichments(arg0 context.Context, arg1 string, arg2 driver.Fingerprint, arg3 []driver.EnrichmentRecord) (uuid.UUID, error)

UpdateEnrichments mocks base method.

func (*MockMatcherStore) UpdateEnrichmentsIter

func (m *MockMatcherStore) UpdateEnrichmentsIter(arg0 context.Context, arg1 string, arg2 driver.Fingerprint, arg3 datastore.EnrichmentIter) (uuid.UUID, error)

UpdateEnrichmentsIter mocks base method.

func (*MockMatcherStore) UpdateVulnerabilities

func (m *MockMatcherStore) UpdateVulnerabilities(arg0 context.Context, arg1 string, arg2 driver.Fingerprint, arg3 []*claircore.Vulnerability) (uuid.UUID, error)

UpdateVulnerabilities mocks base method.

func (*MockMatcherStore) UpdateVulnerabilitiesIter

func (m *MockMatcherStore) UpdateVulnerabilitiesIter(arg0 context.Context, arg1 string, arg2 driver.Fingerprint, arg3 datastore.VulnerabilityIter) (uuid.UUID, error)

UpdateVulnerabilitiesIter mocks base method.

type MockMatcherStoreMockRecorder

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

MockMatcherStoreMockRecorder is the mock recorder for MockMatcherStore.

func (*MockMatcherStoreMockRecorder) DeleteUpdateOperations

func (mr *MockMatcherStoreMockRecorder) DeleteUpdateOperations(arg0 any, arg1 ...any) *gomock.Call

DeleteUpdateOperations indicates an expected call of DeleteUpdateOperations.

func (*MockMatcherStoreMockRecorder) DeltaUpdateVulnerabilities

func (mr *MockMatcherStoreMockRecorder) DeltaUpdateVulnerabilities(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call

DeltaUpdateVulnerabilities indicates an expected call of DeltaUpdateVulnerabilities.

func (*MockMatcherStoreMockRecorder) GC

func (mr *MockMatcherStoreMockRecorder) GC(arg0, arg1 any) *gomock.Call

GC indicates an expected call of GC.

func (*MockMatcherStoreMockRecorder) Get

func (mr *MockMatcherStoreMockRecorder) Get(arg0, arg1, arg2 any) *gomock.Call

Get indicates an expected call of Get.

func (*MockMatcherStoreMockRecorder) GetEnrichment

func (mr *MockMatcherStoreMockRecorder) GetEnrichment(arg0, arg1, arg2 any) *gomock.Call

GetEnrichment indicates an expected call of GetEnrichment.

func (*MockMatcherStoreMockRecorder) GetLatestUpdateRef

func (mr *MockMatcherStoreMockRecorder) GetLatestUpdateRef(arg0, arg1 any) *gomock.Call

GetLatestUpdateRef indicates an expected call of GetLatestUpdateRef.

func (*MockMatcherStoreMockRecorder) GetLatestUpdateRefs

func (mr *MockMatcherStoreMockRecorder) GetLatestUpdateRefs(arg0, arg1 any) *gomock.Call

GetLatestUpdateRefs indicates an expected call of GetLatestUpdateRefs.

func (*MockMatcherStoreMockRecorder) GetUpdateDiff

func (mr *MockMatcherStoreMockRecorder) GetUpdateDiff(arg0, arg1, arg2 any) *gomock.Call

GetUpdateDiff indicates an expected call of GetUpdateDiff.

func (*MockMatcherStoreMockRecorder) GetUpdateOperations

func (mr *MockMatcherStoreMockRecorder) GetUpdateOperations(arg0, arg1 any, arg2 ...any) *gomock.Call

GetUpdateOperations indicates an expected call of GetUpdateOperations.

func (*MockMatcherStoreMockRecorder) Initialized

func (mr *MockMatcherStoreMockRecorder) Initialized(arg0 any) *gomock.Call

Initialized indicates an expected call of Initialized.

func (*MockMatcherStoreMockRecorder) RecordUpdaterSetStatus

func (mr *MockMatcherStoreMockRecorder) RecordUpdaterSetStatus(arg0, arg1, arg2 any) *gomock.Call

RecordUpdaterSetStatus indicates an expected call of RecordUpdaterSetStatus.

func (*MockMatcherStoreMockRecorder) RecordUpdaterStatus

func (mr *MockMatcherStoreMockRecorder) RecordUpdaterStatus(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call

RecordUpdaterStatus indicates an expected call of RecordUpdaterStatus.

func (*MockMatcherStoreMockRecorder) UpdateEnrichments

func (mr *MockMatcherStoreMockRecorder) UpdateEnrichments(arg0, arg1, arg2, arg3 any) *gomock.Call

UpdateEnrichments indicates an expected call of UpdateEnrichments.

func (*MockMatcherStoreMockRecorder) UpdateEnrichmentsIter

func (mr *MockMatcherStoreMockRecorder) UpdateEnrichmentsIter(arg0, arg1, arg2, arg3 any) *gomock.Call

UpdateEnrichmentsIter indicates an expected call of UpdateEnrichmentsIter.

func (*MockMatcherStoreMockRecorder) UpdateVulnerabilities

func (mr *MockMatcherStoreMockRecorder) UpdateVulnerabilities(arg0, arg1, arg2, arg3 any) *gomock.Call

UpdateVulnerabilities indicates an expected call of UpdateVulnerabilities.

func (*MockMatcherStoreMockRecorder) UpdateVulnerabilitiesIter

func (mr *MockMatcherStoreMockRecorder) UpdateVulnerabilitiesIter(arg0, arg1, arg2, arg3 any) *gomock.Call

UpdateVulnerabilitiesIter indicates an expected call of UpdateVulnerabilitiesIter.

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) DeleteUpdateOperations

func (m *MockUpdater) DeleteUpdateOperations(arg0 context.Context, arg1 ...uuid.UUID) (int64, error)

DeleteUpdateOperations mocks base method.

func (*MockUpdater) DeltaUpdateVulnerabilities

func (m *MockUpdater) DeltaUpdateVulnerabilities(arg0 context.Context, arg1 string, arg2 driver.Fingerprint, arg3 []*claircore.Vulnerability, arg4 []string) (uuid.UUID, error)

DeltaUpdateVulnerabilities mocks base method.

func (*MockUpdater) EXPECT

func (m *MockUpdater) EXPECT() *MockUpdaterMockRecorder

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

func (*MockUpdater) GC

func (m *MockUpdater) GC(arg0 context.Context, arg1 int) (int64, error)

GC mocks base method.

func (*MockUpdater) GetLatestUpdateRef

func (m *MockUpdater) GetLatestUpdateRef(arg0 context.Context, arg1 driver.UpdateKind) (uuid.UUID, error)

GetLatestUpdateRef mocks base method.

func (*MockUpdater) GetLatestUpdateRefs

func (m *MockUpdater) GetLatestUpdateRefs(arg0 context.Context, arg1 driver.UpdateKind) (map[string][]driver.UpdateOperation, error)

GetLatestUpdateRefs mocks base method.

func (*MockUpdater) GetUpdateDiff

func (m *MockUpdater) GetUpdateDiff(arg0 context.Context, arg1, arg2 uuid.UUID) (*driver.UpdateDiff, error)

GetUpdateDiff mocks base method.

func (*MockUpdater) GetUpdateOperations

func (m *MockUpdater) GetUpdateOperations(arg0 context.Context, arg1 driver.UpdateKind, arg2 ...string) (map[string][]driver.UpdateOperation, error)

GetUpdateOperations mocks base method.

func (*MockUpdater) Initialized

func (m *MockUpdater) Initialized(arg0 context.Context) (bool, error)

Initialized mocks base method.

func (*MockUpdater) RecordUpdaterSetStatus

func (m *MockUpdater) RecordUpdaterSetStatus(arg0 context.Context, arg1 string, arg2 time.Time) error

RecordUpdaterSetStatus mocks base method.

func (*MockUpdater) RecordUpdaterStatus

func (m *MockUpdater) RecordUpdaterStatus(arg0 context.Context, arg1 string, arg2 time.Time, arg3 driver.Fingerprint, arg4 error) error

RecordUpdaterStatus mocks base method.

func (*MockUpdater) UpdateEnrichments

func (m *MockUpdater) UpdateEnrichments(arg0 context.Context, arg1 string, arg2 driver.Fingerprint, arg3 []driver.EnrichmentRecord) (uuid.UUID, error)

UpdateEnrichments mocks base method.

func (*MockUpdater) UpdateEnrichmentsIter

func (m *MockUpdater) UpdateEnrichmentsIter(arg0 context.Context, arg1 string, arg2 driver.Fingerprint, arg3 datastore.EnrichmentIter) (uuid.UUID, error)

UpdateEnrichmentsIter mocks base method.

func (*MockUpdater) UpdateVulnerabilities

func (m *MockUpdater) UpdateVulnerabilities(arg0 context.Context, arg1 string, arg2 driver.Fingerprint, arg3 []*claircore.Vulnerability) (uuid.UUID, error)

UpdateVulnerabilities mocks base method.

func (*MockUpdater) UpdateVulnerabilitiesIter

func (m *MockUpdater) UpdateVulnerabilitiesIter(arg0 context.Context, arg1 string, arg2 driver.Fingerprint, arg3 datastore.VulnerabilityIter) (uuid.UUID, error)

UpdateVulnerabilitiesIter mocks base method.

type MockUpdaterMockRecorder

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

MockUpdaterMockRecorder is the mock recorder for MockUpdater.

func (*MockUpdaterMockRecorder) DeleteUpdateOperations

func (mr *MockUpdaterMockRecorder) DeleteUpdateOperations(arg0 any, arg1 ...any) *gomock.Call

DeleteUpdateOperations indicates an expected call of DeleteUpdateOperations.

func (*MockUpdaterMockRecorder) DeltaUpdateVulnerabilities

func (mr *MockUpdaterMockRecorder) DeltaUpdateVulnerabilities(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call

DeltaUpdateVulnerabilities indicates an expected call of DeltaUpdateVulnerabilities.

func (*MockUpdaterMockRecorder) GC

func (mr *MockUpdaterMockRecorder) GC(arg0, arg1 any) *gomock.Call

GC indicates an expected call of GC.

func (*MockUpdaterMockRecorder) GetLatestUpdateRef

func (mr *MockUpdaterMockRecorder) GetLatestUpdateRef(arg0, arg1 any) *gomock.Call

GetLatestUpdateRef indicates an expected call of GetLatestUpdateRef.

func (*MockUpdaterMockRecorder) GetLatestUpdateRefs

func (mr *MockUpdaterMockRecorder) GetLatestUpdateRefs(arg0, arg1 any) *gomock.Call

GetLatestUpdateRefs indicates an expected call of GetLatestUpdateRefs.

func (*MockUpdaterMockRecorder) GetUpdateDiff

func (mr *MockUpdaterMockRecorder) GetUpdateDiff(arg0, arg1, arg2 any) *gomock.Call

GetUpdateDiff indicates an expected call of GetUpdateDiff.

func (*MockUpdaterMockRecorder) GetUpdateOperations

func (mr *MockUpdaterMockRecorder) GetUpdateOperations(arg0, arg1 any, arg2 ...any) *gomock.Call

GetUpdateOperations indicates an expected call of GetUpdateOperations.

func (*MockUpdaterMockRecorder) Initialized

func (mr *MockUpdaterMockRecorder) Initialized(arg0 any) *gomock.Call

Initialized indicates an expected call of Initialized.

func (*MockUpdaterMockRecorder) RecordUpdaterSetStatus

func (mr *MockUpdaterMockRecorder) RecordUpdaterSetStatus(arg0, arg1, arg2 any) *gomock.Call

RecordUpdaterSetStatus indicates an expected call of RecordUpdaterSetStatus.

func (*MockUpdaterMockRecorder) RecordUpdaterStatus

func (mr *MockUpdaterMockRecorder) RecordUpdaterStatus(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call

RecordUpdaterStatus indicates an expected call of RecordUpdaterStatus.

func (*MockUpdaterMockRecorder) UpdateEnrichments

func (mr *MockUpdaterMockRecorder) UpdateEnrichments(arg0, arg1, arg2, arg3 any) *gomock.Call

UpdateEnrichments indicates an expected call of UpdateEnrichments.

func (*MockUpdaterMockRecorder) UpdateEnrichmentsIter

func (mr *MockUpdaterMockRecorder) UpdateEnrichmentsIter(arg0, arg1, arg2, arg3 any) *gomock.Call

UpdateEnrichmentsIter indicates an expected call of UpdateEnrichmentsIter.

func (*MockUpdaterMockRecorder) UpdateVulnerabilities

func (mr *MockUpdaterMockRecorder) UpdateVulnerabilities(arg0, arg1, arg2, arg3 any) *gomock.Call

UpdateVulnerabilities indicates an expected call of UpdateVulnerabilities.

func (*MockUpdaterMockRecorder) UpdateVulnerabilitiesIter

func (mr *MockUpdaterMockRecorder) UpdateVulnerabilitiesIter(arg0, arg1, arg2, arg3 any) *gomock.Call

UpdateVulnerabilitiesIter indicates an expected call of UpdateVulnerabilitiesIter.

type MockVulnerability

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

MockVulnerability is a mock of Vulnerability interface.

func NewMockVulnerability

func NewMockVulnerability(ctrl *gomock.Controller) *MockVulnerability

NewMockVulnerability creates a new mock instance.

func (*MockVulnerability) EXPECT

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

func (*MockVulnerability) Get

Get mocks base method.

type MockVulnerabilityMockRecorder

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

MockVulnerabilityMockRecorder is the mock recorder for MockVulnerability.

func (*MockVulnerabilityMockRecorder) Get

func (mr *MockVulnerabilityMockRecorder) Get(arg0, arg1, arg2 any) *gomock.Call

Get indicates an expected call of Get.

Jump to

Keyboard shortcuts

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