fake

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeFederatedInformerManager

type FakeFederatedInformerManager struct {
	HasSync  bool
	Shutdown bool

	ReadyClusters              []*fedcorev1a1.FederatedCluster
	ReadyClusterDynamicClients map[string]dynamic.Interface
	NodeListers                map[string]FakeLister
	PodListers                 map[string]FakeLister
}

FakeFederatedInformerManager implements informermanager.FederatedInformerManager and should only be used in tests

func (*FakeFederatedInformerManager) AddClusterEventHandlers

func (f *FakeFederatedInformerManager) AddClusterEventHandlers(handlers ...*informermanager.ClusterEventHandler) error

func (*FakeFederatedInformerManager) AddEventHandlerGenerator

func (f *FakeFederatedInformerManager) AddEventHandlerGenerator(generator *informermanager.EventHandlerGenerator) error

func (*FakeFederatedInformerManager) AddPodEventHandler

func (*FakeFederatedInformerManager) AddResourceEventHandler

func (*FakeFederatedInformerManager) GetClusterDynamicClient

func (f *FakeFederatedInformerManager) GetClusterDynamicClient(cluster string) (client dynamic.Interface, exists bool)

func (*FakeFederatedInformerManager) GetClusterKubeClient

func (f *FakeFederatedInformerManager) GetClusterKubeClient(cluster string) (client kubernetes.Interface, exists bool)

func (*FakeFederatedInformerManager) GetClusterRestConfig

func (f *FakeFederatedInformerManager) GetClusterRestConfig(cluster string) (config *rest.Config, exists bool)

func (*FakeFederatedInformerManager) GetFederatedClusterLister

func (*FakeFederatedInformerManager) GetFederatedTypeConfigLister

func (*FakeFederatedInformerManager) GetJoinedClusters

func (f *FakeFederatedInformerManager) GetJoinedClusters() ([]*fedcorev1a1.FederatedCluster, error)

func (*FakeFederatedInformerManager) GetNodeLister

func (f *FakeFederatedInformerManager) GetNodeLister(
	cluster string,
) (lister corev1listers.NodeLister, informerSynced cache.InformerSynced, exists bool)

func (*FakeFederatedInformerManager) GetPodLister

func (f *FakeFederatedInformerManager) GetPodLister(
	cluster string,
) (lister corev1listers.PodLister, informerSynced cache.InformerSynced, exists bool)

func (*FakeFederatedInformerManager) GetReadyClusters

func (f *FakeFederatedInformerManager) GetReadyClusters() ([]*fedcorev1a1.FederatedCluster, error)

func (*FakeFederatedInformerManager) GetResourceLister

func (f *FakeFederatedInformerManager) GetResourceLister(
	gvk schema.GroupVersionKind,
	cluster string,
) (lister cache.GenericLister, informerSynced cache.InformerSynced, exists bool)

func (*FakeFederatedInformerManager) GetResourceListerFromFactory

func (f *FakeFederatedInformerManager) GetResourceListerFromFactory(
	gvr schema.GroupVersionResource, cluster string,
) (lister interface{}, informerSynced cache.InformerSynced, exists bool)

func (*FakeFederatedInformerManager) HasSynced

func (f *FakeFederatedInformerManager) HasSynced() bool

func (*FakeFederatedInformerManager) IsShutdown

func (f *FakeFederatedInformerManager) IsShutdown() bool

func (*FakeFederatedInformerManager) Start

type FakeLister

type FakeLister struct {
	PodLister  corev1listers.PodLister
	NodeLister corev1listers.NodeLister
	Synced     bool
}

Jump to

Keyboard shortcuts

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