Documentation
¶
Index ¶
- Variables
- type HelmLifecycle
- func (l *HelmLifecycle) Disable(ctx plugins.BaseContext) error
- func (l *HelmLifecycle) Enable(ctx plugins.EnableContext) error
- func (l *HelmLifecycle) Install(ctx plugins.InstallContext) error
- func (l *HelmLifecycle) Start(ctx plugins.BaseContext) error
- func (l *HelmLifecycle) StartCron(ctx plugins.BaseContext, spec string) error
- func (l *HelmLifecycle) Stop(ctx plugins.BaseContext) error
- func (l *HelmLifecycle) Uninstall(ctx plugins.UninstallContext) error
- func (l *HelmLifecycle) Upgrade(ctx plugins.UpgradeContext) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Metadata = plugins.Module{ Meta: plugins.Meta{ Name: modules.PluginNameHelm, Title: "Helm 管理插件", Version: "1.0.0", Description: "Helm 仓库、Chart、Release 管理。包括仓库添加、Chart浏览、Release安装升级卸载等功能。定时更新仓库索引。", }, Tables: []string{ "helm_repositories", "helm_charts", "helm_releases", }, Menus: []plugins.Menu{ { Key: "plugin_helm_index", Title: "Helm 管理", Icon: "fa-solid fa-ship", Order: 50, Children: []plugins.Menu{ { Key: "plugin_helm_repo", Title: "Helm 仓库管理", Icon: "fa-solid fa-warehouse", Show: "isPlatformAdmin()==true", EventType: "custom", CustomEvent: `() => loadJsonPage("/plugins/helm/repo")`, Order: 10, }, { Key: "plugin_helm_run_params", Title: "Helm 运行参数管理", Icon: "fa-solid fa-gear", Show: "isPlatformAdmin()==true", EventType: "custom", CustomEvent: `() => loadJsonPage("/plugins/helm/setting")`, Order: 10, }, { Key: "plugin_helm_chart", Title: "Chart 浏览", Icon: "fa-solid fa-cube", EventType: "custom", CustomEvent: `() => loadJsonPage("/plugins/helm/chart")`, Order: 20, }, { Key: "plugin_helm_release", Title: "Release 管理", Icon: "fa-solid fa-rocket", EventType: "custom", CustomEvent: `() => loadJsonPage("/plugins/helm/release")`, Order: 30, }, }, }, }, Dependencies: []string{}, RunAfter: []string{modules.PluginNameLeader}, Lifecycle: &HelmLifecycle{}, PluginAdminRouter: route.RegisterPluginAdminRoutes, ClusterRouter: route.RegisterPluginAPIRoutes, ManagementRouter: route.RegisterPluginMgmRoutes, }
Functions ¶
This section is empty.
Types ¶
type HelmLifecycle ¶
type HelmLifecycle struct {
// contains filtered or unexported fields
}
HelmLifecycle Helm 插件生命周期实现
func (*HelmLifecycle) Disable ¶
func (l *HelmLifecycle) Disable(ctx plugins.BaseContext) error
Disable 禁用 Helm 插件
func (*HelmLifecycle) Enable ¶
func (l *HelmLifecycle) Enable(ctx plugins.EnableContext) error
Enable 启用 Helm 插件
func (*HelmLifecycle) Install ¶
func (l *HelmLifecycle) Install(ctx plugins.InstallContext) error
Install 安装 Helm 插件
func (*HelmLifecycle) Start ¶
func (l *HelmLifecycle) Start(ctx plugins.BaseContext) error
Start 启动 Helm 插件后台任务(不可阻塞)
func (*HelmLifecycle) StartCron ¶
func (l *HelmLifecycle) StartCron(ctx plugins.BaseContext, spec string) error
StartCron Helm 插件使用自定义定时任务,留空实现
func (*HelmLifecycle) Stop ¶
func (l *HelmLifecycle) Stop(ctx plugins.BaseContext) error
Stop 停止 Helm 插件的后台任务
func (*HelmLifecycle) Uninstall ¶
func (l *HelmLifecycle) Uninstall(ctx plugins.UninstallContext) error
Uninstall 卸载 Helm 插件
func (*HelmLifecycle) Upgrade ¶
func (l *HelmLifecycle) Upgrade(ctx plugins.UpgradeContext) error
Upgrade 升级 Helm 插件
Click to show internal directories.
Click to hide internal directories.