Begin to unify ResourceVersioner and SelfLinker

Create a new MetadataAccessor interface that combines both
and use it where previously latest.ResourceVersioner and SelfLinker
were being used.

Adds Namespace to the get/set interface. Adds TODO about future
fast path for metadata (as per thockin's comment)
This commit is contained in:
Clayton Coleman
2014-10-26 23:01:17 -04:00
parent 52b582271b
commit 66ace4c270
9 changed files with 303 additions and 38 deletions

View File

@@ -46,7 +46,7 @@ func (*TestResource) IsAnAPIObject() {}
var scheme *runtime.Scheme
var codec runtime.Codec
var versioner = RuntimeVersionAdapter{meta.NewResourceVersioner()}
var versioner = RuntimeVersionAdapter{meta.NewAccessor()}
func init() {
scheme = runtime.NewScheme()