zz_generated.deepcopy.go 2.0 KB

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