zz_generated.deepcopy.go 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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. if in.ForNodes != nil {
  111. in, out := &in.ForNodes, &out.ForNodes
  112. *out = make([]ForNode, len(*in))
  113. copy(*out, *in)
  114. }
  115. return
  116. }
  117. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointHints.
  118. func (in *EndpointHints) DeepCopy() *EndpointHints {
  119. if in == nil {
  120. return nil
  121. }
  122. out := new(EndpointHints)
  123. in.DeepCopyInto(out)
  124. return out
  125. }
  126. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  127. func (in *EndpointPort) DeepCopyInto(out *EndpointPort) {
  128. *out = *in
  129. if in.Name != nil {
  130. in, out := &in.Name, &out.Name
  131. *out = new(string)
  132. **out = **in
  133. }
  134. if in.Protocol != nil {
  135. in, out := &in.Protocol, &out.Protocol
  136. *out = new(corev1.Protocol)
  137. **out = **in
  138. }
  139. if in.Port != nil {
  140. in, out := &in.Port, &out.Port
  141. *out = new(int32)
  142. **out = **in
  143. }
  144. if in.AppProtocol != nil {
  145. in, out := &in.AppProtocol, &out.AppProtocol
  146. *out = new(string)
  147. **out = **in
  148. }
  149. return
  150. }
  151. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointPort.
  152. func (in *EndpointPort) DeepCopy() *EndpointPort {
  153. if in == nil {
  154. return nil
  155. }
  156. out := new(EndpointPort)
  157. in.DeepCopyInto(out)
  158. return out
  159. }
  160. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  161. func (in *EndpointSlice) DeepCopyInto(out *EndpointSlice) {
  162. *out = *in
  163. out.TypeMeta = in.TypeMeta
  164. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  165. if in.Endpoints != nil {
  166. in, out := &in.Endpoints, &out.Endpoints
  167. *out = make([]Endpoint, len(*in))
  168. for i := range *in {
  169. (*in)[i].DeepCopyInto(&(*out)[i])
  170. }
  171. }
  172. if in.Ports != nil {
  173. in, out := &in.Ports, &out.Ports
  174. *out = make([]EndpointPort, len(*in))
  175. for i := range *in {
  176. (*in)[i].DeepCopyInto(&(*out)[i])
  177. }
  178. }
  179. return
  180. }
  181. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointSlice.
  182. func (in *EndpointSlice) DeepCopy() *EndpointSlice {
  183. if in == nil {
  184. return nil
  185. }
  186. out := new(EndpointSlice)
  187. in.DeepCopyInto(out)
  188. return out
  189. }
  190. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  191. func (in *EndpointSlice) DeepCopyObject() runtime.Object {
  192. if c := in.DeepCopy(); c != nil {
  193. return c
  194. }
  195. return nil
  196. }
  197. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  198. func (in *EndpointSliceList) DeepCopyInto(out *EndpointSliceList) {
  199. *out = *in
  200. out.TypeMeta = in.TypeMeta
  201. in.ListMeta.DeepCopyInto(&out.ListMeta)
  202. if in.Items != nil {
  203. in, out := &in.Items, &out.Items
  204. *out = make([]EndpointSlice, len(*in))
  205. for i := range *in {
  206. (*in)[i].DeepCopyInto(&(*out)[i])
  207. }
  208. }
  209. return
  210. }
  211. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointSliceList.
  212. func (in *EndpointSliceList) DeepCopy() *EndpointSliceList {
  213. if in == nil {
  214. return nil
  215. }
  216. out := new(EndpointSliceList)
  217. in.DeepCopyInto(out)
  218. return out
  219. }
  220. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  221. func (in *EndpointSliceList) DeepCopyObject() runtime.Object {
  222. if c := in.DeepCopy(); c != nil {
  223. return c
  224. }
  225. return nil
  226. }
  227. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  228. func (in *ForNode) DeepCopyInto(out *ForNode) {
  229. *out = *in
  230. return
  231. }
  232. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ForNode.
  233. func (in *ForNode) DeepCopy() *ForNode {
  234. if in == nil {
  235. return nil
  236. }
  237. out := new(ForNode)
  238. in.DeepCopyInto(out)
  239. return out
  240. }
  241. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  242. func (in *ForZone) DeepCopyInto(out *ForZone) {
  243. *out = *in
  244. return
  245. }
  246. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ForZone.
  247. func (in *ForZone) DeepCopy() *ForZone {
  248. if in == nil {
  249. return nil
  250. }
  251. out := new(ForZone)
  252. in.DeepCopyInto(out)
  253. return out
  254. }