mock_modagent

package
v14.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 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) 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) HandleProcessingError

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

HandleProcessingError mocks base method.

func (*MockAPI) HandleSendError

func (m *MockAPI) HandleSendError(arg0 *zap.Logger, arg1 string, arg2 error) error

HandleSendError 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) SubscribeToFeatureStatus

func (m *MockAPI) SubscribeToFeatureStatus(arg0 modagent.Feature, arg1 modagent.SubscribeCb)

SubscribeToFeatureStatus mocks base method.

func (*MockAPI) ToggleFeature

func (m *MockAPI) ToggleFeature(arg0 modagent.Feature, arg1 bool)

ToggleFeature 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) 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) MakeGitLabRequest

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

MakeGitLabRequest indicates an expected call of MakeGitLabRequest.

func (*MockAPIMockRecorder) SubscribeToFeatureStatus

func (mr *MockAPIMockRecorder) SubscribeToFeatureStatus(arg0, arg1 interface{}) *gomock.Call

SubscribeToFeatureStatus indicates an expected call of SubscribeToFeatureStatus.

func (*MockAPIMockRecorder) ToggleFeature

func (mr *MockAPIMockRecorder) ToggleFeature(arg0, arg1 interface{}) *gomock.Call

ToggleFeature indicates an expected call of ToggleFeature.

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.

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.

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