zz_generated.deepcopy.go 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. // +build !ignore_autogenerated
  2. /*
  3. Copyright 2017 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 v1beta1
  16. import (
  17. v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  18. conversion "k8s.io/apimachinery/pkg/conversion"
  19. runtime "k8s.io/apimachinery/pkg/runtime"
  20. reflect "reflect"
  21. )
  22. func init() {
  23. SchemeBuilder.Register(RegisterDeepCopies)
  24. }
  25. // RegisterDeepCopies adds deep-copy functions to the given scheme. Public
  26. // to allow building arbitrary schemes.
  27. func RegisterDeepCopies(scheme *runtime.Scheme) error {
  28. return scheme.AddGeneratedDeepCopyFuncs(
  29. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_CertificateSigningRequest, InType: reflect.TypeOf(&CertificateSigningRequest{})},
  30. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_CertificateSigningRequestCondition, InType: reflect.TypeOf(&CertificateSigningRequestCondition{})},
  31. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_CertificateSigningRequestList, InType: reflect.TypeOf(&CertificateSigningRequestList{})},
  32. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_CertificateSigningRequestSpec, InType: reflect.TypeOf(&CertificateSigningRequestSpec{})},
  33. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_CertificateSigningRequestStatus, InType: reflect.TypeOf(&CertificateSigningRequestStatus{})},
  34. )
  35. }
  36. func DeepCopy_v1beta1_CertificateSigningRequest(in interface{}, out interface{}, c *conversion.Cloner) error {
  37. {
  38. in := in.(*CertificateSigningRequest)
  39. out := out.(*CertificateSigningRequest)
  40. *out = *in
  41. if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
  42. return err
  43. } else {
  44. out.ObjectMeta = *newVal.(*v1.ObjectMeta)
  45. }
  46. if err := DeepCopy_v1beta1_CertificateSigningRequestSpec(&in.Spec, &out.Spec, c); err != nil {
  47. return err
  48. }
  49. if err := DeepCopy_v1beta1_CertificateSigningRequestStatus(&in.Status, &out.Status, c); err != nil {
  50. return err
  51. }
  52. return nil
  53. }
  54. }
  55. func DeepCopy_v1beta1_CertificateSigningRequestCondition(in interface{}, out interface{}, c *conversion.Cloner) error {
  56. {
  57. in := in.(*CertificateSigningRequestCondition)
  58. out := out.(*CertificateSigningRequestCondition)
  59. *out = *in
  60. out.LastUpdateTime = in.LastUpdateTime.DeepCopy()
  61. return nil
  62. }
  63. }
  64. func DeepCopy_v1beta1_CertificateSigningRequestList(in interface{}, out interface{}, c *conversion.Cloner) error {
  65. {
  66. in := in.(*CertificateSigningRequestList)
  67. out := out.(*CertificateSigningRequestList)
  68. *out = *in
  69. if in.Items != nil {
  70. in, out := &in.Items, &out.Items
  71. *out = make([]CertificateSigningRequest, len(*in))
  72. for i := range *in {
  73. if err := DeepCopy_v1beta1_CertificateSigningRequest(&(*in)[i], &(*out)[i], c); err != nil {
  74. return err
  75. }
  76. }
  77. }
  78. return nil
  79. }
  80. }
  81. func DeepCopy_v1beta1_CertificateSigningRequestSpec(in interface{}, out interface{}, c *conversion.Cloner) error {
  82. {
  83. in := in.(*CertificateSigningRequestSpec)
  84. out := out.(*CertificateSigningRequestSpec)
  85. *out = *in
  86. if in.Request != nil {
  87. in, out := &in.Request, &out.Request
  88. *out = make([]byte, len(*in))
  89. copy(*out, *in)
  90. }
  91. if in.Usages != nil {
  92. in, out := &in.Usages, &out.Usages
  93. *out = make([]KeyUsage, len(*in))
  94. copy(*out, *in)
  95. }
  96. if in.Groups != nil {
  97. in, out := &in.Groups, &out.Groups
  98. *out = make([]string, len(*in))
  99. copy(*out, *in)
  100. }
  101. if in.Extra != nil {
  102. in, out := &in.Extra, &out.Extra
  103. *out = make(map[string]ExtraValue)
  104. for key, val := range *in {
  105. if newVal, err := c.DeepCopy(&val); err != nil {
  106. return err
  107. } else {
  108. (*out)[key] = *newVal.(*ExtraValue)
  109. }
  110. }
  111. }
  112. return nil
  113. }
  114. }
  115. func DeepCopy_v1beta1_CertificateSigningRequestStatus(in interface{}, out interface{}, c *conversion.Cloner) error {
  116. {
  117. in := in.(*CertificateSigningRequestStatus)
  118. out := out.(*CertificateSigningRequestStatus)
  119. *out = *in
  120. if in.Conditions != nil {
  121. in, out := &in.Conditions, &out.Conditions
  122. *out = make([]CertificateSigningRequestCondition, len(*in))
  123. for i := range *in {
  124. if err := DeepCopy_v1beta1_CertificateSigningRequestCondition(&(*in)[i], &(*out)[i], c); err != nil {
  125. return err
  126. }
  127. }
  128. }
  129. if in.Certificate != nil {
  130. in, out := &in.Certificate, &out.Certificate
  131. *out = make([]byte, len(*in))
  132. copy(*out, *in)
  133. }
  134. return nil
  135. }
  136. }