mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mocks is a generated GoMock package.

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 MockSourceDataValidator

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

MockSourceDataValidator is a mock of SourceDataValidator interface.

func NewMockSourceDataValidator

func NewMockSourceDataValidator(ctrl *gomock.Controller) *MockSourceDataValidator

NewMockSourceDataValidator creates a new mock instance.

func (*MockSourceDataValidator) EXPECT

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

func (*MockSourceDataValidator) ValidateData

func (m *MockSourceDataValidator) ValidateData(data []byte, format string) (*registry.UpstreamRegistry, error)

ValidateData mocks base method.

type MockSourceDataValidatorMockRecorder

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

MockSourceDataValidatorMockRecorder is the mock recorder for MockSourceDataValidator.

func (*MockSourceDataValidatorMockRecorder) ValidateData

func (mr *MockSourceDataValidatorMockRecorder) ValidateData(data, format any) *gomock.Call

ValidateData indicates an expected call of ValidateData.

type MockSourceHandler

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

MockSourceHandler is a mock of SourceHandler interface.

func NewMockSourceHandler

func NewMockSourceHandler(ctrl *gomock.Controller) *MockSourceHandler

NewMockSourceHandler creates a new mock instance.

func (*MockSourceHandler) CurrentHash

func (m *MockSourceHandler) CurrentHash(ctx context.Context, cfg *config.Config) (string, error)

CurrentHash mocks base method.

func (*MockSourceHandler) EXPECT

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

func (*MockSourceHandler) FetchRegistry

func (m *MockSourceHandler) FetchRegistry(ctx context.Context, cfg *config.Config) (*sources.FetchResult, error)

FetchRegistry mocks base method.

func (*MockSourceHandler) Validate

func (m *MockSourceHandler) Validate(source *config.SourceConfig) error

Validate mocks base method.

type MockSourceHandlerFactory

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

MockSourceHandlerFactory is a mock of SourceHandlerFactory interface.

func NewMockSourceHandlerFactory

func NewMockSourceHandlerFactory(ctrl *gomock.Controller) *MockSourceHandlerFactory

NewMockSourceHandlerFactory creates a new mock instance.

func (*MockSourceHandlerFactory) CreateHandler

func (m *MockSourceHandlerFactory) CreateHandler(sourceType string) (sources.SourceHandler, error)

CreateHandler mocks base method.

func (*MockSourceHandlerFactory) EXPECT

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

type MockSourceHandlerFactoryMockRecorder

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

MockSourceHandlerFactoryMockRecorder is the mock recorder for MockSourceHandlerFactory.

func (*MockSourceHandlerFactoryMockRecorder) CreateHandler

func (mr *MockSourceHandlerFactoryMockRecorder) CreateHandler(sourceType any) *gomock.Call

CreateHandler indicates an expected call of CreateHandler.

type MockSourceHandlerMockRecorder

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

MockSourceHandlerMockRecorder is the mock recorder for MockSourceHandler.

func (*MockSourceHandlerMockRecorder) CurrentHash

func (mr *MockSourceHandlerMockRecorder) CurrentHash(ctx, cfg any) *gomock.Call

CurrentHash indicates an expected call of CurrentHash.

func (*MockSourceHandlerMockRecorder) FetchRegistry

func (mr *MockSourceHandlerMockRecorder) FetchRegistry(ctx, cfg any) *gomock.Call

FetchRegistry indicates an expected call of FetchRegistry.

func (*MockSourceHandlerMockRecorder) Validate

func (mr *MockSourceHandlerMockRecorder) Validate(source any) *gomock.Call

Validate indicates an expected call of Validate.

type MockStorageManager

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

MockStorageManager is a mock of StorageManager interface.

func NewMockStorageManager

func NewMockStorageManager(ctrl *gomock.Controller) *MockStorageManager

NewMockStorageManager creates a new mock instance.

func (*MockStorageManager) Delete

func (m *MockStorageManager) Delete(ctx context.Context, cfg *config.Config) error

Delete mocks base method.

func (*MockStorageManager) EXPECT

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

func (*MockStorageManager) Get

Get mocks base method.

func (*MockStorageManager) Store

Store mocks base method.

type MockStorageManagerMockRecorder

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

MockStorageManagerMockRecorder is the mock recorder for MockStorageManager.

func (*MockStorageManagerMockRecorder) Delete

func (mr *MockStorageManagerMockRecorder) Delete(ctx, cfg any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockStorageManagerMockRecorder) Get

func (mr *MockStorageManagerMockRecorder) Get(ctx, cfg any) *gomock.Call

Get indicates an expected call of Get.

func (*MockStorageManagerMockRecorder) Store

func (mr *MockStorageManagerMockRecorder) Store(ctx, cfg, reg any) *gomock.Call

Store indicates an expected call of Store.

Jump to

Keyboard shortcuts

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