Merge pull request #2009 from smarterclayton/unify_meta

Unify Accessor for ObjectMeta/TypeMeta/ListMeta
This commit is contained in:
Daniel Smith
2014-10-29 09:58:46 -07:00
10 changed files with 304 additions and 39 deletions

View File

@@ -220,7 +220,7 @@ func (s *Scheme) generateConvertMeta(srcVersion, destVersion string) *Meta {
}
// DataVersionAndKind will return the APIVersion and Kind of the given wire-format
// enconding of an API Object, or an error.
// encoding of an API Object, or an error.
func (s *Scheme) DataVersionAndKind(data []byte) (version, kind string, err error) {
return s.MetaFactory.Interpret(data)
}