zz_generated.deepcopy.go 6.6 KB

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