Documentation ¶
Index ¶
- Variables
- func FindGVK(restMapper meta.RESTMapper, obj interface{}) (schema.GroupVersionKind, error)
- func FindGVR(restMapper meta.RESTMapper, obj interface{}) (schema.GroupVersionResource, error)
- func GVKToGVR(restMapper meta.RESTMapper, gvk schema.GroupVersionKind) (schema.GroupVersionResource, error)
- func IsNamespaced(restMapper meta.RESTMapper, gvk schema.GroupVersionKind) (bool, error)
- func NewDeferredRESTMapper(kubeconfig string) (meta.RESTMapper, error)
- func NewPriorityRESTMapper(kubeconfig string) (meta.RESTMapper, error)
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 ¶
func GVKToGVR(restMapper meta.RESTMapper, gvk schema.GroupVersionKind) (schema.GroupVersionResource, error)
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.
Click to show internal directories.
Click to hide internal directories.