Documentation
¶
Index ¶
- Variables
- type K8sWatchLifecycle
- func (k *K8sWatchLifecycle) Disable(ctx plugins.BaseContext) error
- func (k *K8sWatchLifecycle) Enable(ctx plugins.EnableContext) error
- func (k *K8sWatchLifecycle) Install(ctx plugins.InstallContext) error
- func (k *K8sWatchLifecycle) Start(ctx plugins.BaseContext) error
- func (k *K8sWatchLifecycle) StartCron(ctx plugins.BaseContext, spec string) error
- func (k *K8sWatchLifecycle) Stop(ctx plugins.BaseContext) error
- func (k *K8sWatchLifecycle) Uninstall(ctx plugins.UninstallContext) error
- func (k *K8sWatchLifecycle) Upgrade(ctx plugins.UpgradeContext) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Metadata = plugins.Module{ Meta: plugins.Meta{ Name: modules.PluginNameK8sWatch, Title: "K8s资源监听插件", Version: "1.0.0", Description: "监听Kubernetes资源变更,包括Pod、Node、PVC、PV、Ingress等。关闭后部分页面的实时数据不显示。", }, Tables: []string{}, Dependencies: []string{}, RunAfter: []string{ modules.PluginNameLeader, }, Lifecycle: &K8sWatchLifecycle{}, }
Functions ¶
This section is empty.
Types ¶
type K8sWatchLifecycle ¶
type K8sWatchLifecycle struct {
// contains filtered or unexported fields
}
func (*K8sWatchLifecycle) Disable ¶
func (k *K8sWatchLifecycle) Disable(ctx plugins.BaseContext) error
func (*K8sWatchLifecycle) Enable ¶
func (k *K8sWatchLifecycle) Enable(ctx plugins.EnableContext) error
func (*K8sWatchLifecycle) Install ¶
func (k *K8sWatchLifecycle) Install(ctx plugins.InstallContext) error
func (*K8sWatchLifecycle) Start ¶
func (k *K8sWatchLifecycle) Start(ctx plugins.BaseContext) error
func (*K8sWatchLifecycle) StartCron ¶
func (k *K8sWatchLifecycle) StartCron(ctx plugins.BaseContext, spec string) error
func (*K8sWatchLifecycle) Stop ¶
func (k *K8sWatchLifecycle) Stop(ctx plugins.BaseContext) error
func (*K8sWatchLifecycle) Uninstall ¶
func (k *K8sWatchLifecycle) Uninstall(ctx plugins.UninstallContext) error
func (*K8sWatchLifecycle) Upgrade ¶
func (k *K8sWatchLifecycle) Upgrade(ctx plugins.UpgradeContext) error
Click to show internal directories.
Click to hide internal directories.