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(ctx context.Context, endpoint models.Endpoint) (plugin.Plugin, error)
- func (m *MockRegistry) EXPECT() *MockRegistryMockRecorder
- func (m *MockRegistry) Mutate(ctx context.Context, endpoint models.Endpoint) (json.RawMessage, error)
- func (m *MockRegistry) Register(ctx context.Context, pluginName string, factory plugin.Factory)
- func (m *MockRegistry) Validate(ctx context.Context, endpoint models.Endpoint) error
- type MockRegistryMockRecorder
- func (mr *MockRegistryMockRecorder) Create(ctx, endpoint any) *gomock.Call
- func (mr *MockRegistryMockRecorder) Mutate(ctx, endpoint any) *gomock.Call
- func (mr *MockRegistryMockRecorder) Register(ctx, pluginName, factory any) *gomock.Call
- func (mr *MockRegistryMockRecorder) Validate(ctx, endpoint any) *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(ctx context.Context) error
Activate mocks base method.
func (*MockPlugin) Deactivate ¶
func (m *MockPlugin) Deactivate(ctx 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(ctx 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(ctx any) *gomock.Call
Activate indicates an expected call of Activate.
func (*MockPluginMockRecorder) Deactivate ¶
func (mr *MockPluginMockRecorder) Deactivate(ctx any) *gomock.Call
Deactivate indicates an expected call of Deactivate.
func (*MockPluginMockRecorder) ElectionKey ¶
func (mr *MockPluginMockRecorder) ElectionKey(ctx any) *gomock.Call
ElectionKey indicates an expected call of ElectionKey.
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(ctx context.Context, endpoint 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(ctx, endpoint any) *gomock.Call
Create indicates an expected call of Create.
func (*MockRegistryMockRecorder) Mutate ¶
func (mr *MockRegistryMockRecorder) Mutate(ctx, endpoint any) *gomock.Call
Mutate indicates an expected call of Mutate.