discovery

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIGroupSource

type APIGroupSource interface {
	GetAPIGroups() map[string]metav1.APIGroup
}

type DiscoveryManager

type DiscoveryManager struct {
	// contains filtered or unexported fields
}

DiscoveryManager manage the cluster's discovery api and handle requests for /api and /apis

func NewDiscoveryManager

func NewDiscoveryManager(serializer runtime.NegotiatedSerializer, groupSource APIGroupSource, delegate http.Handler) *DiscoveryManager

NewDiscoveryManager return a new instance of DiscoveryManager

func (*DiscoveryManager) RemoveCluster

func (m *DiscoveryManager) RemoveCluster(cluster string)

func (*DiscoveryManager) ResourceEnabled

func (m *DiscoveryManager) ResourceEnabled(cluster string, gvr schema.GroupVersionResource) bool

func (*DiscoveryManager) ServeHTTP

func (m *DiscoveryManager) ServeHTTP(w http.ResponseWriter, req *http.Request)

func (*DiscoveryManager) SetClusterGroupResource

func (m *DiscoveryManager) SetClusterGroupResource(cluster string, apis map[schema.GroupResource]ResourceDiscoveryAPI)

type ResourceDiscoveryAPI

type ResourceDiscoveryAPI struct {
	Group    string
	Resource metav1.APIResource
	Versions sets.Set[schema.GroupVersion]
}

Jump to

Keyboard shortcuts

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