crd

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MPL-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 Fetcher

type Fetcher interface {
	IsAvailable(clusterName, name string) bool
	IsAvailableOnClusters(name string) map[string]bool
	UpdateCRDList()
}

func NewFetcher

func NewFetcher(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.

Jump to

Keyboard shortcuts

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