Help us shape the future of Go! Take the 2026 Go Developer Survey

informer

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGlobalMapClusterNamespace

func NewGlobalMapClusterNamespace() sync.Map

Types

type K8sInformerFactory

type K8sInformerFactory interface {
	GetLatestNamespaceListGroupByCLuster() map[string]map[string]bool
	BuildInformer(clusterInfo []*bean.ClusterInfo)
	CleanNamespaceInformer(clusterName string)
	DeleteClusterFromCache(clusterName string)
}

type K8sInformerFactoryImpl

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

func NewK8sInformerFactoryImpl

func NewK8sInformerFactoryImpl(logger *zap.SugaredLogger, globalMapClusterNamespace sync.Map, k8sUtil *k8s.K8sServiceImpl) *K8sInformerFactoryImpl

func (*K8sInformerFactoryImpl) BuildInformer

func (impl *K8sInformerFactoryImpl) BuildInformer(clusterInfo []*bean.ClusterInfo)

func (*K8sInformerFactoryImpl) CleanNamespaceInformer

func (impl *K8sInformerFactoryImpl) CleanNamespaceInformer(clusterName string)

func (*K8sInformerFactoryImpl) DeleteClusterFromCache added in v1.0.0

func (impl *K8sInformerFactoryImpl) DeleteClusterFromCache(clusterName string)

func (*K8sInformerFactoryImpl) GetLatestNamespaceListGroupByCLuster

func (impl *K8sInformerFactoryImpl) GetLatestNamespaceListGroupByCLuster() map[string]map[string]bool

Jump to

Keyboard shortcuts

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