mock_modserver

package
v16.3.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package mock_modserver is a generated GoMock package.

Package mock_modserver is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncomingAgentCtx

func IncomingAgentCtx(t *testing.T, rpcApi *MockAgentRpcApi) context.Context

Types

type MockAgentRpcApi

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

MockAgentRpcApi is a mock of AgentRpcApi interface.

func NewMockAgentRpcApi

func NewMockAgentRpcApi(ctrl *gomock.Controller) *MockAgentRpcApi

NewMockAgentRpcApi creates a new mock instance.

func NewMockAgentRpcApiWithMockPoller

func NewMockAgentRpcApiWithMockPoller(ctrl *gomock.Controller, pollTimes int) *MockAgentRpcApi

func (*MockAgentRpcApi) AgentInfo

func (m *MockAgentRpcApi) AgentInfo(arg0 context.Context, arg1 *zap.Logger) (*api.AgentInfo, error)

AgentInfo mocks base method.

func (*MockAgentRpcApi) AgentToken

func (m *MockAgentRpcApi) AgentToken() api.AgentToken

AgentToken mocks base method.

func (*MockAgentRpcApi) EXPECT

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

func (*MockAgentRpcApi) HandleIoError

func (m *MockAgentRpcApi) HandleIoError(arg0 *zap.Logger, arg1 string, arg2 error) error

HandleIoError mocks base method.

func (*MockAgentRpcApi) HandleProcessingError

func (m *MockAgentRpcApi) HandleProcessingError(arg0 *zap.Logger, arg1 int64, arg2 string, arg3 error)

HandleProcessingError mocks base method.

func (*MockAgentRpcApi) Log

func (m *MockAgentRpcApi) Log() *zap.Logger

Log mocks base method.

func (*MockAgentRpcApi) PollWithBackoff

func (m *MockAgentRpcApi) PollWithBackoff(arg0 retry.PollConfig, arg1 retry.PollWithBackoffFunc) error

PollWithBackoff mocks base method.

type MockAgentRpcApiMockRecorder

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

MockAgentRpcApiMockRecorder is the mock recorder for MockAgentRpcApi.

func (*MockAgentRpcApiMockRecorder) AgentInfo

func (mr *MockAgentRpcApiMockRecorder) AgentInfo(arg0, arg1 interface{}) *gomock.Call

AgentInfo indicates an expected call of AgentInfo.

func (*MockAgentRpcApiMockRecorder) AgentToken

func (mr *MockAgentRpcApiMockRecorder) AgentToken() *gomock.Call

AgentToken indicates an expected call of AgentToken.

func (*MockAgentRpcApiMockRecorder) HandleIoError

func (mr *MockAgentRpcApiMockRecorder) HandleIoError(arg0, arg1, arg2 interface{}) *gomock.Call

HandleIoError indicates an expected call of HandleIoError.

func (*MockAgentRpcApiMockRecorder) HandleProcessingError

func (mr *MockAgentRpcApiMockRecorder) HandleProcessingError(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

HandleProcessingError indicates an expected call of HandleProcessingError.

func (*MockAgentRpcApiMockRecorder) Log

Log indicates an expected call of Log.

func (*MockAgentRpcApiMockRecorder) PollWithBackoff

func (mr *MockAgentRpcApiMockRecorder) PollWithBackoff(arg0, arg1 interface{}) *gomock.Call

PollWithBackoff indicates an expected call of PollWithBackoff.

type MockApi

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

MockApi is a mock of Api interface.

func NewMockApi

func NewMockApi(ctrl *gomock.Controller) *MockApi

NewMockApi creates a new mock instance.

func (*MockApi) EXPECT

func (m *MockApi) EXPECT() *MockApiMockRecorder

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

func (*MockApi) HandleProcessingError

func (m *MockApi) HandleProcessingError(ctx context.Context, log *zap.Logger, agentId int64, msg string, err error)

HandleProcessingError mocks base method.

func (*MockApi) OnGitPushEvent

func (m *MockApi) OnGitPushEvent(ctx context.Context, cb syncz.EventCallback[*event.GitPushEvent])

OnGitPushEvent mocks base method.

type MockApiMockRecorder

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

MockApiMockRecorder is the mock recorder for MockApi.

func (*MockApiMockRecorder) HandleProcessingError

func (mr *MockApiMockRecorder) HandleProcessingError(ctx, log, agentId, msg, err interface{}) *gomock.Call

HandleProcessingError indicates an expected call of HandleProcessingError.

func (*MockApiMockRecorder) OnGitPushEvent

func (mr *MockApiMockRecorder) OnGitPushEvent(ctx, cb interface{}) *gomock.Call

OnGitPushEvent indicates an expected call of OnGitPushEvent.

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) New added in v16.2.0

func (m *MockFactory) New(arg0 *modserver.Config) (modserver.Module, error)

New 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() *gomock.Call

Name indicates an expected call of Name.

func (*MockFactoryMockRecorder) New added in v16.2.0

func (mr *MockFactoryMockRecorder) New(arg0 interface{}) *gomock.Call

New indicates an expected call of New.

func (*MockFactoryMockRecorder) StartStopPhase added in v16.2.0

func (mr *MockFactoryMockRecorder) StartStopPhase() *gomock.Call

StartStopPhase indicates an expected call of StartStopPhase.

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.

func (*MockModule) Run added in v16.2.0

func (m *MockModule) Run(arg0 context.Context) error

Run 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() *gomock.Call

Name indicates an expected call of Name.

func (*MockModuleMockRecorder) Run added in v16.2.0

func (mr *MockModuleMockRecorder) Run(arg0 interface{}) *gomock.Call

Run indicates an expected call of Run.

type MockRpcApi

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

MockRpcApi is a mock of RpcApi interface.

func NewMockRpcApi

func NewMockRpcApi(ctrl *gomock.Controller) *MockRpcApi

NewMockRpcApi creates a new mock instance.

func (*MockRpcApi) EXPECT

func (m *MockRpcApi) EXPECT() *MockRpcApiMockRecorder

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

func (*MockRpcApi) HandleIoError

func (m *MockRpcApi) HandleIoError(arg0 *zap.Logger, arg1 string, arg2 error) error

HandleIoError mocks base method.

func (*MockRpcApi) HandleProcessingError

func (m *MockRpcApi) HandleProcessingError(arg0 *zap.Logger, arg1 int64, arg2 string, arg3 error)

HandleProcessingError mocks base method.

func (*MockRpcApi) Log

func (m *MockRpcApi) Log() *zap.Logger

Log mocks base method.

func (*MockRpcApi) PollWithBackoff

func (m *MockRpcApi) PollWithBackoff(arg0 retry.PollConfig, arg1 retry.PollWithBackoffFunc) error

PollWithBackoff mocks base method.

type MockRpcApiMockRecorder

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

MockRpcApiMockRecorder is the mock recorder for MockRpcApi.

func (*MockRpcApiMockRecorder) HandleIoError

func (mr *MockRpcApiMockRecorder) HandleIoError(arg0, arg1, arg2 interface{}) *gomock.Call

HandleIoError indicates an expected call of HandleIoError.

func (*MockRpcApiMockRecorder) HandleProcessingError

func (mr *MockRpcApiMockRecorder) HandleProcessingError(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

HandleProcessingError indicates an expected call of HandleProcessingError.

func (*MockRpcApiMockRecorder) Log

func (mr *MockRpcApiMockRecorder) Log() *gomock.Call

Log indicates an expected call of Log.

func (*MockRpcApiMockRecorder) PollWithBackoff

func (mr *MockRpcApiMockRecorder) PollWithBackoff(arg0, arg1 interface{}) *gomock.Call

PollWithBackoff indicates an expected call of PollWithBackoff.

Jump to

Keyboard shortcuts

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