zz_generated.deepcopy.go 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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 certificates
  16. import (
  17. api "k8s.io/kubernetes/pkg/api"
  18. conversion "k8s.io/kubernetes/pkg/conversion"
  19. runtime "k8s.io/kubernetes/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_certificates_CertificateSigningRequest, InType: reflect.TypeOf(&CertificateSigningRequest{})},
  30. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_certificates_CertificateSigningRequestCondition, InType: reflect.TypeOf(&CertificateSigningRequestCondition{})},
  31. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_certificates_CertificateSigningRequestList, InType: reflect.TypeOf(&CertificateSigningRequestList{})},
  32. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_certificates_CertificateSigningRequestSpec, InType: reflect.TypeOf(&CertificateSigningRequestSpec{})},
  33. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_certificates_CertificateSigningRequestStatus, InType: reflect.TypeOf(&CertificateSigningRequestStatus{})},
  34. )
  35. }
  36. func DeepCopy_certificates_CertificateSigningRequest(in interface{}, out interface{}, c *conversion.Cloner) error {
  37. {
  38. in := in.(*CertificateSigningRequest)
  39. out := out.(*CertificateSigningRequest)
  40. out.TypeMeta = in.TypeMeta
  41. if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
  42. return err
  43. }
  44. if err := DeepCopy_certificates_CertificateSigningRequestSpec(&in.Spec, &out.Spec, c); err != nil {
  45. return err
  46. }
  47. if err := DeepCopy_certificates_CertificateSigningRequestStatus(&in.Status, &out.Status, c); err != nil {
  48. return err
  49. }
  50. return nil
  51. }
  52. }
  53. func DeepCopy_certificates_CertificateSigningRequestCondition(in interface{}, out interface{}, c *conversion.Cloner) error {
  54. {
  55. in := in.(*CertificateSigningRequestCondition)
  56. out := out.(*CertificateSigningRequestCondition)
  57. out.Type = in.Type
  58. out.Reason = in.Reason
  59. out.Message = in.Message
  60. out.LastUpdateTime = in.LastUpdateTime.DeepCopy()
  61. return nil
  62. }
  63. }
  64. func DeepCopy_certificates_CertificateSigningRequestList(in interface{}, out interface{}, c *conversion.Cloner) error {
  65. {
  66. in := in.(*CertificateSigningRequestList)
  67. out := out.(*CertificateSigningRequestList)
  68. out.TypeMeta = in.TypeMeta
  69. out.ListMeta = in.ListMeta
  70. if in.Items != nil {
  71. in, out := &in.Items, &out.Items
  72. *out = make([]CertificateSigningRequest, len(*in))
  73. for i := range *in {
  74. if err := DeepCopy_certificates_CertificateSigningRequest(&(*in)[i], &(*out)[i], c); err != nil {
  75. return err
  76. }
  77. }
  78. } else {
  79. out.Items = nil
  80. }
  81. return nil
  82. }
  83. }
  84. func DeepCopy_certificates_CertificateSigningRequestSpec(in interface{}, out interface{}, c *conversion.Cloner) error {
  85. {
  86. in := in.(*CertificateSigningRequestSpec)
  87. out := out.(*CertificateSigningRequestSpec)
  88. if in.Request != nil {
  89. in, out := &in.Request, &out.Request
  90. *out = make([]byte, len(*in))
  91. copy(*out, *in)
  92. } else {
  93. out.Request = nil
  94. }
  95. out.Username = in.Username
  96. out.UID = in.UID
  97. if in.Groups != nil {
  98. in, out := &in.Groups, &out.Groups
  99. *out = make([]string, len(*in))
  100. copy(*out, *in)
  101. } else {
  102. out.Groups = nil
  103. }
  104. return nil
  105. }
  106. }
  107. func DeepCopy_certificates_CertificateSigningRequestStatus(in interface{}, out interface{}, c *conversion.Cloner) error {
  108. {
  109. in := in.(*CertificateSigningRequestStatus)
  110. out := out.(*CertificateSigningRequestStatus)
  111. if in.Conditions != nil {
  112. in, out := &in.Conditions, &out.Conditions
  113. *out = make([]CertificateSigningRequestCondition, len(*in))
  114. for i := range *in {
  115. if err := DeepCopy_certificates_CertificateSigningRequestCondition(&(*in)[i], &(*out)[i], c); err != nil {
  116. return err
  117. }
  118. }
  119. } else {
  120. out.Conditions = nil
  121. }
  122. if in.Certificate != nil {
  123. in, out := &in.Certificate, &out.Certificate
  124. *out = make([]byte, len(*in))
  125. copy(*out, *in)
  126. } else {
  127. out.Certificate = nil
  128. }
  129. return nil
  130. }
  131. }