mock_modagent

package
v16.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/module/modagent (interfaces: Api,Factory,Module)

Generated by this command:

mockgen -typed -destination api.go -package mock_modagent gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/module/modagent Api,Factory,Module

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 ApiGetAgentIdCall added in v16.5.0

type ApiGetAgentIdCall struct {
	*gomock.Call
}

ApiGetAgentIdCall wrap *gomock.Call

func (*ApiGetAgentIdCall) Do added in v16.5.0

Do rewrite *gomock.Call.Do

func (*ApiGetAgentIdCall) DoAndReturn added in v16.5.0

func (c *ApiGetAgentIdCall) DoAndReturn(f func(context.Context) (int64, error)) *ApiGetAgentIdCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ApiGetAgentIdCall) Return added in v16.5.0

func (c *ApiGetAgentIdCall) Return(arg0 int64, arg1 error) *ApiGetAgentIdCall

Return rewrite *gomock.Call.Return

type ApiGetGitLabExternalUrlCall added in v16.5.0

type ApiGetGitLabExternalUrlCall struct {
	*gomock.Call
}

ApiGetGitLabExternalUrlCall wrap *gomock.Call

func (*ApiGetGitLabExternalUrlCall) Do added in v16.5.0

Do rewrite *gomock.Call.Do

func (*ApiGetGitLabExternalUrlCall) DoAndReturn added in v16.5.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ApiGetGitLabExternalUrlCall) Return added in v16.5.0

Return rewrite *gomock.Call.Return

type ApiHandleProcessingErrorCall added in v16.5.0

type ApiHandleProcessingErrorCall struct {
	*gomock.Call
}

ApiHandleProcessingErrorCall wrap *gomock.Call

func (*ApiHandleProcessingErrorCall) Do added in v16.5.0

Do rewrite *gomock.Call.Do

func (*ApiHandleProcessingErrorCall) DoAndReturn added in v16.5.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ApiHandleProcessingErrorCall) Return added in v16.5.0

Return rewrite *gomock.Call.Return

type ApiMakeGitLabRequestCall added in v16.5.0

type ApiMakeGitLabRequestCall struct {
	*gomock.Call
}

ApiMakeGitLabRequestCall wrap *gomock.Call

func (*ApiMakeGitLabRequestCall) Do added in v16.5.0

Do rewrite *gomock.Call.Do

func (*ApiMakeGitLabRequestCall) DoAndReturn added in v16.5.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ApiMakeGitLabRequestCall) Return added in v16.5.0

Return rewrite *gomock.Call.Return

type ApiTryGetAgentIdCall added in v16.5.0

type ApiTryGetAgentIdCall struct {
	*gomock.Call
}

ApiTryGetAgentIdCall wrap *gomock.Call

func (*ApiTryGetAgentIdCall) Do added in v16.5.0

Do rewrite *gomock.Call.Do

func (*ApiTryGetAgentIdCall) DoAndReturn added in v16.5.0

func (c *ApiTryGetAgentIdCall) DoAndReturn(f func() (int64, bool)) *ApiTryGetAgentIdCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ApiTryGetAgentIdCall) Return added in v16.5.0

func (c *ApiTryGetAgentIdCall) Return(arg0 int64, arg1 bool) *ApiTryGetAgentIdCall

Return rewrite *gomock.Call.Return

type FactoryIsProducingLeaderModulesCall added in v16.5.0

type FactoryIsProducingLeaderModulesCall struct {
	*gomock.Call
}

FactoryIsProducingLeaderModulesCall wrap *gomock.Call

func (*FactoryIsProducingLeaderModulesCall) Do added in v16.5.0

Do rewrite *gomock.Call.Do

func (*FactoryIsProducingLeaderModulesCall) DoAndReturn added in v16.5.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*FactoryIsProducingLeaderModulesCall) Return added in v16.5.0

Return rewrite *gomock.Call.Return

type FactoryNameCall added in v16.5.0

type FactoryNameCall struct {
	*gomock.Call
}

FactoryNameCall wrap *gomock.Call

func (*FactoryNameCall) Do added in v16.5.0

func (c *FactoryNameCall) Do(f func() string) *FactoryNameCall

Do rewrite *gomock.Call.Do

func (*FactoryNameCall) DoAndReturn added in v16.5.0

func (c *FactoryNameCall) DoAndReturn(f func() string) *FactoryNameCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*FactoryNameCall) Return added in v16.5.0

func (c *FactoryNameCall) Return(arg0 string) *FactoryNameCall

Return rewrite *gomock.Call.Return

type FactoryNewCall added in v16.5.0

type FactoryNewCall struct {
	*gomock.Call
}

FactoryNewCall wrap *gomock.Call

func (*FactoryNewCall) Do added in v16.5.0

Do rewrite *gomock.Call.Do

func (*FactoryNewCall) DoAndReturn added in v16.5.0

func (c *FactoryNewCall) DoAndReturn(f func(*modagent.Config) (modagent.Module, error)) *FactoryNewCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*FactoryNewCall) Return added in v16.5.0

func (c *FactoryNewCall) Return(arg0 modagent.Module, arg1 error) *FactoryNewCall

Return rewrite *gomock.Call.Return

type FactoryStartStopPhaseCall added in v16.5.0

type FactoryStartStopPhaseCall struct {
	*gomock.Call
}

FactoryStartStopPhaseCall wrap *gomock.Call

func (*FactoryStartStopPhaseCall) Do added in v16.5.0

Do rewrite *gomock.Call.Do

func (*FactoryStartStopPhaseCall) DoAndReturn added in v16.5.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*FactoryStartStopPhaseCall) Return added in v16.5.0

Return rewrite *gomock.Call.Return

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) GetGitLabExternalUrl added in v16.1.0

func (m *MockApi) GetGitLabExternalUrl(arg0 context.Context) (url.URL, error)

GetGitLabExternalUrl 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 any) *ApiGetAgentIdCall

GetAgentId indicates an expected call of GetAgentId.

func (*MockApiMockRecorder) GetGitLabExternalUrl added in v16.1.0

func (mr *MockApiMockRecorder) GetGitLabExternalUrl(arg0 any) *ApiGetGitLabExternalUrlCall

GetGitLabExternalUrl indicates an expected call of GetGitLabExternalUrl.

func (*MockApiMockRecorder) HandleProcessingError

func (mr *MockApiMockRecorder) HandleProcessingError(arg0, arg1, arg2, arg3, arg4 any) *ApiHandleProcessingErrorCall

HandleProcessingError indicates an expected call of HandleProcessingError.

func (*MockApiMockRecorder) MakeGitLabRequest

func (mr *MockApiMockRecorder) MakeGitLabRequest(arg0, arg1 any, arg2 ...any) *ApiMakeGitLabRequestCall

MakeGitLabRequest indicates an expected call of MakeGitLabRequest.

func (*MockApiMockRecorder) TryGetAgentId

func (mr *MockApiMockRecorder) TryGetAgentId() *ApiTryGetAgentIdCall

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) IsProducingLeaderModules added in v16.3.0

func (m *MockFactory) IsProducingLeaderModules() bool

IsProducingLeaderModules mocks base method.

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) IsProducingLeaderModules added in v16.3.0

func (mr *MockFactoryMockRecorder) IsProducingLeaderModules() *FactoryIsProducingLeaderModulesCall

IsProducingLeaderModules indicates an expected call of IsProducingLeaderModules.

func (*MockFactoryMockRecorder) Name

Name indicates an expected call of Name.

func (*MockFactoryMockRecorder) New

New indicates an expected call of New.

func (*MockFactoryMockRecorder) StartStopPhase

func (mr *MockFactoryMockRecorder) StartStopPhase() *FactoryStartStopPhaseCall

StartStopPhase indicates an expected call of StartStopPhase.

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 any) *ModuleDefaultAndValidateConfigurationCall

DefaultAndValidateConfiguration indicates an expected call of DefaultAndValidateConfiguration.

func (*MockModuleMockRecorder) Name

Name indicates an expected call of Name.

func (*MockModuleMockRecorder) Run

func (mr *MockModuleMockRecorder) Run(arg0, arg1 any) *ModuleRunCall

Run indicates an expected call of Run.

type ModuleDefaultAndValidateConfigurationCall added in v16.5.0

type ModuleDefaultAndValidateConfigurationCall struct {
	*gomock.Call
}

ModuleDefaultAndValidateConfigurationCall wrap *gomock.Call

func (*ModuleDefaultAndValidateConfigurationCall) Do added in v16.5.0

Do rewrite *gomock.Call.Do

func (*ModuleDefaultAndValidateConfigurationCall) DoAndReturn added in v16.5.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ModuleDefaultAndValidateConfigurationCall) Return added in v16.5.0

Return rewrite *gomock.Call.Return

type ModuleNameCall added in v16.5.0

type ModuleNameCall struct {
	*gomock.Call
}

ModuleNameCall wrap *gomock.Call

func (*ModuleNameCall) Do added in v16.5.0

func (c *ModuleNameCall) Do(f func() string) *ModuleNameCall

Do rewrite *gomock.Call.Do

func (*ModuleNameCall) DoAndReturn added in v16.5.0

func (c *ModuleNameCall) DoAndReturn(f func() string) *ModuleNameCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ModuleNameCall) Return added in v16.5.0

func (c *ModuleNameCall) Return(arg0 string) *ModuleNameCall

Return rewrite *gomock.Call.Return

type ModuleRunCall added in v16.5.0

type ModuleRunCall struct {
	*gomock.Call
}

ModuleRunCall wrap *gomock.Call

func (*ModuleRunCall) Do added in v16.5.0

Do rewrite *gomock.Call.Do

func (*ModuleRunCall) DoAndReturn added in v16.5.0

func (c *ModuleRunCall) DoAndReturn(f func(context.Context, <-chan *agentcfg.AgentConfiguration) error) *ModuleRunCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ModuleRunCall) Return added in v16.5.0

func (c *ModuleRunCall) Return(arg0 error) *ModuleRunCall

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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