restmapper

package
v1.12.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGroupVersionResource

func GetGroupVersionResource(restMapper meta.RESTMapper, gvk schema.GroupVersionKind) (schema.GroupVersionResource, error)

GetGroupVersionResource is a helper to map GVK(schema.GroupVersionKind) to GVR(schema.GroupVersionResource).

func MapperProvider added in v1.3.0

func MapperProvider(c *rest.Config, _ *http.Client) (meta.RESTMapper, error)

MapperProvider is a wrapper of cachedRESTMapper which is typically used to generate customized RESTMapper for controller-runtime framework.

func NewCachedRESTMapper added in v1.3.0

func NewCachedRESTMapper(cfg *rest.Config, underlyingMapper meta.RESTMapper) (meta.RESTMapper, error)

NewCachedRESTMapper builds a cachedRESTMapper with a customized underlyingMapper. If underlyingMapper is nil, defaults to DiscoveryRESTMapper.

Types

This section is empty.

Jump to

Keyboard shortcuts

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