crd

package
v0.39.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 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 Fetcher

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

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.

Jump to

Keyboard shortcuts

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