mock

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCenter

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

MockCenter is a mock of Center interface.

func NewMockCenter

func NewMockCenter(ctrl *gomock.Controller) *MockCenter

NewMockCenter creates a new mock instance.

func (*MockCenter) Close

func (m *MockCenter) Close() error

Close mocks base method.

func (*MockCenter) EXPECT

func (m *MockCenter) EXPECT() *MockCenterMockRecorder

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

func (*MockCenter) Import

func (m *MockCenter) Import(ctx context.Context, cfg *config.Tenant) error

Import mocks base method.

func (*MockCenter) Load

func (m *MockCenter) Load(ctx context.Context, item config.ConfigItem) (*config.Tenant, error)

Load mocks base method.

func (*MockCenter) LoadAll

func (m *MockCenter) LoadAll(ctx context.Context) (*config.Tenant, error)

LoadAll mocks base method.

func (*MockCenter) Subscribe

Subscribe mocks base method.

func (*MockCenter) Tenant

func (m *MockCenter) Tenant() string

Tenant mocks base method.

func (*MockCenter) Write

func (m *MockCenter) Write(ctx context.Context, item config.ConfigItem, cfg *config.Tenant) error

Write mocks base method.

type MockCenterMockRecorder

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

MockCenterMockRecorder is the mock recorder for MockCenter.

func (*MockCenterMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockCenterMockRecorder) Import

func (mr *MockCenterMockRecorder) Import(ctx, cfg interface{}) *gomock.Call

Import indicates an expected call of Import.

func (*MockCenterMockRecorder) Load

func (mr *MockCenterMockRecorder) Load(ctx, item interface{}) *gomock.Call

Load indicates an expected call of Load.

func (*MockCenterMockRecorder) LoadAll

func (mr *MockCenterMockRecorder) LoadAll(ctx interface{}) *gomock.Call

LoadAll indicates an expected call of LoadAll.

func (*MockCenterMockRecorder) Subscribe

func (mr *MockCenterMockRecorder) Subscribe(ctx, et, c interface{}) *gomock.Call

Subscribe indicates an expected call of Subscribe.

func (*MockCenterMockRecorder) Tenant

func (mr *MockCenterMockRecorder) Tenant() *gomock.Call

Tenant indicates an expected call of Tenant.

func (*MockCenterMockRecorder) Write

func (mr *MockCenterMockRecorder) Write(ctx, item, cfg interface{}) *gomock.Call

Write indicates an expected call of Write.

type MockConfigReader

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

MockConfigReader is a mock of ConfigReader interface.

func NewMockConfigReader

func NewMockConfigReader(ctrl *gomock.Controller) *MockConfigReader

NewMockConfigReader creates a new mock instance.

func (*MockConfigReader) Close

func (m *MockConfigReader) Close() error

Close mocks base method.

func (*MockConfigReader) EXPECT

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

func (*MockConfigReader) Load

Load mocks base method.

func (*MockConfigReader) LoadAll

func (m *MockConfigReader) LoadAll(ctx context.Context) (*config.Tenant, error)

LoadAll mocks base method.

type MockConfigReaderMockRecorder

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

MockConfigReaderMockRecorder is the mock recorder for MockConfigReader.

func (*MockConfigReaderMockRecorder) Close

Close indicates an expected call of Close.

func (*MockConfigReaderMockRecorder) Load

func (mr *MockConfigReaderMockRecorder) Load(ctx, item interface{}) *gomock.Call

Load indicates an expected call of Load.

func (*MockConfigReaderMockRecorder) LoadAll

func (mr *MockConfigReaderMockRecorder) LoadAll(ctx interface{}) *gomock.Call

LoadAll indicates an expected call of LoadAll.

type MockConfigWatcher

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

MockConfigWatcher is a mock of ConfigWatcher interface.

func NewMockConfigWatcher

func NewMockConfigWatcher(ctrl *gomock.Controller) *MockConfigWatcher

NewMockConfigWatcher creates a new mock instance.

func (*MockConfigWatcher) Close

func (m *MockConfigWatcher) Close() error

Close mocks base method.

func (*MockConfigWatcher) EXPECT

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

func (*MockConfigWatcher) Subscribe

Subscribe mocks base method.

type MockConfigWatcherMockRecorder

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

MockConfigWatcherMockRecorder is the mock recorder for MockConfigWatcher.

func (*MockConfigWatcherMockRecorder) Close

Close indicates an expected call of Close.

func (*MockConfigWatcherMockRecorder) Subscribe

func (mr *MockConfigWatcherMockRecorder) Subscribe(ctx, et, c interface{}) *gomock.Call

Subscribe indicates an expected call of Subscribe.

type MockConfigWriter

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

MockConfigWriter is a mock of ConfigWriter interface.

func NewMockConfigWriter

func NewMockConfigWriter(ctrl *gomock.Controller) *MockConfigWriter

NewMockConfigWriter creates a new mock instance.

func (*MockConfigWriter) Close

func (m *MockConfigWriter) Close() error

Close mocks base method.

func (*MockConfigWriter) EXPECT

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

func (*MockConfigWriter) Import

func (m *MockConfigWriter) Import(ctx context.Context, cfg *config.Tenant) error

Import mocks base method.

func (*MockConfigWriter) Write

func (m *MockConfigWriter) Write(ctx context.Context, item config.ConfigItem, cfg *config.Tenant) error

Write mocks base method.

type MockConfigWriterMockRecorder

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

MockConfigWriterMockRecorder is the mock recorder for MockConfigWriter.

func (*MockConfigWriterMockRecorder) Close

Close indicates an expected call of Close.

func (*MockConfigWriterMockRecorder) Import

func (mr *MockConfigWriterMockRecorder) Import(ctx, cfg interface{}) *gomock.Call

Import indicates an expected call of Import.

func (*MockConfigWriterMockRecorder) Write

func (mr *MockConfigWriterMockRecorder) Write(ctx, item, cfg interface{}) *gomock.Call

Write indicates an expected call of Write.

type MockStoreOperator

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

MockStoreOperator is a mock of StoreOperator interface.

func NewMockStoreOperator

func NewMockStoreOperator(ctrl *gomock.Controller) *MockStoreOperator

NewMockStoreOperator creates a new mock instance.

func (*MockStoreOperator) Close

func (m *MockStoreOperator) Close() error

Close mocks base method.

func (*MockStoreOperator) EXPECT

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

func (*MockStoreOperator) Get

func (m *MockStoreOperator) Get(key config.PathKey) ([]byte, error)

Get mocks base method.

func (*MockStoreOperator) Init

func (m *MockStoreOperator) Init(options map[string]interface{}) error

Init mocks base method.

func (*MockStoreOperator) Name

func (m *MockStoreOperator) Name() string

Name mocks base method.

func (*MockStoreOperator) Save

func (m *MockStoreOperator) Save(key config.PathKey, val []byte) error

Save mocks base method.

func (*MockStoreOperator) Watch

func (m *MockStoreOperator) Watch(key config.PathKey) (<-chan []byte, error)

Watch mocks base method.

type MockStoreOperatorMockRecorder

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

MockStoreOperatorMockRecorder is the mock recorder for MockStoreOperator.

func (*MockStoreOperatorMockRecorder) Close

Close indicates an expected call of Close.

func (*MockStoreOperatorMockRecorder) Get

func (mr *MockStoreOperatorMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockStoreOperatorMockRecorder) Init

func (mr *MockStoreOperatorMockRecorder) Init(options interface{}) *gomock.Call

Init indicates an expected call of Init.

func (*MockStoreOperatorMockRecorder) Name

Name indicates an expected call of Name.

func (*MockStoreOperatorMockRecorder) Save

func (mr *MockStoreOperatorMockRecorder) Save(key, val interface{}) *gomock.Call

Save indicates an expected call of Save.

func (*MockStoreOperatorMockRecorder) Watch

func (mr *MockStoreOperatorMockRecorder) Watch(key interface{}) *gomock.Call

Watch indicates an expected call of Watch.

type MockTenantOperator

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

MockTenantOperator is a mock of TenantOperator interface.

func NewMockTenantOperator

func NewMockTenantOperator(ctrl *gomock.Controller) *MockTenantOperator

NewMockTenantOperator creates a new mock instance.

func (*MockTenantOperator) Close

func (m *MockTenantOperator) Close() error

Close mocks base method.

func (*MockTenantOperator) CreateTenant

func (m *MockTenantOperator) CreateTenant(arg0 string) error

CreateTenant mocks base method.

func (*MockTenantOperator) CreateTenantUser

func (m *MockTenantOperator) CreateTenantUser(tenant, username, password string) error

CreateTenantUser mocks base method.

func (*MockTenantOperator) EXPECT

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

func (*MockTenantOperator) ListTenants

func (m *MockTenantOperator) ListTenants() []string

ListTenants mocks base method.

func (*MockTenantOperator) RemoveTenant

func (m *MockTenantOperator) RemoveTenant(arg0 string) error

RemoveTenant mocks base method.

func (*MockTenantOperator) Subscribe

Subscribe mocks base method.

type MockTenantOperatorMockRecorder

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

MockTenantOperatorMockRecorder is the mock recorder for MockTenantOperator.

func (*MockTenantOperatorMockRecorder) Close

Close indicates an expected call of Close.

func (*MockTenantOperatorMockRecorder) CreateTenant

func (mr *MockTenantOperatorMockRecorder) CreateTenant(arg0 interface{}) *gomock.Call

CreateTenant indicates an expected call of CreateTenant.

func (*MockTenantOperatorMockRecorder) CreateTenantUser

func (mr *MockTenantOperatorMockRecorder) CreateTenantUser(tenant, username, password interface{}) *gomock.Call

CreateTenantUser indicates an expected call of CreateTenantUser.

func (*MockTenantOperatorMockRecorder) ListTenants

func (mr *MockTenantOperatorMockRecorder) ListTenants() *gomock.Call

ListTenants indicates an expected call of ListTenants.

func (*MockTenantOperatorMockRecorder) RemoveTenant

func (mr *MockTenantOperatorMockRecorder) RemoveTenant(arg0 interface{}) *gomock.Call

RemoveTenant indicates an expected call of RemoveTenant.

func (*MockTenantOperatorMockRecorder) Subscribe

func (mr *MockTenantOperatorMockRecorder) Subscribe(ctx, c interface{}) *gomock.Call

Subscribe indicates an expected call of Subscribe.

Jump to

Keyboard shortcuts

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