Documentation ¶
Overview ¶
Package mock_modserver is a generated GoMock package.
Package mock_modserver is a generated GoMock package.
Index ¶
- func AgentMeta() *entity.AgentMeta
- func IncomingAgentCtx(t *testing.T, rpcAPI *MockAgentRPCAPI) context.Context
- type MockAPI
- type MockAPIHandleProcessingErrorCall
- func (c *MockAPIHandleProcessingErrorCall) Do(f func(context.Context, *zap.Logger, int64, string, error)) *MockAPIHandleProcessingErrorCall
- func (c *MockAPIHandleProcessingErrorCall) DoAndReturn(f func(context.Context, *zap.Logger, int64, string, error)) *MockAPIHandleProcessingErrorCall
- func (c *MockAPIHandleProcessingErrorCall) Return() *MockAPIHandleProcessingErrorCall
- type MockAPIMockRecorder
- type MockAPIOnGitPushEventCall
- func (c *MockAPIOnGitPushEventCall) Do(f func(context.Context, syncz.EventCallback[*event.GitPushEvent])) *MockAPIOnGitPushEventCall
- func (c *MockAPIOnGitPushEventCall) DoAndReturn(f func(context.Context, syncz.EventCallback[*event.GitPushEvent])) *MockAPIOnGitPushEventCall
- func (c *MockAPIOnGitPushEventCall) Return() *MockAPIOnGitPushEventCall
- type MockAgentInfoResolver
- type MockAgentInfoResolverGetCall
- func (c *MockAgentInfoResolverGetCall) Do(f func(context.Context, int64) (map[string]any, error)) *MockAgentInfoResolverGetCall
- func (c *MockAgentInfoResolverGetCall) DoAndReturn(f func(context.Context, int64) (map[string]any, error)) *MockAgentInfoResolverGetCall
- func (c *MockAgentInfoResolverGetCall) Return(arg0 map[string]any, arg1 error) *MockAgentInfoResolverGetCall
- type MockAgentInfoResolverMockRecorder
- type MockAgentRPCAPI
- func (m *MockAgentRPCAPI) AgentInfo(arg0 context.Context, arg1 *zap.Logger) (*api.AgentInfo, error)
- func (m *MockAgentRPCAPI) AgentToken() api.AgentToken
- func (m *MockAgentRPCAPI) EXPECT() *MockAgentRPCAPIMockRecorder
- func (m *MockAgentRPCAPI) HandleIOError(arg0 *zap.Logger, arg1 string, arg2 error) error
- func (m *MockAgentRPCAPI) HandleProcessingError(arg0 *zap.Logger, arg1 int64, arg2 string, arg3 error)
- func (m *MockAgentRPCAPI) Log() *zap.Logger
- func (m *MockAgentRPCAPI) PollWithBackoff(arg0 retry.PollConfig, arg1 retry.PollWithBackoffFunc) error
- type MockAgentRPCAPIAgentInfoCall
- func (c *MockAgentRPCAPIAgentInfoCall) Do(f func(context.Context, *zap.Logger) (*api.AgentInfo, error)) *MockAgentRPCAPIAgentInfoCall
- func (c *MockAgentRPCAPIAgentInfoCall) DoAndReturn(f func(context.Context, *zap.Logger) (*api.AgentInfo, error)) *MockAgentRPCAPIAgentInfoCall
- func (c *MockAgentRPCAPIAgentInfoCall) Return(arg0 *api.AgentInfo, arg1 error) *MockAgentRPCAPIAgentInfoCall
- type MockAgentRPCAPIAgentTokenCall
- func (c *MockAgentRPCAPIAgentTokenCall) Do(f func() api.AgentToken) *MockAgentRPCAPIAgentTokenCall
- func (c *MockAgentRPCAPIAgentTokenCall) DoAndReturn(f func() api.AgentToken) *MockAgentRPCAPIAgentTokenCall
- func (c *MockAgentRPCAPIAgentTokenCall) Return(arg0 api.AgentToken) *MockAgentRPCAPIAgentTokenCall
- type MockAgentRPCAPIHandleIOErrorCall
- func (c *MockAgentRPCAPIHandleIOErrorCall) Do(f func(*zap.Logger, string, error) error) *MockAgentRPCAPIHandleIOErrorCall
- func (c *MockAgentRPCAPIHandleIOErrorCall) DoAndReturn(f func(*zap.Logger, string, error) error) *MockAgentRPCAPIHandleIOErrorCall
- func (c *MockAgentRPCAPIHandleIOErrorCall) Return(arg0 error) *MockAgentRPCAPIHandleIOErrorCall
- type MockAgentRPCAPIHandleProcessingErrorCall
- func (c *MockAgentRPCAPIHandleProcessingErrorCall) Do(f func(*zap.Logger, int64, string, error)) *MockAgentRPCAPIHandleProcessingErrorCall
- func (c *MockAgentRPCAPIHandleProcessingErrorCall) DoAndReturn(f func(*zap.Logger, int64, string, error)) *MockAgentRPCAPIHandleProcessingErrorCall
- func (c *MockAgentRPCAPIHandleProcessingErrorCall) Return() *MockAgentRPCAPIHandleProcessingErrorCall
- type MockAgentRPCAPILogCall
- type MockAgentRPCAPIMockRecorder
- func (mr *MockAgentRPCAPIMockRecorder) AgentInfo(arg0, arg1 any) *MockAgentRPCAPIAgentInfoCall
- func (mr *MockAgentRPCAPIMockRecorder) AgentToken() *MockAgentRPCAPIAgentTokenCall
- func (mr *MockAgentRPCAPIMockRecorder) HandleIOError(arg0, arg1, arg2 any) *MockAgentRPCAPIHandleIOErrorCall
- func (mr *MockAgentRPCAPIMockRecorder) HandleProcessingError(arg0, arg1, arg2, arg3 any) *MockAgentRPCAPIHandleProcessingErrorCall
- func (mr *MockAgentRPCAPIMockRecorder) Log() *MockAgentRPCAPILogCall
- func (mr *MockAgentRPCAPIMockRecorder) PollWithBackoff(arg0, arg1 any) *MockAgentRPCAPIPollWithBackoffCall
- type MockAgentRPCAPIPollWithBackoffCall
- func (c *MockAgentRPCAPIPollWithBackoffCall) Do(f func(retry.PollConfig, retry.PollWithBackoffFunc) error) *MockAgentRPCAPIPollWithBackoffCall
- func (c *MockAgentRPCAPIPollWithBackoffCall) DoAndReturn(f func(retry.PollConfig, retry.PollWithBackoffFunc) error) *MockAgentRPCAPIPollWithBackoffCall
- func (c *MockAgentRPCAPIPollWithBackoffCall) Return(arg0 error) *MockAgentRPCAPIPollWithBackoffCall
- type MockFactory
- type MockFactoryMockRecorder
- type MockFactoryNameCall
- type MockFactoryNewCall
- func (c *MockFactoryNewCall) Do(f func(*modserver.Config) (modserver.Module, error)) *MockFactoryNewCall
- func (c *MockFactoryNewCall) DoAndReturn(f func(*modserver.Config) (modserver.Module, error)) *MockFactoryNewCall
- func (c *MockFactoryNewCall) Return(arg0 modserver.Module, arg1 error) *MockFactoryNewCall
- type MockFactoryStartStopPhaseCall
- func (c *MockFactoryStartStopPhaseCall) Do(f func() modshared.ModuleStartStopPhase) *MockFactoryStartStopPhaseCall
- func (c *MockFactoryStartStopPhaseCall) DoAndReturn(f func() modshared.ModuleStartStopPhase) *MockFactoryStartStopPhaseCall
- func (c *MockFactoryStartStopPhaseCall) Return(arg0 modshared.ModuleStartStopPhase) *MockFactoryStartStopPhaseCall
- type MockModule
- type MockModuleMockRecorder
- type MockModuleNameCall
- type MockModuleRunCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IncomingAgentCtx ¶
func IncomingAgentCtx(t *testing.T, rpcAPI *MockAgentRPCAPI) context.Context
Types ¶
type MockAPI ¶ added in v16.9.0
type MockAPI struct {
// contains filtered or unexported fields
}
MockAPI is a mock of API interface.
func NewMockAPI ¶ added in v16.9.0
func NewMockAPI(ctrl *gomock.Controller) *MockAPI
NewMockAPI creates a new mock instance.
func (*MockAPI) EXPECT ¶ added in v16.9.0
func (m *MockAPI) EXPECT() *MockAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAPI) HandleProcessingError ¶ added in v16.9.0
func (m *MockAPI) HandleProcessingError(ctx context.Context, log *zap.Logger, agentID int64, msg string, err error)
HandleProcessingError mocks base method.
func (*MockAPI) OnGitPushEvent ¶ added in v16.9.0
func (m *MockAPI) OnGitPushEvent(ctx context.Context, cb syncz.EventCallback[*event.GitPushEvent])
OnGitPushEvent mocks base method.
type MockAPIHandleProcessingErrorCall ¶ added in v16.9.0
MockAPIHandleProcessingErrorCall wrap *gomock.Call
func (*MockAPIHandleProcessingErrorCall) Do ¶ added in v16.9.0
func (c *MockAPIHandleProcessingErrorCall) Do(f func(context.Context, *zap.Logger, int64, string, error)) *MockAPIHandleProcessingErrorCall
Do rewrite *gomock.Call.Do
func (*MockAPIHandleProcessingErrorCall) DoAndReturn ¶ added in v16.9.0
func (c *MockAPIHandleProcessingErrorCall) DoAndReturn(f func(context.Context, *zap.Logger, int64, string, error)) *MockAPIHandleProcessingErrorCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPIHandleProcessingErrorCall) Return ¶ added in v16.9.0
func (c *MockAPIHandleProcessingErrorCall) Return() *MockAPIHandleProcessingErrorCall
Return rewrite *gomock.Call.Return
type MockAPIMockRecorder ¶ added in v16.9.0
type MockAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockAPIMockRecorder is the mock recorder for MockAPI.
func (*MockAPIMockRecorder) HandleProcessingError ¶ added in v16.9.0
func (mr *MockAPIMockRecorder) HandleProcessingError(ctx, log, agentID, msg, err any) *MockAPIHandleProcessingErrorCall
HandleProcessingError indicates an expected call of HandleProcessingError.
func (*MockAPIMockRecorder) OnGitPushEvent ¶ added in v16.9.0
func (mr *MockAPIMockRecorder) OnGitPushEvent(ctx, cb any) *MockAPIOnGitPushEventCall
OnGitPushEvent indicates an expected call of OnGitPushEvent.
type MockAPIOnGitPushEventCall ¶ added in v16.9.0
MockAPIOnGitPushEventCall wrap *gomock.Call
func (*MockAPIOnGitPushEventCall) Do ¶ added in v16.9.0
func (c *MockAPIOnGitPushEventCall) Do(f func(context.Context, syncz.EventCallback[*event.GitPushEvent])) *MockAPIOnGitPushEventCall
Do rewrite *gomock.Call.Do
func (*MockAPIOnGitPushEventCall) DoAndReturn ¶ added in v16.9.0
func (c *MockAPIOnGitPushEventCall) DoAndReturn(f func(context.Context, syncz.EventCallback[*event.GitPushEvent])) *MockAPIOnGitPushEventCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPIOnGitPushEventCall) Return ¶ added in v16.9.0
func (c *MockAPIOnGitPushEventCall) Return() *MockAPIOnGitPushEventCall
Return rewrite *gomock.Call.Return
type MockAgentInfoResolver ¶ added in v16.11.0
type MockAgentInfoResolver struct {
// contains filtered or unexported fields
}
MockAgentInfoResolver is a mock of AgentInfoResolver interface.
func NewMockAgentInfoResolver ¶ added in v16.11.0
func NewMockAgentInfoResolver(ctrl *gomock.Controller) *MockAgentInfoResolver
NewMockAgentInfoResolver creates a new mock instance.
func (*MockAgentInfoResolver) EXPECT ¶ added in v16.11.0
func (m *MockAgentInfoResolver) EXPECT() *MockAgentInfoResolverMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAgentInfoResolverGetCall ¶ added in v16.11.0
MockAgentInfoResolverGetCall wrap *gomock.Call
func (*MockAgentInfoResolverGetCall) Do ¶ added in v16.11.0
func (c *MockAgentInfoResolverGetCall) Do(f func(context.Context, int64) (map[string]any, error)) *MockAgentInfoResolverGetCall
Do rewrite *gomock.Call.Do
func (*MockAgentInfoResolverGetCall) DoAndReturn ¶ added in v16.11.0
func (c *MockAgentInfoResolverGetCall) DoAndReturn(f func(context.Context, int64) (map[string]any, error)) *MockAgentInfoResolverGetCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAgentInfoResolverGetCall) Return ¶ added in v16.11.0
func (c *MockAgentInfoResolverGetCall) Return(arg0 map[string]any, arg1 error) *MockAgentInfoResolverGetCall
Return rewrite *gomock.Call.Return
type MockAgentInfoResolverMockRecorder ¶ added in v16.11.0
type MockAgentInfoResolverMockRecorder struct {
// contains filtered or unexported fields
}
MockAgentInfoResolverMockRecorder is the mock recorder for MockAgentInfoResolver.
func (*MockAgentInfoResolverMockRecorder) Get ¶ added in v16.11.0
func (mr *MockAgentInfoResolverMockRecorder) Get(ctx, agentID any) *MockAgentInfoResolverGetCall
Get indicates an expected call of Get.
type MockAgentRPCAPI ¶ added in v16.9.0
type MockAgentRPCAPI struct {
// contains filtered or unexported fields
}
MockAgentRPCAPI is a mock of AgentRPCAPI interface.
func NewMockAgentRPCAPI ¶ added in v16.9.0
func NewMockAgentRPCAPI(ctrl *gomock.Controller) *MockAgentRPCAPI
NewMockAgentRPCAPI creates a new mock instance.
func NewMockAgentRPCAPIWithMockPoller ¶ added in v16.9.0
func NewMockAgentRPCAPIWithMockPoller(ctrl *gomock.Controller, pollTimes int) *MockAgentRPCAPI
func (*MockAgentRPCAPI) AgentToken ¶ added in v16.9.0
func (m *MockAgentRPCAPI) AgentToken() api.AgentToken
AgentToken mocks base method.
func (*MockAgentRPCAPI) EXPECT ¶ added in v16.9.0
func (m *MockAgentRPCAPI) EXPECT() *MockAgentRPCAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAgentRPCAPI) HandleIOError ¶ added in v16.10.0
HandleIOError mocks base method.
func (*MockAgentRPCAPI) HandleProcessingError ¶ added in v16.9.0
func (m *MockAgentRPCAPI) HandleProcessingError(arg0 *zap.Logger, arg1 int64, arg2 string, arg3 error)
HandleProcessingError mocks base method.
func (*MockAgentRPCAPI) Log ¶ added in v16.9.0
func (m *MockAgentRPCAPI) Log() *zap.Logger
Log mocks base method.
func (*MockAgentRPCAPI) PollWithBackoff ¶ added in v16.9.0
func (m *MockAgentRPCAPI) PollWithBackoff(arg0 retry.PollConfig, arg1 retry.PollWithBackoffFunc) error
PollWithBackoff mocks base method.
type MockAgentRPCAPIAgentInfoCall ¶ added in v16.9.0
MockAgentRPCAPIAgentInfoCall wrap *gomock.Call
func (*MockAgentRPCAPIAgentInfoCall) Do ¶ added in v16.9.0
func (c *MockAgentRPCAPIAgentInfoCall) Do(f func(context.Context, *zap.Logger) (*api.AgentInfo, error)) *MockAgentRPCAPIAgentInfoCall
Do rewrite *gomock.Call.Do
func (*MockAgentRPCAPIAgentInfoCall) DoAndReturn ¶ added in v16.9.0
func (c *MockAgentRPCAPIAgentInfoCall) DoAndReturn(f func(context.Context, *zap.Logger) (*api.AgentInfo, error)) *MockAgentRPCAPIAgentInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAgentRPCAPIAgentInfoCall) Return ¶ added in v16.9.0
func (c *MockAgentRPCAPIAgentInfoCall) Return(arg0 *api.AgentInfo, arg1 error) *MockAgentRPCAPIAgentInfoCall
Return rewrite *gomock.Call.Return
type MockAgentRPCAPIAgentTokenCall ¶ added in v16.9.0
MockAgentRPCAPIAgentTokenCall wrap *gomock.Call
func (*MockAgentRPCAPIAgentTokenCall) Do ¶ added in v16.9.0
func (c *MockAgentRPCAPIAgentTokenCall) Do(f func() api.AgentToken) *MockAgentRPCAPIAgentTokenCall
Do rewrite *gomock.Call.Do
func (*MockAgentRPCAPIAgentTokenCall) DoAndReturn ¶ added in v16.9.0
func (c *MockAgentRPCAPIAgentTokenCall) DoAndReturn(f func() api.AgentToken) *MockAgentRPCAPIAgentTokenCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAgentRPCAPIAgentTokenCall) Return ¶ added in v16.9.0
func (c *MockAgentRPCAPIAgentTokenCall) Return(arg0 api.AgentToken) *MockAgentRPCAPIAgentTokenCall
Return rewrite *gomock.Call.Return
type MockAgentRPCAPIHandleIOErrorCall ¶ added in v16.10.0
MockAgentRPCAPIHandleIOErrorCall wrap *gomock.Call
func (*MockAgentRPCAPIHandleIOErrorCall) Do ¶ added in v16.10.0
func (c *MockAgentRPCAPIHandleIOErrorCall) Do(f func(*zap.Logger, string, error) error) *MockAgentRPCAPIHandleIOErrorCall
Do rewrite *gomock.Call.Do
func (*MockAgentRPCAPIHandleIOErrorCall) DoAndReturn ¶ added in v16.10.0
func (c *MockAgentRPCAPIHandleIOErrorCall) DoAndReturn(f func(*zap.Logger, string, error) error) *MockAgentRPCAPIHandleIOErrorCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAgentRPCAPIHandleIOErrorCall) Return ¶ added in v16.10.0
func (c *MockAgentRPCAPIHandleIOErrorCall) Return(arg0 error) *MockAgentRPCAPIHandleIOErrorCall
Return rewrite *gomock.Call.Return
type MockAgentRPCAPIHandleProcessingErrorCall ¶ added in v16.9.0
MockAgentRPCAPIHandleProcessingErrorCall wrap *gomock.Call
func (*MockAgentRPCAPIHandleProcessingErrorCall) Do ¶ added in v16.9.0
func (c *MockAgentRPCAPIHandleProcessingErrorCall) Do(f func(*zap.Logger, int64, string, error)) *MockAgentRPCAPIHandleProcessingErrorCall
Do rewrite *gomock.Call.Do
func (*MockAgentRPCAPIHandleProcessingErrorCall) DoAndReturn ¶ added in v16.9.0
func (c *MockAgentRPCAPIHandleProcessingErrorCall) DoAndReturn(f func(*zap.Logger, int64, string, error)) *MockAgentRPCAPIHandleProcessingErrorCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAgentRPCAPIHandleProcessingErrorCall) Return ¶ added in v16.9.0
func (c *MockAgentRPCAPIHandleProcessingErrorCall) Return() *MockAgentRPCAPIHandleProcessingErrorCall
Return rewrite *gomock.Call.Return
type MockAgentRPCAPILogCall ¶ added in v16.9.0
MockAgentRPCAPILogCall wrap *gomock.Call
func (*MockAgentRPCAPILogCall) Do ¶ added in v16.9.0
func (c *MockAgentRPCAPILogCall) Do(f func() *zap.Logger) *MockAgentRPCAPILogCall
Do rewrite *gomock.Call.Do
func (*MockAgentRPCAPILogCall) DoAndReturn ¶ added in v16.9.0
func (c *MockAgentRPCAPILogCall) DoAndReturn(f func() *zap.Logger) *MockAgentRPCAPILogCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAgentRPCAPILogCall) Return ¶ added in v16.9.0
func (c *MockAgentRPCAPILogCall) Return(arg0 *zap.Logger) *MockAgentRPCAPILogCall
Return rewrite *gomock.Call.Return
type MockAgentRPCAPIMockRecorder ¶ added in v16.9.0
type MockAgentRPCAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockAgentRPCAPIMockRecorder is the mock recorder for MockAgentRPCAPI.
func (*MockAgentRPCAPIMockRecorder) AgentInfo ¶ added in v16.9.0
func (mr *MockAgentRPCAPIMockRecorder) AgentInfo(arg0, arg1 any) *MockAgentRPCAPIAgentInfoCall
AgentInfo indicates an expected call of AgentInfo.
func (*MockAgentRPCAPIMockRecorder) AgentToken ¶ added in v16.9.0
func (mr *MockAgentRPCAPIMockRecorder) AgentToken() *MockAgentRPCAPIAgentTokenCall
AgentToken indicates an expected call of AgentToken.
func (*MockAgentRPCAPIMockRecorder) HandleIOError ¶ added in v16.10.0
func (mr *MockAgentRPCAPIMockRecorder) HandleIOError(arg0, arg1, arg2 any) *MockAgentRPCAPIHandleIOErrorCall
HandleIOError indicates an expected call of HandleIOError.
func (*MockAgentRPCAPIMockRecorder) HandleProcessingError ¶ added in v16.9.0
func (mr *MockAgentRPCAPIMockRecorder) HandleProcessingError(arg0, arg1, arg2, arg3 any) *MockAgentRPCAPIHandleProcessingErrorCall
HandleProcessingError indicates an expected call of HandleProcessingError.
func (*MockAgentRPCAPIMockRecorder) Log ¶ added in v16.9.0
func (mr *MockAgentRPCAPIMockRecorder) Log() *MockAgentRPCAPILogCall
Log indicates an expected call of Log.
func (*MockAgentRPCAPIMockRecorder) PollWithBackoff ¶ added in v16.9.0
func (mr *MockAgentRPCAPIMockRecorder) PollWithBackoff(arg0, arg1 any) *MockAgentRPCAPIPollWithBackoffCall
PollWithBackoff indicates an expected call of PollWithBackoff.
type MockAgentRPCAPIPollWithBackoffCall ¶ added in v16.9.0
MockAgentRPCAPIPollWithBackoffCall wrap *gomock.Call
func (*MockAgentRPCAPIPollWithBackoffCall) Do ¶ added in v16.9.0
func (c *MockAgentRPCAPIPollWithBackoffCall) Do(f func(retry.PollConfig, retry.PollWithBackoffFunc) error) *MockAgentRPCAPIPollWithBackoffCall
Do rewrite *gomock.Call.Do
func (*MockAgentRPCAPIPollWithBackoffCall) DoAndReturn ¶ added in v16.9.0
func (c *MockAgentRPCAPIPollWithBackoffCall) DoAndReturn(f func(retry.PollConfig, retry.PollWithBackoffFunc) error) *MockAgentRPCAPIPollWithBackoffCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAgentRPCAPIPollWithBackoffCall) Return ¶ added in v16.9.0
func (c *MockAgentRPCAPIPollWithBackoffCall) Return(arg0 error) *MockAgentRPCAPIPollWithBackoffCall
Return rewrite *gomock.Call.Return
type MockFactory ¶ added in v16.2.0
type MockFactory struct {
// contains filtered or unexported fields
}
MockFactory is a mock of Factory interface.
func NewMockFactory ¶ added in v16.2.0
func NewMockFactory(ctrl *gomock.Controller) *MockFactory
NewMockFactory creates a new mock instance.
func (*MockFactory) EXPECT ¶ added in v16.2.0
func (m *MockFactory) EXPECT() *MockFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFactory) Name ¶ added in v16.2.0
func (m *MockFactory) Name() string
Name mocks base method.
func (*MockFactory) StartStopPhase ¶ added in v16.2.0
func (m *MockFactory) StartStopPhase() modshared.ModuleStartStopPhase
StartStopPhase mocks base method.
type MockFactoryMockRecorder ¶ added in v16.2.0
type MockFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockFactoryMockRecorder is the mock recorder for MockFactory.
func (*MockFactoryMockRecorder) Name ¶ added in v16.2.0
func (mr *MockFactoryMockRecorder) Name() *MockFactoryNameCall
Name indicates an expected call of Name.
func (*MockFactoryMockRecorder) New ¶ added in v16.2.0
func (mr *MockFactoryMockRecorder) New(arg0 any) *MockFactoryNewCall
New indicates an expected call of New.
func (*MockFactoryMockRecorder) StartStopPhase ¶ added in v16.2.0
func (mr *MockFactoryMockRecorder) StartStopPhase() *MockFactoryStartStopPhaseCall
StartStopPhase indicates an expected call of StartStopPhase.
type MockFactoryNameCall ¶ added in v16.8.0
MockFactoryNameCall wrap *gomock.Call
func (*MockFactoryNameCall) Do ¶ added in v16.8.0
func (c *MockFactoryNameCall) Do(f func() string) *MockFactoryNameCall
Do rewrite *gomock.Call.Do
func (*MockFactoryNameCall) DoAndReturn ¶ added in v16.8.0
func (c *MockFactoryNameCall) DoAndReturn(f func() string) *MockFactoryNameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFactoryNameCall) Return ¶ added in v16.8.0
func (c *MockFactoryNameCall) Return(arg0 string) *MockFactoryNameCall
Return rewrite *gomock.Call.Return
type MockFactoryNewCall ¶ added in v16.8.0
MockFactoryNewCall wrap *gomock.Call
func (*MockFactoryNewCall) Do ¶ added in v16.8.0
func (c *MockFactoryNewCall) Do(f func(*modserver.Config) (modserver.Module, error)) *MockFactoryNewCall
Do rewrite *gomock.Call.Do
func (*MockFactoryNewCall) DoAndReturn ¶ added in v16.8.0
func (c *MockFactoryNewCall) DoAndReturn(f func(*modserver.Config) (modserver.Module, error)) *MockFactoryNewCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFactoryNewCall) Return ¶ added in v16.8.0
func (c *MockFactoryNewCall) Return(arg0 modserver.Module, arg1 error) *MockFactoryNewCall
Return rewrite *gomock.Call.Return
type MockFactoryStartStopPhaseCall ¶ added in v16.8.0
MockFactoryStartStopPhaseCall wrap *gomock.Call
func (*MockFactoryStartStopPhaseCall) Do ¶ added in v16.8.0
func (c *MockFactoryStartStopPhaseCall) Do(f func() modshared.ModuleStartStopPhase) *MockFactoryStartStopPhaseCall
Do rewrite *gomock.Call.Do
func (*MockFactoryStartStopPhaseCall) DoAndReturn ¶ added in v16.8.0
func (c *MockFactoryStartStopPhaseCall) DoAndReturn(f func() modshared.ModuleStartStopPhase) *MockFactoryStartStopPhaseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFactoryStartStopPhaseCall) Return ¶ added in v16.8.0
func (c *MockFactoryStartStopPhaseCall) Return(arg0 modshared.ModuleStartStopPhase) *MockFactoryStartStopPhaseCall
Return rewrite *gomock.Call.Return
type MockModule ¶ added in v16.2.0
type MockModule struct {
// contains filtered or unexported fields
}
MockModule is a mock of Module interface.
func NewMockModule ¶ added in v16.2.0
func NewMockModule(ctrl *gomock.Controller) *MockModule
NewMockModule creates a new mock instance.
func (*MockModule) EXPECT ¶ added in v16.2.0
func (m *MockModule) EXPECT() *MockModuleMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockModule) Name ¶ added in v16.2.0
func (m *MockModule) Name() string
Name mocks base method.
type MockModuleMockRecorder ¶ added in v16.2.0
type MockModuleMockRecorder struct {
// contains filtered or unexported fields
}
MockModuleMockRecorder is the mock recorder for MockModule.
func (*MockModuleMockRecorder) Name ¶ added in v16.2.0
func (mr *MockModuleMockRecorder) Name() *MockModuleNameCall
Name indicates an expected call of Name.
func (*MockModuleMockRecorder) Run ¶ added in v16.2.0
func (mr *MockModuleMockRecorder) Run(arg0 any) *MockModuleRunCall
Run indicates an expected call of Run.
type MockModuleNameCall ¶ added in v16.8.0
MockModuleNameCall wrap *gomock.Call
func (*MockModuleNameCall) Do ¶ added in v16.8.0
func (c *MockModuleNameCall) Do(f func() string) *MockModuleNameCall
Do rewrite *gomock.Call.Do
func (*MockModuleNameCall) DoAndReturn ¶ added in v16.8.0
func (c *MockModuleNameCall) DoAndReturn(f func() string) *MockModuleNameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModuleNameCall) Return ¶ added in v16.8.0
func (c *MockModuleNameCall) Return(arg0 string) *MockModuleNameCall
Return rewrite *gomock.Call.Return
type MockModuleRunCall ¶ added in v16.8.0
MockModuleRunCall wrap *gomock.Call
func (*MockModuleRunCall) Do ¶ added in v16.8.0
func (c *MockModuleRunCall) Do(f func(context.Context) error) *MockModuleRunCall
Do rewrite *gomock.Call.Do
func (*MockModuleRunCall) DoAndReturn ¶ added in v16.8.0
func (c *MockModuleRunCall) DoAndReturn(f func(context.Context) error) *MockModuleRunCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModuleRunCall) Return ¶ added in v16.8.0
func (c *MockModuleRunCall) Return(arg0 error) *MockModuleRunCall
Return rewrite *gomock.Call.Return