Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBackendClient

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

MockBackendClient is a mock of BackendClient interface.

func NewMockBackendClient

func NewMockBackendClient(ctrl *gomock.Controller) *MockBackendClient

NewMockBackendClient creates a new mock instance.

func (*MockBackendClient) CallTool

func (m *MockBackendClient) CallTool(ctx context.Context, target *vmcp.BackendTarget, toolName string, arguments, meta map[string]any) (*vmcp.ToolCallResult, error)

CallTool mocks base method.

func (*MockBackendClient) EXPECT

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

func (*MockBackendClient) GetPrompt

func (m *MockBackendClient) GetPrompt(ctx context.Context, target *vmcp.BackendTarget, name string, arguments map[string]any) (*vmcp.PromptGetResult, error)

GetPrompt mocks base method.

func (*MockBackendClient) ListCapabilities

func (m *MockBackendClient) ListCapabilities(ctx context.Context, target *vmcp.BackendTarget) (*vmcp.CapabilityList, error)

ListCapabilities mocks base method.

func (*MockBackendClient) ReadResource

func (m *MockBackendClient) ReadResource(ctx context.Context, target *vmcp.BackendTarget, uri string) (*vmcp.ResourceReadResult, error)

ReadResource mocks base method.

type MockBackendClientMockRecorder

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

MockBackendClientMockRecorder is the mock recorder for MockBackendClient.

func (*MockBackendClientMockRecorder) CallTool

func (mr *MockBackendClientMockRecorder) CallTool(ctx, target, toolName, arguments, meta any) *gomock.Call

CallTool indicates an expected call of CallTool.

func (*MockBackendClientMockRecorder) GetPrompt

func (mr *MockBackendClientMockRecorder) GetPrompt(ctx, target, name, arguments any) *gomock.Call

GetPrompt indicates an expected call of GetPrompt.

func (*MockBackendClientMockRecorder) ListCapabilities

func (mr *MockBackendClientMockRecorder) ListCapabilities(ctx, target any) *gomock.Call

ListCapabilities indicates an expected call of ListCapabilities.

func (*MockBackendClientMockRecorder) ReadResource

func (mr *MockBackendClientMockRecorder) ReadResource(ctx, target, uri any) *gomock.Call

ReadResource indicates an expected call of ReadResource.

type MockBackendRegistry

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

MockBackendRegistry is a mock of BackendRegistry interface.

func NewMockBackendRegistry

func NewMockBackendRegistry(ctrl *gomock.Controller) *MockBackendRegistry

NewMockBackendRegistry creates a new mock instance.

func (*MockBackendRegistry) Count

func (m *MockBackendRegistry) Count() int

Count mocks base method.

func (*MockBackendRegistry) EXPECT

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

func (*MockBackendRegistry) Get

func (m *MockBackendRegistry) Get(ctx context.Context, backendID string) *vmcp.Backend

Get mocks base method.

func (*MockBackendRegistry) List

List mocks base method.

type MockBackendRegistryMockRecorder

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

MockBackendRegistryMockRecorder is the mock recorder for MockBackendRegistry.

func (*MockBackendRegistryMockRecorder) Count

Count indicates an expected call of Count.

func (*MockBackendRegistryMockRecorder) Get

func (mr *MockBackendRegistryMockRecorder) Get(ctx, backendID any) *gomock.Call

Get indicates an expected call of Get.

func (*MockBackendRegistryMockRecorder) List

List indicates an expected call of List.

type MockDynamicRegistry added in v0.6.17

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

MockDynamicRegistry is a mock of DynamicRegistry interface.

func NewMockDynamicRegistry added in v0.6.17

func NewMockDynamicRegistry(ctrl *gomock.Controller) *MockDynamicRegistry

NewMockDynamicRegistry creates a new mock instance.

func (*MockDynamicRegistry) Count added in v0.6.17

func (m *MockDynamicRegistry) Count() int

Count mocks base method.

func (*MockDynamicRegistry) EXPECT added in v0.6.17

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

func (*MockDynamicRegistry) Get added in v0.6.17

func (m *MockDynamicRegistry) Get(ctx context.Context, backendID string) *vmcp.Backend

Get mocks base method.

func (*MockDynamicRegistry) List added in v0.6.17

List mocks base method.

func (*MockDynamicRegistry) Remove added in v0.6.17

func (m *MockDynamicRegistry) Remove(backendID string) error

Remove mocks base method.

func (*MockDynamicRegistry) Upsert added in v0.6.17

func (m *MockDynamicRegistry) Upsert(backend vmcp.Backend) error

Upsert mocks base method.

func (*MockDynamicRegistry) Version added in v0.6.17

func (m *MockDynamicRegistry) Version() uint64

Version mocks base method.

type MockDynamicRegistryMockRecorder added in v0.6.17

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

MockDynamicRegistryMockRecorder is the mock recorder for MockDynamicRegistry.

func (*MockDynamicRegistryMockRecorder) Count added in v0.6.17

Count indicates an expected call of Count.

func (*MockDynamicRegistryMockRecorder) Get added in v0.6.17

func (mr *MockDynamicRegistryMockRecorder) Get(ctx, backendID any) *gomock.Call

Get indicates an expected call of Get.

func (*MockDynamicRegistryMockRecorder) List added in v0.6.17

List indicates an expected call of List.

func (*MockDynamicRegistryMockRecorder) Remove added in v0.6.17

func (mr *MockDynamicRegistryMockRecorder) Remove(backendID any) *gomock.Call

Remove indicates an expected call of Remove.

func (*MockDynamicRegistryMockRecorder) Upsert added in v0.6.17

func (mr *MockDynamicRegistryMockRecorder) Upsert(backend any) *gomock.Call

Upsert indicates an expected call of Upsert.

func (*MockDynamicRegistryMockRecorder) Version added in v0.6.17

Version indicates an expected call of Version.

type MockHealthChecker

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

MockHealthChecker is a mock of HealthChecker interface.

func NewMockHealthChecker

func NewMockHealthChecker(ctrl *gomock.Controller) *MockHealthChecker

NewMockHealthChecker creates a new mock instance.

func (*MockHealthChecker) CheckHealth

CheckHealth mocks base method.

func (*MockHealthChecker) EXPECT

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

type MockHealthCheckerMockRecorder

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

MockHealthCheckerMockRecorder is the mock recorder for MockHealthChecker.

func (*MockHealthCheckerMockRecorder) CheckHealth

func (mr *MockHealthCheckerMockRecorder) CheckHealth(ctx, target any) *gomock.Call

CheckHealth indicates an expected call of CheckHealth.

Jump to

Keyboard shortcuts

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