Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultiRESTMapper ¶ added in v0.2.1
type MultiRESTMapper []kmeta.RESTMapper
MultiRESTMapper is a wrapper for multiple RESTMappers.
func (MultiRESTMapper) RESTMapping ¶ added in v0.2.1
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 ¶ added in v0.2.1
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.