zz_generated.deepcopy.go 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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 v1
  17. import (
  18. runtime "k8s.io/apimachinery/pkg/runtime"
  19. )
  20. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  21. func (in *CertificateSigningRequest) DeepCopyInto(out *CertificateSigningRequest) {
  22. *out = *in
  23. out.TypeMeta = in.TypeMeta
  24. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  25. in.Spec.DeepCopyInto(&out.Spec)
  26. in.Status.DeepCopyInto(&out.Status)
  27. return
  28. }
  29. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequest.
  30. func (in *CertificateSigningRequest) DeepCopy() *CertificateSigningRequest {
  31. if in == nil {
  32. return nil
  33. }
  34. out := new(CertificateSigningRequest)
  35. in.DeepCopyInto(out)
  36. return out
  37. }
  38. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  39. func (in *CertificateSigningRequest) DeepCopyObject() runtime.Object {
  40. if c := in.DeepCopy(); c != nil {
  41. return c
  42. }
  43. return nil
  44. }
  45. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  46. func (in *CertificateSigningRequestCondition) DeepCopyInto(out *CertificateSigningRequestCondition) {
  47. *out = *in
  48. in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)
  49. in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
  50. return
  51. }
  52. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestCondition.
  53. func (in *CertificateSigningRequestCondition) DeepCopy() *CertificateSigningRequestCondition {
  54. if in == nil {
  55. return nil
  56. }
  57. out := new(CertificateSigningRequestCondition)
  58. in.DeepCopyInto(out)
  59. return out
  60. }
  61. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  62. func (in *CertificateSigningRequestList) DeepCopyInto(out *CertificateSigningRequestList) {
  63. *out = *in
  64. out.TypeMeta = in.TypeMeta
  65. in.ListMeta.DeepCopyInto(&out.ListMeta)
  66. if in.Items != nil {
  67. in, out := &in.Items, &out.Items
  68. *out = make([]CertificateSigningRequest, len(*in))
  69. for i := range *in {
  70. (*in)[i].DeepCopyInto(&(*out)[i])
  71. }
  72. }
  73. return
  74. }
  75. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestList.
  76. func (in *CertificateSigningRequestList) DeepCopy() *CertificateSigningRequestList {
  77. if in == nil {
  78. return nil
  79. }
  80. out := new(CertificateSigningRequestList)
  81. in.DeepCopyInto(out)
  82. return out
  83. }
  84. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  85. func (in *CertificateSigningRequestList) DeepCopyObject() runtime.Object {
  86. if c := in.DeepCopy(); c != nil {
  87. return c
  88. }
  89. return nil
  90. }
  91. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  92. func (in *CertificateSigningRequestSpec) DeepCopyInto(out *CertificateSigningRequestSpec) {
  93. *out = *in
  94. if in.Request != nil {
  95. in, out := &in.Request, &out.Request
  96. *out = make([]byte, len(*in))
  97. copy(*out, *in)
  98. }
  99. if in.ExpirationSeconds != nil {
  100. in, out := &in.ExpirationSeconds, &out.ExpirationSeconds
  101. *out = new(int32)
  102. **out = **in
  103. }
  104. if in.Usages != nil {
  105. in, out := &in.Usages, &out.Usages
  106. *out = make([]KeyUsage, len(*in))
  107. copy(*out, *in)
  108. }
  109. if in.Groups != nil {
  110. in, out := &in.Groups, &out.Groups
  111. *out = make([]string, len(*in))
  112. copy(*out, *in)
  113. }
  114. if in.Extra != nil {
  115. in, out := &in.Extra, &out.Extra
  116. *out = make(map[string]ExtraValue, len(*in))
  117. for key, val := range *in {
  118. var outVal []string
  119. if val == nil {
  120. (*out)[key] = nil
  121. } else {
  122. in, out := &val, &outVal
  123. *out = make(ExtraValue, len(*in))
  124. copy(*out, *in)
  125. }
  126. (*out)[key] = outVal
  127. }
  128. }
  129. return
  130. }
  131. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestSpec.
  132. func (in *CertificateSigningRequestSpec) DeepCopy() *CertificateSigningRequestSpec {
  133. if in == nil {
  134. return nil
  135. }
  136. out := new(CertificateSigningRequestSpec)
  137. in.DeepCopyInto(out)
  138. return out
  139. }
  140. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  141. func (in *CertificateSigningRequestStatus) DeepCopyInto(out *CertificateSigningRequestStatus) {
  142. *out = *in
  143. if in.Conditions != nil {
  144. in, out := &in.Conditions, &out.Conditions
  145. *out = make([]CertificateSigningRequestCondition, len(*in))
  146. for i := range *in {
  147. (*in)[i].DeepCopyInto(&(*out)[i])
  148. }
  149. }
  150. if in.Certificate != nil {
  151. in, out := &in.Certificate, &out.Certificate
  152. *out = make([]byte, len(*in))
  153. copy(*out, *in)
  154. }
  155. return
  156. }
  157. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestStatus.
  158. func (in *CertificateSigningRequestStatus) DeepCopy() *CertificateSigningRequestStatus {
  159. if in == nil {
  160. return nil
  161. }
  162. out := new(CertificateSigningRequestStatus)
  163. in.DeepCopyInto(out)
  164. return out
  165. }
  166. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  167. func (in ExtraValue) DeepCopyInto(out *ExtraValue) {
  168. {
  169. in := &in
  170. *out = make(ExtraValue, len(*in))
  171. copy(*out, *in)
  172. return
  173. }
  174. }
  175. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtraValue.
  176. func (in ExtraValue) DeepCopy() ExtraValue {
  177. if in == nil {
  178. return nil
  179. }
  180. out := new(ExtraValue)
  181. in.DeepCopyInto(out)
  182. return *out
  183. }