zz_generated.deepcopy.go 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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. corev1 "k8s.io/api/core/v1"
  19. runtime "k8s.io/apimachinery/pkg/runtime"
  20. )
  21. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  22. func (in *Endpoint) DeepCopyInto(out *Endpoint) {
  23. *out = *in
  24. if in.Addresses != nil {
  25. in, out := &in.Addresses, &out.Addresses
  26. *out = make([]string, len(*in))
  27. copy(*out, *in)
  28. }
  29. in.Conditions.DeepCopyInto(&out.Conditions)
  30. if in.Hostname != nil {
  31. in, out := &in.Hostname, &out.Hostname
  32. *out = new(string)
  33. **out = **in
  34. }
  35. if in.TargetRef != nil {
  36. in, out := &in.TargetRef, &out.TargetRef
  37. *out = new(corev1.ObjectReference)
  38. **out = **in
  39. }
  40. if in.DeprecatedTopology != nil {
  41. in, out := &in.DeprecatedTopology, &out.DeprecatedTopology
  42. *out = make(map[string]string, len(*in))
  43. for key, val := range *in {
  44. (*out)[key] = val
  45. }
  46. }
  47. if in.NodeName != nil {
  48. in, out := &in.NodeName, &out.NodeName
  49. *out = new(string)
  50. **out = **in
  51. }
  52. if in.Zone != nil {
  53. in, out := &in.Zone, &out.Zone
  54. *out = new(string)
  55. **out = **in
  56. }
  57. if in.Hints != nil {
  58. in, out := &in.Hints, &out.Hints
  59. *out = new(EndpointHints)
  60. (*in).DeepCopyInto(*out)
  61. }
  62. return
  63. }
  64. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint.
  65. func (in *Endpoint) DeepCopy() *Endpoint {
  66. if in == nil {
  67. return nil
  68. }
  69. out := new(Endpoint)
  70. in.DeepCopyInto(out)
  71. return out
  72. }
  73. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  74. func (in *EndpointConditions) DeepCopyInto(out *EndpointConditions) {
  75. *out = *in
  76. if in.Ready != nil {
  77. in, out := &in.Ready, &out.Ready
  78. *out = new(bool)
  79. **out = **in
  80. }
  81. if in.Serving != nil {
  82. in, out := &in.Serving, &out.Serving
  83. *out = new(bool)
  84. **out = **in
  85. }
  86. if in.Terminating != nil {
  87. in, out := &in.Terminating, &out.Terminating
  88. *out = new(bool)
  89. **out = **in
  90. }
  91. return
  92. }
  93. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointConditions.
  94. func (in *EndpointConditions) DeepCopy() *EndpointConditions {
  95. if in == nil {
  96. return nil
  97. }
  98. out := new(EndpointConditions)
  99. in.DeepCopyInto(out)
  100. return out
  101. }
  102. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  103. func (in *EndpointHints) DeepCopyInto(out *EndpointHints) {
  104. *out = *in
  105. if in.ForZones != nil {
  106. in, out := &in.ForZones, &out.ForZones
  107. *out = make([]ForZone, len(*in))
  108. copy(*out, *in)
  109. }
  110. return
  111. }
  112. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointHints.
  113. func (in *EndpointHints) DeepCopy() *EndpointHints {
  114. if in == nil {
  115. return nil
  116. }
  117. out := new(EndpointHints)
  118. in.DeepCopyInto(out)
  119. return out
  120. }
  121. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  122. func (in *EndpointPort) DeepCopyInto(out *EndpointPort) {
  123. *out = *in
  124. if in.Name != nil {
  125. in, out := &in.Name, &out.Name
  126. *out = new(string)
  127. **out = **in
  128. }
  129. if in.Protocol != nil {
  130. in, out := &in.Protocol, &out.Protocol
  131. *out = new(corev1.Protocol)
  132. **out = **in
  133. }
  134. if in.Port != nil {
  135. in, out := &in.Port, &out.Port
  136. *out = new(int32)
  137. **out = **in
  138. }
  139. if in.AppProtocol != nil {
  140. in, out := &in.AppProtocol, &out.AppProtocol
  141. *out = new(string)
  142. **out = **in
  143. }
  144. return
  145. }
  146. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointPort.
  147. func (in *EndpointPort) DeepCopy() *EndpointPort {
  148. if in == nil {
  149. return nil
  150. }
  151. out := new(EndpointPort)
  152. in.DeepCopyInto(out)
  153. return out
  154. }
  155. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  156. func (in *EndpointSlice) DeepCopyInto(out *EndpointSlice) {
  157. *out = *in
  158. out.TypeMeta = in.TypeMeta
  159. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  160. if in.Endpoints != nil {
  161. in, out := &in.Endpoints, &out.Endpoints
  162. *out = make([]Endpoint, len(*in))
  163. for i := range *in {
  164. (*in)[i].DeepCopyInto(&(*out)[i])
  165. }
  166. }
  167. if in.Ports != nil {
  168. in, out := &in.Ports, &out.Ports
  169. *out = make([]EndpointPort, len(*in))
  170. for i := range *in {
  171. (*in)[i].DeepCopyInto(&(*out)[i])
  172. }
  173. }
  174. return
  175. }
  176. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointSlice.
  177. func (in *EndpointSlice) DeepCopy() *EndpointSlice {
  178. if in == nil {
  179. return nil
  180. }
  181. out := new(EndpointSlice)
  182. in.DeepCopyInto(out)
  183. return out
  184. }
  185. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  186. func (in *EndpointSlice) DeepCopyObject() runtime.Object {
  187. if c := in.DeepCopy(); c != nil {
  188. return c
  189. }
  190. return nil
  191. }
  192. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  193. func (in *EndpointSliceList) DeepCopyInto(out *EndpointSliceList) {
  194. *out = *in
  195. out.TypeMeta = in.TypeMeta
  196. in.ListMeta.DeepCopyInto(&out.ListMeta)
  197. if in.Items != nil {
  198. in, out := &in.Items, &out.Items
  199. *out = make([]EndpointSlice, len(*in))
  200. for i := range *in {
  201. (*in)[i].DeepCopyInto(&(*out)[i])
  202. }
  203. }
  204. return
  205. }
  206. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointSliceList.
  207. func (in *EndpointSliceList) DeepCopy() *EndpointSliceList {
  208. if in == nil {
  209. return nil
  210. }
  211. out := new(EndpointSliceList)
  212. in.DeepCopyInto(out)
  213. return out
  214. }
  215. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  216. func (in *EndpointSliceList) DeepCopyObject() runtime.Object {
  217. if c := in.DeepCopy(); c != nil {
  218. return c
  219. }
  220. return nil
  221. }
  222. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  223. func (in *ForZone) DeepCopyInto(out *ForZone) {
  224. *out = *in
  225. return
  226. }
  227. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ForZone.
  228. func (in *ForZone) DeepCopy() *ForZone {
  229. if in == nil {
  230. return nil
  231. }
  232. out := new(ForZone)
  233. in.DeepCopyInto(out)
  234. return out
  235. }