Documentation ¶
Index ¶
- type MultiRESTMapper
- func (m MultiRESTMapper) AliasesForResource(resource string) (aliases []string, has bool)
- func (m MultiRESTMapper) RESTMapping(kind string, versions ...string) (mapping *kmeta.RESTMapping, err error)
- func (m MultiRESTMapper) VersionAndKindForResource(resource string) (defaultVersion, kind string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultiRESTMapper ¶
type MultiRESTMapper []kmeta.RESTMapper
MultiRESTMapper is a wrapper for multiple RESTMappers.
func (MultiRESTMapper) AliasesForResource ¶ added in v0.4.4
func (m MultiRESTMapper) AliasesForResource(resource string) (aliases []string, has bool)
AliasesForResource returns whether a resource has an alias or not. This implementation supports multiple REST schemas and return the first match.
func (MultiRESTMapper) RESTMapping ¶
func (m MultiRESTMapper) RESTMapping(kind string, versions ...string) (mapping *kmeta.RESTMapping, err error)
RESTMapping provides the REST mapping for the resource based on the resource kind and version. This implementation supports multiple REST schemas and return the first match.
func (MultiRESTMapper) VersionAndKindForResource ¶
func (m MultiRESTMapper) VersionAndKindForResource(resource string) (defaultVersion, kind string, err error)
VersionAndKindForResource provides the Version and Kind mappings for the REST resources. This implementation supports multiple REST schemas and return the first match.
Click to show internal directories.
Click to hide internal directories.