mock_indexer

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 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 Fetcher

type Fetcher = indexer.Fetcher

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 MockFetcher

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

MockFetcher is a mock of Fetcher interface

func NewMockFetcher

func NewMockFetcher(ctrl *gomock.Controller) *MockFetcher

NewMockFetcher creates a new mock instance

func (*MockFetcher) Close

func (m *MockFetcher) Close() error

Close mocks base method

func (*MockFetcher) EXPECT

func (m *MockFetcher) EXPECT() *MockFetcherMockRecorder

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

func (*MockFetcher) Fetch

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

Fetch mocks base method

type MockFetcherMockRecorder

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

MockFetcherMockRecorder is the mock recorder for MockFetcher

func (*MockFetcherMockRecorder) Close

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

Close indicates an expected call of Close

func (*MockFetcherMockRecorder) Fetch

func (mr *MockFetcherMockRecorder) Fetch(arg0, arg1 interface{}) *gomock.Call

Fetch indicates an expected call of Fetch

type MockLayerScanner

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

MockLayerScanner is a mock of LayerScanner interface

func NewMockLayerScanner

func NewMockLayerScanner(ctrl *gomock.Controller) *MockLayerScanner

NewMockLayerScanner creates a new mock instance

func (*MockLayerScanner) EXPECT

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

func (*MockLayerScanner) Scan

func (m *MockLayerScanner) Scan(arg0 context.Context, arg1 claircore.Digest, arg2 []*claircore.Layer) error

Scan mocks base method

type MockLayerScannerMockRecorder

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

MockLayerScannerMockRecorder is the mock recorder for MockLayerScanner

func (*MockLayerScannerMockRecorder) Scan

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

Scan indicates an expected call of Scan

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

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

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

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

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

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

IndexDistributions indicates an expected call of IndexDistributions

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 Opts

type Opts = indexer.Opts

type PackageScanner

type PackageScanner = indexer.PackageScanner

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