manager

package
v0.0.0-...-44dad58 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceWatcher

type ResourceWatcher interface {
	reconciler.DWReconciler
	GetMCController() *mc.MultiClusterController
	GetListener() listener.ClusterChangeListener
	Start(stopCh <-chan struct{}) error
}

ResourceWatcher is the interface used by WatchManager to manage multiple resource watchers.

type WatchManager

type WatchManager struct {
	// contains filtered or unexported fields
}

WatchManager manages number of resource watchers.

func New

func New() *WatchManager

func (*WatchManager) AddResourceWatcher

func (m *WatchManager) AddResourceWatcher(s ResourceWatcher)

AddResourceWatcher adds a resource watcher to the WatchManager.

func (*WatchManager) GetListeners

func (m *WatchManager) GetListeners() []listener.ClusterChangeListener

func (*WatchManager) GetResourceWatcherByMCControllerName

func (m *WatchManager) GetResourceWatcherByMCControllerName(name string) ResourceWatcher

func (*WatchManager) Start

func (m *WatchManager) Start(stop <-chan struct{}) error

Jump to

Keyboard shortcuts

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