informers

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager is an informer factories manager

func NewManager

func NewManager(config *v1alpha1.KubeAPIConfig) (*Manager, error)

func (*Manager) GetIstioClient

func (mgr *Manager) GetIstioClient() istio.Interface

func (*Manager) GetIstioFactory

func (mgr *Manager) GetIstioFactory() istioinformers.SharedInformerFactory

func (*Manager) GetKubeClient

func (mgr *Manager) GetKubeClient() kubernetes.Interface

func (*Manager) GetKubeFactory

func (mgr *Manager) GetKubeFactory() k8sinformers.SharedInformerFactory

func (*Manager) RegisterInformer

func (mgr *Manager) RegisterInformer(informer cache.SharedIndexInformer)

RegisterInformer add a informer to Manager. It is important to note that the Informer constructed for each resource type will be cached, and repeated calls to Informer() on the same resource will return the same Informer instance.

func (*Manager) RegisterSyncedFunc

func (mgr *Manager) RegisterSyncedFunc(fn syncedFunc)

RegisterSyncedFunc add a syncedFunc

func (*Manager) Start

func (mgr *Manager) Start(stopCh <-chan struct{})

Start starts all factories and run all informers

Jump to

Keyboard shortcuts

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