mock_modagent

package
v16.0.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mock_modagent is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 (*MockApi) EXPECT

func (m *MockApi) EXPECT() *MockApiMockRecorder

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

func (*MockApi) GetAgentId

func (m *MockApi) GetAgentId(arg0 context.Context) (int64, error)

GetAgentId mocks base method.

func (*MockApi) HandleProcessingError

func (m *MockApi) HandleProcessingError(arg0 context.Context, arg1 *zap.Logger, arg2 int64, arg3 string, arg4 error)

HandleProcessingError mocks base method.

func (*MockApi) MakeGitLabRequest

func (m *MockApi) MakeGitLabRequest(arg0 context.Context, arg1 string, arg2 ...modagent.GitLabRequestOption) (*modagent.GitLabResponse, error)

MakeGitLabRequest mocks base method.

func (*MockApi) TryGetAgentId

func (m *MockApi) TryGetAgentId() (int64, bool)

TryGetAgentId mocks base method.

type MockApiMockRecorder

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

MockApiMockRecorder is the mock recorder for MockApi.

func (*MockApiMockRecorder) GetAgentId

func (mr *MockApiMockRecorder) GetAgentId(arg0 interface{}) *gomock.Call

GetAgentId indicates an expected call of GetAgentId.

func (*MockApiMockRecorder) HandleProcessingError

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

HandleProcessingError indicates an expected call of HandleProcessingError.

func (*MockApiMockRecorder) MakeGitLabRequest

func (mr *MockApiMockRecorder) MakeGitLabRequest(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

MakeGitLabRequest indicates an expected call of MakeGitLabRequest.

func (*MockApiMockRecorder) TryGetAgentId

func (mr *MockApiMockRecorder) TryGetAgentId() *gomock.Call

TryGetAgentId indicates an expected call of TryGetAgentId.

type MockFactory

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

MockFactory is a mock of Factory interface.

func NewMockFactory

func NewMockFactory(ctrl *gomock.Controller) *MockFactory

NewMockFactory creates a new mock instance.

func (*MockFactory) EXPECT

func (m *MockFactory) EXPECT() *MockFactoryMockRecorder

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

func (*MockFactory) Name

func (m *MockFactory) Name() string

Name mocks base method.

func (*MockFactory) New

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

New mocks base method.

func (*MockFactory) StartStopPhase

func (m *MockFactory) StartStopPhase() modshared.ModuleStartStopPhase

StartStopPhase mocks base method.

type MockFactoryMockRecorder

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

MockFactoryMockRecorder is the mock recorder for MockFactory.

func (*MockFactoryMockRecorder) Name

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

Name indicates an expected call of Name.

func (*MockFactoryMockRecorder) New

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

New indicates an expected call of New.

func (*MockFactoryMockRecorder) StartStopPhase

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

StartStopPhase indicates an expected call of StartStopPhase.

type MockLeaderModule

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

MockLeaderModule is a mock of LeaderModule interface.

func NewMockLeaderModule

func NewMockLeaderModule(ctrl *gomock.Controller) *MockLeaderModule

NewMockLeaderModule creates a new mock instance.

func (*MockLeaderModule) DefaultAndValidateConfiguration

func (m *MockLeaderModule) DefaultAndValidateConfiguration(arg0 *agentcfg.AgentConfiguration) error

DefaultAndValidateConfiguration mocks base method.

func (*MockLeaderModule) EXPECT

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

func (*MockLeaderModule) IsRunnableConfiguration

func (m *MockLeaderModule) IsRunnableConfiguration(arg0 *agentcfg.AgentConfiguration) bool

IsRunnableConfiguration mocks base method.

func (*MockLeaderModule) Name

func (m *MockLeaderModule) Name() string

Name mocks base method.

func (*MockLeaderModule) Run

func (m *MockLeaderModule) Run(arg0 context.Context, arg1 <-chan *agentcfg.AgentConfiguration) error

Run mocks base method.

type MockLeaderModuleMockRecorder

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

MockLeaderModuleMockRecorder is the mock recorder for MockLeaderModule.

func (*MockLeaderModuleMockRecorder) DefaultAndValidateConfiguration

func (mr *MockLeaderModuleMockRecorder) DefaultAndValidateConfiguration(arg0 interface{}) *gomock.Call

DefaultAndValidateConfiguration indicates an expected call of DefaultAndValidateConfiguration.

func (*MockLeaderModuleMockRecorder) IsRunnableConfiguration

func (mr *MockLeaderModuleMockRecorder) IsRunnableConfiguration(arg0 interface{}) *gomock.Call

IsRunnableConfiguration indicates an expected call of IsRunnableConfiguration.

func (*MockLeaderModuleMockRecorder) Name

Name indicates an expected call of Name.

func (*MockLeaderModuleMockRecorder) Run

func (mr *MockLeaderModuleMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call

Run indicates an expected call of Run.

type MockModule

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

MockModule is a mock of Module interface.

func NewMockModule

func NewMockModule(ctrl *gomock.Controller) *MockModule

NewMockModule creates a new mock instance.

func (*MockModule) DefaultAndValidateConfiguration

func (m *MockModule) DefaultAndValidateConfiguration(arg0 *agentcfg.AgentConfiguration) error

DefaultAndValidateConfiguration mocks base method.

func (*MockModule) EXPECT

func (m *MockModule) EXPECT() *MockModuleMockRecorder

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

func (*MockModule) Name

func (m *MockModule) Name() string

Name mocks base method.

func (*MockModule) Run

func (m *MockModule) Run(arg0 context.Context, arg1 <-chan *agentcfg.AgentConfiguration) error

Run mocks base method.

type MockModuleMockRecorder

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

MockModuleMockRecorder is the mock recorder for MockModule.

func (*MockModuleMockRecorder) DefaultAndValidateConfiguration

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

DefaultAndValidateConfiguration indicates an expected call of DefaultAndValidateConfiguration.

func (*MockModuleMockRecorder) Name

func (mr *MockModuleMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockModuleMockRecorder) Run

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

Run indicates an expected call of Run.

Jump to

Keyboard shortcuts

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