Documentation ¶
Index ¶
- type AddNotifiable
- type DeleteNotifiable
- type Notifiable
- type UpdateNotifiable
- type Watcher
- func (w *Watcher) OnAddNotify(notifiable AddNotifiable) *Watcher
- func (w *Watcher) OnDeleteNotify(notifiable DeleteNotifiable) *Watcher
- func (w *Watcher) OnDeleteNotifyMe() *Watcher
- func (w *Watcher) OnDeleteSubscription(_ *unstructured.Unstructured)
- func (w *Watcher) OnUpdateNotify(notifiable UpdateNotifiable) *Watcher
- func (w *Watcher) Watch()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddNotifiable ¶
type AddNotifiable interface {
OnNewSubscription(subscription *unstructured.Unstructured)
}
type DeleteNotifiable ¶
type DeleteNotifiable interface {
OnDeleteSubscription(subscription *unstructured.Unstructured)
}
type Notifiable ¶
type Notifiable interface { AddNotifiable UpdateNotifiable DeleteNotifiable }
type UpdateNotifiable ¶
type UpdateNotifiable interface {
OnChangedSubscription(subscription *unstructured.Unstructured)
}
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
func NewWatcher ¶
func (*Watcher) OnAddNotify ¶
func (w *Watcher) OnAddNotify(notifiable AddNotifiable) *Watcher
func (*Watcher) OnDeleteNotify ¶
func (w *Watcher) OnDeleteNotify(notifiable DeleteNotifiable) *Watcher
func (*Watcher) OnDeleteNotifyMe ¶
func (*Watcher) OnDeleteSubscription ¶
func (w *Watcher) OnDeleteSubscription(_ *unstructured.Unstructured)
func (*Watcher) OnUpdateNotify ¶
func (w *Watcher) OnUpdateNotify(notifiable UpdateNotifiable) *Watcher
Click to show internal directories.
Click to hide internal directories.