zz_generated.deepcopy.go 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  1. // +build !ignore_autogenerated
  2. /*
  3. Copyright 2016 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. // This file was autogenerated by deepcopy-gen. Do not edit it manually!
  15. package unversioned
  16. import (
  17. conversion "k8s.io/kubernetes/pkg/conversion"
  18. time "time"
  19. )
  20. func DeepCopy_unversioned_APIGroup(in interface{}, out interface{}, c *conversion.Cloner) error {
  21. {
  22. in := in.(*APIGroup)
  23. out := out.(*APIGroup)
  24. out.TypeMeta = in.TypeMeta
  25. out.Name = in.Name
  26. if in.Versions != nil {
  27. in, out := &in.Versions, &out.Versions
  28. *out = make([]GroupVersionForDiscovery, len(*in))
  29. for i := range *in {
  30. (*out)[i] = (*in)[i]
  31. }
  32. } else {
  33. out.Versions = nil
  34. }
  35. out.PreferredVersion = in.PreferredVersion
  36. if in.ServerAddressByClientCIDRs != nil {
  37. in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs
  38. *out = make([]ServerAddressByClientCIDR, len(*in))
  39. for i := range *in {
  40. (*out)[i] = (*in)[i]
  41. }
  42. } else {
  43. out.ServerAddressByClientCIDRs = nil
  44. }
  45. return nil
  46. }
  47. }
  48. func DeepCopy_unversioned_APIGroupList(in interface{}, out interface{}, c *conversion.Cloner) error {
  49. {
  50. in := in.(*APIGroupList)
  51. out := out.(*APIGroupList)
  52. out.TypeMeta = in.TypeMeta
  53. if in.Groups != nil {
  54. in, out := &in.Groups, &out.Groups
  55. *out = make([]APIGroup, len(*in))
  56. for i := range *in {
  57. if err := DeepCopy_unversioned_APIGroup(&(*in)[i], &(*out)[i], c); err != nil {
  58. return err
  59. }
  60. }
  61. } else {
  62. out.Groups = nil
  63. }
  64. return nil
  65. }
  66. }
  67. func DeepCopy_unversioned_APIResource(in interface{}, out interface{}, c *conversion.Cloner) error {
  68. {
  69. in := in.(*APIResource)
  70. out := out.(*APIResource)
  71. out.Name = in.Name
  72. out.Namespaced = in.Namespaced
  73. out.Kind = in.Kind
  74. return nil
  75. }
  76. }
  77. func DeepCopy_unversioned_APIResourceList(in interface{}, out interface{}, c *conversion.Cloner) error {
  78. {
  79. in := in.(*APIResourceList)
  80. out := out.(*APIResourceList)
  81. out.TypeMeta = in.TypeMeta
  82. out.GroupVersion = in.GroupVersion
  83. if in.APIResources != nil {
  84. in, out := &in.APIResources, &out.APIResources
  85. *out = make([]APIResource, len(*in))
  86. for i := range *in {
  87. (*out)[i] = (*in)[i]
  88. }
  89. } else {
  90. out.APIResources = nil
  91. }
  92. return nil
  93. }
  94. }
  95. func DeepCopy_unversioned_APIVersions(in interface{}, out interface{}, c *conversion.Cloner) error {
  96. {
  97. in := in.(*APIVersions)
  98. out := out.(*APIVersions)
  99. out.TypeMeta = in.TypeMeta
  100. if in.Versions != nil {
  101. in, out := &in.Versions, &out.Versions
  102. *out = make([]string, len(*in))
  103. copy(*out, *in)
  104. } else {
  105. out.Versions = nil
  106. }
  107. if in.ServerAddressByClientCIDRs != nil {
  108. in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs
  109. *out = make([]ServerAddressByClientCIDR, len(*in))
  110. for i := range *in {
  111. (*out)[i] = (*in)[i]
  112. }
  113. } else {
  114. out.ServerAddressByClientCIDRs = nil
  115. }
  116. return nil
  117. }
  118. }
  119. func DeepCopy_unversioned_Duration(in interface{}, out interface{}, c *conversion.Cloner) error {
  120. {
  121. in := in.(*Duration)
  122. out := out.(*Duration)
  123. out.Duration = in.Duration
  124. return nil
  125. }
  126. }
  127. func DeepCopy_unversioned_ExportOptions(in interface{}, out interface{}, c *conversion.Cloner) error {
  128. {
  129. in := in.(*ExportOptions)
  130. out := out.(*ExportOptions)
  131. out.TypeMeta = in.TypeMeta
  132. out.Export = in.Export
  133. out.Exact = in.Exact
  134. return nil
  135. }
  136. }
  137. func DeepCopy_unversioned_GroupKind(in interface{}, out interface{}, c *conversion.Cloner) error {
  138. {
  139. in := in.(*GroupKind)
  140. out := out.(*GroupKind)
  141. out.Group = in.Group
  142. out.Kind = in.Kind
  143. return nil
  144. }
  145. }
  146. func DeepCopy_unversioned_GroupResource(in interface{}, out interface{}, c *conversion.Cloner) error {
  147. {
  148. in := in.(*GroupResource)
  149. out := out.(*GroupResource)
  150. out.Group = in.Group
  151. out.Resource = in.Resource
  152. return nil
  153. }
  154. }
  155. func DeepCopy_unversioned_GroupVersion(in interface{}, out interface{}, c *conversion.Cloner) error {
  156. {
  157. in := in.(*GroupVersion)
  158. out := out.(*GroupVersion)
  159. out.Group = in.Group
  160. out.Version = in.Version
  161. return nil
  162. }
  163. }
  164. func DeepCopy_unversioned_GroupVersionForDiscovery(in interface{}, out interface{}, c *conversion.Cloner) error {
  165. {
  166. in := in.(*GroupVersionForDiscovery)
  167. out := out.(*GroupVersionForDiscovery)
  168. out.GroupVersion = in.GroupVersion
  169. out.Version = in.Version
  170. return nil
  171. }
  172. }
  173. func DeepCopy_unversioned_GroupVersionKind(in interface{}, out interface{}, c *conversion.Cloner) error {
  174. {
  175. in := in.(*GroupVersionKind)
  176. out := out.(*GroupVersionKind)
  177. out.Group = in.Group
  178. out.Version = in.Version
  179. out.Kind = in.Kind
  180. return nil
  181. }
  182. }
  183. func DeepCopy_unversioned_GroupVersionResource(in interface{}, out interface{}, c *conversion.Cloner) error {
  184. {
  185. in := in.(*GroupVersionResource)
  186. out := out.(*GroupVersionResource)
  187. out.Group = in.Group
  188. out.Version = in.Version
  189. out.Resource = in.Resource
  190. return nil
  191. }
  192. }
  193. func DeepCopy_unversioned_LabelSelector(in interface{}, out interface{}, c *conversion.Cloner) error {
  194. {
  195. in := in.(*LabelSelector)
  196. out := out.(*LabelSelector)
  197. if in.MatchLabels != nil {
  198. in, out := &in.MatchLabels, &out.MatchLabels
  199. *out = make(map[string]string)
  200. for key, val := range *in {
  201. (*out)[key] = val
  202. }
  203. } else {
  204. out.MatchLabels = nil
  205. }
  206. if in.MatchExpressions != nil {
  207. in, out := &in.MatchExpressions, &out.MatchExpressions
  208. *out = make([]LabelSelectorRequirement, len(*in))
  209. for i := range *in {
  210. if err := DeepCopy_unversioned_LabelSelectorRequirement(&(*in)[i], &(*out)[i], c); err != nil {
  211. return err
  212. }
  213. }
  214. } else {
  215. out.MatchExpressions = nil
  216. }
  217. return nil
  218. }
  219. }
  220. func DeepCopy_unversioned_LabelSelectorRequirement(in interface{}, out interface{}, c *conversion.Cloner) error {
  221. {
  222. in := in.(*LabelSelectorRequirement)
  223. out := out.(*LabelSelectorRequirement)
  224. out.Key = in.Key
  225. out.Operator = in.Operator
  226. if in.Values != nil {
  227. in, out := &in.Values, &out.Values
  228. *out = make([]string, len(*in))
  229. copy(*out, *in)
  230. } else {
  231. out.Values = nil
  232. }
  233. return nil
  234. }
  235. }
  236. func DeepCopy_unversioned_ListMeta(in interface{}, out interface{}, c *conversion.Cloner) error {
  237. {
  238. in := in.(*ListMeta)
  239. out := out.(*ListMeta)
  240. out.SelfLink = in.SelfLink
  241. out.ResourceVersion = in.ResourceVersion
  242. return nil
  243. }
  244. }
  245. func DeepCopy_unversioned_Patch(in interface{}, out interface{}, c *conversion.Cloner) error {
  246. {
  247. in := in.(*Patch)
  248. out := out.(*Patch)
  249. _ = in
  250. _ = out
  251. return nil
  252. }
  253. }
  254. func DeepCopy_unversioned_RootPaths(in interface{}, out interface{}, c *conversion.Cloner) error {
  255. {
  256. in := in.(*RootPaths)
  257. out := out.(*RootPaths)
  258. if in.Paths != nil {
  259. in, out := &in.Paths, &out.Paths
  260. *out = make([]string, len(*in))
  261. copy(*out, *in)
  262. } else {
  263. out.Paths = nil
  264. }
  265. return nil
  266. }
  267. }
  268. func DeepCopy_unversioned_ServerAddressByClientCIDR(in interface{}, out interface{}, c *conversion.Cloner) error {
  269. {
  270. in := in.(*ServerAddressByClientCIDR)
  271. out := out.(*ServerAddressByClientCIDR)
  272. out.ClientCIDR = in.ClientCIDR
  273. out.ServerAddress = in.ServerAddress
  274. return nil
  275. }
  276. }
  277. func DeepCopy_unversioned_Status(in interface{}, out interface{}, c *conversion.Cloner) error {
  278. {
  279. in := in.(*Status)
  280. out := out.(*Status)
  281. out.TypeMeta = in.TypeMeta
  282. out.ListMeta = in.ListMeta
  283. out.Status = in.Status
  284. out.Message = in.Message
  285. out.Reason = in.Reason
  286. if in.Details != nil {
  287. in, out := &in.Details, &out.Details
  288. *out = new(StatusDetails)
  289. if err := DeepCopy_unversioned_StatusDetails(*in, *out, c); err != nil {
  290. return err
  291. }
  292. } else {
  293. out.Details = nil
  294. }
  295. out.Code = in.Code
  296. return nil
  297. }
  298. }
  299. func DeepCopy_unversioned_StatusCause(in interface{}, out interface{}, c *conversion.Cloner) error {
  300. {
  301. in := in.(*StatusCause)
  302. out := out.(*StatusCause)
  303. out.Type = in.Type
  304. out.Message = in.Message
  305. out.Field = in.Field
  306. return nil
  307. }
  308. }
  309. func DeepCopy_unversioned_StatusDetails(in interface{}, out interface{}, c *conversion.Cloner) error {
  310. {
  311. in := in.(*StatusDetails)
  312. out := out.(*StatusDetails)
  313. out.Name = in.Name
  314. out.Group = in.Group
  315. out.Kind = in.Kind
  316. if in.Causes != nil {
  317. in, out := &in.Causes, &out.Causes
  318. *out = make([]StatusCause, len(*in))
  319. for i := range *in {
  320. (*out)[i] = (*in)[i]
  321. }
  322. } else {
  323. out.Causes = nil
  324. }
  325. out.RetryAfterSeconds = in.RetryAfterSeconds
  326. return nil
  327. }
  328. }
  329. func DeepCopy_unversioned_Time(in interface{}, out interface{}, c *conversion.Cloner) error {
  330. {
  331. in := in.(*Time)
  332. out := out.(*Time)
  333. if newVal, err := c.DeepCopy(&in.Time); err != nil {
  334. return err
  335. } else {
  336. out.Time = *newVal.(*time.Time)
  337. }
  338. return nil
  339. }
  340. }
  341. func DeepCopy_unversioned_Timestamp(in interface{}, out interface{}, c *conversion.Cloner) error {
  342. {
  343. in := in.(*Timestamp)
  344. out := out.(*Timestamp)
  345. out.Seconds = in.Seconds
  346. out.Nanos = in.Nanos
  347. return nil
  348. }
  349. }
  350. func DeepCopy_unversioned_TypeMeta(in interface{}, out interface{}, c *conversion.Cloner) error {
  351. {
  352. in := in.(*TypeMeta)
  353. out := out.(*TypeMeta)
  354. out.Kind = in.Kind
  355. out.APIVersion = in.APIVersion
  356. return nil
  357. }
  358. }