k8s-merge-robot
1ad3049ed6
Merge pull request #23288 from smarterclayton/refactor_codec
...
Auto commit by PR queue bot
2016-03-26 10:47:58 -07:00
goltermann
32d569d6c7
Fixing all the "composite literal uses unkeyed fields" Vet errors.
2016-03-25 15:25:09 -07:00
k8s-merge-robot
4e4ad61260
Merge pull request #23366 from goltermann/vet
...
Auto commit by PR queue bot
2016-03-24 21:50:56 -07:00
k8s-merge-robot
8355cefb7b
Merge pull request #23373 from wojtek-t/conversions_with_framework_3
...
Auto commit by PR queue bot
2016-03-24 01:39:23 -07:00
Wojciech Tyczynski
42e7ecda5a
Fix bunch of issues with conversion generator.
2016-03-24 08:26:51 +01:00
Clayton Coleman
54eaa56b92
Add a streaming and "raw" abstraction to codec factory
2016-03-23 17:25:20 -04:00
k8s-merge-robot
4a6e6b3fbf
Merge pull request #23213 from pweil-/generator-besteffort
...
Auto commit by PR queue bot
2016-03-23 07:50:09 -07:00
goltermann
34d4eaea08
Fixing several (but not all) go vet errors. Most are around string formatting, or unreachable code.
2016-03-22 17:26:50 -07:00
Paul Weil
dd4ff1690d
provide best effort generation even if types are asymmetrical
2016-03-22 11:44:07 -04:00
harry
b0900bf0d4
Refactor diff into sub pkg
2016-03-21 20:21:39 +08:00
k8s-merge-robot
8fb0bfb0d3
Merge pull request #23179 from wojtek-t/remove_old_deep_copy_generator
...
Auto commit by PR queue bot
2016-03-18 19:35:54 -07:00
Wojciech Tyczynski
89585237cd
Rename RawJSON to Raw in runtime.RawExtension and add ContentType & ContentEncoding.
2016-03-18 12:35:27 +01:00
Wojciech Tyczynski
ce9b2ab3e3
Remove old deep-copy generator.
2016-03-18 09:42:15 +01:00
Wojciech Tyczynski
7e2fdeae7b
Regenerate autogenerate files
2016-03-17 15:22:19 +01:00
k8s-merge-robot
53c6b35b71
Merge pull request #23038 from wojtek-t/rename_raw_json_to_raw
...
Auto commit by PR queue bot
2016-03-17 04:05:43 -07:00
Wojciech Tyczynski
e610c137c0
Regenerate auto-generated files
2016-03-17 09:30:02 +01:00
Wojciech Tyczynski
218d3e5923
Rename RawJSON to Raw in runtime.Unknown and add ContentType & ContentEncoding.
2016-03-16 16:43:58 +01:00
Wojciech Tyczynski
b264805796
JSON serializer implements serializer interface
2016-03-10 13:26:05 +01:00
Clayton Coleman
f5c7f297b3
Set runtime OWNERS
2016-03-04 23:59:34 -05:00
k8s-merge-robot
c3a962bff5
Merge pull request #20351 from krousey/dynamic_client
...
Auto commit by PR queue bot
2016-02-19 10:00:54 -08:00
k8s-merge-robot
5acdb92126
Merge pull request #21177 from laushinka/spelling-fixes
...
Auto commit by PR queue bot
2016-02-18 10:29:49 -08:00
Piotr Szczesniak
c02e966d65
Applied comments from the review
2016-02-18 14:18:39 +01:00
laushinka
7ef585be22
Spelling fixes inspired by github.com/client9/misspell
2016-02-18 06:58:05 +07:00
Daniel Smith
74400c33ae
changes for cross-group moves
2016-02-15 21:39:00 +01:00
deads2k
f89bd83664
fix group mapping and encoding order
2016-02-15 08:49:17 -05:00
Kris
4c58302b5b
Adding dynamic client
2016-02-12 11:49:00 -08:00
Clayton Coleman
b8582f73da
Ensure public conversion name packages are imported
...
The name of the package a public function is in may not be inside the
current package set, so it needs to be imported.
2016-02-08 17:24:44 -05:00
k8s-merge-robot
f769ecdabc
Merge pull request #20487 from deads2k/fix-unstructured
...
Auto commit by PR queue bot
2016-02-06 06:49:13 -08:00
deads2k
067ecb4b60
expose unstructured scheme as codec
2016-02-04 11:14:16 -05:00
deads2k
26b91926b2
fix version detection for error
2016-02-04 08:20:41 -05:00
Clayton Coleman
60b66665e1
Move conversion.Scheme to runtime
...
There is only one type registry to rule them all
2016-01-30 14:12:40 -05:00
Clayton Coleman
6b2f70d553
Provide a JSON and YAML serializer, and a versioning wrapper
...
Add a recognizer that is capable of sniffing content type from data by
asking each serializer to try to decode - this is for a "universal
decoder/deserializer" which can be used by client logic.
Add codec factory, which provides the core primitives for content type
negotiation. Codec factories depend only on schemes, serializers, and
groupversion pairs.
2016-01-22 00:12:49 -05:00
Clayton Coleman
63a7a41ddf
Simplify Codec and split responsibilities
...
Break Codec into two general purpose interfaces, Encoder and Decoder,
and move parameter codec responsibilities to ParameterCodec.
Make unversioned types explicit when registering - these types go
through conversion without modification.
Switch to use "__internal" instead of "" to represent the internal
version. Future commits will also add group defaulting (so that "" is
expanded internally into a known group version, and only cleared during
set).
For embedded types like runtime.Object -> runtime.RawExtension, put the
responsibility on the caller of Decode/Encode to handle transformation
into destination serialization. Future commits will expand RawExtension
and Unknown to accept a content encoding as well as bytes.
Make Unknown a bit more powerful and use it to carry unrecognized types.
2016-01-21 23:18:32 -05:00
Clayton Coleman
6582b4c2ea
Remove codec awareness from conversion
...
Allow convertors to be specialized, some cleanup to how conversion
functions are stored internally to allow better reuse.
2016-01-21 23:18:32 -05:00
Clayton Coleman
3c1451af91
Use public conversion methods to avoid reflection
...
Replace many of the remaining s.Convert() invocations with direct
execution, and make generated methods public. Removes 10% of the
allocations during decode of a pod and ~20-40% of the total CPU time.
2015-12-29 10:38:42 -05:00
Clayton Coleman
173718059d
Slice conversion requires destination package
2015-12-18 19:05:21 -05:00
k8s-merge-robot
e309583ff1
Merge pull request #18473 from smarterclayton/change_runtime_object
...
Auto commit by PR queue bot
2015-12-16 04:24:22 -08:00
Clayton Coleman
8f203a28f1
Change runtime.Object signature
2015-12-15 13:36:25 -05:00
deads2k
6e33403abf
update CodecFor for GroupVersion
2015-12-15 10:56:00 -05:00
k8s-merge-robot
266ab4a796
Merge pull request #18487 from smarterclayton/guard_encode_decode
...
Auto commit by PR queue bot
2015-12-13 23:08:18 -08:00
Clayton Coleman
1e21054134
Hide common codec methods under helpers
...
The pending codec -> conversion split changes the signature of
Encode and Decode to be more complicated. Create a stub helper
with the exact semantics of today and do the simple mechanical
refactor here to reduce the cost of that change.
2015-12-09 21:15:02 -05:00
deads2k
519b4e80d1
update NewObject for groupversionkind
2015-12-09 08:13:15 -05:00
deads2k
2ee3dfe415
update testapi to eliminate redundant fields
2015-12-07 15:54:26 -05:00
deads2k
f764e0099c
Update ObjectTyper to GroupVersion
2015-12-07 08:35:05 -05:00
Clayton Coleman
ac9fd648d3
Strip go2idl instructions from generated swagger doc
...
Ignore doc lines starting with +
2015-12-05 18:15:49 -05:00
Clayton Coleman
9fea762917
Add protobuf preparation objects, guarded by proto tag
2015-12-05 18:15:48 -05:00
Clayton Coleman
8046bb46df
Update conversions to handle primitive conversion
2015-11-26 11:45:25 -05:00
deads2k
ed95a6d77f
update scheme to use GroupVersion
2015-11-25 12:15:48 -05:00
deads2k
47e496364d
update generators for groupVersion
2015-11-25 12:14:06 -05:00
deads2k
68b0572974
internal versions
2015-11-25 12:14:06 -05:00