watcher

package
v0.0.187 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2025 License: MIT Imports: 12 Imported by: 0

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 NewEventWatcher

func NewEventWatcher() *EventWatcher

NewEventWatcher 创建事件监听器

func (*EventWatcher) HandleEvent

func (w *EventWatcher) HandleEvent(event *models.K8sEvent) error

HandleEvent 处理单个事件(供外部调用)

func (*EventWatcher) Start

func (w *EventWatcher) Start()

Start 启动事件监听器

func (*EventWatcher) Stop

func (w *EventWatcher) Stop()

Stop 停止事件监听器

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL