Documentation
¶
Index ¶
- Variables
- type K8mMcpServerLifecycle
- func (k *K8mMcpServerLifecycle) Disable(ctx plugins.BaseContext) error
- func (k *K8mMcpServerLifecycle) Enable(ctx plugins.EnableContext) error
- func (k *K8mMcpServerLifecycle) Install(ctx plugins.InstallContext) error
- func (k *K8mMcpServerLifecycle) Start(ctx plugins.BaseContext) error
- func (k *K8mMcpServerLifecycle) StartCron(ctx plugins.BaseContext, spec string) error
- func (k *K8mMcpServerLifecycle) Stop(ctx plugins.BaseContext) error
- func (k *K8mMcpServerLifecycle) Uninstall(ctx plugins.UninstallContext) error
- func (k *K8mMcpServerLifecycle) Upgrade(ctx plugins.UpgradeContext) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Metadata = plugins.Module{ Meta: plugins.Meta{ Name: modules.PluginNameK8mMcpServer, Title: "K8M MCP Server插件", Version: "1.0.0", Description: "将K8M作为MCP Server使用。可以添加到MCP运行管理中使用。本插件监听/mcp/k8m/sse提供服务。", }, Tables: []string{}, Menus: []plugins.Menu{}, Dependencies: []string{}, RunAfter: []string{}, Lifecycle: &K8mMcpServerLifecycle{}, PluginAdminRouter: nil, ClusterRouter: nil, RootRouter: route.RegisterRootRoutes, }
Functions ¶
This section is empty.
Types ¶
type K8mMcpServerLifecycle ¶
type K8mMcpServerLifecycle struct{}
func (*K8mMcpServerLifecycle) Disable ¶
func (k *K8mMcpServerLifecycle) Disable(ctx plugins.BaseContext) error
func (*K8mMcpServerLifecycle) Enable ¶
func (k *K8mMcpServerLifecycle) Enable(ctx plugins.EnableContext) error
func (*K8mMcpServerLifecycle) Install ¶
func (k *K8mMcpServerLifecycle) Install(ctx plugins.InstallContext) error
func (*K8mMcpServerLifecycle) Start ¶
func (k *K8mMcpServerLifecycle) Start(ctx plugins.BaseContext) error
func (*K8mMcpServerLifecycle) StartCron ¶
func (k *K8mMcpServerLifecycle) StartCron(ctx plugins.BaseContext, spec string) error
func (*K8mMcpServerLifecycle) Stop ¶
func (k *K8mMcpServerLifecycle) Stop(ctx plugins.BaseContext) error
func (*K8mMcpServerLifecycle) Uninstall ¶
func (k *K8mMcpServerLifecycle) Uninstall(ctx plugins.UninstallContext) error
func (*K8mMcpServerLifecycle) Upgrade ¶
func (k *K8mMcpServerLifecycle) Upgrade(ctx plugins.UpgradeContext) error
Click to show internal directories.
Click to hide internal directories.