mock_modserver

package
v15.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

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(arg0 context.Context, arg1 *zap.Logger, arg2 int64, arg3 string, arg4 error)

HandleProcessingError 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(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

HandleProcessingError indicates an expected call of HandleProcessingError.

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