Rename RawJSON to Raw in runtime.RawExtension and add ContentType & ContentEncoding.

This commit is contained in:
Wojciech Tyczynski
2016-03-17 11:32:14 +01:00
parent 6bd5ecc192
commit 89585237cd
16 changed files with 65 additions and 52 deletions

View File

@@ -43,7 +43,7 @@ func TestDecoder(t *testing.T) {
if err != nil {
t.Fatalf("Unexpected error %v", err)
}
if err := encoder.Encode(&WatchEvent{eventType, runtime.RawExtension{RawJSON: json.RawMessage(data)}}); err != nil {
if err := encoder.Encode(&WatchEvent{eventType, runtime.RawExtension{Raw: json.RawMessage(data)}}); err != nil {
t.Errorf("Unexpected error %v", err)
}
in.Close()