subscription

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 NewWatcher(client dynamic.Interface) *Watcher

func (*Watcher) OnAddNotify

func (w *Watcher) OnAddNotify(notifiable AddNotifiable) *Watcher

func (*Watcher) OnDeleteNotify

func (w *Watcher) OnDeleteNotify(notifiable DeleteNotifiable) *Watcher

func (*Watcher) OnDeleteNotifyMe

func (w *Watcher) OnDeleteNotifyMe() *Watcher

func (*Watcher) OnDeleteSubscription

func (w *Watcher) OnDeleteSubscription(_ *unstructured.Unstructured)

func (*Watcher) OnUpdateNotify

func (w *Watcher) OnUpdateNotify(notifiable UpdateNotifiable) *Watcher

func (*Watcher) Watch

func (w *Watcher) Watch()

Jump to

Keyboard shortcuts

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