discovery

package
v0.2.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitGroupVersion

func SplitGroupVersion(apiVersion string) schema.GroupVersion

Types

type ClusterDiscoveryCache

type ClusterDiscoveryCache interface {
	GetAll() GvrDetails
	LookupKind(gvr schema.GroupVersionResource) (schema.GroupVersionKind, bool)
	LookupResource(gvk schema.GroupVersionKind) (schema.GroupVersionResource, bool)
	RequestAndWaitResync()
	// AddResyncHandler adds a channel that sends when at least one GVR has changed.
	// Should only be called during Init stage.
	AddResyncHandler() <-chan struct{}
}

type DiscoveryCache

type DiscoveryCache interface {
	// Gets the discovery cache for a specific cluster.
	// Lazily initializes the cache if it is not present.
	ForCluster(name string) (ClusterDiscoveryCache, error)
}

Jump to

Keyboard shortcuts

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