Documentation ¶
Overview ¶
Package mock_modserver is a generated GoMock package.
Index ¶
- func IncomingAgentCtx(t *testing.T, rpcApi *MockAgentRpcApi) context.Context
- 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) HandleProcessingError(arg0 *zap.Logger, arg1 int64, arg2 string, arg3 error)
- func (m *MockAgentRpcApi) HandleSendError(arg0 *zap.Logger, arg1 string, arg2 error) error
- func (m *MockAgentRpcApi) Log() *zap.Logger
- func (m *MockAgentRpcApi) PollWithBackoff(arg0 retry.PollConfig, arg1 retry.PollWithBackoffFunc) error
- type MockAgentRpcApiMockRecorder
- func (mr *MockAgentRpcApiMockRecorder) AgentInfo(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAgentRpcApiMockRecorder) AgentToken() *gomock.Call
- func (mr *MockAgentRpcApiMockRecorder) HandleProcessingError(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockAgentRpcApiMockRecorder) HandleSendError(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockAgentRpcApiMockRecorder) Log() *gomock.Call
- func (mr *MockAgentRpcApiMockRecorder) PollWithBackoff(arg0, arg1 interface{}) *gomock.Call
- type MockApi
- type MockApiMockRecorder
- type MockRpcApi
- func (m *MockRpcApi) EXPECT() *MockRpcApiMockRecorder
- func (m *MockRpcApi) HandleProcessingError(arg0 *zap.Logger, arg1 int64, arg2 string, arg3 error)
- func (m *MockRpcApi) HandleSendError(arg0 *zap.Logger, arg1 string, arg2 error) error
- func (m *MockRpcApi) Log() *zap.Logger
- func (m *MockRpcApi) PollWithBackoff(arg0 retry.PollConfig, arg1 retry.PollWithBackoffFunc) error
- type MockRpcApiMockRecorder
- func (mr *MockRpcApiMockRecorder) HandleProcessingError(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockRpcApiMockRecorder) HandleSendError(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockRpcApiMockRecorder) Log() *gomock.Call
- func (mr *MockRpcApiMockRecorder) PollWithBackoff(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IncomingAgentCtx ¶ added in v14.3.0
func IncomingAgentCtx(t *testing.T, rpcApi *MockAgentRpcApi) context.Context
Types ¶
type MockAgentRpcApi ¶ added in v14.3.0
type MockAgentRpcApi struct {
// contains filtered or unexported fields
}
MockAgentRpcApi is a mock of AgentRpcApi interface.
func NewMockAgentRpcApi ¶ added in v14.3.0
func NewMockAgentRpcApi(ctrl *gomock.Controller) *MockAgentRpcApi
NewMockAgentRpcApi creates a new mock instance.
func NewMockAgentRpcApiWithMockPoller ¶ added in v14.3.0
func NewMockAgentRpcApiWithMockPoller(ctrl *gomock.Controller, pollTimes int) *MockAgentRpcApi
func (*MockAgentRpcApi) AgentToken ¶ added in v14.3.0
func (m *MockAgentRpcApi) AgentToken() api.AgentToken
AgentToken mocks base method.
func (*MockAgentRpcApi) EXPECT ¶ added in v14.3.0
func (m *MockAgentRpcApi) EXPECT() *MockAgentRpcApiMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAgentRpcApi) HandleProcessingError ¶ added in v14.3.0
func (m *MockAgentRpcApi) HandleProcessingError(arg0 *zap.Logger, arg1 int64, arg2 string, arg3 error)
HandleProcessingError mocks base method.
func (*MockAgentRpcApi) HandleSendError ¶ added in v14.3.0
HandleSendError mocks base method.
func (*MockAgentRpcApi) Log ¶ added in v14.3.0
func (m *MockAgentRpcApi) Log() *zap.Logger
Log mocks base method.
func (*MockAgentRpcApi) PollWithBackoff ¶ added in v14.3.0
func (m *MockAgentRpcApi) PollWithBackoff(arg0 retry.PollConfig, arg1 retry.PollWithBackoffFunc) error
PollWithBackoff mocks base method.
type MockAgentRpcApiMockRecorder ¶ added in v14.3.0
type MockAgentRpcApiMockRecorder struct {
// contains filtered or unexported fields
}
MockAgentRpcApiMockRecorder is the mock recorder for MockAgentRpcApi.
func (*MockAgentRpcApiMockRecorder) AgentInfo ¶ added in v14.3.0
func (mr *MockAgentRpcApiMockRecorder) AgentInfo(arg0, arg1 interface{}) *gomock.Call
AgentInfo indicates an expected call of AgentInfo.
func (*MockAgentRpcApiMockRecorder) AgentToken ¶ added in v14.3.0
func (mr *MockAgentRpcApiMockRecorder) AgentToken() *gomock.Call
AgentToken indicates an expected call of AgentToken.
func (*MockAgentRpcApiMockRecorder) HandleProcessingError ¶ added in v14.3.0
func (mr *MockAgentRpcApiMockRecorder) HandleProcessingError(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
HandleProcessingError indicates an expected call of HandleProcessingError.
func (*MockAgentRpcApiMockRecorder) HandleSendError ¶ added in v14.3.0
func (mr *MockAgentRpcApiMockRecorder) HandleSendError(arg0, arg1, arg2 interface{}) *gomock.Call
HandleSendError indicates an expected call of HandleSendError.
func (*MockAgentRpcApiMockRecorder) Log ¶ added in v14.3.0
func (mr *MockAgentRpcApiMockRecorder) Log() *gomock.Call
Log indicates an expected call of Log.
func (*MockAgentRpcApiMockRecorder) PollWithBackoff ¶ added in v14.3.0
func (mr *MockAgentRpcApiMockRecorder) PollWithBackoff(arg0, arg1 interface{}) *gomock.Call
PollWithBackoff indicates an expected call of PollWithBackoff.
type MockApi ¶ added in v14.2.0
type MockApi struct {
// contains filtered or unexported fields
}
MockApi is a mock of Api interface.
func NewMockApi ¶ added in v14.2.0
func NewMockApi(ctrl *gomock.Controller) *MockApi
NewMockApi creates a new mock instance.
func (*MockApi) EXPECT ¶ added in v14.2.0
func (m *MockApi) EXPECT() *MockApiMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockApiMockRecorder ¶ added in v14.2.0
type MockApiMockRecorder struct {
// contains filtered or unexported fields
}
MockApiMockRecorder is the mock recorder for MockApi.
func (*MockApiMockRecorder) HandleProcessingError ¶ added in v14.2.0
func (mr *MockApiMockRecorder) HandleProcessingError(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
HandleProcessingError indicates an expected call of HandleProcessingError.
type MockRpcApi ¶ added in v14.2.0
type MockRpcApi struct {
// contains filtered or unexported fields
}
MockRpcApi is a mock of RpcApi interface.
func NewMockRpcApi ¶ added in v14.2.0
func NewMockRpcApi(ctrl *gomock.Controller) *MockRpcApi
NewMockRpcApi creates a new mock instance.
func (*MockRpcApi) EXPECT ¶ added in v14.2.0
func (m *MockRpcApi) EXPECT() *MockRpcApiMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRpcApi) HandleProcessingError ¶ added in v14.2.0
HandleProcessingError mocks base method.
func (*MockRpcApi) HandleSendError ¶ added in v14.2.0
HandleSendError mocks base method.
func (*MockRpcApi) Log ¶ added in v14.2.0
func (m *MockRpcApi) Log() *zap.Logger
Log mocks base method.
func (*MockRpcApi) PollWithBackoff ¶ added in v14.2.0
func (m *MockRpcApi) PollWithBackoff(arg0 retry.PollConfig, arg1 retry.PollWithBackoffFunc) error
PollWithBackoff mocks base method.
type MockRpcApiMockRecorder ¶ added in v14.2.0
type MockRpcApiMockRecorder struct {
// contains filtered or unexported fields
}
MockRpcApiMockRecorder is the mock recorder for MockRpcApi.
func (*MockRpcApiMockRecorder) HandleProcessingError ¶ added in v14.2.0
func (mr *MockRpcApiMockRecorder) HandleProcessingError(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
HandleProcessingError indicates an expected call of HandleProcessingError.
func (*MockRpcApiMockRecorder) HandleSendError ¶ added in v14.2.0
func (mr *MockRpcApiMockRecorder) HandleSendError(arg0, arg1, arg2 interface{}) *gomock.Call
HandleSendError indicates an expected call of HandleSendError.
func (*MockRpcApiMockRecorder) Log ¶ added in v14.2.0
func (mr *MockRpcApiMockRecorder) Log() *gomock.Call
Log indicates an expected call of Log.
func (*MockRpcApiMockRecorder) PollWithBackoff ¶ added in v14.2.0
func (mr *MockRpcApiMockRecorder) PollWithBackoff(arg0, arg1 interface{}) *gomock.Call
PollWithBackoff indicates an expected call of PollWithBackoff.