Documentation ¶
Overview ¶
Package mock_modserver is a generated GoMock package.
Index ¶
- func IncomingCtx(ctx context.Context, t *testing.T, agentToken api.AgentToken) context.Context
- type MockAPI
- func (m *MockAPI) Capture(arg0 error, arg1 ...errortracking.CaptureOption)
- func (m *MockAPI) EXPECT() *MockAPIMockRecorder
- func (m *MockAPI) GetAgentInfo(arg0 context.Context, arg1 *zap.Logger, arg2 api.AgentToken) (*api.AgentInfo, error)
- func (m *MockAPI) HandleProcessingError(arg0 context.Context, arg1 *zap.Logger, arg2 string, arg3 error)
- func (m *MockAPI) HandleSendError(arg0 *zap.Logger, arg1 string, arg2 error) error
- func (m *MockAPI) PollWithBackoff(arg0 context.Context, arg1 wait.BackoffManager, arg2 bool, ...) error
- type MockAPIMockRecorder
- func (mr *MockAPIMockRecorder) Capture(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetAgentInfo(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) HandleProcessingError(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) HandleSendError(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) PollWithBackoff(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IncomingCtx ¶
Types ¶
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 NewMockAPIWithMockPoller ¶
func NewMockAPIWithMockPoller(ctrl *gomock.Controller, pollTimes int) *MockAPI
func (*MockAPI) Capture ¶
func (m *MockAPI) Capture(arg0 error, arg1 ...errortracking.CaptureOption)
Capture mocks base method.
func (*MockAPI) EXPECT ¶
func (m *MockAPI) EXPECT() *MockAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAPI) GetAgentInfo ¶
func (m *MockAPI) GetAgentInfo(arg0 context.Context, arg1 *zap.Logger, arg2 api.AgentToken) (*api.AgentInfo, error)
GetAgentInfo mocks base method.
func (*MockAPI) HandleProcessingError ¶
func (m *MockAPI) HandleProcessingError(arg0 context.Context, arg1 *zap.Logger, arg2 string, arg3 error)
HandleProcessingError mocks base method.
func (*MockAPI) HandleSendError ¶
HandleSendError mocks base method.
func (*MockAPI) PollWithBackoff ¶
func (m *MockAPI) PollWithBackoff(arg0 context.Context, arg1 wait.BackoffManager, arg2 bool, arg3, arg4 time.Duration, arg5 retry.PollWithBackoffFunc) error
PollWithBackoff mocks base method.
type MockAPIMockRecorder ¶
type MockAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockAPIMockRecorder is the mock recorder for MockAPI.
func (*MockAPIMockRecorder) Capture ¶
func (mr *MockAPIMockRecorder) Capture(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Capture indicates an expected call of Capture.
func (*MockAPIMockRecorder) GetAgentInfo ¶
func (mr *MockAPIMockRecorder) GetAgentInfo(arg0, arg1, arg2 interface{}) *gomock.Call
GetAgentInfo indicates an expected call of GetAgentInfo.
func (*MockAPIMockRecorder) HandleProcessingError ¶
func (mr *MockAPIMockRecorder) HandleProcessingError(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
HandleProcessingError indicates an expected call of HandleProcessingError.
func (*MockAPIMockRecorder) HandleSendError ¶
func (mr *MockAPIMockRecorder) HandleSendError(arg0, arg1, arg2 interface{}) *gomock.Call
HandleSendError indicates an expected call of HandleSendError.
func (*MockAPIMockRecorder) PollWithBackoff ¶
func (mr *MockAPIMockRecorder) PollWithBackoff(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
PollWithBackoff indicates an expected call of PollWithBackoff.