cache

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	// NumClusters returns the number of clusters in the cache.
	NumClusters() int

	// List returns the list of ManagedCluster(s).
	List(labelSelector *metav1.LabelSelector) ([]*clusterapi.ManagedCluster, error)

	// Get returns the ManagedCluster of the given managed cluster.
	Get(namespacedName string) (*clusterapi.ManagedCluster, error)
}

func New

func New(clusterListers clusterlisters.ManagedClusterLister) Cache

Jump to

Keyboard shortcuts

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