zz_generated.deepcopy.go 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. // +build !ignore_autogenerated
  2. /*
  3. Copyright The Kubernetes Authors.
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. */
  14. // Code generated by deepcopy-gen. DO NOT EDIT.
  15. package runtime
  16. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  17. func (in *RawExtension) DeepCopyInto(out *RawExtension) {
  18. *out = *in
  19. if in.Raw != nil {
  20. in, out := &in.Raw, &out.Raw
  21. *out = make([]byte, len(*in))
  22. copy(*out, *in)
  23. }
  24. if in.Object == nil {
  25. out.Object = nil
  26. } else {
  27. out.Object = in.Object.DeepCopyObject()
  28. }
  29. return
  30. }
  31. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RawExtension.
  32. func (in *RawExtension) DeepCopy() *RawExtension {
  33. if in == nil {
  34. return nil
  35. }
  36. out := new(RawExtension)
  37. in.DeepCopyInto(out)
  38. return out
  39. }
  40. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  41. func (in *Unknown) DeepCopyInto(out *Unknown) {
  42. *out = *in
  43. out.TypeMeta = in.TypeMeta
  44. if in.Raw != nil {
  45. in, out := &in.Raw, &out.Raw
  46. *out = make([]byte, len(*in))
  47. copy(*out, *in)
  48. }
  49. return
  50. }
  51. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Unknown.
  52. func (in *Unknown) DeepCopy() *Unknown {
  53. if in == nil {
  54. return nil
  55. }
  56. out := new(Unknown)
  57. in.DeepCopyInto(out)
  58. return out
  59. }
  60. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new Object.
  61. func (in *Unknown) DeepCopyObject() Object {
  62. if c := in.DeepCopy(); c != nil {
  63. return c
  64. }
  65. return nil
  66. }
  67. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  68. func (in *VersionedObjects) DeepCopyInto(out *VersionedObjects) {
  69. *out = *in
  70. if in.Objects != nil {
  71. in, out := &in.Objects, &out.Objects
  72. *out = make([]Object, len(*in))
  73. for i := range *in {
  74. if (*in)[i] == nil {
  75. (*out)[i] = nil
  76. } else {
  77. (*out)[i] = (*in)[i].DeepCopyObject()
  78. }
  79. }
  80. }
  81. return
  82. }
  83. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VersionedObjects.
  84. func (in *VersionedObjects) DeepCopy() *VersionedObjects {
  85. if in == nil {
  86. return nil
  87. }
  88. out := new(VersionedObjects)
  89. in.DeepCopyInto(out)
  90. return out
  91. }
  92. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new Object.
  93. func (in *VersionedObjects) DeepCopyObject() Object {
  94. if c := in.DeepCopy(); c != nil {
  95. return c
  96. }
  97. return nil
  98. }