zz_generated.deepcopy.go 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // +build !ignore_autogenerated
  2. /*
  3. Copyright 2016 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. // This file was autogenerated by deepcopy-gen. Do not edit it manually!
  15. package runtime
  16. import (
  17. conversion "k8s.io/kubernetes/pkg/conversion"
  18. )
  19. func DeepCopy_runtime_RawExtension(in interface{}, out interface{}, c *conversion.Cloner) error {
  20. {
  21. in := in.(*RawExtension)
  22. out := out.(*RawExtension)
  23. if in.Raw != nil {
  24. in, out := &in.Raw, &out.Raw
  25. *out = make([]byte, len(*in))
  26. copy(*out, *in)
  27. } else {
  28. out.Raw = nil
  29. }
  30. if in.Object == nil {
  31. out.Object = nil
  32. } else if newVal, err := c.DeepCopy(&in.Object); err != nil {
  33. return err
  34. } else {
  35. out.Object = *newVal.(*Object)
  36. }
  37. return nil
  38. }
  39. }
  40. func DeepCopy_runtime_TypeMeta(in interface{}, out interface{}, c *conversion.Cloner) error {
  41. {
  42. in := in.(*TypeMeta)
  43. out := out.(*TypeMeta)
  44. out.APIVersion = in.APIVersion
  45. out.Kind = in.Kind
  46. return nil
  47. }
  48. }
  49. func DeepCopy_runtime_Unknown(in interface{}, out interface{}, c *conversion.Cloner) error {
  50. {
  51. in := in.(*Unknown)
  52. out := out.(*Unknown)
  53. out.TypeMeta = in.TypeMeta
  54. if in.Raw != nil {
  55. in, out := &in.Raw, &out.Raw
  56. *out = make([]byte, len(*in))
  57. copy(*out, *in)
  58. } else {
  59. out.Raw = nil
  60. }
  61. out.ContentEncoding = in.ContentEncoding
  62. out.ContentType = in.ContentType
  63. return nil
  64. }
  65. }