zz_generated.deepcopy.go 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  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 *StorageClass) DeepCopyInto(out *StorageClass) {
  22. *out = *in
  23. out.TypeMeta = in.TypeMeta
  24. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  25. if in.Parameters != nil {
  26. in, out := &in.Parameters, &out.Parameters
  27. *out = make(map[string]string, len(*in))
  28. for key, val := range *in {
  29. (*out)[key] = val
  30. }
  31. }
  32. if in.ReclaimPolicy != nil {
  33. in, out := &in.ReclaimPolicy, &out.ReclaimPolicy
  34. *out = new(corev1.PersistentVolumeReclaimPolicy)
  35. **out = **in
  36. }
  37. if in.MountOptions != nil {
  38. in, out := &in.MountOptions, &out.MountOptions
  39. *out = make([]string, len(*in))
  40. copy(*out, *in)
  41. }
  42. if in.AllowVolumeExpansion != nil {
  43. in, out := &in.AllowVolumeExpansion, &out.AllowVolumeExpansion
  44. *out = new(bool)
  45. **out = **in
  46. }
  47. if in.VolumeBindingMode != nil {
  48. in, out := &in.VolumeBindingMode, &out.VolumeBindingMode
  49. *out = new(VolumeBindingMode)
  50. **out = **in
  51. }
  52. if in.AllowedTopologies != nil {
  53. in, out := &in.AllowedTopologies, &out.AllowedTopologies
  54. *out = make([]corev1.TopologySelectorTerm, len(*in))
  55. for i := range *in {
  56. (*in)[i].DeepCopyInto(&(*out)[i])
  57. }
  58. }
  59. return
  60. }
  61. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClass.
  62. func (in *StorageClass) DeepCopy() *StorageClass {
  63. if in == nil {
  64. return nil
  65. }
  66. out := new(StorageClass)
  67. in.DeepCopyInto(out)
  68. return out
  69. }
  70. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  71. func (in *StorageClass) DeepCopyObject() runtime.Object {
  72. if c := in.DeepCopy(); c != nil {
  73. return c
  74. }
  75. return nil
  76. }
  77. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  78. func (in *StorageClassList) DeepCopyInto(out *StorageClassList) {
  79. *out = *in
  80. out.TypeMeta = in.TypeMeta
  81. out.ListMeta = in.ListMeta
  82. if in.Items != nil {
  83. in, out := &in.Items, &out.Items
  84. *out = make([]StorageClass, len(*in))
  85. for i := range *in {
  86. (*in)[i].DeepCopyInto(&(*out)[i])
  87. }
  88. }
  89. return
  90. }
  91. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassList.
  92. func (in *StorageClassList) DeepCopy() *StorageClassList {
  93. if in == nil {
  94. return nil
  95. }
  96. out := new(StorageClassList)
  97. in.DeepCopyInto(out)
  98. return out
  99. }
  100. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  101. func (in *StorageClassList) DeepCopyObject() runtime.Object {
  102. if c := in.DeepCopy(); c != nil {
  103. return c
  104. }
  105. return nil
  106. }
  107. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  108. func (in *VolumeAttachment) DeepCopyInto(out *VolumeAttachment) {
  109. *out = *in
  110. out.TypeMeta = in.TypeMeta
  111. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  112. in.Spec.DeepCopyInto(&out.Spec)
  113. in.Status.DeepCopyInto(&out.Status)
  114. return
  115. }
  116. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachment.
  117. func (in *VolumeAttachment) DeepCopy() *VolumeAttachment {
  118. if in == nil {
  119. return nil
  120. }
  121. out := new(VolumeAttachment)
  122. in.DeepCopyInto(out)
  123. return out
  124. }
  125. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  126. func (in *VolumeAttachment) DeepCopyObject() runtime.Object {
  127. if c := in.DeepCopy(); c != nil {
  128. return c
  129. }
  130. return nil
  131. }
  132. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  133. func (in *VolumeAttachmentList) DeepCopyInto(out *VolumeAttachmentList) {
  134. *out = *in
  135. out.TypeMeta = in.TypeMeta
  136. out.ListMeta = in.ListMeta
  137. if in.Items != nil {
  138. in, out := &in.Items, &out.Items
  139. *out = make([]VolumeAttachment, len(*in))
  140. for i := range *in {
  141. (*in)[i].DeepCopyInto(&(*out)[i])
  142. }
  143. }
  144. return
  145. }
  146. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentList.
  147. func (in *VolumeAttachmentList) DeepCopy() *VolumeAttachmentList {
  148. if in == nil {
  149. return nil
  150. }
  151. out := new(VolumeAttachmentList)
  152. in.DeepCopyInto(out)
  153. return out
  154. }
  155. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  156. func (in *VolumeAttachmentList) DeepCopyObject() runtime.Object {
  157. if c := in.DeepCopy(); c != nil {
  158. return c
  159. }
  160. return nil
  161. }
  162. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  163. func (in *VolumeAttachmentSource) DeepCopyInto(out *VolumeAttachmentSource) {
  164. *out = *in
  165. if in.PersistentVolumeName != nil {
  166. in, out := &in.PersistentVolumeName, &out.PersistentVolumeName
  167. *out = new(string)
  168. **out = **in
  169. }
  170. return
  171. }
  172. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentSource.
  173. func (in *VolumeAttachmentSource) DeepCopy() *VolumeAttachmentSource {
  174. if in == nil {
  175. return nil
  176. }
  177. out := new(VolumeAttachmentSource)
  178. in.DeepCopyInto(out)
  179. return out
  180. }
  181. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  182. func (in *VolumeAttachmentSpec) DeepCopyInto(out *VolumeAttachmentSpec) {
  183. *out = *in
  184. in.Source.DeepCopyInto(&out.Source)
  185. return
  186. }
  187. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentSpec.
  188. func (in *VolumeAttachmentSpec) DeepCopy() *VolumeAttachmentSpec {
  189. if in == nil {
  190. return nil
  191. }
  192. out := new(VolumeAttachmentSpec)
  193. in.DeepCopyInto(out)
  194. return out
  195. }
  196. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  197. func (in *VolumeAttachmentStatus) DeepCopyInto(out *VolumeAttachmentStatus) {
  198. *out = *in
  199. if in.AttachmentMetadata != nil {
  200. in, out := &in.AttachmentMetadata, &out.AttachmentMetadata
  201. *out = make(map[string]string, len(*in))
  202. for key, val := range *in {
  203. (*out)[key] = val
  204. }
  205. }
  206. if in.AttachError != nil {
  207. in, out := &in.AttachError, &out.AttachError
  208. *out = new(VolumeError)
  209. (*in).DeepCopyInto(*out)
  210. }
  211. if in.DetachError != nil {
  212. in, out := &in.DetachError, &out.DetachError
  213. *out = new(VolumeError)
  214. (*in).DeepCopyInto(*out)
  215. }
  216. return
  217. }
  218. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentStatus.
  219. func (in *VolumeAttachmentStatus) DeepCopy() *VolumeAttachmentStatus {
  220. if in == nil {
  221. return nil
  222. }
  223. out := new(VolumeAttachmentStatus)
  224. in.DeepCopyInto(out)
  225. return out
  226. }
  227. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  228. func (in *VolumeError) DeepCopyInto(out *VolumeError) {
  229. *out = *in
  230. in.Time.DeepCopyInto(&out.Time)
  231. return
  232. }
  233. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeError.
  234. func (in *VolumeError) DeepCopy() *VolumeError {
  235. if in == nil {
  236. return nil
  237. }
  238. out := new(VolumeError)
  239. in.DeepCopyInto(out)
  240. return out
  241. }