Documentation ¶
Index ¶
- type EntitiesWatcher
- func (ew *EntitiesWatcher) AddResourceEventsHandler(handler ResourceEventsHandler)
- func (ew *EntitiesWatcher) GetAllEntitiesByGvrk() (map[kuber.GroupVersionResourceKind][]unstructured.Unstructured, []error)
- func (ew *EntitiesWatcher) GetParents(namespace string, kind string, name string) (*kuber.ParentController, bool)
- func (ew *EntitiesWatcher) OnAdd(gvrk kuber.GroupVersionResourceKind, obj unstructured.Unstructured)
- func (ew *EntitiesWatcher) OnDelete(gvrk kuber.GroupVersionResourceKind, obj unstructured.Unstructured)
- func (ew *EntitiesWatcher) OnUpdate(gvrk kuber.GroupVersionResourceKind, oldObj, newObj unstructured.Unstructured)
- func (ew *EntitiesWatcher) SetDeltasHandler(handler agent.DeltasHandler)
- func (ew *EntitiesWatcher) SetEntitiesResyncHandler(handler agent.EntitiesResyncHandler)
- func (ew *EntitiesWatcher) Start(ctx context.Context) error
- func (ew *EntitiesWatcher) Stop() error
- func (ew *EntitiesWatcher) WaitForCacheSync()
- func (ew *EntitiesWatcher) WatcherFor(gvrk kuber.GroupVersionResourceKind) (kuber.Watcher, error)
- type EntitiesWatcherSource
- type ResourceEventsHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntitiesWatcher ¶
type EntitiesWatcher struct {
// contains filtered or unexported fields
}
func NewEntitiesWatcher ¶
func NewEntitiesWatcher( observer_ *kuber.Observer, version int, ) *EntitiesWatcher
func (*EntitiesWatcher) AddResourceEventsHandler ¶ added in v3.4.0
func (ew *EntitiesWatcher) AddResourceEventsHandler(handler ResourceEventsHandler)
func (*EntitiesWatcher) GetAllEntitiesByGvrk ¶ added in v3.4.0
func (ew *EntitiesWatcher) GetAllEntitiesByGvrk() (map[kuber.GroupVersionResourceKind][]unstructured.Unstructured, []error)
func (*EntitiesWatcher) GetParents ¶ added in v3.6.0
func (ew *EntitiesWatcher) GetParents(namespace string, kind string, name string) (*kuber.ParentController, bool)
func (*EntitiesWatcher) OnAdd ¶
func (ew *EntitiesWatcher) OnAdd( gvrk kuber.GroupVersionResourceKind, obj unstructured.Unstructured, )
func (*EntitiesWatcher) OnDelete ¶
func (ew *EntitiesWatcher) OnDelete( gvrk kuber.GroupVersionResourceKind, obj unstructured.Unstructured, )
func (*EntitiesWatcher) OnUpdate ¶
func (ew *EntitiesWatcher) OnUpdate( gvrk kuber.GroupVersionResourceKind, oldObj, newObj unstructured.Unstructured, )
func (*EntitiesWatcher) SetDeltasHandler ¶
func (ew *EntitiesWatcher) SetDeltasHandler(handler agent.DeltasHandler)
func (*EntitiesWatcher) SetEntitiesResyncHandler ¶
func (ew *EntitiesWatcher) SetEntitiesResyncHandler(handler agent.EntitiesResyncHandler)
func (*EntitiesWatcher) Stop ¶
func (ew *EntitiesWatcher) Stop() error
func (*EntitiesWatcher) WaitForCacheSync ¶ added in v3.4.0
func (ew *EntitiesWatcher) WaitForCacheSync()
func (*EntitiesWatcher) WatcherFor ¶
func (ew *EntitiesWatcher) WatcherFor( gvrk kuber.GroupVersionResourceKind, ) (kuber.Watcher, error)
type EntitiesWatcherSource ¶ added in v3.6.0
type EntitiesWatcherSource interface { AddResourceEventsHandler(handler ResourceEventsHandler) GetAllEntitiesByGvrk() (map[kuber.GroupVersionResourceKind][]unstructured.Unstructured, []error) GetParents(namespace string, kind string, name string) (*kuber.ParentController, bool) }
type ResourceEventsHandler ¶ added in v3.4.0
type ResourceEventsHandler interface { OnResourceAdd(gvrk kuber.GroupVersionResourceKind, obj unstructured.Unstructured) OnResourceUpdate(gvrk kuber.GroupVersionResourceKind, oldObj, newObj unstructured.Unstructured) OnResourceDelete(gvrk kuber.GroupVersionResourceKind, obj unstructured.Unstructured) OnCacheSync() }
Click to show internal directories.
Click to hide internal directories.