zz_generated.deepcopy.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  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 storage
  16. import (
  17. runtime "k8s.io/apimachinery/pkg/runtime"
  18. core "k8s.io/kubernetes/pkg/apis/core"
  19. )
  20. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  21. func (in *CSIDriver) DeepCopyInto(out *CSIDriver) {
  22. *out = *in
  23. out.TypeMeta = in.TypeMeta
  24. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  25. in.Spec.DeepCopyInto(&out.Spec)
  26. return
  27. }
  28. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIDriver.
  29. func (in *CSIDriver) DeepCopy() *CSIDriver {
  30. if in == nil {
  31. return nil
  32. }
  33. out := new(CSIDriver)
  34. in.DeepCopyInto(out)
  35. return out
  36. }
  37. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  38. func (in *CSIDriver) DeepCopyObject() runtime.Object {
  39. if c := in.DeepCopy(); c != nil {
  40. return c
  41. }
  42. return nil
  43. }
  44. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  45. func (in *CSIDriverList) DeepCopyInto(out *CSIDriverList) {
  46. *out = *in
  47. out.TypeMeta = in.TypeMeta
  48. in.ListMeta.DeepCopyInto(&out.ListMeta)
  49. if in.Items != nil {
  50. in, out := &in.Items, &out.Items
  51. *out = make([]CSIDriver, len(*in))
  52. for i := range *in {
  53. (*in)[i].DeepCopyInto(&(*out)[i])
  54. }
  55. }
  56. return
  57. }
  58. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIDriverList.
  59. func (in *CSIDriverList) DeepCopy() *CSIDriverList {
  60. if in == nil {
  61. return nil
  62. }
  63. out := new(CSIDriverList)
  64. in.DeepCopyInto(out)
  65. return out
  66. }
  67. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  68. func (in *CSIDriverList) DeepCopyObject() runtime.Object {
  69. if c := in.DeepCopy(); c != nil {
  70. return c
  71. }
  72. return nil
  73. }
  74. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  75. func (in *CSIDriverSpec) DeepCopyInto(out *CSIDriverSpec) {
  76. *out = *in
  77. if in.AttachRequired != nil {
  78. in, out := &in.AttachRequired, &out.AttachRequired
  79. *out = new(bool)
  80. **out = **in
  81. }
  82. if in.PodInfoOnMount != nil {
  83. in, out := &in.PodInfoOnMount, &out.PodInfoOnMount
  84. *out = new(bool)
  85. **out = **in
  86. }
  87. if in.VolumeLifecycleModes != nil {
  88. in, out := &in.VolumeLifecycleModes, &out.VolumeLifecycleModes
  89. *out = make([]VolumeLifecycleMode, len(*in))
  90. copy(*out, *in)
  91. }
  92. return
  93. }
  94. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIDriverSpec.
  95. func (in *CSIDriverSpec) DeepCopy() *CSIDriverSpec {
  96. if in == nil {
  97. return nil
  98. }
  99. out := new(CSIDriverSpec)
  100. in.DeepCopyInto(out)
  101. return out
  102. }
  103. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  104. func (in *CSINode) DeepCopyInto(out *CSINode) {
  105. *out = *in
  106. out.TypeMeta = in.TypeMeta
  107. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  108. in.Spec.DeepCopyInto(&out.Spec)
  109. return
  110. }
  111. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSINode.
  112. func (in *CSINode) DeepCopy() *CSINode {
  113. if in == nil {
  114. return nil
  115. }
  116. out := new(CSINode)
  117. in.DeepCopyInto(out)
  118. return out
  119. }
  120. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  121. func (in *CSINode) DeepCopyObject() runtime.Object {
  122. if c := in.DeepCopy(); c != nil {
  123. return c
  124. }
  125. return nil
  126. }
  127. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  128. func (in *CSINodeDriver) DeepCopyInto(out *CSINodeDriver) {
  129. *out = *in
  130. if in.TopologyKeys != nil {
  131. in, out := &in.TopologyKeys, &out.TopologyKeys
  132. *out = make([]string, len(*in))
  133. copy(*out, *in)
  134. }
  135. if in.Allocatable != nil {
  136. in, out := &in.Allocatable, &out.Allocatable
  137. *out = new(VolumeNodeResources)
  138. (*in).DeepCopyInto(*out)
  139. }
  140. return
  141. }
  142. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSINodeDriver.
  143. func (in *CSINodeDriver) DeepCopy() *CSINodeDriver {
  144. if in == nil {
  145. return nil
  146. }
  147. out := new(CSINodeDriver)
  148. in.DeepCopyInto(out)
  149. return out
  150. }
  151. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  152. func (in *CSINodeList) DeepCopyInto(out *CSINodeList) {
  153. *out = *in
  154. out.TypeMeta = in.TypeMeta
  155. in.ListMeta.DeepCopyInto(&out.ListMeta)
  156. if in.Items != nil {
  157. in, out := &in.Items, &out.Items
  158. *out = make([]CSINode, len(*in))
  159. for i := range *in {
  160. (*in)[i].DeepCopyInto(&(*out)[i])
  161. }
  162. }
  163. return
  164. }
  165. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSINodeList.
  166. func (in *CSINodeList) DeepCopy() *CSINodeList {
  167. if in == nil {
  168. return nil
  169. }
  170. out := new(CSINodeList)
  171. in.DeepCopyInto(out)
  172. return out
  173. }
  174. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  175. func (in *CSINodeList) DeepCopyObject() runtime.Object {
  176. if c := in.DeepCopy(); c != nil {
  177. return c
  178. }
  179. return nil
  180. }
  181. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  182. func (in *CSINodeSpec) DeepCopyInto(out *CSINodeSpec) {
  183. *out = *in
  184. if in.Drivers != nil {
  185. in, out := &in.Drivers, &out.Drivers
  186. *out = make([]CSINodeDriver, len(*in))
  187. for i := range *in {
  188. (*in)[i].DeepCopyInto(&(*out)[i])
  189. }
  190. }
  191. return
  192. }
  193. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSINodeSpec.
  194. func (in *CSINodeSpec) DeepCopy() *CSINodeSpec {
  195. if in == nil {
  196. return nil
  197. }
  198. out := new(CSINodeSpec)
  199. in.DeepCopyInto(out)
  200. return out
  201. }
  202. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  203. func (in *StorageClass) DeepCopyInto(out *StorageClass) {
  204. *out = *in
  205. out.TypeMeta = in.TypeMeta
  206. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  207. if in.Parameters != nil {
  208. in, out := &in.Parameters, &out.Parameters
  209. *out = make(map[string]string, len(*in))
  210. for key, val := range *in {
  211. (*out)[key] = val
  212. }
  213. }
  214. if in.ReclaimPolicy != nil {
  215. in, out := &in.ReclaimPolicy, &out.ReclaimPolicy
  216. *out = new(core.PersistentVolumeReclaimPolicy)
  217. **out = **in
  218. }
  219. if in.MountOptions != nil {
  220. in, out := &in.MountOptions, &out.MountOptions
  221. *out = make([]string, len(*in))
  222. copy(*out, *in)
  223. }
  224. if in.AllowVolumeExpansion != nil {
  225. in, out := &in.AllowVolumeExpansion, &out.AllowVolumeExpansion
  226. *out = new(bool)
  227. **out = **in
  228. }
  229. if in.VolumeBindingMode != nil {
  230. in, out := &in.VolumeBindingMode, &out.VolumeBindingMode
  231. *out = new(VolumeBindingMode)
  232. **out = **in
  233. }
  234. if in.AllowedTopologies != nil {
  235. in, out := &in.AllowedTopologies, &out.AllowedTopologies
  236. *out = make([]core.TopologySelectorTerm, len(*in))
  237. for i := range *in {
  238. (*in)[i].DeepCopyInto(&(*out)[i])
  239. }
  240. }
  241. return
  242. }
  243. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClass.
  244. func (in *StorageClass) DeepCopy() *StorageClass {
  245. if in == nil {
  246. return nil
  247. }
  248. out := new(StorageClass)
  249. in.DeepCopyInto(out)
  250. return out
  251. }
  252. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  253. func (in *StorageClass) DeepCopyObject() runtime.Object {
  254. if c := in.DeepCopy(); c != nil {
  255. return c
  256. }
  257. return nil
  258. }
  259. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  260. func (in *StorageClassList) DeepCopyInto(out *StorageClassList) {
  261. *out = *in
  262. out.TypeMeta = in.TypeMeta
  263. in.ListMeta.DeepCopyInto(&out.ListMeta)
  264. if in.Items != nil {
  265. in, out := &in.Items, &out.Items
  266. *out = make([]StorageClass, len(*in))
  267. for i := range *in {
  268. (*in)[i].DeepCopyInto(&(*out)[i])
  269. }
  270. }
  271. return
  272. }
  273. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassList.
  274. func (in *StorageClassList) DeepCopy() *StorageClassList {
  275. if in == nil {
  276. return nil
  277. }
  278. out := new(StorageClassList)
  279. in.DeepCopyInto(out)
  280. return out
  281. }
  282. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  283. func (in *StorageClassList) DeepCopyObject() runtime.Object {
  284. if c := in.DeepCopy(); c != nil {
  285. return c
  286. }
  287. return nil
  288. }
  289. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  290. func (in *VolumeAttachment) DeepCopyInto(out *VolumeAttachment) {
  291. *out = *in
  292. out.TypeMeta = in.TypeMeta
  293. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  294. in.Spec.DeepCopyInto(&out.Spec)
  295. in.Status.DeepCopyInto(&out.Status)
  296. return
  297. }
  298. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachment.
  299. func (in *VolumeAttachment) DeepCopy() *VolumeAttachment {
  300. if in == nil {
  301. return nil
  302. }
  303. out := new(VolumeAttachment)
  304. in.DeepCopyInto(out)
  305. return out
  306. }
  307. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  308. func (in *VolumeAttachment) DeepCopyObject() runtime.Object {
  309. if c := in.DeepCopy(); c != nil {
  310. return c
  311. }
  312. return nil
  313. }
  314. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  315. func (in *VolumeAttachmentList) DeepCopyInto(out *VolumeAttachmentList) {
  316. *out = *in
  317. out.TypeMeta = in.TypeMeta
  318. in.ListMeta.DeepCopyInto(&out.ListMeta)
  319. if in.Items != nil {
  320. in, out := &in.Items, &out.Items
  321. *out = make([]VolumeAttachment, len(*in))
  322. for i := range *in {
  323. (*in)[i].DeepCopyInto(&(*out)[i])
  324. }
  325. }
  326. return
  327. }
  328. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentList.
  329. func (in *VolumeAttachmentList) DeepCopy() *VolumeAttachmentList {
  330. if in == nil {
  331. return nil
  332. }
  333. out := new(VolumeAttachmentList)
  334. in.DeepCopyInto(out)
  335. return out
  336. }
  337. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  338. func (in *VolumeAttachmentList) DeepCopyObject() runtime.Object {
  339. if c := in.DeepCopy(); c != nil {
  340. return c
  341. }
  342. return nil
  343. }
  344. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  345. func (in *VolumeAttachmentSource) DeepCopyInto(out *VolumeAttachmentSource) {
  346. *out = *in
  347. if in.PersistentVolumeName != nil {
  348. in, out := &in.PersistentVolumeName, &out.PersistentVolumeName
  349. *out = new(string)
  350. **out = **in
  351. }
  352. if in.InlineVolumeSpec != nil {
  353. in, out := &in.InlineVolumeSpec, &out.InlineVolumeSpec
  354. *out = new(core.PersistentVolumeSpec)
  355. (*in).DeepCopyInto(*out)
  356. }
  357. return
  358. }
  359. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentSource.
  360. func (in *VolumeAttachmentSource) DeepCopy() *VolumeAttachmentSource {
  361. if in == nil {
  362. return nil
  363. }
  364. out := new(VolumeAttachmentSource)
  365. in.DeepCopyInto(out)
  366. return out
  367. }
  368. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  369. func (in *VolumeAttachmentSpec) DeepCopyInto(out *VolumeAttachmentSpec) {
  370. *out = *in
  371. in.Source.DeepCopyInto(&out.Source)
  372. return
  373. }
  374. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentSpec.
  375. func (in *VolumeAttachmentSpec) DeepCopy() *VolumeAttachmentSpec {
  376. if in == nil {
  377. return nil
  378. }
  379. out := new(VolumeAttachmentSpec)
  380. in.DeepCopyInto(out)
  381. return out
  382. }
  383. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  384. func (in *VolumeAttachmentStatus) DeepCopyInto(out *VolumeAttachmentStatus) {
  385. *out = *in
  386. if in.AttachmentMetadata != nil {
  387. in, out := &in.AttachmentMetadata, &out.AttachmentMetadata
  388. *out = make(map[string]string, len(*in))
  389. for key, val := range *in {
  390. (*out)[key] = val
  391. }
  392. }
  393. if in.AttachError != nil {
  394. in, out := &in.AttachError, &out.AttachError
  395. *out = new(VolumeError)
  396. (*in).DeepCopyInto(*out)
  397. }
  398. if in.DetachError != nil {
  399. in, out := &in.DetachError, &out.DetachError
  400. *out = new(VolumeError)
  401. (*in).DeepCopyInto(*out)
  402. }
  403. return
  404. }
  405. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentStatus.
  406. func (in *VolumeAttachmentStatus) DeepCopy() *VolumeAttachmentStatus {
  407. if in == nil {
  408. return nil
  409. }
  410. out := new(VolumeAttachmentStatus)
  411. in.DeepCopyInto(out)
  412. return out
  413. }
  414. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  415. func (in *VolumeError) DeepCopyInto(out *VolumeError) {
  416. *out = *in
  417. in.Time.DeepCopyInto(&out.Time)
  418. return
  419. }
  420. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeError.
  421. func (in *VolumeError) DeepCopy() *VolumeError {
  422. if in == nil {
  423. return nil
  424. }
  425. out := new(VolumeError)
  426. in.DeepCopyInto(out)
  427. return out
  428. }
  429. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  430. func (in *VolumeNodeResources) DeepCopyInto(out *VolumeNodeResources) {
  431. *out = *in
  432. if in.Count != nil {
  433. in, out := &in.Count, &out.Count
  434. *out = new(int32)
  435. **out = **in
  436. }
  437. return
  438. }
  439. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeNodeResources.
  440. func (in *VolumeNodeResources) DeepCopy() *VolumeNodeResources {
  441. if in == nil {
  442. return nil
  443. }
  444. out := new(VolumeNodeResources)
  445. in.DeepCopyInto(out)
  446. return out
  447. }