mock_datastore

package
v1.5.51 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 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(ctx context.Context, kind string, tags []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(ctx, kind, tags 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(ctx context.Context, kind string, fingerprint driver.Fingerprint, enrichments []driver.EnrichmentRecord) (uuid.UUID, error)

UpdateEnrichments mocks base method.

func (*MockEnrichmentUpdater) UpdateEnrichmentsIter

func (m *MockEnrichmentUpdater) UpdateEnrichmentsIter(ctx context.Context, kind string, fingerprint driver.Fingerprint, enIter 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(ctx, kind, fingerprint, enrichments any) *gomock.Call

UpdateEnrichments indicates an expected call of UpdateEnrichments.

func (*MockEnrichmentUpdaterMockRecorder) UpdateEnrichmentsIter

func (mr *MockEnrichmentUpdaterMockRecorder) UpdateEnrichmentsIter(ctx, kind, fingerprint, enIter 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(ctx context.Context, updater string, fingerprint driver.Fingerprint, vulns []*claircore.Vulnerability, deletedVulns []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(ctx context.Context, keep int) (int64, error)

GC mocks base method.

func (*MockMatcherStore) Get

Get mocks base method.

func (*MockMatcherStore) GetEnrichment

func (m *MockMatcherStore) GetEnrichment(ctx context.Context, kind string, tags []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(ctx context.Context, prev, cur 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(ctx context.Context, updaterSet string, updateTime time.Time) error

RecordUpdaterSetStatus mocks base method.

func (*MockMatcherStore) RecordUpdaterStatus

func (m *MockMatcherStore) RecordUpdaterStatus(ctx context.Context, updaterName string, updateTime time.Time, fingerprint driver.Fingerprint, updaterError error) error

RecordUpdaterStatus mocks base method.

func (*MockMatcherStore) UpdateEnrichments

func (m *MockMatcherStore) UpdateEnrichments(ctx context.Context, kind string, fingerprint driver.Fingerprint, enrichments []driver.EnrichmentRecord) (uuid.UUID, error)

UpdateEnrichments mocks base method.

func (*MockMatcherStore) UpdateEnrichmentsIter

func (m *MockMatcherStore) UpdateEnrichmentsIter(ctx context.Context, kind string, fingerprint driver.Fingerprint, enIter datastore.EnrichmentIter) (uuid.UUID, error)

UpdateEnrichmentsIter mocks base method.

func (*MockMatcherStore) UpdateVulnerabilities

func (m *MockMatcherStore) UpdateVulnerabilities(ctx context.Context, updater string, fingerprint driver.Fingerprint, vulns []*claircore.Vulnerability) (uuid.UUID, error)

UpdateVulnerabilities mocks base method.

func (*MockMatcherStore) UpdateVulnerabilitiesIter

func (m *MockMatcherStore) UpdateVulnerabilitiesIter(ctx context.Context, updater string, fingerprint driver.Fingerprint, vulnIter 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(ctx, updater, fingerprint, vulns, deletedVulns any) *gomock.Call

DeltaUpdateVulnerabilities indicates an expected call of DeltaUpdateVulnerabilities.

func (*MockMatcherStoreMockRecorder) GC

func (mr *MockMatcherStoreMockRecorder) GC(ctx, keep any) *gomock.Call

GC indicates an expected call of GC.

func (*MockMatcherStoreMockRecorder) Get

func (mr *MockMatcherStoreMockRecorder) Get(ctx, records, opts any) *gomock.Call

Get indicates an expected call of Get.

func (*MockMatcherStoreMockRecorder) GetEnrichment

func (mr *MockMatcherStoreMockRecorder) GetEnrichment(ctx, kind, tags 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(ctx, prev, cur 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(ctx, updaterSet, updateTime any) *gomock.Call

RecordUpdaterSetStatus indicates an expected call of RecordUpdaterSetStatus.

func (*MockMatcherStoreMockRecorder) RecordUpdaterStatus

func (mr *MockMatcherStoreMockRecorder) RecordUpdaterStatus(ctx, updaterName, updateTime, fingerprint, updaterError any) *gomock.Call

RecordUpdaterStatus indicates an expected call of RecordUpdaterStatus.

func (*MockMatcherStoreMockRecorder) UpdateEnrichments

func (mr *MockMatcherStoreMockRecorder) UpdateEnrichments(ctx, kind, fingerprint, enrichments any) *gomock.Call

UpdateEnrichments indicates an expected call of UpdateEnrichments.

func (*MockMatcherStoreMockRecorder) UpdateEnrichmentsIter

func (mr *MockMatcherStoreMockRecorder) UpdateEnrichmentsIter(ctx, kind, fingerprint, enIter any) *gomock.Call

UpdateEnrichmentsIter indicates an expected call of UpdateEnrichmentsIter.

func (*MockMatcherStoreMockRecorder) UpdateVulnerabilities

func (mr *MockMatcherStoreMockRecorder) UpdateVulnerabilities(ctx, updater, fingerprint, vulns any) *gomock.Call

UpdateVulnerabilities indicates an expected call of UpdateVulnerabilities.

func (*MockMatcherStoreMockRecorder) UpdateVulnerabilitiesIter

func (mr *MockMatcherStoreMockRecorder) UpdateVulnerabilitiesIter(ctx, updater, fingerprint, vulnIter 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(ctx context.Context, updater string, fingerprint driver.Fingerprint, vulns []*claircore.Vulnerability, deletedVulns []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(ctx context.Context, keep 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(ctx context.Context, prev, cur 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(ctx context.Context, updaterSet string, updateTime time.Time) error

RecordUpdaterSetStatus mocks base method.

func (*MockUpdater) RecordUpdaterStatus

func (m *MockUpdater) RecordUpdaterStatus(ctx context.Context, updaterName string, updateTime time.Time, fingerprint driver.Fingerprint, updaterError error) error

RecordUpdaterStatus mocks base method.

func (*MockUpdater) UpdateEnrichments

func (m *MockUpdater) UpdateEnrichments(ctx context.Context, kind string, fingerprint driver.Fingerprint, enrichments []driver.EnrichmentRecord) (uuid.UUID, error)

UpdateEnrichments mocks base method.

func (*MockUpdater) UpdateEnrichmentsIter

func (m *MockUpdater) UpdateEnrichmentsIter(ctx context.Context, kind string, fingerprint driver.Fingerprint, enIter datastore.EnrichmentIter) (uuid.UUID, error)

UpdateEnrichmentsIter mocks base method.

func (*MockUpdater) UpdateVulnerabilities

func (m *MockUpdater) UpdateVulnerabilities(ctx context.Context, updater string, fingerprint driver.Fingerprint, vulns []*claircore.Vulnerability) (uuid.UUID, error)

UpdateVulnerabilities mocks base method.

func (*MockUpdater) UpdateVulnerabilitiesIter

func (m *MockUpdater) UpdateVulnerabilitiesIter(ctx context.Context, updater string, fingerprint driver.Fingerprint, vulnIter 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(ctx, updater, fingerprint, vulns, deletedVulns any) *gomock.Call

DeltaUpdateVulnerabilities indicates an expected call of DeltaUpdateVulnerabilities.

func (*MockUpdaterMockRecorder) GC

func (mr *MockUpdaterMockRecorder) GC(ctx, keep 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(ctx, prev, cur 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(ctx, updaterSet, updateTime any) *gomock.Call

RecordUpdaterSetStatus indicates an expected call of RecordUpdaterSetStatus.

func (*MockUpdaterMockRecorder) RecordUpdaterStatus

func (mr *MockUpdaterMockRecorder) RecordUpdaterStatus(ctx, updaterName, updateTime, fingerprint, updaterError any) *gomock.Call

RecordUpdaterStatus indicates an expected call of RecordUpdaterStatus.

func (*MockUpdaterMockRecorder) UpdateEnrichments

func (mr *MockUpdaterMockRecorder) UpdateEnrichments(ctx, kind, fingerprint, enrichments any) *gomock.Call

UpdateEnrichments indicates an expected call of UpdateEnrichments.

func (*MockUpdaterMockRecorder) UpdateEnrichmentsIter

func (mr *MockUpdaterMockRecorder) UpdateEnrichmentsIter(ctx, kind, fingerprint, enIter any) *gomock.Call

UpdateEnrichmentsIter indicates an expected call of UpdateEnrichmentsIter.

func (*MockUpdaterMockRecorder) UpdateVulnerabilities

func (mr *MockUpdaterMockRecorder) UpdateVulnerabilities(ctx, updater, fingerprint, vulns any) *gomock.Call

UpdateVulnerabilities indicates an expected call of UpdateVulnerabilities.

func (*MockUpdaterMockRecorder) UpdateVulnerabilitiesIter

func (mr *MockUpdaterMockRecorder) UpdateVulnerabilitiesIter(ctx, updater, fingerprint, vulnIter 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(ctx, records, opts 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