1
2
3
4
19
20
21
22 package v1alpha1
23
24 import (
25 runtime "k8s.io/apimachinery/pkg/runtime"
26 v1alpha2 "sigs.k8s.io/gateway-api/apis/v1alpha2"
27 v1beta1 "sigs.k8s.io/gateway-api/apis/v1beta1"
28 )
29
30
31 func (in *AuthorizationPolicy) DeepCopyInto(out *AuthorizationPolicy) {
32 *out = *in
33 out.TypeMeta = in.TypeMeta
34 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
35 in.Spec.DeepCopyInto(&out.Spec)
36 return
37 }
38
39
40 func (in *AuthorizationPolicy) DeepCopy() *AuthorizationPolicy {
41 if in == nil {
42 return nil
43 }
44 out := new(AuthorizationPolicy)
45 in.DeepCopyInto(out)
46 return out
47 }
48
49
50 func (in *AuthorizationPolicy) DeepCopyObject() runtime.Object {
51 if c := in.DeepCopy(); c != nil {
52 return c
53 }
54 return nil
55 }
56
57
58 func (in *AuthorizationPolicyList) DeepCopyInto(out *AuthorizationPolicyList) {
59 *out = *in
60 out.TypeMeta = in.TypeMeta
61 in.ListMeta.DeepCopyInto(&out.ListMeta)
62 if in.Items != nil {
63 in, out := &in.Items, &out.Items
64 *out = make([]AuthorizationPolicy, len(*in))
65 for i := range *in {
66 (*in)[i].DeepCopyInto(&(*out)[i])
67 }
68 }
69 return
70 }
71
72
73 func (in *AuthorizationPolicyList) DeepCopy() *AuthorizationPolicyList {
74 if in == nil {
75 return nil
76 }
77 out := new(AuthorizationPolicyList)
78 in.DeepCopyInto(out)
79 return out
80 }
81
82
83 func (in *AuthorizationPolicyList) DeepCopyObject() runtime.Object {
84 if c := in.DeepCopy(); c != nil {
85 return c
86 }
87 return nil
88 }
89
90
91 func (in *AuthorizationPolicySpec) DeepCopyInto(out *AuthorizationPolicySpec) {
92 *out = *in
93 in.TargetRef.DeepCopyInto(&out.TargetRef)
94 if in.RequiredAuthenticationRefs != nil {
95 in, out := &in.RequiredAuthenticationRefs, &out.RequiredAuthenticationRefs
96 *out = make([]v1alpha2.PolicyTargetReference, len(*in))
97 for i := range *in {
98 (*in)[i].DeepCopyInto(&(*out)[i])
99 }
100 }
101 return
102 }
103
104
105 func (in *AuthorizationPolicySpec) DeepCopy() *AuthorizationPolicySpec {
106 if in == nil {
107 return nil
108 }
109 out := new(AuthorizationPolicySpec)
110 in.DeepCopyInto(out)
111 return out
112 }
113
114
115 func (in *HTTPHeader) DeepCopyInto(out *HTTPHeader) {
116 *out = *in
117 return
118 }
119
120
121 func (in *HTTPHeader) DeepCopy() *HTTPHeader {
122 if in == nil {
123 return nil
124 }
125 out := new(HTTPHeader)
126 in.DeepCopyInto(out)
127 return out
128 }
129
130
131 func (in *HTTPHeaderMatch) DeepCopyInto(out *HTTPHeaderMatch) {
132 *out = *in
133 if in.Type != nil {
134 in, out := &in.Type, &out.Type
135 *out = new(HeaderMatchType)
136 **out = **in
137 }
138 return
139 }
140
141
142 func (in *HTTPHeaderMatch) DeepCopy() *HTTPHeaderMatch {
143 if in == nil {
144 return nil
145 }
146 out := new(HTTPHeaderMatch)
147 in.DeepCopyInto(out)
148 return out
149 }
150
151
152 func (in *HTTPPathMatch) DeepCopyInto(out *HTTPPathMatch) {
153 *out = *in
154 if in.Type != nil {
155 in, out := &in.Type, &out.Type
156 *out = new(PathMatchType)
157 **out = **in
158 }
159 if in.Value != nil {
160 in, out := &in.Value, &out.Value
161 *out = new(string)
162 **out = **in
163 }
164 return
165 }
166
167
168 func (in *HTTPPathMatch) DeepCopy() *HTTPPathMatch {
169 if in == nil {
170 return nil
171 }
172 out := new(HTTPPathMatch)
173 in.DeepCopyInto(out)
174 return out
175 }
176
177
178 func (in *HTTPPathModifier) DeepCopyInto(out *HTTPPathModifier) {
179 *out = *in
180 if in.ReplaceFullPath != nil {
181 in, out := &in.ReplaceFullPath, &out.ReplaceFullPath
182 *out = new(string)
183 **out = **in
184 }
185 if in.ReplacePrefixMatch != nil {
186 in, out := &in.ReplacePrefixMatch, &out.ReplacePrefixMatch
187 *out = new(string)
188 **out = **in
189 }
190 return
191 }
192
193
194 func (in *HTTPPathModifier) DeepCopy() *HTTPPathModifier {
195 if in == nil {
196 return nil
197 }
198 out := new(HTTPPathModifier)
199 in.DeepCopyInto(out)
200 return out
201 }
202
203
204 func (in *HTTPQueryParamMatch) DeepCopyInto(out *HTTPQueryParamMatch) {
205 *out = *in
206 if in.Type != nil {
207 in, out := &in.Type, &out.Type
208 *out = new(QueryParamMatchType)
209 **out = **in
210 }
211 return
212 }
213
214
215 func (in *HTTPQueryParamMatch) DeepCopy() *HTTPQueryParamMatch {
216 if in == nil {
217 return nil
218 }
219 out := new(HTTPQueryParamMatch)
220 in.DeepCopyInto(out)
221 return out
222 }
223
224
225 func (in *HTTPRequestHeaderFilter) DeepCopyInto(out *HTTPRequestHeaderFilter) {
226 *out = *in
227 if in.Set != nil {
228 in, out := &in.Set, &out.Set
229 *out = make([]HTTPHeader, len(*in))
230 copy(*out, *in)
231 }
232 if in.Add != nil {
233 in, out := &in.Add, &out.Add
234 *out = make([]HTTPHeader, len(*in))
235 copy(*out, *in)
236 }
237 if in.Remove != nil {
238 in, out := &in.Remove, &out.Remove
239 *out = make([]string, len(*in))
240 copy(*out, *in)
241 }
242 return
243 }
244
245
246 func (in *HTTPRequestHeaderFilter) DeepCopy() *HTTPRequestHeaderFilter {
247 if in == nil {
248 return nil
249 }
250 out := new(HTTPRequestHeaderFilter)
251 in.DeepCopyInto(out)
252 return out
253 }
254
255
256 func (in *HTTPRequestRedirectFilter) DeepCopyInto(out *HTTPRequestRedirectFilter) {
257 *out = *in
258 if in.Scheme != nil {
259 in, out := &in.Scheme, &out.Scheme
260 *out = new(string)
261 **out = **in
262 }
263 if in.Hostname != nil {
264 in, out := &in.Hostname, &out.Hostname
265 *out = new(v1beta1.PreciseHostname)
266 **out = **in
267 }
268 if in.Path != nil {
269 in, out := &in.Path, &out.Path
270 *out = new(HTTPPathModifier)
271 (*in).DeepCopyInto(*out)
272 }
273 if in.Port != nil {
274 in, out := &in.Port, &out.Port
275 *out = new(v1beta1.PortNumber)
276 **out = **in
277 }
278 if in.StatusCode != nil {
279 in, out := &in.StatusCode, &out.StatusCode
280 *out = new(int)
281 **out = **in
282 }
283 return
284 }
285
286
287 func (in *HTTPRequestRedirectFilter) DeepCopy() *HTTPRequestRedirectFilter {
288 if in == nil {
289 return nil
290 }
291 out := new(HTTPRequestRedirectFilter)
292 in.DeepCopyInto(out)
293 return out
294 }
295
296
297 func (in *HTTPRoute) DeepCopyInto(out *HTTPRoute) {
298 *out = *in
299 out.TypeMeta = in.TypeMeta
300 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
301 in.Spec.DeepCopyInto(&out.Spec)
302 in.Status.DeepCopyInto(&out.Status)
303 return
304 }
305
306
307 func (in *HTTPRoute) DeepCopy() *HTTPRoute {
308 if in == nil {
309 return nil
310 }
311 out := new(HTTPRoute)
312 in.DeepCopyInto(out)
313 return out
314 }
315
316
317 func (in *HTTPRoute) DeepCopyObject() runtime.Object {
318 if c := in.DeepCopy(); c != nil {
319 return c
320 }
321 return nil
322 }
323
324
325 func (in *HTTPRouteFilter) DeepCopyInto(out *HTTPRouteFilter) {
326 *out = *in
327 if in.RequestHeaderModifier != nil {
328 in, out := &in.RequestHeaderModifier, &out.RequestHeaderModifier
329 *out = new(HTTPRequestHeaderFilter)
330 (*in).DeepCopyInto(*out)
331 }
332 if in.RequestRedirect != nil {
333 in, out := &in.RequestRedirect, &out.RequestRedirect
334 *out = new(HTTPRequestRedirectFilter)
335 (*in).DeepCopyInto(*out)
336 }
337 return
338 }
339
340
341 func (in *HTTPRouteFilter) DeepCopy() *HTTPRouteFilter {
342 if in == nil {
343 return nil
344 }
345 out := new(HTTPRouteFilter)
346 in.DeepCopyInto(out)
347 return out
348 }
349
350
351 func (in *HTTPRouteList) DeepCopyInto(out *HTTPRouteList) {
352 *out = *in
353 out.TypeMeta = in.TypeMeta
354 in.ListMeta.DeepCopyInto(&out.ListMeta)
355 if in.Items != nil {
356 in, out := &in.Items, &out.Items
357 *out = make([]HTTPRoute, len(*in))
358 for i := range *in {
359 (*in)[i].DeepCopyInto(&(*out)[i])
360 }
361 }
362 return
363 }
364
365
366 func (in *HTTPRouteList) DeepCopy() *HTTPRouteList {
367 if in == nil {
368 return nil
369 }
370 out := new(HTTPRouteList)
371 in.DeepCopyInto(out)
372 return out
373 }
374
375
376 func (in *HTTPRouteList) DeepCopyObject() runtime.Object {
377 if c := in.DeepCopy(); c != nil {
378 return c
379 }
380 return nil
381 }
382
383
384 func (in *HTTPRouteMatch) DeepCopyInto(out *HTTPRouteMatch) {
385 *out = *in
386 if in.Path != nil {
387 in, out := &in.Path, &out.Path
388 *out = new(HTTPPathMatch)
389 (*in).DeepCopyInto(*out)
390 }
391 if in.Headers != nil {
392 in, out := &in.Headers, &out.Headers
393 *out = make([]HTTPHeaderMatch, len(*in))
394 for i := range *in {
395 (*in)[i].DeepCopyInto(&(*out)[i])
396 }
397 }
398 if in.QueryParams != nil {
399 in, out := &in.QueryParams, &out.QueryParams
400 *out = make([]HTTPQueryParamMatch, len(*in))
401 for i := range *in {
402 (*in)[i].DeepCopyInto(&(*out)[i])
403 }
404 }
405 if in.Method != nil {
406 in, out := &in.Method, &out.Method
407 *out = new(HTTPMethod)
408 **out = **in
409 }
410 return
411 }
412
413
414 func (in *HTTPRouteMatch) DeepCopy() *HTTPRouteMatch {
415 if in == nil {
416 return nil
417 }
418 out := new(HTTPRouteMatch)
419 in.DeepCopyInto(out)
420 return out
421 }
422
423
424 func (in *HTTPRouteRule) DeepCopyInto(out *HTTPRouteRule) {
425 *out = *in
426 if in.Matches != nil {
427 in, out := &in.Matches, &out.Matches
428 *out = make([]HTTPRouteMatch, len(*in))
429 for i := range *in {
430 (*in)[i].DeepCopyInto(&(*out)[i])
431 }
432 }
433 if in.Filters != nil {
434 in, out := &in.Filters, &out.Filters
435 *out = make([]HTTPRouteFilter, len(*in))
436 for i := range *in {
437 (*in)[i].DeepCopyInto(&(*out)[i])
438 }
439 }
440 return
441 }
442
443
444 func (in *HTTPRouteRule) DeepCopy() *HTTPRouteRule {
445 if in == nil {
446 return nil
447 }
448 out := new(HTTPRouteRule)
449 in.DeepCopyInto(out)
450 return out
451 }
452
453
454 func (in *HTTPRouteSpec) DeepCopyInto(out *HTTPRouteSpec) {
455 *out = *in
456 in.CommonRouteSpec.DeepCopyInto(&out.CommonRouteSpec)
457 if in.Hostnames != nil {
458 in, out := &in.Hostnames, &out.Hostnames
459 *out = make([]v1beta1.Hostname, len(*in))
460 copy(*out, *in)
461 }
462 if in.Rules != nil {
463 in, out := &in.Rules, &out.Rules
464 *out = make([]HTTPRouteRule, len(*in))
465 for i := range *in {
466 (*in)[i].DeepCopyInto(&(*out)[i])
467 }
468 }
469 return
470 }
471
472
473 func (in *HTTPRouteSpec) DeepCopy() *HTTPRouteSpec {
474 if in == nil {
475 return nil
476 }
477 out := new(HTTPRouteSpec)
478 in.DeepCopyInto(out)
479 return out
480 }
481
482
483 func (in *HTTPRouteStatus) DeepCopyInto(out *HTTPRouteStatus) {
484 *out = *in
485 in.RouteStatus.DeepCopyInto(&out.RouteStatus)
486 return
487 }
488
489
490 func (in *HTTPRouteStatus) DeepCopy() *HTTPRouteStatus {
491 if in == nil {
492 return nil
493 }
494 out := new(HTTPRouteStatus)
495 in.DeepCopyInto(out)
496 return out
497 }
498
499
500 func (in *MeshTLSAuthentication) DeepCopyInto(out *MeshTLSAuthentication) {
501 *out = *in
502 out.TypeMeta = in.TypeMeta
503 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
504 in.Spec.DeepCopyInto(&out.Spec)
505 return
506 }
507
508
509 func (in *MeshTLSAuthentication) DeepCopy() *MeshTLSAuthentication {
510 if in == nil {
511 return nil
512 }
513 out := new(MeshTLSAuthentication)
514 in.DeepCopyInto(out)
515 return out
516 }
517
518
519 func (in *MeshTLSAuthentication) DeepCopyObject() runtime.Object {
520 if c := in.DeepCopy(); c != nil {
521 return c
522 }
523 return nil
524 }
525
526
527 func (in *MeshTLSAuthenticationList) DeepCopyInto(out *MeshTLSAuthenticationList) {
528 *out = *in
529 out.TypeMeta = in.TypeMeta
530 in.ListMeta.DeepCopyInto(&out.ListMeta)
531 if in.Items != nil {
532 in, out := &in.Items, &out.Items
533 *out = make([]MeshTLSAuthentication, len(*in))
534 for i := range *in {
535 (*in)[i].DeepCopyInto(&(*out)[i])
536 }
537 }
538 return
539 }
540
541
542 func (in *MeshTLSAuthenticationList) DeepCopy() *MeshTLSAuthenticationList {
543 if in == nil {
544 return nil
545 }
546 out := new(MeshTLSAuthenticationList)
547 in.DeepCopyInto(out)
548 return out
549 }
550
551
552 func (in *MeshTLSAuthenticationList) DeepCopyObject() runtime.Object {
553 if c := in.DeepCopy(); c != nil {
554 return c
555 }
556 return nil
557 }
558
559
560 func (in *MeshTLSAuthenticationSpec) DeepCopyInto(out *MeshTLSAuthenticationSpec) {
561 *out = *in
562 if in.Identities != nil {
563 in, out := &in.Identities, &out.Identities
564 *out = make([]string, len(*in))
565 copy(*out, *in)
566 }
567 if in.IdentityRefs != nil {
568 in, out := &in.IdentityRefs, &out.IdentityRefs
569 *out = make([]v1alpha2.PolicyTargetReference, len(*in))
570 for i := range *in {
571 (*in)[i].DeepCopyInto(&(*out)[i])
572 }
573 }
574 return
575 }
576
577
578 func (in *MeshTLSAuthenticationSpec) DeepCopy() *MeshTLSAuthenticationSpec {
579 if in == nil {
580 return nil
581 }
582 out := new(MeshTLSAuthenticationSpec)
583 in.DeepCopyInto(out)
584 return out
585 }
586
587
588 func (in *Network) DeepCopyInto(out *Network) {
589 *out = *in
590 if in.Except != nil {
591 in, out := &in.Except, &out.Except
592 *out = make([]string, len(*in))
593 copy(*out, *in)
594 }
595 return
596 }
597
598
599 func (in *Network) DeepCopy() *Network {
600 if in == nil {
601 return nil
602 }
603 out := new(Network)
604 in.DeepCopyInto(out)
605 return out
606 }
607
608
609 func (in *NetworkAuthentication) DeepCopyInto(out *NetworkAuthentication) {
610 *out = *in
611 out.TypeMeta = in.TypeMeta
612 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
613 in.Spec.DeepCopyInto(&out.Spec)
614 return
615 }
616
617
618 func (in *NetworkAuthentication) DeepCopy() *NetworkAuthentication {
619 if in == nil {
620 return nil
621 }
622 out := new(NetworkAuthentication)
623 in.DeepCopyInto(out)
624 return out
625 }
626
627
628 func (in *NetworkAuthentication) DeepCopyObject() runtime.Object {
629 if c := in.DeepCopy(); c != nil {
630 return c
631 }
632 return nil
633 }
634
635
636 func (in *NetworkAuthenticationList) DeepCopyInto(out *NetworkAuthenticationList) {
637 *out = *in
638 out.TypeMeta = in.TypeMeta
639 in.ListMeta.DeepCopyInto(&out.ListMeta)
640 if in.Items != nil {
641 in, out := &in.Items, &out.Items
642 *out = make([]NetworkAuthentication, len(*in))
643 for i := range *in {
644 (*in)[i].DeepCopyInto(&(*out)[i])
645 }
646 }
647 return
648 }
649
650
651 func (in *NetworkAuthenticationList) DeepCopy() *NetworkAuthenticationList {
652 if in == nil {
653 return nil
654 }
655 out := new(NetworkAuthenticationList)
656 in.DeepCopyInto(out)
657 return out
658 }
659
660
661 func (in *NetworkAuthenticationList) DeepCopyObject() runtime.Object {
662 if c := in.DeepCopy(); c != nil {
663 return c
664 }
665 return nil
666 }
667
668
669 func (in *NetworkAuthenticationSpec) DeepCopyInto(out *NetworkAuthenticationSpec) {
670 *out = *in
671 if in.Networks != nil {
672 in, out := &in.Networks, &out.Networks
673 *out = make([]*Network, len(*in))
674 for i := range *in {
675 if (*in)[i] != nil {
676 in, out := &(*in)[i], &(*out)[i]
677 *out = new(Network)
678 (*in).DeepCopyInto(*out)
679 }
680 }
681 }
682 return
683 }
684
685
686 func (in *NetworkAuthenticationSpec) DeepCopy() *NetworkAuthenticationSpec {
687 if in == nil {
688 return nil
689 }
690 out := new(NetworkAuthenticationSpec)
691 in.DeepCopyInto(out)
692 return out
693 }
694
View as plain text