informers

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 25 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InformerPair added in v1.13.0

type InformerPair struct {
	// GenericLister is a lister that helps list generic resource.
	// All objects returned here must be treated as read-only.
	Lister cache.GenericLister

	// Informer provides add and get Indexers ability based on SharedInformer.
	Informer cache.SharedIndexInformer
}

InformerPair include informer and lister for resource

type KubeEdgeCustomInformer added in v1.7.0

type KubeEdgeCustomInformer interface {
	EdgeNode() cache.SharedIndexInformer
}

type Manager

type Manager interface {
	// GetKubeInformerFactory return kubernetes built-in resources InformerFactory
	GetKubeInformerFactory() k8sinformer.SharedInformerFactory

	// GetKubeEdgeInformerFactory return KubeEdge CRD resources InformerFactory
	GetKubeEdgeInformerFactory() edgeinformers.SharedInformerFactory

	// GetDynamicInformerFactory return third-party CRD resources InformerFactory
	GetDynamicInformerFactory() dynamicinformer.DynamicSharedInformerFactory

	// KubeEdgeCustomInformer return custom informer
	KubeEdgeCustomInformer

	// Start start all InformerFactory
	Start(stopCh <-chan struct{})

	// GetInformerPair return InformerPair for the given GVR
	GetInformerPair(gvr schema.GroupVersionResource) (*InformerPair, error)

	// GetLister return cached lister for the given GVR
	GetLister(gvr schema.GroupVersionResource) (cache.GenericLister, error)
}

func GetInformersManager

func GetInformersManager() Manager

func NewFakeInformerManager added in v1.13.0

func NewFakeInformerManager() Manager

Jump to

Keyboard shortcuts

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