multiclient

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiClusterDiscovery

type MultiClusterDiscovery struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

MultiClusterDiscovery provides DiscoveryClient for multiple clusters.

func (*MultiClusterDiscovery) Get

Get returns a DiscoveryClient for the provided clusterName.

func (*MultiClusterDiscovery) Remove

func (m *MultiClusterDiscovery) Remove(clusterName string)

Remove a DiscoveryClient for the provided clusterName.

func (*MultiClusterDiscovery) Set

func (m *MultiClusterDiscovery) Set(clusterName string) error

Set a DiscoveryClient for the provided clusterName.

type MultiClusterDiscoveryInterface

type MultiClusterDiscoveryInterface interface {
	Get(clusterName string) *discovery.DiscoveryClient
	Set(clusterName string) error
	Remove(clusterName string)
}

MultiClusterDiscoveryInterface provides DiscoveryClient for multiple clusters.

func NewMultiClusterDiscoveryClient

func NewMultiClusterDiscoveryClient(clusterLister clusterlister.ClusterLister, KubeFactory informers.SharedInformerFactory) MultiClusterDiscoveryInterface

NewMultiClusterDiscoveryClient returns a new MultiClusterDiscovery

Jump to

Keyboard shortcuts

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