Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockBackendClient
- func (m *MockBackendClient) CallTool(ctx context.Context, target *vmcp.BackendTarget, toolName string, ...) (*vmcp.ToolCallResult, error)
- func (m *MockBackendClient) Complete(ctx context.Context, target *vmcp.BackendTarget, ref vmcp.CompletionRef, ...) (*vmcp.CompletionResult, error)
- func (m *MockBackendClient) EXPECT() *MockBackendClientMockRecorder
- func (m *MockBackendClient) GetPrompt(ctx context.Context, target *vmcp.BackendTarget, name string, ...) (*vmcp.PromptGetResult, error)
- func (m *MockBackendClient) ListCapabilities(ctx context.Context, target *vmcp.BackendTarget) (*vmcp.CapabilityList, error)
- func (m *MockBackendClient) ReadResource(ctx context.Context, target *vmcp.BackendTarget, uri string) (*vmcp.ResourceReadResult, error)
- type MockBackendClientMockRecorder
- func (mr *MockBackendClientMockRecorder) CallTool(ctx, target, toolName, arguments, meta, paramHeaders any) *gomock.Call
- func (mr *MockBackendClientMockRecorder) Complete(ctx, target, ref, argName, argValue, contextArgs any) *gomock.Call
- func (mr *MockBackendClientMockRecorder) GetPrompt(ctx, target, name, arguments any) *gomock.Call
- func (mr *MockBackendClientMockRecorder) ListCapabilities(ctx, target any) *gomock.Call
- func (mr *MockBackendClientMockRecorder) ReadResource(ctx, target, uri any) *gomock.Call
- type MockBackendRegistry
- type MockBackendRegistryMockRecorder
- type MockClientForwarderBinder
- type MockClientForwarderBinderMockRecorder
- type MockClientNotifier
- type MockClientNotifierMockRecorder
- type MockDynamicRegistry
- func (m *MockDynamicRegistry) Count() int
- func (m *MockDynamicRegistry) EXPECT() *MockDynamicRegistryMockRecorder
- func (m *MockDynamicRegistry) Get(ctx context.Context, backendID string) *vmcp.Backend
- func (m *MockDynamicRegistry) List(ctx context.Context) []vmcp.Backend
- func (m *MockDynamicRegistry) Remove(backendID string) error
- func (m *MockDynamicRegistry) Upsert(backend vmcp.Backend) error
- func (m *MockDynamicRegistry) Version() uint64
- type MockDynamicRegistryMockRecorder
- func (mr *MockDynamicRegistryMockRecorder) Count() *gomock.Call
- func (mr *MockDynamicRegistryMockRecorder) Get(ctx, backendID any) *gomock.Call
- func (mr *MockDynamicRegistryMockRecorder) List(ctx any) *gomock.Call
- func (mr *MockDynamicRegistryMockRecorder) Remove(backendID any) *gomock.Call
- func (mr *MockDynamicRegistryMockRecorder) Upsert(backend any) *gomock.Call
- func (mr *MockDynamicRegistryMockRecorder) Version() *gomock.Call
- type MockElicitationRequester
- type MockElicitationRequesterMockRecorder
- type MockHealthChecker
- type MockHealthCheckerMockRecorder
- type MockRevisionReporter
- type MockRevisionReporterMockRecorder
- type MockSamplingRequester
- type MockSamplingRequesterMockRecorder
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, paramHeaders map[string]string) (*vmcp.ToolCallResult, error)
CallTool mocks base method.
func (*MockBackendClient) Complete ¶ added in v0.41.0
func (m *MockBackendClient) Complete(ctx context.Context, target *vmcp.BackendTarget, ref vmcp.CompletionRef, argName, argValue string, contextArgs map[string]string) (*vmcp.CompletionResult, error)
Complete mocks base method.
func (*MockBackendClient) EXPECT ¶
func (m *MockBackendClient) EXPECT() *MockBackendClientMockRecorder
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, paramHeaders any) *gomock.Call
CallTool indicates an expected call of CallTool.
func (*MockBackendClientMockRecorder) Complete ¶ added in v0.41.0
func (mr *MockBackendClientMockRecorder) Complete(ctx, target, ref, argName, argValue, contextArgs any) *gomock.Call
Complete indicates an expected call of Complete.
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 ¶
func (m *MockBackendRegistry) EXPECT() *MockBackendRegistryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockBackendRegistryMockRecorder ¶
type MockBackendRegistryMockRecorder struct {
// contains filtered or unexported fields
}
MockBackendRegistryMockRecorder is the mock recorder for MockBackendRegistry.
func (*MockBackendRegistryMockRecorder) Count ¶
func (mr *MockBackendRegistryMockRecorder) Count() *gomock.Call
Count indicates an expected call of Count.
type MockClientForwarderBinder ¶ added in v0.41.0
type MockClientForwarderBinder struct {
// contains filtered or unexported fields
}
MockClientForwarderBinder is a mock of ClientForwarderBinder interface.
func NewMockClientForwarderBinder ¶ added in v0.41.0
func NewMockClientForwarderBinder(ctrl *gomock.Controller) *MockClientForwarderBinder
NewMockClientForwarderBinder creates a new mock instance.
func (*MockClientForwarderBinder) BindForwarders ¶ added in v0.41.0
func (m *MockClientForwarderBinder) BindForwarders(elicitation vmcp.ElicitationRequester, sampling vmcp.SamplingRequester, notifier vmcp.ClientNotifier)
BindForwarders mocks base method.
func (*MockClientForwarderBinder) EXPECT ¶ added in v0.41.0
func (m *MockClientForwarderBinder) EXPECT() *MockClientForwarderBinderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockClientForwarderBinderMockRecorder ¶ added in v0.41.0
type MockClientForwarderBinderMockRecorder struct {
// contains filtered or unexported fields
}
MockClientForwarderBinderMockRecorder is the mock recorder for MockClientForwarderBinder.
func (*MockClientForwarderBinderMockRecorder) BindForwarders ¶ added in v0.41.0
func (mr *MockClientForwarderBinderMockRecorder) BindForwarders(elicitation, sampling, notifier any) *gomock.Call
BindForwarders indicates an expected call of BindForwarders.
type MockClientNotifier ¶ added in v0.41.0
type MockClientNotifier struct {
// contains filtered or unexported fields
}
MockClientNotifier is a mock of ClientNotifier interface.
func NewMockClientNotifier ¶ added in v0.41.0
func NewMockClientNotifier(ctrl *gomock.Controller) *MockClientNotifier
NewMockClientNotifier creates a new mock instance.
func (*MockClientNotifier) EXPECT ¶ added in v0.41.0
func (m *MockClientNotifier) EXPECT() *MockClientNotifierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClientNotifier) NotifyLog ¶ added in v0.41.0
func (m *MockClientNotifier) NotifyLog(ctx context.Context, n vmcp.LogMessage) error
NotifyLog mocks base method.
func (*MockClientNotifier) NotifyProgress ¶ added in v0.41.0
func (m *MockClientNotifier) NotifyProgress(ctx context.Context, n vmcp.ProgressNotification) error
NotifyProgress mocks base method.
type MockClientNotifierMockRecorder ¶ added in v0.41.0
type MockClientNotifierMockRecorder struct {
// contains filtered or unexported fields
}
MockClientNotifierMockRecorder is the mock recorder for MockClientNotifier.
func (*MockClientNotifierMockRecorder) NotifyLog ¶ added in v0.41.0
func (mr *MockClientNotifierMockRecorder) NotifyLog(ctx, n any) *gomock.Call
NotifyLog indicates an expected call of NotifyLog.
func (*MockClientNotifierMockRecorder) NotifyProgress ¶ added in v0.41.0
func (mr *MockClientNotifierMockRecorder) NotifyProgress(ctx, n any) *gomock.Call
NotifyProgress indicates an expected call of NotifyProgress.
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
func (m *MockDynamicRegistry) EXPECT() *MockDynamicRegistryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDynamicRegistry) List ¶ added in v0.6.17
func (m *MockDynamicRegistry) List(ctx context.Context) []vmcp.Backend
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
func (mr *MockDynamicRegistryMockRecorder) Count() *gomock.Call
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
func (mr *MockDynamicRegistryMockRecorder) List(ctx any) *gomock.Call
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
func (mr *MockDynamicRegistryMockRecorder) Version() *gomock.Call
Version indicates an expected call of Version.
type MockElicitationRequester ¶ added in v0.29.2
type MockElicitationRequester struct {
// contains filtered or unexported fields
}
MockElicitationRequester is a mock of ElicitationRequester interface.
func NewMockElicitationRequester ¶ added in v0.29.2
func NewMockElicitationRequester(ctrl *gomock.Controller) *MockElicitationRequester
NewMockElicitationRequester creates a new mock instance.
func (*MockElicitationRequester) EXPECT ¶ added in v0.29.2
func (m *MockElicitationRequester) EXPECT() *MockElicitationRequesterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockElicitationRequester) RequestElicitation ¶ added in v0.29.2
func (m *MockElicitationRequester) RequestElicitation(ctx context.Context, req vmcp.ElicitationRequest) (*vmcp.ElicitationResult, error)
RequestElicitation mocks base method.
type MockElicitationRequesterMockRecorder ¶ added in v0.29.2
type MockElicitationRequesterMockRecorder struct {
// contains filtered or unexported fields
}
MockElicitationRequesterMockRecorder is the mock recorder for MockElicitationRequester.
func (*MockElicitationRequesterMockRecorder) RequestElicitation ¶ added in v0.29.2
func (mr *MockElicitationRequesterMockRecorder) RequestElicitation(ctx, req any) *gomock.Call
RequestElicitation indicates an expected call of RequestElicitation.
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 ¶
func (m *MockHealthChecker) CheckHealth(ctx context.Context, target *vmcp.BackendTarget) (vmcp.BackendHealthStatus, error)
CheckHealth mocks base method.
func (*MockHealthChecker) EXPECT ¶
func (m *MockHealthChecker) EXPECT() *MockHealthCheckerMockRecorder
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.
type MockRevisionReporter ¶ added in v0.41.0
type MockRevisionReporter struct {
// contains filtered or unexported fields
}
MockRevisionReporter is a mock of RevisionReporter interface.
func NewMockRevisionReporter ¶ added in v0.41.0
func NewMockRevisionReporter(ctrl *gomock.Controller) *MockRevisionReporter
NewMockRevisionReporter creates a new mock instance.
func (*MockRevisionReporter) CachedRevision ¶ added in v0.41.0
func (m *MockRevisionReporter) CachedRevision(workloadID string) (mcp.Revision, bool)
CachedRevision mocks base method.
func (*MockRevisionReporter) EXPECT ¶ added in v0.41.0
func (m *MockRevisionReporter) EXPECT() *MockRevisionReporterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRevisionReporterMockRecorder ¶ added in v0.41.0
type MockRevisionReporterMockRecorder struct {
// contains filtered or unexported fields
}
MockRevisionReporterMockRecorder is the mock recorder for MockRevisionReporter.
func (*MockRevisionReporterMockRecorder) CachedRevision ¶ added in v0.41.0
func (mr *MockRevisionReporterMockRecorder) CachedRevision(workloadID any) *gomock.Call
CachedRevision indicates an expected call of CachedRevision.
type MockSamplingRequester ¶ added in v0.41.0
type MockSamplingRequester struct {
// contains filtered or unexported fields
}
MockSamplingRequester is a mock of SamplingRequester interface.
func NewMockSamplingRequester ¶ added in v0.41.0
func NewMockSamplingRequester(ctrl *gomock.Controller) *MockSamplingRequester
NewMockSamplingRequester creates a new mock instance.
func (*MockSamplingRequester) EXPECT ¶ added in v0.41.0
func (m *MockSamplingRequester) EXPECT() *MockSamplingRequesterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSamplingRequester) RequestSampling ¶ added in v0.41.0
func (m *MockSamplingRequester) RequestSampling(ctx context.Context, req vmcp.SamplingRequest) (*vmcp.SamplingResult, error)
RequestSampling mocks base method.
type MockSamplingRequesterMockRecorder ¶ added in v0.41.0
type MockSamplingRequesterMockRecorder struct {
// contains filtered or unexported fields
}
MockSamplingRequesterMockRecorder is the mock recorder for MockSamplingRequester.
func (*MockSamplingRequesterMockRecorder) RequestSampling ¶ added in v0.41.0
func (mr *MockSamplingRequesterMockRecorder) RequestSampling(ctx, req any) *gomock.Call
RequestSampling indicates an expected call of RequestSampling.