discovery

package
v0.30.42 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResource

type APIResource struct {
	metav1.APIResource
	APIVersion string
}

func (*APIResource) GroupVersion

func (r *APIResource) GroupVersion() schema.GroupVersion

func (*APIResource) GroupVersionKind

func (r *APIResource) GroupVersionKind() schema.GroupVersionKind

type ResourceMap

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

func NewResourceMap

func NewResourceMap(discoveryClient discovery.DiscoveryInterface) *ResourceMap

func (*ResourceMap) Get

func (rm *ResourceMap) Get(apiVersion, resource string) (result *APIResource)

func (*ResourceMap) GetKind

func (rm *ResourceMap) GetKind(apiVersion, kind string) (result *APIResource)

func (*ResourceMap) HasSynced

func (rm *ResourceMap) HasSynced() bool

func (*ResourceMap) Start

func (rm *ResourceMap) Start(refreshInterval time.Duration)

func (*ResourceMap) Stop

func (rm *ResourceMap) Stop()

Jump to

Keyboard shortcuts

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