expose codec in storage

This commit is contained in:
Paul Weil
2015-08-05 09:39:24 -04:00
parent ded48a3761
commit 2a61b55b59
2 changed files with 9 additions and 1 deletions

View File

@@ -72,6 +72,11 @@ func init() {
metrics.Register()
}
// Codec provides access to the underlying codec being used by the implementation.
func (h *etcdHelper) Codec() runtime.Codec {
return h.codec
}
// Implements storage.Interface.
func (h *etcdHelper) Backends() []string {
return h.client.GetCluster()