Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher interface { IsAvailable(clusterName, name string) bool IsAvailableOnClusters(name string) map[string]bool UpdateCRDList() }
func NewFetcher ¶
func NewFetcher(ctx context.Context, logger logr.Logger, clustersManager clustersmngr.ClustersManager) Fetcher
NewFetcher creates a new default fetcher with cache.
With NewFetcher, it will automatically start a background go routine to watch CRDs.
func NewNoCacheFetcher ¶
func NewNoCacheFetcher(clustersManager clustersmngr.ClustersManager) Fetcher
NewNoCacheFetcher creates a new fetcher without cache.
The noCacheFetcher has no background go routine.
Click to show internal directories.
Click to hide internal directories.