1
2
3
4
19
20
21
22 package v1alpha2
23
24 import (
25 runtime "k8s.io/apimachinery/pkg/runtime"
26 )
27
28
29 func (in *Range) DeepCopyInto(out *Range) {
30 *out = *in
31 return
32 }
33
34
35 func (in *Range) DeepCopy() *Range {
36 if in == nil {
37 return nil
38 }
39 out := new(Range)
40 in.DeepCopyInto(out)
41 return out
42 }
43
44
45 func (in *RequestMatch) DeepCopyInto(out *RequestMatch) {
46 *out = *in
47 if in.All != nil {
48 in, out := &in.All, &out.All
49 *out = make([]*RequestMatch, len(*in))
50 for i := range *in {
51 if (*in)[i] != nil {
52 in, out := &(*in)[i], &(*out)[i]
53 *out = new(RequestMatch)
54 (*in).DeepCopyInto(*out)
55 }
56 }
57 }
58 if in.Not != nil {
59 in, out := &in.Not, &out.Not
60 *out = new(RequestMatch)
61 (*in).DeepCopyInto(*out)
62 }
63 if in.Any != nil {
64 in, out := &in.Any, &out.Any
65 *out = make([]*RequestMatch, len(*in))
66 for i := range *in {
67 if (*in)[i] != nil {
68 in, out := &(*in)[i], &(*out)[i]
69 *out = new(RequestMatch)
70 (*in).DeepCopyInto(*out)
71 }
72 }
73 }
74 return
75 }
76
77
78 func (in *RequestMatch) DeepCopy() *RequestMatch {
79 if in == nil {
80 return nil
81 }
82 out := new(RequestMatch)
83 in.DeepCopyInto(out)
84 return out
85 }
86
87
88 func (in *ResponseClass) DeepCopyInto(out *ResponseClass) {
89 *out = *in
90 if in.Condition != nil {
91 in, out := &in.Condition, &out.Condition
92 *out = new(ResponseMatch)
93 (*in).DeepCopyInto(*out)
94 }
95 return
96 }
97
98
99 func (in *ResponseClass) DeepCopy() *ResponseClass {
100 if in == nil {
101 return nil
102 }
103 out := new(ResponseClass)
104 in.DeepCopyInto(out)
105 return out
106 }
107
108
109 func (in *ResponseMatch) DeepCopyInto(out *ResponseMatch) {
110 *out = *in
111 if in.All != nil {
112 in, out := &in.All, &out.All
113 *out = make([]*ResponseMatch, len(*in))
114 for i := range *in {
115 if (*in)[i] != nil {
116 in, out := &(*in)[i], &(*out)[i]
117 *out = new(ResponseMatch)
118 (*in).DeepCopyInto(*out)
119 }
120 }
121 }
122 if in.Not != nil {
123 in, out := &in.Not, &out.Not
124 *out = new(ResponseMatch)
125 (*in).DeepCopyInto(*out)
126 }
127 if in.Any != nil {
128 in, out := &in.Any, &out.Any
129 *out = make([]*ResponseMatch, len(*in))
130 for i := range *in {
131 if (*in)[i] != nil {
132 in, out := &(*in)[i], &(*out)[i]
133 *out = new(ResponseMatch)
134 (*in).DeepCopyInto(*out)
135 }
136 }
137 }
138 if in.Status != nil {
139 in, out := &in.Status, &out.Status
140 *out = new(Range)
141 **out = **in
142 }
143 return
144 }
145
146
147 func (in *ResponseMatch) DeepCopy() *ResponseMatch {
148 if in == nil {
149 return nil
150 }
151 out := new(ResponseMatch)
152 in.DeepCopyInto(out)
153 return out
154 }
155
156
157 func (in *RetryBudget) DeepCopyInto(out *RetryBudget) {
158 *out = *in
159 return
160 }
161
162
163 func (in *RetryBudget) DeepCopy() *RetryBudget {
164 if in == nil {
165 return nil
166 }
167 out := new(RetryBudget)
168 in.DeepCopyInto(out)
169 return out
170 }
171
172
173 func (in *RouteSpec) DeepCopyInto(out *RouteSpec) {
174 *out = *in
175 if in.Condition != nil {
176 in, out := &in.Condition, &out.Condition
177 *out = new(RequestMatch)
178 (*in).DeepCopyInto(*out)
179 }
180 if in.ResponseClasses != nil {
181 in, out := &in.ResponseClasses, &out.ResponseClasses
182 *out = make([]*ResponseClass, len(*in))
183 for i := range *in {
184 if (*in)[i] != nil {
185 in, out := &(*in)[i], &(*out)[i]
186 *out = new(ResponseClass)
187 (*in).DeepCopyInto(*out)
188 }
189 }
190 }
191 return
192 }
193
194
195 func (in *RouteSpec) DeepCopy() *RouteSpec {
196 if in == nil {
197 return nil
198 }
199 out := new(RouteSpec)
200 in.DeepCopyInto(out)
201 return out
202 }
203
204
205 func (in *ServiceProfile) DeepCopyInto(out *ServiceProfile) {
206 *out = *in
207 out.TypeMeta = in.TypeMeta
208 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
209 in.Spec.DeepCopyInto(&out.Spec)
210 return
211 }
212
213
214 func (in *ServiceProfile) DeepCopy() *ServiceProfile {
215 if in == nil {
216 return nil
217 }
218 out := new(ServiceProfile)
219 in.DeepCopyInto(out)
220 return out
221 }
222
223
224 func (in *ServiceProfile) DeepCopyObject() runtime.Object {
225 if c := in.DeepCopy(); c != nil {
226 return c
227 }
228 return nil
229 }
230
231
232 func (in *ServiceProfileList) DeepCopyInto(out *ServiceProfileList) {
233 *out = *in
234 out.TypeMeta = in.TypeMeta
235 in.ListMeta.DeepCopyInto(&out.ListMeta)
236 if in.Items != nil {
237 in, out := &in.Items, &out.Items
238 *out = make([]ServiceProfile, len(*in))
239 for i := range *in {
240 (*in)[i].DeepCopyInto(&(*out)[i])
241 }
242 }
243 return
244 }
245
246
247 func (in *ServiceProfileList) DeepCopy() *ServiceProfileList {
248 if in == nil {
249 return nil
250 }
251 out := new(ServiceProfileList)
252 in.DeepCopyInto(out)
253 return out
254 }
255
256
257 func (in *ServiceProfileList) DeepCopyObject() runtime.Object {
258 if c := in.DeepCopy(); c != nil {
259 return c
260 }
261 return nil
262 }
263
264
265 func (in *ServiceProfileSpec) DeepCopyInto(out *ServiceProfileSpec) {
266 *out = *in
267 if in.Routes != nil {
268 in, out := &in.Routes, &out.Routes
269 *out = make([]*RouteSpec, len(*in))
270 for i := range *in {
271 if (*in)[i] != nil {
272 in, out := &(*in)[i], &(*out)[i]
273 *out = new(RouteSpec)
274 (*in).DeepCopyInto(*out)
275 }
276 }
277 }
278 if in.RetryBudget != nil {
279 in, out := &in.RetryBudget, &out.RetryBudget
280 *out = new(RetryBudget)
281 **out = **in
282 }
283 if in.DstOverrides != nil {
284 in, out := &in.DstOverrides, &out.DstOverrides
285 *out = make([]*WeightedDst, len(*in))
286 for i := range *in {
287 if (*in)[i] != nil {
288 in, out := &(*in)[i], &(*out)[i]
289 *out = new(WeightedDst)
290 (*in).DeepCopyInto(*out)
291 }
292 }
293 }
294 if in.OpaquePorts != nil {
295 in, out := &in.OpaquePorts, &out.OpaquePorts
296 *out = make(map[uint32]struct{}, len(*in))
297 for key, val := range *in {
298 (*out)[key] = val
299 }
300 }
301 return
302 }
303
304
305 func (in *ServiceProfileSpec) DeepCopy() *ServiceProfileSpec {
306 if in == nil {
307 return nil
308 }
309 out := new(ServiceProfileSpec)
310 in.DeepCopyInto(out)
311 return out
312 }
313
314
315 func (in *WeightedDst) DeepCopyInto(out *WeightedDst) {
316 *out = *in
317 out.Weight = in.Weight.DeepCopy()
318 return
319 }
320
321
322 func (in *WeightedDst) DeepCopy() *WeightedDst {
323 if in == nil {
324 return nil
325 }
326 out := new(WeightedDst)
327 in.DeepCopyInto(out)
328 return out
329 }
330
View as plain text