Documentation ¶
Overview ¶
Package watcher notify the change of gpupod and gpunode to watchers from rest api in metricserver.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GpuNodeEvent ¶
func NewGpuNodeEvent ¶
func NewGpuNodeEvent(gpuNode *gpunodev1.GpuNode, etype EventType) *GpuNodeEvent
type GpuPodEvent ¶
func NewGpuPodEvent ¶
func NewGpuPodEvent(gpuPod *gpupodv1.GpuPod, etype EventType) *GpuPodEvent
type WatchIndex ¶
WatchIndex provide AddWatcher, DelWatcher, ListWatcher to notify the change of gpupod and gpunode.
func (*WatchIndex) AddWatcher ¶
func (w *WatchIndex) AddWatcher(chprd chan interface{}) string
func (*WatchIndex) CleanWatcher ¶
func (w *WatchIndex) CleanWatcher()
CleanWatcher close all watcher chan and empty chanWatchIndex, called when gpuserver exit.
func (*WatchIndex) DelWatcher ¶
func (w *WatchIndex) DelWatcher(watchUuid string)
func (*WatchIndex) ListWatcher ¶
func (w *WatchIndex) ListWatcher() []chan interface{}
Click to show internal directories.
Click to hide internal directories.