1
2
3
18
19
20
21 package v1beta1
22
23 import (
24 runtime "k8s.io/apimachinery/pkg/runtime"
25 )
26
27
28 func (in *VolumeSnapshot) DeepCopyInto(out *VolumeSnapshot) {
29 *out = *in
30 out.TypeMeta = in.TypeMeta
31 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
32 in.Spec.DeepCopyInto(&out.Spec)
33 if in.Status != nil {
34 in, out := &in.Status, &out.Status
35 *out = new(VolumeSnapshotStatus)
36 (*in).DeepCopyInto(*out)
37 }
38 return
39 }
40
41
42 func (in *VolumeSnapshot) DeepCopy() *VolumeSnapshot {
43 if in == nil {
44 return nil
45 }
46 out := new(VolumeSnapshot)
47 in.DeepCopyInto(out)
48 return out
49 }
50
51
52 func (in *VolumeSnapshot) DeepCopyObject() runtime.Object {
53 if c := in.DeepCopy(); c != nil {
54 return c
55 }
56 return nil
57 }
58
59
60 func (in *VolumeSnapshotClass) DeepCopyInto(out *VolumeSnapshotClass) {
61 *out = *in
62 out.TypeMeta = in.TypeMeta
63 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
64 if in.Parameters != nil {
65 in, out := &in.Parameters, &out.Parameters
66 *out = make(map[string]string, len(*in))
67 for key, val := range *in {
68 (*out)[key] = val
69 }
70 }
71 return
72 }
73
74
75 func (in *VolumeSnapshotClass) DeepCopy() *VolumeSnapshotClass {
76 if in == nil {
77 return nil
78 }
79 out := new(VolumeSnapshotClass)
80 in.DeepCopyInto(out)
81 return out
82 }
83
84
85 func (in *VolumeSnapshotClass) DeepCopyObject() runtime.Object {
86 if c := in.DeepCopy(); c != nil {
87 return c
88 }
89 return nil
90 }
91
92
93 func (in *VolumeSnapshotClassList) DeepCopyInto(out *VolumeSnapshotClassList) {
94 *out = *in
95 out.TypeMeta = in.TypeMeta
96 in.ListMeta.DeepCopyInto(&out.ListMeta)
97 if in.Items != nil {
98 in, out := &in.Items, &out.Items
99 *out = make([]VolumeSnapshotClass, len(*in))
100 for i := range *in {
101 (*in)[i].DeepCopyInto(&(*out)[i])
102 }
103 }
104 return
105 }
106
107
108 func (in *VolumeSnapshotClassList) DeepCopy() *VolumeSnapshotClassList {
109 if in == nil {
110 return nil
111 }
112 out := new(VolumeSnapshotClassList)
113 in.DeepCopyInto(out)
114 return out
115 }
116
117
118 func (in *VolumeSnapshotClassList) DeepCopyObject() runtime.Object {
119 if c := in.DeepCopy(); c != nil {
120 return c
121 }
122 return nil
123 }
124
125
126 func (in *VolumeSnapshotContent) DeepCopyInto(out *VolumeSnapshotContent) {
127 *out = *in
128 out.TypeMeta = in.TypeMeta
129 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
130 in.Spec.DeepCopyInto(&out.Spec)
131 if in.Status != nil {
132 in, out := &in.Status, &out.Status
133 *out = new(VolumeSnapshotContentStatus)
134 (*in).DeepCopyInto(*out)
135 }
136 return
137 }
138
139
140 func (in *VolumeSnapshotContent) DeepCopy() *VolumeSnapshotContent {
141 if in == nil {
142 return nil
143 }
144 out := new(VolumeSnapshotContent)
145 in.DeepCopyInto(out)
146 return out
147 }
148
149
150 func (in *VolumeSnapshotContent) DeepCopyObject() runtime.Object {
151 if c := in.DeepCopy(); c != nil {
152 return c
153 }
154 return nil
155 }
156
157
158 func (in *VolumeSnapshotContentList) DeepCopyInto(out *VolumeSnapshotContentList) {
159 *out = *in
160 out.TypeMeta = in.TypeMeta
161 in.ListMeta.DeepCopyInto(&out.ListMeta)
162 if in.Items != nil {
163 in, out := &in.Items, &out.Items
164 *out = make([]VolumeSnapshotContent, len(*in))
165 for i := range *in {
166 (*in)[i].DeepCopyInto(&(*out)[i])
167 }
168 }
169 return
170 }
171
172
173 func (in *VolumeSnapshotContentList) DeepCopy() *VolumeSnapshotContentList {
174 if in == nil {
175 return nil
176 }
177 out := new(VolumeSnapshotContentList)
178 in.DeepCopyInto(out)
179 return out
180 }
181
182
183 func (in *VolumeSnapshotContentList) DeepCopyObject() runtime.Object {
184 if c := in.DeepCopy(); c != nil {
185 return c
186 }
187 return nil
188 }
189
190
191 func (in *VolumeSnapshotContentSource) DeepCopyInto(out *VolumeSnapshotContentSource) {
192 *out = *in
193 if in.VolumeHandle != nil {
194 in, out := &in.VolumeHandle, &out.VolumeHandle
195 *out = new(string)
196 **out = **in
197 }
198 if in.SnapshotHandle != nil {
199 in, out := &in.SnapshotHandle, &out.SnapshotHandle
200 *out = new(string)
201 **out = **in
202 }
203 return
204 }
205
206
207 func (in *VolumeSnapshotContentSource) DeepCopy() *VolumeSnapshotContentSource {
208 if in == nil {
209 return nil
210 }
211 out := new(VolumeSnapshotContentSource)
212 in.DeepCopyInto(out)
213 return out
214 }
215
216
217 func (in *VolumeSnapshotContentSpec) DeepCopyInto(out *VolumeSnapshotContentSpec) {
218 *out = *in
219 out.VolumeSnapshotRef = in.VolumeSnapshotRef
220 if in.VolumeSnapshotClassName != nil {
221 in, out := &in.VolumeSnapshotClassName, &out.VolumeSnapshotClassName
222 *out = new(string)
223 **out = **in
224 }
225 in.Source.DeepCopyInto(&out.Source)
226 return
227 }
228
229
230 func (in *VolumeSnapshotContentSpec) DeepCopy() *VolumeSnapshotContentSpec {
231 if in == nil {
232 return nil
233 }
234 out := new(VolumeSnapshotContentSpec)
235 in.DeepCopyInto(out)
236 return out
237 }
238
239
240 func (in *VolumeSnapshotContentStatus) DeepCopyInto(out *VolumeSnapshotContentStatus) {
241 *out = *in
242 if in.SnapshotHandle != nil {
243 in, out := &in.SnapshotHandle, &out.SnapshotHandle
244 *out = new(string)
245 **out = **in
246 }
247 if in.CreationTime != nil {
248 in, out := &in.CreationTime, &out.CreationTime
249 *out = new(int64)
250 **out = **in
251 }
252 if in.RestoreSize != nil {
253 in, out := &in.RestoreSize, &out.RestoreSize
254 *out = new(int64)
255 **out = **in
256 }
257 if in.ReadyToUse != nil {
258 in, out := &in.ReadyToUse, &out.ReadyToUse
259 *out = new(bool)
260 **out = **in
261 }
262 if in.Error != nil {
263 in, out := &in.Error, &out.Error
264 *out = new(VolumeSnapshotError)
265 (*in).DeepCopyInto(*out)
266 }
267 return
268 }
269
270
271 func (in *VolumeSnapshotContentStatus) DeepCopy() *VolumeSnapshotContentStatus {
272 if in == nil {
273 return nil
274 }
275 out := new(VolumeSnapshotContentStatus)
276 in.DeepCopyInto(out)
277 return out
278 }
279
280
281 func (in *VolumeSnapshotError) DeepCopyInto(out *VolumeSnapshotError) {
282 *out = *in
283 if in.Time != nil {
284 in, out := &in.Time, &out.Time
285 *out = (*in).DeepCopy()
286 }
287 if in.Message != nil {
288 in, out := &in.Message, &out.Message
289 *out = new(string)
290 **out = **in
291 }
292 return
293 }
294
295
296 func (in *VolumeSnapshotError) DeepCopy() *VolumeSnapshotError {
297 if in == nil {
298 return nil
299 }
300 out := new(VolumeSnapshotError)
301 in.DeepCopyInto(out)
302 return out
303 }
304
305
306 func (in *VolumeSnapshotList) DeepCopyInto(out *VolumeSnapshotList) {
307 *out = *in
308 out.TypeMeta = in.TypeMeta
309 in.ListMeta.DeepCopyInto(&out.ListMeta)
310 if in.Items != nil {
311 in, out := &in.Items, &out.Items
312 *out = make([]VolumeSnapshot, len(*in))
313 for i := range *in {
314 (*in)[i].DeepCopyInto(&(*out)[i])
315 }
316 }
317 return
318 }
319
320
321 func (in *VolumeSnapshotList) DeepCopy() *VolumeSnapshotList {
322 if in == nil {
323 return nil
324 }
325 out := new(VolumeSnapshotList)
326 in.DeepCopyInto(out)
327 return out
328 }
329
330
331 func (in *VolumeSnapshotList) DeepCopyObject() runtime.Object {
332 if c := in.DeepCopy(); c != nil {
333 return c
334 }
335 return nil
336 }
337
338
339 func (in *VolumeSnapshotSource) DeepCopyInto(out *VolumeSnapshotSource) {
340 *out = *in
341 if in.PersistentVolumeClaimName != nil {
342 in, out := &in.PersistentVolumeClaimName, &out.PersistentVolumeClaimName
343 *out = new(string)
344 **out = **in
345 }
346 if in.VolumeSnapshotContentName != nil {
347 in, out := &in.VolumeSnapshotContentName, &out.VolumeSnapshotContentName
348 *out = new(string)
349 **out = **in
350 }
351 return
352 }
353
354
355 func (in *VolumeSnapshotSource) DeepCopy() *VolumeSnapshotSource {
356 if in == nil {
357 return nil
358 }
359 out := new(VolumeSnapshotSource)
360 in.DeepCopyInto(out)
361 return out
362 }
363
364
365 func (in *VolumeSnapshotSpec) DeepCopyInto(out *VolumeSnapshotSpec) {
366 *out = *in
367 in.Source.DeepCopyInto(&out.Source)
368 if in.VolumeSnapshotClassName != nil {
369 in, out := &in.VolumeSnapshotClassName, &out.VolumeSnapshotClassName
370 *out = new(string)
371 **out = **in
372 }
373 return
374 }
375
376
377 func (in *VolumeSnapshotSpec) DeepCopy() *VolumeSnapshotSpec {
378 if in == nil {
379 return nil
380 }
381 out := new(VolumeSnapshotSpec)
382 in.DeepCopyInto(out)
383 return out
384 }
385
386
387 func (in *VolumeSnapshotStatus) DeepCopyInto(out *VolumeSnapshotStatus) {
388 *out = *in
389 if in.BoundVolumeSnapshotContentName != nil {
390 in, out := &in.BoundVolumeSnapshotContentName, &out.BoundVolumeSnapshotContentName
391 *out = new(string)
392 **out = **in
393 }
394 if in.CreationTime != nil {
395 in, out := &in.CreationTime, &out.CreationTime
396 *out = (*in).DeepCopy()
397 }
398 if in.ReadyToUse != nil {
399 in, out := &in.ReadyToUse, &out.ReadyToUse
400 *out = new(bool)
401 **out = **in
402 }
403 if in.RestoreSize != nil {
404 in, out := &in.RestoreSize, &out.RestoreSize
405 x := (*in).DeepCopy()
406 *out = &x
407 }
408 if in.Error != nil {
409 in, out := &in.Error, &out.Error
410 *out = new(VolumeSnapshotError)
411 (*in).DeepCopyInto(*out)
412 }
413 return
414 }
415
416
417 func (in *VolumeSnapshotStatus) DeepCopy() *VolumeSnapshotStatus {
418 if in == nil {
419 return nil
420 }
421 out := new(VolumeSnapshotStatus)
422 in.DeepCopyInto(out)
423 return out
424 }
425
View as plain text