Add runtime.ObjectConvertor to RESTMapper

This commit is contained in:
Clayton Coleman
2014-11-02 09:31:29 -05:00
parent dc862ae463
commit f0c23d68f7
4 changed files with 15 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ type DefaultRESTMapper struct {
interfacesFunc VersionInterfacesFunc
}
// VersionInterfacesFunc returns the appropriate codec and metadata accessor for a
// VersionInterfacesFunc returns the appropriate codec, typer, and metadata accessor for a
// given api version, or false if no such api version exists.
type VersionInterfacesFunc func(apiVersion string) (*VersionInterfaces, bool)
@@ -162,6 +162,7 @@ func (m *DefaultRESTMapper) RESTMapping(version, kind string) (*RESTMapping, err
Kind: kind,
Codec: interfaces.Codec,
ObjectConvertor: interfaces.ObjectConvertor,
MetadataAccessor: interfaces.MetadataAccessor,
}, nil
}