Address remaining comments from #756

Rename Encoding to Codec, Versioning to ResourceVersioner.  Add
GoDoc.  Add Delete(key, recursive) to EtcdHelper
This commit is contained in:
Clayton Coleman
2014-08-05 22:23:22 -04:00
parent 91b31c5552
commit 67dbd15929
6 changed files with 88 additions and 71 deletions

View File

@@ -67,7 +67,7 @@ func TestGenericJSONBase(t *testing.T) {
}
}
func TestVersioningOfAPI(t *testing.T) {
func TestResourceVersionerOfAPI(t *testing.T) {
type T struct {
Object interface{}
Expected uint64
@@ -77,7 +77,7 @@ func TestVersioningOfAPI(t *testing.T) {
"api object with version": {Service{JSONBase: JSONBase{ResourceVersion: 1}}, 1},
"pointer to api object with version": {&Service{JSONBase: JSONBase{ResourceVersion: 1}}, 1},
}
versioning := JSONBaseVersioning{}
versioning := NewJSONBaseResourceVersioner()
for key, testCase := range testCases {
actual, err := versioning.ResourceVersion(testCase.Object)
if err != nil {