Documentation ¶
Index ¶
- func AddHook(hook *WatchHook) error
- func DeleteHook(id string) error
- func Trigger(e watch.Event)
- type ChanReceiver
- type Receiver
- type WatchHook
- func (h *WatchHook) Do(event watch.Event) error
- func (h *WatchHook) GetGVR() schema.GroupVersionResource
- func (h *WatchHook) GetName() string
- func (h *WatchHook) GetNamespace() string
- func (h *WatchHook) GetResourceVersion() uint64
- func (h *WatchHook) Lock()
- func (h *WatchHook) Stop()
- func (h *WatchHook) UnLock()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteHook ¶
Types ¶
type ChanReceiver ¶
type ChanReceiver struct {
// contains filtered or unexported fields
}
func NewChanReceiver ¶
func NewChanReceiver(ch chan<- watch.Event) *ChanReceiver
type WatchHook ¶
type WatchHook struct { GVR schema.GroupVersionResource Namespace string Name string ResourceVersion uint64 Receiver // contains filtered or unexported fields }
func (*WatchHook) GetGVR ¶
func (h *WatchHook) GetGVR() schema.GroupVersionResource
func (*WatchHook) GetNamespace ¶
func (*WatchHook) GetResourceVersion ¶
Click to show internal directories.
Click to hide internal directories.