restmapper

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewRESTMapper = NewDeferredRESTMapper

NewRESTMapper alias to NewDeferredRESTMapper

Functions

func FindGVK

func FindGVK(restMapper meta.RESTMapper, obj interface{}) (schema.GroupVersionKind, error)

FindGVK find the GroupVersionKind from signal yaml document or json document.

Supported type are: map[string]interface{}, *unstructured.Unstructured, unstructured.Unstructured, string and []byte.

func FindGVR

func FindGVR(restMapper meta.RESTMapper, obj interface{}) (schema.GroupVersionResource, error)

FindGVR find the GroupVersionResource from signal yaml document or json document.

Supported type are: map[string]interface{}, *unstructured.Unstructured, unstructured.Unstructured, string and []byte.

func GVKToGVR

GVKToGVR convert GVK to GVR.

func IsNamespaced

func IsNamespaced(restMapper meta.RESTMapper, gvk schema.GroupVersionKind) (bool, error)

IsNamespaced check if the gvk is namespace scope.

func NewDeferredRESTMapper

func NewDeferredRESTMapper(kubeconfig string) (meta.RESTMapper, error)

NewDeferredRESTMapper

func NewPriorityRESTMapper

func NewPriorityRESTMapper(kubeconfig string) (meta.RESTMapper, error)

NewPriorityRESTMapper

Types

This section is empty.

Jump to

Keyboard shortcuts

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