Debian Codegraph @

examples/defaulter-gen/output_tests/pointer/fake_deepcopy_conversion.go

raw
1 /*
2 Copyright 2023 The Kubernetes Authors.
3
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
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17 package pointer
18
19 import (
20 "k8s.io/apimachinery/pkg/runtime"
21 "k8s.io/apimachinery/pkg/runtime/schema"
22 )
23
24 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
25 func (in *Tpointer) DeepCopyInto(out *Tpointer) {
26 *out = *in
27 out.TypeMeta = in.TypeMeta
28 if in.BoolField != nil {
29 in, out := &in.BoolField, &out.BoolField
30 *out = new(bool)
31 **out = **in
32 }
33 return
34 }
35
36 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Tpointer.
37 func (in *Tpointer) DeepCopy() *Tpointer {
38 if in == nil {
39 return nil
40 }
41 out := new(Tpointer)
42 in.DeepCopyInto(out)
43 return out
44 }
45
46 func (in *Tpointer) DeepCopyObject() runtime.Object {
47 if c := in.DeepCopy(); c != nil {
48 return c
49 }
50 return nil
51 }
52
53 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
54 func (in *Ttest) DeepCopyInto(out *Ttest) {
55 *out = *in
56 out.TypeMeta = in.TypeMeta
57 in.NTP.DeepCopyInto(&out.NTP)
58 if in.Tp != nil {
59 in, out := &in.Tp, &out.Tp
60 *out = new(Tpointer)
61 (*in).DeepCopyInto(*out)
62 }
63 return
64 }
65
66 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ttest.
67 func (in *Ttest) DeepCopy() *Ttest {
68 if in == nil {
69 return nil
70 }
71 out := new(Ttest)
72 in.DeepCopyInto(out)
73 return out
74 }
75
76 func (in *Ttest) DeepCopyObject() runtime.Object {
77 if c := in.DeepCopy(); c != nil {
78 return c
79 }
80 return nil
81 }
82
83 func (obj *Tpointer) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind }
84 func (obj *Ttest) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind }