Documentation
¶
Overview ¶
Package pluginmock is a generated GoMock package.
Package pluginmock is a generated GoMock package.
Index ¶
- type MockPlugin
- type MockPluginMockRecorder
- type MockRegistry
- func (m *MockRegistry) Create(arg0 context.Context, arg1 models.Endpoint) (plugin.Plugin, error)
- func (m *MockRegistry) EXPECT() *MockRegistryMockRecorder
- func (m *MockRegistry) Mutate(arg0 context.Context, arg1 models.Endpoint) (json.RawMessage, error)
- func (m *MockRegistry) Register(arg0 context.Context, arg1 string, arg2 plugin.Factory)
- func (m *MockRegistry) Validate(arg0 context.Context, arg1 models.Endpoint) error
- type MockRegistryMockRecorder
- func (mr *MockRegistryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRegistryMockRecorder) Mutate(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRegistryMockRecorder) Register(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockRegistryMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPlugin ¶
type MockPlugin struct {
// contains filtered or unexported fields
}
MockPlugin is a mock of Plugin interface.
func NewMockPlugin ¶
func NewMockPlugin(ctrl *gomock.Controller) *MockPlugin
NewMockPlugin creates a new mock instance.
func (*MockPlugin) Activate ¶
func (m *MockPlugin) Activate(arg0 context.Context) error
Activate mocks base method.
func (*MockPlugin) Deactivate ¶
func (m *MockPlugin) Deactivate(arg0 context.Context) error
Deactivate mocks base method.
func (*MockPlugin) EXPECT ¶
func (m *MockPlugin) EXPECT() *MockPluginMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPlugin) ElectionKey ¶
func (m *MockPlugin) ElectionKey(arg0 context.Context) string
ElectionKey mocks base method.
type MockPluginMockRecorder ¶
type MockPluginMockRecorder struct {
// contains filtered or unexported fields
}
MockPluginMockRecorder is the mock recorder for MockPlugin.
func (*MockPluginMockRecorder) Activate ¶
func (mr *MockPluginMockRecorder) Activate(arg0 interface{}) *gomock.Call
Activate indicates an expected call of Activate.
func (*MockPluginMockRecorder) Deactivate ¶
func (mr *MockPluginMockRecorder) Deactivate(arg0 interface{}) *gomock.Call
Deactivate indicates an expected call of Deactivate.
func (*MockPluginMockRecorder) ElectionKey ¶
func (mr *MockPluginMockRecorder) ElectionKey(arg0 interface{}) *gomock.Call
ElectionKey indicates an expected call of ElectionKey.
func (*MockPluginMockRecorder) Ensure ¶
func (mr *MockPluginMockRecorder) Ensure(arg0 interface{}) *gomock.Call
Ensure indicates an expected call of Ensure.
type MockRegistry ¶
type MockRegistry struct {
// contains filtered or unexported fields
}
MockRegistry is a mock of Registry interface.
func NewMockRegistry ¶
func NewMockRegistry(ctrl *gomock.Controller) *MockRegistry
NewMockRegistry creates a new mock instance.
func (*MockRegistry) EXPECT ¶
func (m *MockRegistry) EXPECT() *MockRegistryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRegistry) Mutate ¶
func (m *MockRegistry) Mutate(arg0 context.Context, arg1 models.Endpoint) (json.RawMessage, error)
Mutate mocks base method.
type MockRegistryMockRecorder ¶
type MockRegistryMockRecorder struct {
// contains filtered or unexported fields
}
MockRegistryMockRecorder is the mock recorder for MockRegistry.
func (*MockRegistryMockRecorder) Create ¶
func (mr *MockRegistryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockRegistryMockRecorder) Mutate ¶
func (mr *MockRegistryMockRecorder) Mutate(arg0, arg1 interface{}) *gomock.Call
Mutate indicates an expected call of Mutate.
func (*MockRegistryMockRecorder) Register ¶
func (mr *MockRegistryMockRecorder) Register(arg0, arg1, arg2 interface{}) *gomock.Call
Register indicates an expected call of Register.
func (*MockRegistryMockRecorder) Validate ¶
func (mr *MockRegistryMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call
Validate indicates an expected call of Validate.