restmapper

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDynamicRESTMapper

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

NewDynamicRESTMapper returns a RESTMapper that dynamically discovers resource types at runtime. This is in contrast to controller-manager's default RESTMapper, which only checks resource types at startup, and so can't handle the case of first creating a CRD and then creating an instance of that CRD.

Types

type DynamicRESTMapper

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

func (*DynamicRESTMapper) KindFor

func (*DynamicRESTMapper) KindsFor

func (*DynamicRESTMapper) RESTMapping

func (drm *DynamicRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error)

func (*DynamicRESTMapper) RESTMappings

func (drm *DynamicRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error)

func (*DynamicRESTMapper) ResourceFor

func (*DynamicRESTMapper) ResourceSingularizer

func (drm *DynamicRESTMapper) ResourceSingularizer(resource string) (singular string, err error)

func (*DynamicRESTMapper) ResourcesFor

Jump to

Keyboard shortcuts

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