• Tim Hockin's avatar
    Add support for manually defined DeepCopy methods · 57c31969
    Tim Hockin authored
    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).
    57c31969
Name
Last commit
Last update
.github Loading commit data...
Godeps Loading commit data...
api/swagger-spec Loading commit data...
build Loading commit data...
cluster Loading commit data...
cmd Loading commit data...
contrib Loading commit data...
docs Loading commit data...
examples Loading commit data...
federation Loading commit data...
hack Loading commit data...
hooks Loading commit data...
logo Loading commit data...
pkg Loading commit data...
plugin Loading commit data...
release Loading commit data...
test Loading commit data...
third_party Loading commit data...
vendor Loading commit data...
www Loading commit data...
.generated_docs Loading commit data...
.gitignore Loading commit data...
CHANGELOG.md Loading commit data...
CONTRIB.md Loading commit data...
CONTRIBUTING.md Loading commit data...
DESIGN.md Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
Vagrantfile Loading commit data...
code-of-conduct.md Loading commit data...