...
1
2
3
4
19
20
21
22 package testing
23
24 import (
25 runtime "k8s.io/apimachinery/pkg/runtime"
26 )
27
28
29 func (in *EmbeddedTest) DeepCopyInto(out *EmbeddedTest) {
30 *out = *in
31 out.TypeMeta = in.TypeMeta
32 if in.Object != nil {
33 out.Object = in.Object.DeepCopyObject()
34 }
35 if in.EmptyObject != nil {
36 out.EmptyObject = in.EmptyObject.DeepCopyObject()
37 }
38 return
39 }
40
41
42 func (in *EmbeddedTest) DeepCopy() *EmbeddedTest {
43 if in == nil {
44 return nil
45 }
46 out := new(EmbeddedTest)
47 in.DeepCopyInto(out)
48 return out
49 }
50
51
52 func (in *EmbeddedTest) DeepCopyObject() runtime.Object {
53 if c := in.DeepCopy(); c != nil {
54 return c
55 }
56 return nil
57 }
58
59
60 func (in *EmbeddedTestExternal) DeepCopyInto(out *EmbeddedTestExternal) {
61 *out = *in
62 out.TypeMeta = in.TypeMeta
63 in.Object.DeepCopyInto(&out.Object)
64 in.EmptyObject.DeepCopyInto(&out.EmptyObject)
65 return
66 }
67
68
69 func (in *EmbeddedTestExternal) DeepCopy() *EmbeddedTestExternal {
70 if in == nil {
71 return nil
72 }
73 out := new(EmbeddedTestExternal)
74 in.DeepCopyInto(out)
75 return out
76 }
77
78
79 func (in *EmbeddedTestExternal) DeepCopyObject() runtime.Object {
80 if c := in.DeepCopy(); c != nil {
81 return c
82 }
83 return nil
84 }
85
86
87 func (in *ExtensionA) DeepCopyInto(out *ExtensionA) {
88 *out = *in
89 out.TypeMeta = in.TypeMeta
90 return
91 }
92
93
94 func (in *ExtensionA) DeepCopy() *ExtensionA {
95 if in == nil {
96 return nil
97 }
98 out := new(ExtensionA)
99 in.DeepCopyInto(out)
100 return out
101 }
102
103
104 func (in *ExtensionA) DeepCopyObject() runtime.Object {
105 if c := in.DeepCopy(); c != nil {
106 return c
107 }
108 return nil
109 }
110
111
112 func (in *ExtensionB) DeepCopyInto(out *ExtensionB) {
113 *out = *in
114 out.TypeMeta = in.TypeMeta
115 return
116 }
117
118
119 func (in *ExtensionB) DeepCopy() *ExtensionB {
120 if in == nil {
121 return nil
122 }
123 out := new(ExtensionB)
124 in.DeepCopyInto(out)
125 return out
126 }
127
128
129 func (in *ExtensionB) DeepCopyObject() runtime.Object {
130 if c := in.DeepCopy(); c != nil {
131 return c
132 }
133 return nil
134 }
135
136
137 func (in *ExternalComplex) DeepCopyInto(out *ExternalComplex) {
138 *out = *in
139 out.TypeMeta = in.TypeMeta
140 return
141 }
142
143
144 func (in *ExternalComplex) DeepCopy() *ExternalComplex {
145 if in == nil {
146 return nil
147 }
148 out := new(ExternalComplex)
149 in.DeepCopyInto(out)
150 return out
151 }
152
153
154 func (in *ExternalComplex) DeepCopyObject() runtime.Object {
155 if c := in.DeepCopy(); c != nil {
156 return c
157 }
158 return nil
159 }
160
161
162 func (in *ExternalExtensionType) DeepCopyInto(out *ExternalExtensionType) {
163 *out = *in
164 out.TypeMeta = in.TypeMeta
165 in.Extension.DeepCopyInto(&out.Extension)
166 return
167 }
168
169
170 func (in *ExternalExtensionType) DeepCopy() *ExternalExtensionType {
171 if in == nil {
172 return nil
173 }
174 out := new(ExternalExtensionType)
175 in.DeepCopyInto(out)
176 return out
177 }
178
179
180 func (in *ExternalExtensionType) DeepCopyObject() runtime.Object {
181 if c := in.DeepCopy(); c != nil {
182 return c
183 }
184 return nil
185 }
186
187
188 func (in *ExternalInternalSame) DeepCopyInto(out *ExternalInternalSame) {
189 *out = *in
190 out.MyWeirdCustomEmbeddedVersionKindField = in.MyWeirdCustomEmbeddedVersionKindField
191 out.A = in.A
192 return
193 }
194
195
196 func (in *ExternalInternalSame) DeepCopy() *ExternalInternalSame {
197 if in == nil {
198 return nil
199 }
200 out := new(ExternalInternalSame)
201 in.DeepCopyInto(out)
202 return out
203 }
204
205
206 func (in *ExternalInternalSame) DeepCopyObject() runtime.Object {
207 if c := in.DeepCopy(); c != nil {
208 return c
209 }
210 return nil
211 }
212
213
214 func (in *ExternalOptionalExtensionType) DeepCopyInto(out *ExternalOptionalExtensionType) {
215 *out = *in
216 out.TypeMeta = in.TypeMeta
217 in.Extension.DeepCopyInto(&out.Extension)
218 return
219 }
220
221
222 func (in *ExternalOptionalExtensionType) DeepCopy() *ExternalOptionalExtensionType {
223 if in == nil {
224 return nil
225 }
226 out := new(ExternalOptionalExtensionType)
227 in.DeepCopyInto(out)
228 return out
229 }
230
231
232 func (in *ExternalOptionalExtensionType) DeepCopyObject() runtime.Object {
233 if c := in.DeepCopy(); c != nil {
234 return c
235 }
236 return nil
237 }
238
239
240 func (in *ExternalSimple) DeepCopyInto(out *ExternalSimple) {
241 *out = *in
242 out.TypeMeta = in.TypeMeta
243 return
244 }
245
246
247 func (in *ExternalSimple) DeepCopy() *ExternalSimple {
248 if in == nil {
249 return nil
250 }
251 out := new(ExternalSimple)
252 in.DeepCopyInto(out)
253 return out
254 }
255
256
257 func (in *ExternalSimple) DeepCopyObject() runtime.Object {
258 if c := in.DeepCopy(); c != nil {
259 return c
260 }
261 return nil
262 }
263
264
265 func (in *ExternalTestType1) DeepCopyInto(out *ExternalTestType1) {
266 *out = *in
267 out.MyWeirdCustomEmbeddedVersionKindField = in.MyWeirdCustomEmbeddedVersionKindField
268 if in.M != nil {
269 in, out := &in.M, &out.M
270 *out = make(map[string]int, len(*in))
271 for key, val := range *in {
272 (*out)[key] = val
273 }
274 }
275 if in.N != nil {
276 in, out := &in.N, &out.N
277 *out = make(map[string]ExternalTestType2, len(*in))
278 for key, val := range *in {
279 (*out)[key] = val
280 }
281 }
282 if in.O != nil {
283 in, out := &in.O, &out.O
284 *out = new(ExternalTestType2)
285 **out = **in
286 }
287 if in.P != nil {
288 in, out := &in.P, &out.P
289 *out = make([]ExternalTestType2, len(*in))
290 copy(*out, *in)
291 }
292 return
293 }
294
295
296 func (in *ExternalTestType1) DeepCopy() *ExternalTestType1 {
297 if in == nil {
298 return nil
299 }
300 out := new(ExternalTestType1)
301 in.DeepCopyInto(out)
302 return out
303 }
304
305
306 func (in *ExternalTestType1) DeepCopyObject() runtime.Object {
307 if c := in.DeepCopy(); c != nil {
308 return c
309 }
310 return nil
311 }
312
313
314 func (in *ExternalTestType2) DeepCopyInto(out *ExternalTestType2) {
315 *out = *in
316 return
317 }
318
319
320 func (in *ExternalTestType2) DeepCopy() *ExternalTestType2 {
321 if in == nil {
322 return nil
323 }
324 out := new(ExternalTestType2)
325 in.DeepCopyInto(out)
326 return out
327 }
328
329
330 func (in *ExternalTestType2) DeepCopyObject() runtime.Object {
331 if c := in.DeepCopy(); c != nil {
332 return c
333 }
334 return nil
335 }
336
337
338 func (in *InternalComplex) DeepCopyInto(out *InternalComplex) {
339 *out = *in
340 out.TypeMeta = in.TypeMeta
341 return
342 }
343
344
345 func (in *InternalComplex) DeepCopy() *InternalComplex {
346 if in == nil {
347 return nil
348 }
349 out := new(InternalComplex)
350 in.DeepCopyInto(out)
351 return out
352 }
353
354
355 func (in *InternalComplex) DeepCopyObject() runtime.Object {
356 if c := in.DeepCopy(); c != nil {
357 return c
358 }
359 return nil
360 }
361
362
363 func (in *InternalExtensionType) DeepCopyInto(out *InternalExtensionType) {
364 *out = *in
365 out.TypeMeta = in.TypeMeta
366 if in.Extension != nil {
367 out.Extension = in.Extension.DeepCopyObject()
368 }
369 return
370 }
371
372
373 func (in *InternalExtensionType) DeepCopy() *InternalExtensionType {
374 if in == nil {
375 return nil
376 }
377 out := new(InternalExtensionType)
378 in.DeepCopyInto(out)
379 return out
380 }
381
382
383 func (in *InternalExtensionType) DeepCopyObject() runtime.Object {
384 if c := in.DeepCopy(); c != nil {
385 return c
386 }
387 return nil
388 }
389
390
391 func (in *InternalOptionalExtensionType) DeepCopyInto(out *InternalOptionalExtensionType) {
392 *out = *in
393 out.TypeMeta = in.TypeMeta
394 if in.Extension != nil {
395 out.Extension = in.Extension.DeepCopyObject()
396 }
397 return
398 }
399
400
401 func (in *InternalOptionalExtensionType) DeepCopy() *InternalOptionalExtensionType {
402 if in == nil {
403 return nil
404 }
405 out := new(InternalOptionalExtensionType)
406 in.DeepCopyInto(out)
407 return out
408 }
409
410
411 func (in *InternalOptionalExtensionType) DeepCopyObject() runtime.Object {
412 if c := in.DeepCopy(); c != nil {
413 return c
414 }
415 return nil
416 }
417
418
419 func (in *InternalSimple) DeepCopyInto(out *InternalSimple) {
420 *out = *in
421 out.TypeMeta = in.TypeMeta
422 return
423 }
424
425
426 func (in *InternalSimple) DeepCopy() *InternalSimple {
427 if in == nil {
428 return nil
429 }
430 out := new(InternalSimple)
431 in.DeepCopyInto(out)
432 return out
433 }
434
435
436 func (in *InternalSimple) DeepCopyObject() runtime.Object {
437 if c := in.DeepCopy(); c != nil {
438 return c
439 }
440 return nil
441 }
442
443
444 func (in *ObjectTest) DeepCopyInto(out *ObjectTest) {
445 *out = *in
446 out.TypeMeta = in.TypeMeta
447 if in.Items != nil {
448 in, out := &in.Items, &out.Items
449 *out = make([]runtime.Object, len(*in))
450 for i := range *in {
451 if (*in)[i] != nil {
452 (*out)[i] = (*in)[i].DeepCopyObject()
453 }
454 }
455 }
456 return
457 }
458
459
460 func (in *ObjectTest) DeepCopy() *ObjectTest {
461 if in == nil {
462 return nil
463 }
464 out := new(ObjectTest)
465 in.DeepCopyInto(out)
466 return out
467 }
468
469
470 func (in *ObjectTest) DeepCopyObject() runtime.Object {
471 if c := in.DeepCopy(); c != nil {
472 return c
473 }
474 return nil
475 }
476
477
478 func (in *ObjectTestExternal) DeepCopyInto(out *ObjectTestExternal) {
479 *out = *in
480 out.TypeMeta = in.TypeMeta
481 if in.Items != nil {
482 in, out := &in.Items, &out.Items
483 *out = make([]runtime.RawExtension, len(*in))
484 for i := range *in {
485 (*in)[i].DeepCopyInto(&(*out)[i])
486 }
487 }
488 return
489 }
490
491
492 func (in *ObjectTestExternal) DeepCopy() *ObjectTestExternal {
493 if in == nil {
494 return nil
495 }
496 out := new(ObjectTestExternal)
497 in.DeepCopyInto(out)
498 return out
499 }
500
501
502 func (in *ObjectTestExternal) DeepCopyObject() runtime.Object {
503 if c := in.DeepCopy(); c != nil {
504 return c
505 }
506 return nil
507 }
508
509
510 func (in *TestType1) DeepCopyInto(out *TestType1) {
511 *out = *in
512 out.MyWeirdCustomEmbeddedVersionKindField = in.MyWeirdCustomEmbeddedVersionKindField
513 if in.M != nil {
514 in, out := &in.M, &out.M
515 *out = make(map[string]int, len(*in))
516 for key, val := range *in {
517 (*out)[key] = val
518 }
519 }
520 if in.N != nil {
521 in, out := &in.N, &out.N
522 *out = make(map[string]TestType2, len(*in))
523 for key, val := range *in {
524 (*out)[key] = val
525 }
526 }
527 if in.O != nil {
528 in, out := &in.O, &out.O
529 *out = new(TestType2)
530 **out = **in
531 }
532 if in.P != nil {
533 in, out := &in.P, &out.P
534 *out = make([]TestType2, len(*in))
535 copy(*out, *in)
536 }
537 return
538 }
539
540
541 func (in *TestType1) DeepCopy() *TestType1 {
542 if in == nil {
543 return nil
544 }
545 out := new(TestType1)
546 in.DeepCopyInto(out)
547 return out
548 }
549
550
551 func (in *TestType1) DeepCopyObject() runtime.Object {
552 if c := in.DeepCopy(); c != nil {
553 return c
554 }
555 return nil
556 }
557
558
559 func (in *TestType2) DeepCopyInto(out *TestType2) {
560 *out = *in
561 return
562 }
563
564
565 func (in *TestType2) DeepCopy() *TestType2 {
566 if in == nil {
567 return nil
568 }
569 out := new(TestType2)
570 in.DeepCopyInto(out)
571 return out
572 }
573
574
575 func (in *TestType2) DeepCopyObject() runtime.Object {
576 if c := in.DeepCopy(); c != nil {
577 return c
578 }
579 return nil
580 }
581
582
583 func (in *UnknownType) DeepCopyInto(out *UnknownType) {
584 *out = *in
585 out.MyWeirdCustomEmbeddedVersionKindField = in.MyWeirdCustomEmbeddedVersionKindField
586 return
587 }
588
589
590 func (in *UnknownType) DeepCopy() *UnknownType {
591 if in == nil {
592 return nil
593 }
594 out := new(UnknownType)
595 in.DeepCopyInto(out)
596 return out
597 }
598
599
600 func (in *UnknownType) DeepCopyObject() runtime.Object {
601 if c := in.DeepCopy(); c != nil {
602 return c
603 }
604 return nil
605 }
606
607
608 func (in *UnversionedType) DeepCopyInto(out *UnversionedType) {
609 *out = *in
610 out.MyWeirdCustomEmbeddedVersionKindField = in.MyWeirdCustomEmbeddedVersionKindField
611 return
612 }
613
614
615 func (in *UnversionedType) DeepCopy() *UnversionedType {
616 if in == nil {
617 return nil
618 }
619 out := new(UnversionedType)
620 in.DeepCopyInto(out)
621 return out
622 }
623
624
625 func (in *UnversionedType) DeepCopyObject() runtime.Object {
626 if c := in.DeepCopy(); c != nil {
627 return c
628 }
629 return nil
630 }
631
View as plain text