Documentation
¶
Overview ¶
Package watcher 实现Kubernetes事件监听器
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventWatcher ¶
type EventWatcher struct {
// contains filtered or unexported fields
}
EventWatcher 事件监听器
func (*EventWatcher) HandleEvent ¶
func (w *EventWatcher) HandleEvent(event *models.K8sEvent) error
HandleEvent 处理单个事件(供外部调用)
func (*EventWatcher) Stop ¶
func (w *EventWatcher) Stop()
Stop 停止事件监听器 中文函数注释:无论当前配置开关状态如何,均立即停止监听器上下文,避免因开关变更导致无法停止的问题。
Click to show internal directories.
Click to hide internal directories.