zz_generated.deepcopy.go 6.5 KB

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