mock_indexer

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_indexer is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coalescer

type Coalescer = indexer.Coalescer

type DistributionScanner

type DistributionScanner = indexer.DistributionScanner

type Ecosystem

type Ecosystem = indexer.Ecosystem

type FetchArena

type FetchArena = indexer.FetchArena

type FileScanner

type FileScanner = indexer.FileScanner

type LayerScanner

type LayerScanner = indexer.LayerScanner

type MockCoalescer

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

MockCoalescer is a mock of Coalescer interface.

func NewMockCoalescer

func NewMockCoalescer(ctrl *gomock.Controller) *MockCoalescer

NewMockCoalescer creates a new mock instance.

func (*MockCoalescer) Coalesce

Coalesce mocks base method.

func (*MockCoalescer) EXPECT

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

type MockCoalescerMockRecorder

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

MockCoalescerMockRecorder is the mock recorder for MockCoalescer.

func (*MockCoalescerMockRecorder) Coalesce

func (mr *MockCoalescerMockRecorder) Coalesce(arg0, arg1 interface{}) *gomock.Call

Coalesce indicates an expected call of Coalesce.

type MockDistributionScanner

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

MockDistributionScanner is a mock of DistributionScanner interface.

func NewMockDistributionScanner

func NewMockDistributionScanner(ctrl *gomock.Controller) *MockDistributionScanner

NewMockDistributionScanner creates a new mock instance.

func (*MockDistributionScanner) EXPECT

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

func (*MockDistributionScanner) Kind

func (m *MockDistributionScanner) Kind() string

Kind mocks base method.

func (*MockDistributionScanner) Name

func (m *MockDistributionScanner) Name() string

Name mocks base method.

func (*MockDistributionScanner) Scan

Scan mocks base method.

func (*MockDistributionScanner) Version

func (m *MockDistributionScanner) Version() string

Version mocks base method.

type MockDistributionScannerMockRecorder

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

MockDistributionScannerMockRecorder is the mock recorder for MockDistributionScanner.

func (*MockDistributionScannerMockRecorder) Kind

Kind indicates an expected call of Kind.

func (*MockDistributionScannerMockRecorder) Name

Name indicates an expected call of Name.

func (*MockDistributionScannerMockRecorder) Scan

func (mr *MockDistributionScannerMockRecorder) Scan(arg0, arg1 interface{}) *gomock.Call

Scan indicates an expected call of Scan.

func (*MockDistributionScannerMockRecorder) Version

Version indicates an expected call of Version.

type MockFetchArena

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

MockFetchArena is a mock of FetchArena interface.

func NewMockFetchArena

func NewMockFetchArena(ctrl *gomock.Controller) *MockFetchArena

NewMockFetchArena creates a new mock instance.

func (*MockFetchArena) Close

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

Close mocks base method.

func (*MockFetchArena) EXPECT

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

func (*MockFetchArena) Realizer

func (m *MockFetchArena) Realizer(arg0 context.Context) indexer.Realizer

Realizer mocks base method.

type MockFetchArenaMockRecorder

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

MockFetchArenaMockRecorder is the mock recorder for MockFetchArena.

func (*MockFetchArenaMockRecorder) Close

func (mr *MockFetchArenaMockRecorder) Close(arg0 interface{}) *gomock.Call

Close indicates an expected call of Close.

func (*MockFetchArenaMockRecorder) Realizer

func (mr *MockFetchArenaMockRecorder) Realizer(arg0 interface{}) *gomock.Call

Realizer indicates an expected call of Realizer.

type MockPackageScanner

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

MockPackageScanner is a mock of PackageScanner interface.

func NewMockPackageScanner

func NewMockPackageScanner(ctrl *gomock.Controller) *MockPackageScanner

NewMockPackageScanner creates a new mock instance.

func (*MockPackageScanner) EXPECT

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

func (*MockPackageScanner) Kind

func (m *MockPackageScanner) Kind() string

Kind mocks base method.

func (*MockPackageScanner) Name

func (m *MockPackageScanner) Name() string

Name mocks base method.

func (*MockPackageScanner) Scan

Scan mocks base method.

func (*MockPackageScanner) Version

func (m *MockPackageScanner) Version() string

Version mocks base method.

type MockPackageScannerMockRecorder

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

MockPackageScannerMockRecorder is the mock recorder for MockPackageScanner.

func (*MockPackageScannerMockRecorder) Kind

Kind indicates an expected call of Kind.

func (*MockPackageScannerMockRecorder) Name

Name indicates an expected call of Name.

func (*MockPackageScannerMockRecorder) Scan

func (mr *MockPackageScannerMockRecorder) Scan(arg0, arg1 interface{}) *gomock.Call

Scan indicates an expected call of Scan.

func (*MockPackageScannerMockRecorder) Version

Version indicates an expected call of Version.

type MockRealizer

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

MockRealizer is a mock of Realizer interface.

func NewMockRealizer

func NewMockRealizer(ctrl *gomock.Controller) *MockRealizer

NewMockRealizer creates a new mock instance.

func (*MockRealizer) Close

func (m *MockRealizer) Close() error

Close mocks base method.

func (*MockRealizer) EXPECT

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

func (*MockRealizer) Realize

func (m *MockRealizer) Realize(arg0 context.Context, arg1 []*claircore.Layer) error

Realize mocks base method.

type MockRealizerMockRecorder

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

MockRealizerMockRecorder is the mock recorder for MockRealizer.

func (*MockRealizerMockRecorder) Close

func (mr *MockRealizerMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockRealizerMockRecorder) Realize

func (mr *MockRealizerMockRecorder) Realize(arg0, arg1 interface{}) *gomock.Call

Realize indicates an expected call of Realize.

type MockRepositoryScanner

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

MockRepositoryScanner is a mock of RepositoryScanner interface.

func NewMockRepositoryScanner

func NewMockRepositoryScanner(ctrl *gomock.Controller) *MockRepositoryScanner

NewMockRepositoryScanner creates a new mock instance.

func (*MockRepositoryScanner) EXPECT

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

func (*MockRepositoryScanner) Kind

func (m *MockRepositoryScanner) Kind() string

Kind mocks base method.

func (*MockRepositoryScanner) Name

func (m *MockRepositoryScanner) Name() string

Name mocks base method.

func (*MockRepositoryScanner) Scan

Scan mocks base method.

func (*MockRepositoryScanner) Version

func (m *MockRepositoryScanner) Version() string

Version mocks base method.

type MockRepositoryScannerMockRecorder

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

MockRepositoryScannerMockRecorder is the mock recorder for MockRepositoryScanner.

func (*MockRepositoryScannerMockRecorder) Kind

Kind indicates an expected call of Kind.

func (*MockRepositoryScannerMockRecorder) Name

Name indicates an expected call of Name.

func (*MockRepositoryScannerMockRecorder) Scan

func (mr *MockRepositoryScannerMockRecorder) Scan(arg0, arg1 interface{}) *gomock.Call

Scan indicates an expected call of Scan.

func (*MockRepositoryScannerMockRecorder) Version

Version indicates an expected call of Version.

type MockStore

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

MockStore is a mock of Store interface.

func NewMockStore

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) AffectedManifests

AffectedManifests mocks base method.

func (*MockStore) Close

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

Close mocks base method.

func (*MockStore) DeleteManifests

func (m *MockStore) DeleteManifests(arg0 context.Context, arg1 ...claircore.Digest) ([]claircore.Digest, error)

DeleteManifests mocks base method.

func (*MockStore) DistributionsByLayer

func (m *MockStore) DistributionsByLayer(arg0 context.Context, arg1 claircore.Digest, arg2 indexer.VersionedScanners) ([]*claircore.Distribution, error)

DistributionsByLayer mocks base method.

func (*MockStore) EXPECT

func (m *MockStore) EXPECT() *MockStoreMockRecorder

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

func (*MockStore) FilesByLayer

func (m *MockStore) FilesByLayer(arg0 context.Context, arg1 claircore.Digest, arg2 indexer.VersionedScanners) ([]claircore.File, error)

FilesByLayer mocks base method.

func (*MockStore) IndexDistributions

func (m *MockStore) IndexDistributions(arg0 context.Context, arg1 []*claircore.Distribution, arg2 *claircore.Layer, arg3 indexer.VersionedScanner) error

IndexDistributions mocks base method.

func (*MockStore) IndexFiles

func (m *MockStore) IndexFiles(arg0 context.Context, arg1 []claircore.File, arg2 *claircore.Layer, arg3 indexer.VersionedScanner) error

IndexFiles mocks base method.

func (*MockStore) IndexManifest

func (m *MockStore) IndexManifest(arg0 context.Context, arg1 *claircore.IndexReport) error

IndexManifest mocks base method.

func (*MockStore) IndexPackages

func (m *MockStore) IndexPackages(arg0 context.Context, arg1 []*claircore.Package, arg2 *claircore.Layer, arg3 indexer.VersionedScanner) error

IndexPackages mocks base method.

func (*MockStore) IndexReport

func (m *MockStore) IndexReport(arg0 context.Context, arg1 claircore.Digest) (*claircore.IndexReport, bool, error)

IndexReport mocks base method.

func (*MockStore) IndexRepositories

func (m *MockStore) IndexRepositories(arg0 context.Context, arg1 []*claircore.Repository, arg2 *claircore.Layer, arg3 indexer.VersionedScanner) error

IndexRepositories mocks base method.

func (*MockStore) LayerScanned

func (m *MockStore) LayerScanned(arg0 context.Context, arg1 claircore.Digest, arg2 indexer.VersionedScanner) (bool, error)

LayerScanned mocks base method.

func (*MockStore) ManifestScanned

func (m *MockStore) ManifestScanned(arg0 context.Context, arg1 claircore.Digest, arg2 indexer.VersionedScanners) (bool, error)

ManifestScanned mocks base method.

func (*MockStore) PackagesByLayer

func (m *MockStore) PackagesByLayer(arg0 context.Context, arg1 claircore.Digest, arg2 indexer.VersionedScanners) ([]*claircore.Package, error)

PackagesByLayer mocks base method.

func (*MockStore) PersistManifest

func (m *MockStore) PersistManifest(arg0 context.Context, arg1 claircore.Manifest) error

PersistManifest mocks base method.

func (*MockStore) RegisterScanners

func (m *MockStore) RegisterScanners(arg0 context.Context, arg1 indexer.VersionedScanners) error

RegisterScanners mocks base method.

func (*MockStore) RepositoriesByLayer

func (m *MockStore) RepositoriesByLayer(arg0 context.Context, arg1 claircore.Digest, arg2 indexer.VersionedScanners) ([]*claircore.Repository, error)

RepositoriesByLayer mocks base method.

func (*MockStore) SetIndexFinished

func (m *MockStore) SetIndexFinished(arg0 context.Context, arg1 *claircore.IndexReport, arg2 indexer.VersionedScanners) error

SetIndexFinished mocks base method.

func (*MockStore) SetIndexReport

func (m *MockStore) SetIndexReport(arg0 context.Context, arg1 *claircore.IndexReport) error

SetIndexReport mocks base method.

func (*MockStore) SetLayerScanned

func (m *MockStore) SetLayerScanned(arg0 context.Context, arg1 claircore.Digest, arg2 indexer.VersionedScanner) error

SetLayerScanned mocks base method.

type MockStoreMockRecorder

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

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) AffectedManifests

func (mr *MockStoreMockRecorder) AffectedManifests(arg0, arg1, arg2 interface{}) *gomock.Call

AffectedManifests indicates an expected call of AffectedManifests.

func (*MockStoreMockRecorder) Close

func (mr *MockStoreMockRecorder) Close(arg0 interface{}) *gomock.Call

Close indicates an expected call of Close.

func (*MockStoreMockRecorder) DeleteManifests

func (mr *MockStoreMockRecorder) DeleteManifests(arg0 interface{}, arg1 ...interface{}) *gomock.Call

DeleteManifests indicates an expected call of DeleteManifests.

func (*MockStoreMockRecorder) DistributionsByLayer

func (mr *MockStoreMockRecorder) DistributionsByLayer(arg0, arg1, arg2 interface{}) *gomock.Call

DistributionsByLayer indicates an expected call of DistributionsByLayer.

func (*MockStoreMockRecorder) FilesByLayer

func (mr *MockStoreMockRecorder) FilesByLayer(arg0, arg1, arg2 interface{}) *gomock.Call

FilesByLayer indicates an expected call of FilesByLayer.

func (*MockStoreMockRecorder) IndexDistributions

func (mr *MockStoreMockRecorder) IndexDistributions(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

IndexDistributions indicates an expected call of IndexDistributions.

func (*MockStoreMockRecorder) IndexFiles

func (mr *MockStoreMockRecorder) IndexFiles(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

IndexFiles indicates an expected call of IndexFiles.

func (*MockStoreMockRecorder) IndexManifest

func (mr *MockStoreMockRecorder) IndexManifest(arg0, arg1 interface{}) *gomock.Call

IndexManifest indicates an expected call of IndexManifest.

func (*MockStoreMockRecorder) IndexPackages

func (mr *MockStoreMockRecorder) IndexPackages(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

IndexPackages indicates an expected call of IndexPackages.

func (*MockStoreMockRecorder) IndexReport

func (mr *MockStoreMockRecorder) IndexReport(arg0, arg1 interface{}) *gomock.Call

IndexReport indicates an expected call of IndexReport.

func (*MockStoreMockRecorder) IndexRepositories

func (mr *MockStoreMockRecorder) IndexRepositories(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

IndexRepositories indicates an expected call of IndexRepositories.

func (*MockStoreMockRecorder) LayerScanned

func (mr *MockStoreMockRecorder) LayerScanned(arg0, arg1, arg2 interface{}) *gomock.Call

LayerScanned indicates an expected call of LayerScanned.

func (*MockStoreMockRecorder) ManifestScanned

func (mr *MockStoreMockRecorder) ManifestScanned(arg0, arg1, arg2 interface{}) *gomock.Call

ManifestScanned indicates an expected call of ManifestScanned.

func (*MockStoreMockRecorder) PackagesByLayer

func (mr *MockStoreMockRecorder) PackagesByLayer(arg0, arg1, arg2 interface{}) *gomock.Call

PackagesByLayer indicates an expected call of PackagesByLayer.

func (*MockStoreMockRecorder) PersistManifest

func (mr *MockStoreMockRecorder) PersistManifest(arg0, arg1 interface{}) *gomock.Call

PersistManifest indicates an expected call of PersistManifest.

func (*MockStoreMockRecorder) RegisterScanners

func (mr *MockStoreMockRecorder) RegisterScanners(arg0, arg1 interface{}) *gomock.Call

RegisterScanners indicates an expected call of RegisterScanners.

func (*MockStoreMockRecorder) RepositoriesByLayer

func (mr *MockStoreMockRecorder) RepositoriesByLayer(arg0, arg1, arg2 interface{}) *gomock.Call

RepositoriesByLayer indicates an expected call of RepositoriesByLayer.

func (*MockStoreMockRecorder) SetIndexFinished

func (mr *MockStoreMockRecorder) SetIndexFinished(arg0, arg1, arg2 interface{}) *gomock.Call

SetIndexFinished indicates an expected call of SetIndexFinished.

func (*MockStoreMockRecorder) SetIndexReport

func (mr *MockStoreMockRecorder) SetIndexReport(arg0, arg1 interface{}) *gomock.Call

SetIndexReport indicates an expected call of SetIndexReport.

func (*MockStoreMockRecorder) SetLayerScanned

func (mr *MockStoreMockRecorder) SetLayerScanned(arg0, arg1, arg2 interface{}) *gomock.Call

SetLayerScanned indicates an expected call of SetLayerScanned.

type MockVersionedScanner

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

MockVersionedScanner is a mock of VersionedScanner interface.

func NewMockVersionedScanner

func NewMockVersionedScanner(ctrl *gomock.Controller) *MockVersionedScanner

NewMockVersionedScanner creates a new mock instance.

func (*MockVersionedScanner) EXPECT

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

func (*MockVersionedScanner) Kind

func (m *MockVersionedScanner) Kind() string

Kind mocks base method.

func (*MockVersionedScanner) Name

func (m *MockVersionedScanner) Name() string

Name mocks base method.

func (*MockVersionedScanner) Version

func (m *MockVersionedScanner) Version() string

Version mocks base method.

type MockVersionedScannerMockRecorder

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

MockVersionedScannerMockRecorder is the mock recorder for MockVersionedScanner.

func (*MockVersionedScannerMockRecorder) Kind

Kind indicates an expected call of Kind.

func (*MockVersionedScannerMockRecorder) Name

Name indicates an expected call of Name.

func (*MockVersionedScannerMockRecorder) Version

Version indicates an expected call of Version.

type Options

type Options = indexer.Options

type PackageScanner

type PackageScanner = indexer.PackageScanner

type Realizer

type Realizer = indexer.Realizer

type RepositoryScanner

type RepositoryScanner = indexer.RepositoryScanner

type Store

type Store = indexer.Store

type VersionedScanner

type VersionedScanner = indexer.VersionedScanner

Jump to

Keyboard shortcuts

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