k3s/pkg/api/resource
Tim Hockin 57c3196914 Add support for manually defined DeepCopy methods
In bringing back Clayton's PR piece-by-piece this was almost as easy to
implement as his version, and is much more like what I think we should be
doing.

Specifically, any time which defines a .DeepCopy() method will have that method
called preferentially.  Otherwise we generate our own functions for
deep-copying.  This affected exactly one type - resource.Quantity.  In applying
this heuristic, several places in the generated code were simplified.

To achieve this I had to convert types.Type.Methods from a slice to a map,
which seems correct anyway (to do by-name lookups).
2016-07-07 16:49:46 -07:00
..
amount.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
amount_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
generated.pb.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
generated.proto Revert Clayton's #26179 so I can recreate it 2016-07-07 16:49:46 -07:00
math.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
math_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
quantity.go Add support for manually defined DeepCopy methods 2016-07-07 16:49:46 -07:00
quantity_example_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
quantity_proto.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
quantity_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
scale_int.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
scale_int_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
suffix.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00