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

@@ -76,9 +76,9 @@ func ExtractList(obj runtime.Object) ([]runtime.Object, error) {
switch {
case item.Object != nil:
list[i] = item.Object
case item.RawJSON != nil:
// TODO: Set ContentEncoding and ContentType.
list[i] = &runtime.Unknown{Raw: item.RawJSON}
case item.Raw != nil:
// TODO: Set ContentEncoding and ContentType correctly.
list[i] = &runtime.Unknown{Raw: item.Raw}
default:
list[i] = nil
}