Rename JSONBase -> TypeMeta in preparation for v1beta3

Will make subsequent refactor much easier
This commit is contained in:
Clayton Coleman
2014-10-07 11:12:16 -04:00
parent e294cef9d4
commit d3e51a0f24
69 changed files with 464 additions and 464 deletions

View File

@@ -24,11 +24,11 @@ import (
"gopkg.in/v1/yaml"
)
type FakeJSONBase struct {
type FakeTypeMeta struct {
ID string
}
type FakePod struct {
FakeJSONBase `json:",inline" yaml:",inline"`
FakeTypeMeta `json:",inline" yaml:",inline"`
Labels map[string]string
Int int
Str string
@@ -36,7 +36,7 @@ type FakePod struct {
func TestEncodeJSON(t *testing.T) {
pod := FakePod{
FakeJSONBase: FakeJSONBase{ID: "foo"},
FakeTypeMeta: FakeTypeMeta{ID: "foo"},
Labels: map[string]string{
"foo": "bar",
"baz": "blah",