Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WatchNotifyFunctions ¶
type WatchNotifyFunctions struct { AddFunc func(obj *unstructured.Unstructured) UpdateFunc func(obj *unstructured.Unstructured) DeleteFunc func(obj *unstructured.Unstructured) OnError func(err error) }
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
func (*Watcher) Start ¶
func (w *Watcher) Start(notifyF WatchNotifyFunctions, gvr schema.GroupVersionResource, listOptions metav1.ListOptions) error
type WatcherInterface ¶
type WatcherInterface interface { Start(notifyF WatchNotifyFunctions, gvr schema.GroupVersionResource, listOptions metav1.ListOptions) error Stop() Destroy() }
func NewWatcher ¶
func NewWatcher(k8sClient dynamic.Interface, preList bool) WatcherInterface
Click to show internal directories.
Click to hide internal directories.