Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockCenter
- func (m *MockCenter) Close() error
- func (m *MockCenter) EXPECT() *MockCenterMockRecorder
- func (m *MockCenter) Import(ctx context.Context, cfg *config.Tenant) error
- func (m *MockCenter) Load(ctx context.Context, item config.ConfigItem) (*config.Tenant, error)
- func (m *MockCenter) LoadAll(ctx context.Context) (*config.Tenant, error)
- func (m *MockCenter) Subscribe(ctx context.Context, et config.EventType, c config.EventCallback) (context.CancelFunc, error)
- func (m *MockCenter) Tenant() string
- func (m *MockCenter) Write(ctx context.Context, item config.ConfigItem, cfg *config.Tenant) error
- type MockCenterMockRecorder
- func (mr *MockCenterMockRecorder) Close() *gomock.Call
- func (mr *MockCenterMockRecorder) Import(ctx, cfg interface{}) *gomock.Call
- func (mr *MockCenterMockRecorder) Load(ctx, item interface{}) *gomock.Call
- func (mr *MockCenterMockRecorder) LoadAll(ctx interface{}) *gomock.Call
- func (mr *MockCenterMockRecorder) Subscribe(ctx, et, c interface{}) *gomock.Call
- func (mr *MockCenterMockRecorder) Tenant() *gomock.Call
- func (mr *MockCenterMockRecorder) Write(ctx, item, cfg interface{}) *gomock.Call
- type MockConfigReader
- type MockConfigReaderMockRecorder
- type MockConfigWatcher
- type MockConfigWatcherMockRecorder
- type MockConfigWriter
- type MockConfigWriterMockRecorder
- type MockStoreOperator
- func (m *MockStoreOperator) Close() error
- func (m *MockStoreOperator) EXPECT() *MockStoreOperatorMockRecorder
- func (m *MockStoreOperator) Get(key config.PathKey) ([]byte, error)
- func (m *MockStoreOperator) Init(options map[string]interface{}) error
- func (m *MockStoreOperator) Name() string
- func (m *MockStoreOperator) Save(key config.PathKey, val []byte) error
- func (m *MockStoreOperator) Watch(key config.PathKey) (<-chan []byte, error)
- type MockStoreOperatorMockRecorder
- func (mr *MockStoreOperatorMockRecorder) Close() *gomock.Call
- func (mr *MockStoreOperatorMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockStoreOperatorMockRecorder) Init(options interface{}) *gomock.Call
- func (mr *MockStoreOperatorMockRecorder) Name() *gomock.Call
- func (mr *MockStoreOperatorMockRecorder) Save(key, val interface{}) *gomock.Call
- func (mr *MockStoreOperatorMockRecorder) Watch(key interface{}) *gomock.Call
- type MockTenantOperator
- func (m *MockTenantOperator) Close() error
- func (m *MockTenantOperator) CreateTenant(arg0 string) error
- func (m *MockTenantOperator) CreateTenantUser(tenant, username, password string) error
- func (m *MockTenantOperator) EXPECT() *MockTenantOperatorMockRecorder
- func (m *MockTenantOperator) ListTenants() []string
- func (m *MockTenantOperator) RemoveTenant(arg0 string) error
- func (m *MockTenantOperator) Subscribe(ctx context.Context, c config.EventCallback) context.CancelFunc
- type MockTenantOperatorMockRecorder
- func (mr *MockTenantOperatorMockRecorder) Close() *gomock.Call
- func (mr *MockTenantOperatorMockRecorder) CreateTenant(arg0 interface{}) *gomock.Call
- func (mr *MockTenantOperatorMockRecorder) CreateTenantUser(tenant, username, password interface{}) *gomock.Call
- func (mr *MockTenantOperatorMockRecorder) ListTenants() *gomock.Call
- func (mr *MockTenantOperatorMockRecorder) RemoveTenant(arg0 interface{}) *gomock.Call
- func (mr *MockTenantOperatorMockRecorder) Subscribe(ctx, c interface{}) *gomock.Call
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) EXPECT ¶
func (m *MockCenter) EXPECT() *MockCenterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCenter) Load ¶
func (m *MockCenter) Load(ctx context.Context, item config.ConfigItem) (*config.Tenant, error)
Load mocks base method.
func (*MockCenter) Subscribe ¶
func (m *MockCenter) Subscribe(ctx context.Context, et config.EventType, c config.EventCallback) (context.CancelFunc, error)
Subscribe 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) EXPECT ¶
func (m *MockConfigReader) EXPECT() *MockConfigReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConfigReader) Load ¶
func (m *MockConfigReader) Load(ctx context.Context, item config.ConfigItem) (*config.Tenant, error)
Load mocks base method.
type MockConfigReaderMockRecorder ¶
type MockConfigReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigReaderMockRecorder is the mock recorder for MockConfigReader.
func (*MockConfigReaderMockRecorder) Close ¶
func (mr *MockConfigReaderMockRecorder) Close() *gomock.Call
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 ¶
func (m *MockConfigWatcher) EXPECT() *MockConfigWatcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConfigWatcher) Subscribe ¶
func (m *MockConfigWatcher) Subscribe(ctx context.Context, et config.EventType, c config.EventCallback) (context.CancelFunc, error)
Subscribe mocks base method.
type MockConfigWatcherMockRecorder ¶
type MockConfigWatcherMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigWatcherMockRecorder is the mock recorder for MockConfigWatcher.
func (*MockConfigWatcherMockRecorder) Close ¶
func (mr *MockConfigWatcherMockRecorder) Close() *gomock.Call
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) EXPECT ¶
func (m *MockConfigWriter) EXPECT() *MockConfigWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
func (mr *MockConfigWriterMockRecorder) Close() *gomock.Call
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 ¶
func (m *MockStoreOperator) EXPECT() *MockStoreOperatorMockRecorder
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.
type MockStoreOperatorMockRecorder ¶
type MockStoreOperatorMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreOperatorMockRecorder is the mock recorder for MockStoreOperator.
func (*MockStoreOperatorMockRecorder) Close ¶
func (mr *MockStoreOperatorMockRecorder) Close() *gomock.Call
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 ¶
func (mr *MockStoreOperatorMockRecorder) Name() *gomock.Call
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 ¶
func (m *MockTenantOperator) EXPECT() *MockTenantOperatorMockRecorder
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 ¶
func (m *MockTenantOperator) Subscribe(ctx context.Context, c config.EventCallback) context.CancelFunc
Subscribe mocks base method.
type MockTenantOperatorMockRecorder ¶
type MockTenantOperatorMockRecorder struct {
// contains filtered or unexported fields
}
MockTenantOperatorMockRecorder is the mock recorder for MockTenantOperator.
func (*MockTenantOperatorMockRecorder) Close ¶
func (mr *MockTenantOperatorMockRecorder) Close() *gomock.Call
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.