kubernetes/pkg/runtime
Clayton Coleman e0ebcf4216
Split the storage and negotiation parts of Codecs
The codec factory should support two distinct interfaces - negotiating
for a serializer with a client, vs reading or writing data to a storage
form (etcd, disk, etc). Make the EncodeForVersion and DecodeToVersion
methods only take Encoder and Decoder, and slight refactoring elsewhere.

In the storage factory, use a content type to control what serializer to
pick, and use the universal deserializer. This ensures that storage can
read JSON (which might be from older objects) while only writing
protobuf. Add exceptions for those resources that may not be able to
write to protobuf (specifically third party resources, but potentially
others in the future).
2016-05-05 12:08:23 -04:00
..
serializer Split the storage and negotiation parts of Codecs 2016-05-05 12:08:23 -04:00
codec.go Split the storage and negotiation parts of Codecs 2016-05-05 12:08:23 -04:00
codec_check.go changes for cross-group moves 2016-02-15 21:39:00 +01:00
conversion.go Small improvements in conversion generator 2016-04-05 02:10:23 +02:00
conversion_test.go Simplify Codec and split responsibilities 2016-01-21 23:18:32 -05:00
deep_copy_generated.go Split the storage and negotiation parts of Codecs 2016-05-05 12:08:23 -04:00
doc.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
embedded.go Vet fixes, mostly pass lock by value errors. 2016-04-06 11:27:40 -07:00
embedded_test.go Refactor diff into sub pkg 2016-03-21 20:21:39 +08:00
error.go fix version detection for error 2016-02-04 08:20:41 -05:00
extension.go Rename RawJSON to Raw in runtime.RawExtension and add ContentType & ContentEncoding. 2016-03-18 12:35:27 +01:00
extension_test.go Rename RawJSON to Raw in runtime.RawExtension and add ContentType & ContentEncoding. 2016-03-18 12:35:27 +01:00
generated.pb.go Strip side-effect imports from generated protobuf 2016-05-02 18:12:20 -04:00
generated.proto Initial protobuf generated files 2016-04-20 12:13:05 -04:00
helper.go Support Close() in streaming decoder 2016-04-28 09:46:33 +02:00
helper_test.go Redo Unstructured to have accessor methods 2016-05-03 14:07:28 -07:00
interfaces.go Split the storage and negotiation parts of Codecs 2016-05-05 12:08:23 -04:00
OWNERS Set runtime OWNERS 2016-03-04 23:59:34 -05:00
register.go Redo Unstructured to have accessor methods 2016-05-03 14:07:28 -07:00
scheme.go Merge pull request #20351 from krousey/dynamic_client 2016-02-19 10:00:54 -08:00
scheme_test.go Fixing several (but not all) go vet errors. Most are around string formatting, or unreachable code. 2016-03-22 17:26:50 -07:00
swagger_doc_generator.go Remove old conversion generator 2016-04-15 12:07:57 +02:00
swagger_doc_generator_test.go swagger type documentation generator 2015-08-22 02:26:03 +02:00
types.go Redo Unstructured to have accessor methods 2016-05-03 14:07:28 -07:00
types_proto.go Strip the proto build guard 2016-04-20 12:12:29 -04:00
unstructured.go Redo Unstructured to have accessor methods 2016-05-03 14:07:28 -07:00
unstructured_test.go Redo Unstructured to have accessor methods 2016-05-03 14:07:28 -07:00
unversioned_test.go Move conversion.Scheme to runtime 2016-01-30 14:12:40 -05:00