mock_modserver

package
v17.7.0-rc31 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package mock_modserver is a generated GoMock package.

Package mock_modserver is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentMeta

func AgentMeta() *entity.AgentMeta

func IncomingAgentCtx

func IncomingAgentCtx(t *testing.T, rpcAPI *MockAgentRPCAPI) context.Context

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) HandleProcessingError

func (m *MockAPI) HandleProcessingError(ctx context.Context, log *slog.Logger, msg string, err error, fields ...fieldz.Field)

HandleProcessingError mocks base method.

func (*MockAPI) OnGitPushEvent

func (m *MockAPI) OnGitPushEvent(ctx context.Context, cb syncz.EventCallback[*event.GitPushEvent])

OnGitPushEvent mocks base method.

type MockAPIHandleProcessingErrorCall

type MockAPIHandleProcessingErrorCall struct {
	*gomock.Call
}

MockAPIHandleProcessingErrorCall wrap *gomock.Call

func (*MockAPIHandleProcessingErrorCall) Do

Do rewrite *gomock.Call.Do

func (*MockAPIHandleProcessingErrorCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPIHandleProcessingErrorCall) Return

Return rewrite *gomock.Call.Return

type MockAPIMockRecorder

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

MockAPIMockRecorder is the mock recorder for MockAPI.

func (*MockAPIMockRecorder) HandleProcessingError

func (mr *MockAPIMockRecorder) HandleProcessingError(ctx, log, msg, err any, fields ...any) *MockAPIHandleProcessingErrorCall

HandleProcessingError indicates an expected call of HandleProcessingError.

func (*MockAPIMockRecorder) OnGitPushEvent

func (mr *MockAPIMockRecorder) OnGitPushEvent(ctx, cb any) *MockAPIOnGitPushEventCall

OnGitPushEvent indicates an expected call of OnGitPushEvent.

type MockAPIOnGitPushEventCall

type MockAPIOnGitPushEventCall struct {
	*gomock.Call
}

MockAPIOnGitPushEventCall wrap *gomock.Call

func (*MockAPIOnGitPushEventCall) Do

Do rewrite *gomock.Call.Do

func (*MockAPIOnGitPushEventCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPIOnGitPushEventCall) Return

Return rewrite *gomock.Call.Return

type MockAgentInfoResolver

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

MockAgentInfoResolver is a mock of AgentInfoResolver interface.

func NewMockAgentInfoResolver

func NewMockAgentInfoResolver(ctrl *gomock.Controller) *MockAgentInfoResolver

NewMockAgentInfoResolver creates a new mock instance.

func (*MockAgentInfoResolver) EXPECT

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

func (*MockAgentInfoResolver) Get

func (m *MockAgentInfoResolver) Get(ctx context.Context, agentID int64) (map[string]any, error)

Get mocks base method.

type MockAgentInfoResolverGetCall

type MockAgentInfoResolverGetCall struct {
	*gomock.Call
}

MockAgentInfoResolverGetCall wrap *gomock.Call

func (*MockAgentInfoResolverGetCall) Do

Do rewrite *gomock.Call.Do

func (*MockAgentInfoResolverGetCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAgentInfoResolverGetCall) Return

Return rewrite *gomock.Call.Return

type MockAgentInfoResolverMockRecorder

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

MockAgentInfoResolverMockRecorder is the mock recorder for MockAgentInfoResolver.

func (*MockAgentInfoResolverMockRecorder) Get

Get indicates an expected call of Get.

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(ctx context.Context, log *slog.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(log *slog.Logger, msg string, err error) error

HandleIOError mocks base method.

func (*MockAgentRPCAPI) HandleProcessingError

func (m *MockAgentRPCAPI) HandleProcessingError(log *slog.Logger, msg string, err error, fields ...fieldz.Field)

HandleProcessingError mocks base method.

func (*MockAgentRPCAPI) Log

func (m *MockAgentRPCAPI) Log() *slog.Logger

Log mocks base method.

func (*MockAgentRPCAPI) PollWithBackoff

func (m *MockAgentRPCAPI) PollWithBackoff(cfg retry.PollConfig, f retry.PollWithBackoffFunc) error

PollWithBackoff mocks base method.

type MockAgentRPCAPIAgentInfoCall

type MockAgentRPCAPIAgentInfoCall struct {
	*gomock.Call
}

MockAgentRPCAPIAgentInfoCall wrap *gomock.Call

func (*MockAgentRPCAPIAgentInfoCall) Do

Do rewrite *gomock.Call.Do

func (*MockAgentRPCAPIAgentInfoCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAgentRPCAPIAgentInfoCall) Return

Return rewrite *gomock.Call.Return

type MockAgentRPCAPIAgentTokenCall

type MockAgentRPCAPIAgentTokenCall struct {
	*gomock.Call
}

MockAgentRPCAPIAgentTokenCall wrap *gomock.Call

func (*MockAgentRPCAPIAgentTokenCall) Do

Do rewrite *gomock.Call.Do

func (*MockAgentRPCAPIAgentTokenCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAgentRPCAPIAgentTokenCall) Return

Return rewrite *gomock.Call.Return

type MockAgentRPCAPIHandleIOErrorCall

type MockAgentRPCAPIHandleIOErrorCall struct {
	*gomock.Call
}

MockAgentRPCAPIHandleIOErrorCall wrap *gomock.Call

func (*MockAgentRPCAPIHandleIOErrorCall) Do

Do rewrite *gomock.Call.Do

func (*MockAgentRPCAPIHandleIOErrorCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAgentRPCAPIHandleIOErrorCall) Return

Return rewrite *gomock.Call.Return

type MockAgentRPCAPIHandleProcessingErrorCall

type MockAgentRPCAPIHandleProcessingErrorCall struct {
	*gomock.Call
}

MockAgentRPCAPIHandleProcessingErrorCall wrap *gomock.Call

func (*MockAgentRPCAPIHandleProcessingErrorCall) Do

Do rewrite *gomock.Call.Do

func (*MockAgentRPCAPIHandleProcessingErrorCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAgentRPCAPIHandleProcessingErrorCall) Return

Return rewrite *gomock.Call.Return

type MockAgentRPCAPILogCall

type MockAgentRPCAPILogCall struct {
	*gomock.Call
}

MockAgentRPCAPILogCall wrap *gomock.Call

func (*MockAgentRPCAPILogCall) Do

Do rewrite *gomock.Call.Do

func (*MockAgentRPCAPILogCall) DoAndReturn

func (c *MockAgentRPCAPILogCall) DoAndReturn(f func() *slog.Logger) *MockAgentRPCAPILogCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAgentRPCAPILogCall) Return

Return rewrite *gomock.Call.Return

type MockAgentRPCAPIMockRecorder

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

MockAgentRPCAPIMockRecorder is the mock recorder for MockAgentRPCAPI.

func (*MockAgentRPCAPIMockRecorder) AgentInfo

AgentInfo indicates an expected call of AgentInfo.

func (*MockAgentRPCAPIMockRecorder) AgentToken

AgentToken indicates an expected call of AgentToken.

func (*MockAgentRPCAPIMockRecorder) HandleIOError

func (mr *MockAgentRPCAPIMockRecorder) HandleIOError(log, msg, err any) *MockAgentRPCAPIHandleIOErrorCall

HandleIOError indicates an expected call of HandleIOError.

func (*MockAgentRPCAPIMockRecorder) HandleProcessingError

func (mr *MockAgentRPCAPIMockRecorder) HandleProcessingError(log, msg, err any, fields ...any) *MockAgentRPCAPIHandleProcessingErrorCall

HandleProcessingError indicates an expected call of HandleProcessingError.

func (*MockAgentRPCAPIMockRecorder) Log

Log indicates an expected call of Log.

func (*MockAgentRPCAPIMockRecorder) PollWithBackoff

PollWithBackoff indicates an expected call of PollWithBackoff.

type MockAgentRPCAPIPollWithBackoffCall

type MockAgentRPCAPIPollWithBackoffCall struct {
	*gomock.Call
}

MockAgentRPCAPIPollWithBackoffCall wrap *gomock.Call

func (*MockAgentRPCAPIPollWithBackoffCall) Do

Do rewrite *gomock.Call.Do

func (*MockAgentRPCAPIPollWithBackoffCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAgentRPCAPIPollWithBackoffCall) Return

Return rewrite *gomock.Call.Return

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 *modserver.Config) (modserver.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

Name indicates an expected call of Name.

func (*MockFactoryMockRecorder) New

New indicates an expected call of New.

type MockFactoryNameCall

type MockFactoryNameCall struct {
	*gomock.Call
}

MockFactoryNameCall wrap *gomock.Call

func (*MockFactoryNameCall) Do

Do rewrite *gomock.Call.Do

func (*MockFactoryNameCall) DoAndReturn

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFactoryNameCall) Return

Return rewrite *gomock.Call.Return

type MockFactoryNewCall

type MockFactoryNewCall struct {
	*gomock.Call
}

MockFactoryNewCall wrap *gomock.Call

func (*MockFactoryNewCall) Do

Do rewrite *gomock.Call.Do

func (*MockFactoryNewCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFactoryNewCall) Return

Return rewrite *gomock.Call.Return

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) 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) error

Run mocks base method.

type MockModuleMockRecorder

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

MockModuleMockRecorder is the mock recorder for MockModule.

func (*MockModuleMockRecorder) Name

Name indicates an expected call of Name.

func (*MockModuleMockRecorder) Run

Run indicates an expected call of Run.

type MockModuleNameCall

type MockModuleNameCall struct {
	*gomock.Call
}

MockModuleNameCall wrap *gomock.Call

func (*MockModuleNameCall) Do

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

Do rewrite *gomock.Call.Do

func (*MockModuleNameCall) DoAndReturn

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockModuleNameCall) Return

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

Return rewrite *gomock.Call.Return

type MockModuleRunCall

type MockModuleRunCall struct {
	*gomock.Call
}

MockModuleRunCall wrap *gomock.Call

func (*MockModuleRunCall) Do

Do rewrite *gomock.Call.Do

func (*MockModuleRunCall) DoAndReturn

func (c *MockModuleRunCall) DoAndReturn(f func(context.Context) error) *MockModuleRunCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockModuleRunCall) Return

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

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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