Documentation
¶
Index ¶
- type Composer
- func (_m *Composer) CallTool(ctx context.Context, rc *consumer.RoutableConsumer, name string, ...) (json.RawMessage, error)
- func (_m *Composer) EXPECT() *Composer_Expecter
- func (_m *Composer) GetPrompt(ctx context.Context, rc *consumer.RoutableConsumer, name string, ...) (json.RawMessage, error)
- func (_m *Composer) ListPrompts(ctx context.Context, rc *consumer.RoutableConsumer) ([]mcp.Prompt, error)
- func (_m *Composer) ListResourceTemplates(ctx context.Context, rc *consumer.RoutableConsumer) ([]mcp.ResourceTemplate, error)
- func (_m *Composer) ListResources(ctx context.Context, rc *consumer.RoutableConsumer) ([]mcp.Resource, error)
- func (_m *Composer) ListTools(ctx context.Context, rc *consumer.RoutableConsumer) ([]mcp.Tool, error)
- func (_m *Composer) ReadResource(ctx context.Context, rc *consumer.RoutableConsumer, uri string) (json.RawMessage, error)
- type Composer_CallTool_Call
- func (_c *Composer_CallTool_Call) Return(_a0 json.RawMessage, _a1 error) *Composer_CallTool_Call
- func (_c *Composer_CallTool_Call) Run(run func(ctx context.Context, rc *consumer.RoutableConsumer, name string, ...)) *Composer_CallTool_Call
- func (_c *Composer_CallTool_Call) RunAndReturn(...) *Composer_CallTool_Call
- type Composer_Expecter
- func (_e *Composer_Expecter) CallTool(ctx interface{}, rc interface{}, name interface{}, arguments interface{}) *Composer_CallTool_Call
- func (_e *Composer_Expecter) GetPrompt(ctx interface{}, rc interface{}, name interface{}, arguments interface{}) *Composer_GetPrompt_Call
- func (_e *Composer_Expecter) ListPrompts(ctx interface{}, rc interface{}) *Composer_ListPrompts_Call
- func (_e *Composer_Expecter) ListResourceTemplates(ctx interface{}, rc interface{}) *Composer_ListResourceTemplates_Call
- func (_e *Composer_Expecter) ListResources(ctx interface{}, rc interface{}) *Composer_ListResources_Call
- func (_e *Composer_Expecter) ListTools(ctx interface{}, rc interface{}) *Composer_ListTools_Call
- func (_e *Composer_Expecter) ReadResource(ctx interface{}, rc interface{}, uri interface{}) *Composer_ReadResource_Call
- type Composer_GetPrompt_Call
- func (_c *Composer_GetPrompt_Call) Return(_a0 json.RawMessage, _a1 error) *Composer_GetPrompt_Call
- func (_c *Composer_GetPrompt_Call) Run(run func(ctx context.Context, rc *consumer.RoutableConsumer, name string, ...)) *Composer_GetPrompt_Call
- func (_c *Composer_GetPrompt_Call) RunAndReturn(...) *Composer_GetPrompt_Call
- type Composer_ListPrompts_Call
- func (_c *Composer_ListPrompts_Call) Return(_a0 []mcp.Prompt, _a1 error) *Composer_ListPrompts_Call
- func (_c *Composer_ListPrompts_Call) Run(run func(ctx context.Context, rc *consumer.RoutableConsumer)) *Composer_ListPrompts_Call
- func (_c *Composer_ListPrompts_Call) RunAndReturn(run func(context.Context, *consumer.RoutableConsumer) ([]mcp.Prompt, error)) *Composer_ListPrompts_Call
- type Composer_ListResourceTemplates_Call
- func (_c *Composer_ListResourceTemplates_Call) Return(_a0 []mcp.ResourceTemplate, _a1 error) *Composer_ListResourceTemplates_Call
- func (_c *Composer_ListResourceTemplates_Call) Run(run func(ctx context.Context, rc *consumer.RoutableConsumer)) *Composer_ListResourceTemplates_Call
- func (_c *Composer_ListResourceTemplates_Call) RunAndReturn(...) *Composer_ListResourceTemplates_Call
- type Composer_ListResources_Call
- func (_c *Composer_ListResources_Call) Return(_a0 []mcp.Resource, _a1 error) *Composer_ListResources_Call
- func (_c *Composer_ListResources_Call) Run(run func(ctx context.Context, rc *consumer.RoutableConsumer)) *Composer_ListResources_Call
- func (_c *Composer_ListResources_Call) RunAndReturn(run func(context.Context, *consumer.RoutableConsumer) ([]mcp.Resource, error)) *Composer_ListResources_Call
- type Composer_ListTools_Call
- func (_c *Composer_ListTools_Call) Return(_a0 []mcp.Tool, _a1 error) *Composer_ListTools_Call
- func (_c *Composer_ListTools_Call) Run(run func(ctx context.Context, rc *consumer.RoutableConsumer)) *Composer_ListTools_Call
- func (_c *Composer_ListTools_Call) RunAndReturn(run func(context.Context, *consumer.RoutableConsumer) ([]mcp.Tool, error)) *Composer_ListTools_Call
- type Composer_ReadResource_Call
- func (_c *Composer_ReadResource_Call) Return(_a0 json.RawMessage, _a1 error) *Composer_ReadResource_Call
- func (_c *Composer_ReadResource_Call) Run(run func(ctx context.Context, rc *consumer.RoutableConsumer, uri string)) *Composer_ReadResource_Call
- func (_c *Composer_ReadResource_Call) RunAndReturn(...) *Composer_ReadResource_Call
- type CredentialResolver
- type CredentialResolver_Apply_Call
- type CredentialResolver_Expecter
- type RoleScoper
- type RoleScoper_Expecter
- type RoleScoper_Scope_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Composer ¶
Composer is an autogenerated mock type for the Composer type
func NewComposer ¶
NewComposer creates a new instance of Composer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Composer) CallTool ¶
func (_m *Composer) CallTool(ctx context.Context, rc *consumer.RoutableConsumer, name string, arguments json.RawMessage) (json.RawMessage, error)
CallTool provides a mock function with given fields: ctx, rc, name, arguments
func (*Composer) EXPECT ¶
func (_m *Composer) EXPECT() *Composer_Expecter
func (*Composer) GetPrompt ¶
func (_m *Composer) GetPrompt(ctx context.Context, rc *consumer.RoutableConsumer, name string, arguments map[string]string) (json.RawMessage, error)
GetPrompt provides a mock function with given fields: ctx, rc, name, arguments
func (*Composer) ListPrompts ¶
func (_m *Composer) ListPrompts(ctx context.Context, rc *consumer.RoutableConsumer) ([]mcp.Prompt, error)
ListPrompts provides a mock function with given fields: ctx, rc
func (*Composer) ListResourceTemplates ¶
func (_m *Composer) ListResourceTemplates(ctx context.Context, rc *consumer.RoutableConsumer) ([]mcp.ResourceTemplate, error)
ListResourceTemplates provides a mock function with given fields: ctx, rc
func (*Composer) ListResources ¶
func (_m *Composer) ListResources(ctx context.Context, rc *consumer.RoutableConsumer) ([]mcp.Resource, error)
ListResources provides a mock function with given fields: ctx, rc
func (*Composer) ListTools ¶
func (_m *Composer) ListTools(ctx context.Context, rc *consumer.RoutableConsumer) ([]mcp.Tool, error)
ListTools provides a mock function with given fields: ctx, rc
func (*Composer) ReadResource ¶
func (_m *Composer) ReadResource(ctx context.Context, rc *consumer.RoutableConsumer, uri string) (json.RawMessage, error)
ReadResource provides a mock function with given fields: ctx, rc, uri
type Composer_CallTool_Call ¶
Composer_CallTool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CallTool'
func (*Composer_CallTool_Call) Return ¶
func (_c *Composer_CallTool_Call) Return(_a0 json.RawMessage, _a1 error) *Composer_CallTool_Call
func (*Composer_CallTool_Call) Run ¶
func (_c *Composer_CallTool_Call) Run(run func(ctx context.Context, rc *consumer.RoutableConsumer, name string, arguments json.RawMessage)) *Composer_CallTool_Call
func (*Composer_CallTool_Call) RunAndReturn ¶
func (_c *Composer_CallTool_Call) RunAndReturn(run func(context.Context, *consumer.RoutableConsumer, string, json.RawMessage) (json.RawMessage, error)) *Composer_CallTool_Call
type Composer_Expecter ¶
type Composer_Expecter struct {
// contains filtered or unexported fields
}
func (*Composer_Expecter) CallTool ¶
func (_e *Composer_Expecter) CallTool(ctx interface{}, rc interface{}, name interface{}, arguments interface{}) *Composer_CallTool_Call
CallTool is a helper method to define mock.On call
- ctx context.Context
- rc *consumer.RoutableConsumer
- name string
- arguments json.RawMessage
func (*Composer_Expecter) GetPrompt ¶
func (_e *Composer_Expecter) GetPrompt(ctx interface{}, rc interface{}, name interface{}, arguments interface{}) *Composer_GetPrompt_Call
GetPrompt is a helper method to define mock.On call
- ctx context.Context
- rc *consumer.RoutableConsumer
- name string
- arguments map[string]string
func (*Composer_Expecter) ListPrompts ¶
func (_e *Composer_Expecter) ListPrompts(ctx interface{}, rc interface{}) *Composer_ListPrompts_Call
ListPrompts is a helper method to define mock.On call
- ctx context.Context
- rc *consumer.RoutableConsumer
func (*Composer_Expecter) ListResourceTemplates ¶
func (_e *Composer_Expecter) ListResourceTemplates(ctx interface{}, rc interface{}) *Composer_ListResourceTemplates_Call
ListResourceTemplates is a helper method to define mock.On call
- ctx context.Context
- rc *consumer.RoutableConsumer
func (*Composer_Expecter) ListResources ¶
func (_e *Composer_Expecter) ListResources(ctx interface{}, rc interface{}) *Composer_ListResources_Call
ListResources is a helper method to define mock.On call
- ctx context.Context
- rc *consumer.RoutableConsumer
func (*Composer_Expecter) ListTools ¶
func (_e *Composer_Expecter) ListTools(ctx interface{}, rc interface{}) *Composer_ListTools_Call
ListTools is a helper method to define mock.On call
- ctx context.Context
- rc *consumer.RoutableConsumer
func (*Composer_Expecter) ReadResource ¶
func (_e *Composer_Expecter) ReadResource(ctx interface{}, rc interface{}, uri interface{}) *Composer_ReadResource_Call
ReadResource is a helper method to define mock.On call
- ctx context.Context
- rc *consumer.RoutableConsumer
- uri string
type Composer_GetPrompt_Call ¶
Composer_GetPrompt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPrompt'
func (*Composer_GetPrompt_Call) Return ¶
func (_c *Composer_GetPrompt_Call) Return(_a0 json.RawMessage, _a1 error) *Composer_GetPrompt_Call
func (*Composer_GetPrompt_Call) Run ¶
func (_c *Composer_GetPrompt_Call) Run(run func(ctx context.Context, rc *consumer.RoutableConsumer, name string, arguments map[string]string)) *Composer_GetPrompt_Call
func (*Composer_GetPrompt_Call) RunAndReturn ¶
func (_c *Composer_GetPrompt_Call) RunAndReturn(run func(context.Context, *consumer.RoutableConsumer, string, map[string]string) (json.RawMessage, error)) *Composer_GetPrompt_Call
type Composer_ListPrompts_Call ¶
Composer_ListPrompts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPrompts'
func (*Composer_ListPrompts_Call) Return ¶
func (_c *Composer_ListPrompts_Call) Return(_a0 []mcp.Prompt, _a1 error) *Composer_ListPrompts_Call
func (*Composer_ListPrompts_Call) Run ¶
func (_c *Composer_ListPrompts_Call) Run(run func(ctx context.Context, rc *consumer.RoutableConsumer)) *Composer_ListPrompts_Call
func (*Composer_ListPrompts_Call) RunAndReturn ¶
func (_c *Composer_ListPrompts_Call) RunAndReturn(run func(context.Context, *consumer.RoutableConsumer) ([]mcp.Prompt, error)) *Composer_ListPrompts_Call
type Composer_ListResourceTemplates_Call ¶
Composer_ListResourceTemplates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListResourceTemplates'
func (*Composer_ListResourceTemplates_Call) Return ¶
func (_c *Composer_ListResourceTemplates_Call) Return(_a0 []mcp.ResourceTemplate, _a1 error) *Composer_ListResourceTemplates_Call
func (*Composer_ListResourceTemplates_Call) Run ¶
func (_c *Composer_ListResourceTemplates_Call) Run(run func(ctx context.Context, rc *consumer.RoutableConsumer)) *Composer_ListResourceTemplates_Call
func (*Composer_ListResourceTemplates_Call) RunAndReturn ¶
func (_c *Composer_ListResourceTemplates_Call) RunAndReturn(run func(context.Context, *consumer.RoutableConsumer) ([]mcp.ResourceTemplate, error)) *Composer_ListResourceTemplates_Call
type Composer_ListResources_Call ¶
Composer_ListResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListResources'
func (*Composer_ListResources_Call) Return ¶
func (_c *Composer_ListResources_Call) Return(_a0 []mcp.Resource, _a1 error) *Composer_ListResources_Call
func (*Composer_ListResources_Call) Run ¶
func (_c *Composer_ListResources_Call) Run(run func(ctx context.Context, rc *consumer.RoutableConsumer)) *Composer_ListResources_Call
func (*Composer_ListResources_Call) RunAndReturn ¶
func (_c *Composer_ListResources_Call) RunAndReturn(run func(context.Context, *consumer.RoutableConsumer) ([]mcp.Resource, error)) *Composer_ListResources_Call
type Composer_ListTools_Call ¶
Composer_ListTools_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTools'
func (*Composer_ListTools_Call) Return ¶
func (_c *Composer_ListTools_Call) Return(_a0 []mcp.Tool, _a1 error) *Composer_ListTools_Call
func (*Composer_ListTools_Call) Run ¶
func (_c *Composer_ListTools_Call) Run(run func(ctx context.Context, rc *consumer.RoutableConsumer)) *Composer_ListTools_Call
func (*Composer_ListTools_Call) RunAndReturn ¶
func (_c *Composer_ListTools_Call) RunAndReturn(run func(context.Context, *consumer.RoutableConsumer) ([]mcp.Tool, error)) *Composer_ListTools_Call
type Composer_ReadResource_Call ¶
Composer_ReadResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadResource'
func (*Composer_ReadResource_Call) Return ¶
func (_c *Composer_ReadResource_Call) Return(_a0 json.RawMessage, _a1 error) *Composer_ReadResource_Call
func (*Composer_ReadResource_Call) Run ¶
func (_c *Composer_ReadResource_Call) Run(run func(ctx context.Context, rc *consumer.RoutableConsumer, uri string)) *Composer_ReadResource_Call
func (*Composer_ReadResource_Call) RunAndReturn ¶
func (_c *Composer_ReadResource_Call) RunAndReturn(run func(context.Context, *consumer.RoutableConsumer, string) (json.RawMessage, error)) *Composer_ReadResource_Call
type CredentialResolver ¶
CredentialResolver is an autogenerated mock type for the CredentialResolver type
func NewCredentialResolver ¶
func NewCredentialResolver(t interface {
mock.TestingT
Cleanup(func())
}) *CredentialResolver
NewCredentialResolver creates a new instance of CredentialResolver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*CredentialResolver) Apply ¶
func (_m *CredentialResolver) Apply(ctx context.Context, rc *consumer.RoutableConsumer, reg *registry.Registry, target *mcp.Target) error
Apply provides a mock function with given fields: ctx, rc, reg, target
func (*CredentialResolver) EXPECT ¶
func (_m *CredentialResolver) EXPECT() *CredentialResolver_Expecter
type CredentialResolver_Apply_Call ¶
CredentialResolver_Apply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Apply'
func (*CredentialResolver_Apply_Call) Return ¶
func (_c *CredentialResolver_Apply_Call) Return(_a0 error) *CredentialResolver_Apply_Call
func (*CredentialResolver_Apply_Call) Run ¶
func (_c *CredentialResolver_Apply_Call) Run(run func(ctx context.Context, rc *consumer.RoutableConsumer, reg *registry.Registry, target *mcp.Target)) *CredentialResolver_Apply_Call
func (*CredentialResolver_Apply_Call) RunAndReturn ¶
func (_c *CredentialResolver_Apply_Call) RunAndReturn(run func(context.Context, *consumer.RoutableConsumer, *registry.Registry, *mcp.Target) error) *CredentialResolver_Apply_Call
type CredentialResolver_Expecter ¶
type CredentialResolver_Expecter struct {
// contains filtered or unexported fields
}
func (*CredentialResolver_Expecter) Apply ¶
func (_e *CredentialResolver_Expecter) Apply(ctx interface{}, rc interface{}, reg interface{}, target interface{}) *CredentialResolver_Apply_Call
Apply is a helper method to define mock.On call
- ctx context.Context
- rc *consumer.RoutableConsumer
- reg *registry.Registry
- target *mcp.Target
type RoleScoper ¶
RoleScoper is an autogenerated mock type for the RoleScoper type
func NewRoleScoper ¶
func NewRoleScoper(t interface {
mock.TestingT
Cleanup(func())
}) *RoleScoper
NewRoleScoper creates a new instance of RoleScoper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RoleScoper) EXPECT ¶
func (_m *RoleScoper) EXPECT() *RoleScoper_Expecter
func (*RoleScoper) Scope ¶
func (_m *RoleScoper) Scope(ctx context.Context, rc *consumer.RoutableConsumer, data *consumer.Data) (*consumer.RoutableConsumer, error)
Scope provides a mock function with given fields: ctx, rc, data
type RoleScoper_Expecter ¶
type RoleScoper_Expecter struct {
// contains filtered or unexported fields
}
func (*RoleScoper_Expecter) Scope ¶
func (_e *RoleScoper_Expecter) Scope(ctx interface{}, rc interface{}, data interface{}) *RoleScoper_Scope_Call
Scope is a helper method to define mock.On call
- ctx context.Context
- rc *consumer.RoutableConsumer
- data *consumer.Data
type RoleScoper_Scope_Call ¶
RoleScoper_Scope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scope'
func (*RoleScoper_Scope_Call) Return ¶
func (_c *RoleScoper_Scope_Call) Return(_a0 *consumer.RoutableConsumer, _a1 error) *RoleScoper_Scope_Call
func (*RoleScoper_Scope_Call) Run ¶
func (_c *RoleScoper_Scope_Call) Run(run func(ctx context.Context, rc *consumer.RoutableConsumer, data *consumer.Data)) *RoleScoper_Scope_Call
func (*RoleScoper_Scope_Call) RunAndReturn ¶
func (_c *RoleScoper_Scope_Call) RunAndReturn(run func(context.Context, *consumer.RoutableConsumer, *consumer.Data) (*consumer.RoutableConsumer, error)) *RoleScoper_Scope_Call