gvk

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GVKTranslator

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

GVKTranslator translates a given GroupVersionKind into a GroupVersionResource, using a RESTMapper.

func NewGVKTranslator

func NewGVKTranslator(cfg *rest.Config) *GVKTranslator

NewGVKTranslator returns a GVKTranslator that can translate a given GroupVersionKind into the corresponding GroupVersionResource, using a RESTMapper.

func (*GVKTranslator) Get

Get returns the corresponding GroupVersionResource for the given GroupVersionKind.

Jump to

Keyboard shortcuts

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