1
2
3
4
19
20
21
22 package discovery
23
24 import (
25 runtime "k8s.io/apimachinery/pkg/runtime"
26 core "k8s.io/kubernetes/pkg/apis/core"
27 )
28
29
30 func (in *Endpoint) DeepCopyInto(out *Endpoint) {
31 *out = *in
32 if in.Addresses != nil {
33 in, out := &in.Addresses, &out.Addresses
34 *out = make([]string, len(*in))
35 copy(*out, *in)
36 }
37 in.Conditions.DeepCopyInto(&out.Conditions)
38 if in.Hostname != nil {
39 in, out := &in.Hostname, &out.Hostname
40 *out = new(string)
41 **out = **in
42 }
43 if in.TargetRef != nil {
44 in, out := &in.TargetRef, &out.TargetRef
45 *out = new(core.ObjectReference)
46 **out = **in
47 }
48 if in.DeprecatedTopology != nil {
49 in, out := &in.DeprecatedTopology, &out.DeprecatedTopology
50 *out = make(map[string]string, len(*in))
51 for key, val := range *in {
52 (*out)[key] = val
53 }
54 }
55 if in.NodeName != nil {
56 in, out := &in.NodeName, &out.NodeName
57 *out = new(string)
58 **out = **in
59 }
60 if in.Zone != nil {
61 in, out := &in.Zone, &out.Zone
62 *out = new(string)
63 **out = **in
64 }
65 if in.Hints != nil {
66 in, out := &in.Hints, &out.Hints
67 *out = new(EndpointHints)
68 (*in).DeepCopyInto(*out)
69 }
70 return
71 }
72
73
74 func (in *Endpoint) DeepCopy() *Endpoint {
75 if in == nil {
76 return nil
77 }
78 out := new(Endpoint)
79 in.DeepCopyInto(out)
80 return out
81 }
82
83
84 func (in *EndpointConditions) DeepCopyInto(out *EndpointConditions) {
85 *out = *in
86 if in.Ready != nil {
87 in, out := &in.Ready, &out.Ready
88 *out = new(bool)
89 **out = **in
90 }
91 if in.Serving != nil {
92 in, out := &in.Serving, &out.Serving
93 *out = new(bool)
94 **out = **in
95 }
96 if in.Terminating != nil {
97 in, out := &in.Terminating, &out.Terminating
98 *out = new(bool)
99 **out = **in
100 }
101 return
102 }
103
104
105 func (in *EndpointConditions) DeepCopy() *EndpointConditions {
106 if in == nil {
107 return nil
108 }
109 out := new(EndpointConditions)
110 in.DeepCopyInto(out)
111 return out
112 }
113
114
115 func (in *EndpointHints) DeepCopyInto(out *EndpointHints) {
116 *out = *in
117 if in.ForZones != nil {
118 in, out := &in.ForZones, &out.ForZones
119 *out = make([]ForZone, len(*in))
120 copy(*out, *in)
121 }
122 return
123 }
124
125
126 func (in *EndpointHints) DeepCopy() *EndpointHints {
127 if in == nil {
128 return nil
129 }
130 out := new(EndpointHints)
131 in.DeepCopyInto(out)
132 return out
133 }
134
135
136 func (in *EndpointPort) DeepCopyInto(out *EndpointPort) {
137 *out = *in
138 if in.Name != nil {
139 in, out := &in.Name, &out.Name
140 *out = new(string)
141 **out = **in
142 }
143 if in.Protocol != nil {
144 in, out := &in.Protocol, &out.Protocol
145 *out = new(core.Protocol)
146 **out = **in
147 }
148 if in.Port != nil {
149 in, out := &in.Port, &out.Port
150 *out = new(int32)
151 **out = **in
152 }
153 if in.AppProtocol != nil {
154 in, out := &in.AppProtocol, &out.AppProtocol
155 *out = new(string)
156 **out = **in
157 }
158 return
159 }
160
161
162 func (in *EndpointPort) DeepCopy() *EndpointPort {
163 if in == nil {
164 return nil
165 }
166 out := new(EndpointPort)
167 in.DeepCopyInto(out)
168 return out
169 }
170
171
172 func (in *EndpointSlice) DeepCopyInto(out *EndpointSlice) {
173 *out = *in
174 out.TypeMeta = in.TypeMeta
175 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
176 if in.Endpoints != nil {
177 in, out := &in.Endpoints, &out.Endpoints
178 *out = make([]Endpoint, len(*in))
179 for i := range *in {
180 (*in)[i].DeepCopyInto(&(*out)[i])
181 }
182 }
183 if in.Ports != nil {
184 in, out := &in.Ports, &out.Ports
185 *out = make([]EndpointPort, len(*in))
186 for i := range *in {
187 (*in)[i].DeepCopyInto(&(*out)[i])
188 }
189 }
190 return
191 }
192
193
194 func (in *EndpointSlice) DeepCopy() *EndpointSlice {
195 if in == nil {
196 return nil
197 }
198 out := new(EndpointSlice)
199 in.DeepCopyInto(out)
200 return out
201 }
202
203
204 func (in *EndpointSlice) DeepCopyObject() runtime.Object {
205 if c := in.DeepCopy(); c != nil {
206 return c
207 }
208 return nil
209 }
210
211
212 func (in *EndpointSliceList) DeepCopyInto(out *EndpointSliceList) {
213 *out = *in
214 out.TypeMeta = in.TypeMeta
215 in.ListMeta.DeepCopyInto(&out.ListMeta)
216 if in.Items != nil {
217 in, out := &in.Items, &out.Items
218 *out = make([]EndpointSlice, len(*in))
219 for i := range *in {
220 (*in)[i].DeepCopyInto(&(*out)[i])
221 }
222 }
223 return
224 }
225
226
227 func (in *EndpointSliceList) DeepCopy() *EndpointSliceList {
228 if in == nil {
229 return nil
230 }
231 out := new(EndpointSliceList)
232 in.DeepCopyInto(out)
233 return out
234 }
235
236
237 func (in *EndpointSliceList) DeepCopyObject() runtime.Object {
238 if c := in.DeepCopy(); c != nil {
239 return c
240 }
241 return nil
242 }
243
244
245 func (in *ForZone) DeepCopyInto(out *ForZone) {
246 *out = *in
247 return
248 }
249
250
251 func (in *ForZone) DeepCopy() *ForZone {
252 if in == nil {
253 return nil
254 }
255 out := new(ForZone)
256 in.DeepCopyInto(out)
257 return out
258 }
259
View as plain text