...
1
2
3
4
19
20
21
22 package v1beta1
23
24 import (
25 runtime "k8s.io/apimachinery/pkg/runtime"
26 )
27
28
29 func (in *Lease) DeepCopyInto(out *Lease) {
30 *out = *in
31 out.TypeMeta = in.TypeMeta
32 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
33 in.Spec.DeepCopyInto(&out.Spec)
34 return
35 }
36
37
38 func (in *Lease) DeepCopy() *Lease {
39 if in == nil {
40 return nil
41 }
42 out := new(Lease)
43 in.DeepCopyInto(out)
44 return out
45 }
46
47
48 func (in *Lease) DeepCopyObject() runtime.Object {
49 if c := in.DeepCopy(); c != nil {
50 return c
51 }
52 return nil
53 }
54
55
56 func (in *LeaseList) DeepCopyInto(out *LeaseList) {
57 *out = *in
58 out.TypeMeta = in.TypeMeta
59 in.ListMeta.DeepCopyInto(&out.ListMeta)
60 if in.Items != nil {
61 in, out := &in.Items, &out.Items
62 *out = make([]Lease, len(*in))
63 for i := range *in {
64 (*in)[i].DeepCopyInto(&(*out)[i])
65 }
66 }
67 return
68 }
69
70
71 func (in *LeaseList) DeepCopy() *LeaseList {
72 if in == nil {
73 return nil
74 }
75 out := new(LeaseList)
76 in.DeepCopyInto(out)
77 return out
78 }
79
80
81 func (in *LeaseList) DeepCopyObject() runtime.Object {
82 if c := in.DeepCopy(); c != nil {
83 return c
84 }
85 return nil
86 }
87
88
89 func (in *LeaseSpec) DeepCopyInto(out *LeaseSpec) {
90 *out = *in
91 if in.HolderIdentity != nil {
92 in, out := &in.HolderIdentity, &out.HolderIdentity
93 *out = new(string)
94 **out = **in
95 }
96 if in.LeaseDurationSeconds != nil {
97 in, out := &in.LeaseDurationSeconds, &out.LeaseDurationSeconds
98 *out = new(int32)
99 **out = **in
100 }
101 if in.AcquireTime != nil {
102 in, out := &in.AcquireTime, &out.AcquireTime
103 *out = (*in).DeepCopy()
104 }
105 if in.RenewTime != nil {
106 in, out := &in.RenewTime, &out.RenewTime
107 *out = (*in).DeepCopy()
108 }
109 if in.LeaseTransitions != nil {
110 in, out := &in.LeaseTransitions, &out.LeaseTransitions
111 *out = new(int32)
112 **out = **in
113 }
114 return
115 }
116
117
118 func (in *LeaseSpec) DeepCopy() *LeaseSpec {
119 if in == nil {
120 return nil
121 }
122 out := new(LeaseSpec)
123 in.DeepCopyInto(out)
124 return out
125 }
126
View as plain text