1
2
3
4
5
6 package v1
7
8 import (
9 corev1 "k8s.io/api/core/v1"
10 rbacv1 "k8s.io/api/rbac/v1"
11 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
12 runtime "k8s.io/apimachinery/pkg/runtime"
13 )
14
15
16 func (in *Action) DeepCopyInto(out *Action) {
17 *out = *in
18 in.Content.DeepCopyInto(&out.Content)
19 return
20 }
21
22
23 func (in *Action) DeepCopy() *Action {
24 if in == nil {
25 return nil
26 }
27 out := new(Action)
28 in.DeepCopyInto(out)
29 return out
30 }
31
32
33 func (in *ClusterRole) DeepCopyInto(out *ClusterRole) {
34 *out = *in
35 out.TypeMeta = in.TypeMeta
36 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
37 if in.Rules != nil {
38 in, out := &in.Rules, &out.Rules
39 *out = make([]PolicyRule, len(*in))
40 for i := range *in {
41 (*in)[i].DeepCopyInto(&(*out)[i])
42 }
43 }
44 if in.AggregationRule != nil {
45 in, out := &in.AggregationRule, &out.AggregationRule
46 *out = new(rbacv1.AggregationRule)
47 (*in).DeepCopyInto(*out)
48 }
49 return
50 }
51
52
53 func (in *ClusterRole) DeepCopy() *ClusterRole {
54 if in == nil {
55 return nil
56 }
57 out := new(ClusterRole)
58 in.DeepCopyInto(out)
59 return out
60 }
61
62
63 func (in *ClusterRole) DeepCopyObject() runtime.Object {
64 if c := in.DeepCopy(); c != nil {
65 return c
66 }
67 return nil
68 }
69
70
71 func (in *ClusterRoleBinding) DeepCopyInto(out *ClusterRoleBinding) {
72 *out = *in
73 out.TypeMeta = in.TypeMeta
74 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
75 if in.UserNames != nil {
76 in, out := &in.UserNames, &out.UserNames
77 *out = make(OptionalNames, len(*in))
78 copy(*out, *in)
79 }
80 if in.GroupNames != nil {
81 in, out := &in.GroupNames, &out.GroupNames
82 *out = make(OptionalNames, len(*in))
83 copy(*out, *in)
84 }
85 if in.Subjects != nil {
86 in, out := &in.Subjects, &out.Subjects
87 *out = make([]corev1.ObjectReference, len(*in))
88 copy(*out, *in)
89 }
90 out.RoleRef = in.RoleRef
91 return
92 }
93
94
95 func (in *ClusterRoleBinding) DeepCopy() *ClusterRoleBinding {
96 if in == nil {
97 return nil
98 }
99 out := new(ClusterRoleBinding)
100 in.DeepCopyInto(out)
101 return out
102 }
103
104
105 func (in *ClusterRoleBinding) DeepCopyObject() runtime.Object {
106 if c := in.DeepCopy(); c != nil {
107 return c
108 }
109 return nil
110 }
111
112
113 func (in *ClusterRoleBindingList) DeepCopyInto(out *ClusterRoleBindingList) {
114 *out = *in
115 out.TypeMeta = in.TypeMeta
116 in.ListMeta.DeepCopyInto(&out.ListMeta)
117 if in.Items != nil {
118 in, out := &in.Items, &out.Items
119 *out = make([]ClusterRoleBinding, len(*in))
120 for i := range *in {
121 (*in)[i].DeepCopyInto(&(*out)[i])
122 }
123 }
124 return
125 }
126
127
128 func (in *ClusterRoleBindingList) DeepCopy() *ClusterRoleBindingList {
129 if in == nil {
130 return nil
131 }
132 out := new(ClusterRoleBindingList)
133 in.DeepCopyInto(out)
134 return out
135 }
136
137
138 func (in *ClusterRoleBindingList) DeepCopyObject() runtime.Object {
139 if c := in.DeepCopy(); c != nil {
140 return c
141 }
142 return nil
143 }
144
145
146 func (in *ClusterRoleList) DeepCopyInto(out *ClusterRoleList) {
147 *out = *in
148 out.TypeMeta = in.TypeMeta
149 in.ListMeta.DeepCopyInto(&out.ListMeta)
150 if in.Items != nil {
151 in, out := &in.Items, &out.Items
152 *out = make([]ClusterRole, len(*in))
153 for i := range *in {
154 (*in)[i].DeepCopyInto(&(*out)[i])
155 }
156 }
157 return
158 }
159
160
161 func (in *ClusterRoleList) DeepCopy() *ClusterRoleList {
162 if in == nil {
163 return nil
164 }
165 out := new(ClusterRoleList)
166 in.DeepCopyInto(out)
167 return out
168 }
169
170
171 func (in *ClusterRoleList) DeepCopyObject() runtime.Object {
172 if c := in.DeepCopy(); c != nil {
173 return c
174 }
175 return nil
176 }
177
178
179 func (in *GroupRestriction) DeepCopyInto(out *GroupRestriction) {
180 *out = *in
181 if in.Groups != nil {
182 in, out := &in.Groups, &out.Groups
183 *out = make([]string, len(*in))
184 copy(*out, *in)
185 }
186 if in.Selectors != nil {
187 in, out := &in.Selectors, &out.Selectors
188 *out = make([]metav1.LabelSelector, len(*in))
189 for i := range *in {
190 (*in)[i].DeepCopyInto(&(*out)[i])
191 }
192 }
193 return
194 }
195
196
197 func (in *GroupRestriction) DeepCopy() *GroupRestriction {
198 if in == nil {
199 return nil
200 }
201 out := new(GroupRestriction)
202 in.DeepCopyInto(out)
203 return out
204 }
205
206
207 func (in *IsPersonalSubjectAccessReview) DeepCopyInto(out *IsPersonalSubjectAccessReview) {
208 *out = *in
209 out.TypeMeta = in.TypeMeta
210 return
211 }
212
213
214 func (in *IsPersonalSubjectAccessReview) DeepCopy() *IsPersonalSubjectAccessReview {
215 if in == nil {
216 return nil
217 }
218 out := new(IsPersonalSubjectAccessReview)
219 in.DeepCopyInto(out)
220 return out
221 }
222
223
224 func (in *IsPersonalSubjectAccessReview) DeepCopyObject() runtime.Object {
225 if c := in.DeepCopy(); c != nil {
226 return c
227 }
228 return nil
229 }
230
231
232 func (in *LocalResourceAccessReview) DeepCopyInto(out *LocalResourceAccessReview) {
233 *out = *in
234 out.TypeMeta = in.TypeMeta
235 in.Action.DeepCopyInto(&out.Action)
236 return
237 }
238
239
240 func (in *LocalResourceAccessReview) DeepCopy() *LocalResourceAccessReview {
241 if in == nil {
242 return nil
243 }
244 out := new(LocalResourceAccessReview)
245 in.DeepCopyInto(out)
246 return out
247 }
248
249
250 func (in *LocalResourceAccessReview) DeepCopyObject() runtime.Object {
251 if c := in.DeepCopy(); c != nil {
252 return c
253 }
254 return nil
255 }
256
257
258 func (in *LocalSubjectAccessReview) DeepCopyInto(out *LocalSubjectAccessReview) {
259 *out = *in
260 out.TypeMeta = in.TypeMeta
261 in.Action.DeepCopyInto(&out.Action)
262 if in.GroupsSlice != nil {
263 in, out := &in.GroupsSlice, &out.GroupsSlice
264 *out = make([]string, len(*in))
265 copy(*out, *in)
266 }
267 if in.Scopes != nil {
268 in, out := &in.Scopes, &out.Scopes
269 *out = make(OptionalScopes, len(*in))
270 copy(*out, *in)
271 }
272 return
273 }
274
275
276 func (in *LocalSubjectAccessReview) DeepCopy() *LocalSubjectAccessReview {
277 if in == nil {
278 return nil
279 }
280 out := new(LocalSubjectAccessReview)
281 in.DeepCopyInto(out)
282 return out
283 }
284
285
286 func (in *LocalSubjectAccessReview) DeepCopyObject() runtime.Object {
287 if c := in.DeepCopy(); c != nil {
288 return c
289 }
290 return nil
291 }
292
293
294 func (in *NamedClusterRole) DeepCopyInto(out *NamedClusterRole) {
295 *out = *in
296 in.Role.DeepCopyInto(&out.Role)
297 return
298 }
299
300
301 func (in *NamedClusterRole) DeepCopy() *NamedClusterRole {
302 if in == nil {
303 return nil
304 }
305 out := new(NamedClusterRole)
306 in.DeepCopyInto(out)
307 return out
308 }
309
310
311 func (in *NamedClusterRoleBinding) DeepCopyInto(out *NamedClusterRoleBinding) {
312 *out = *in
313 in.RoleBinding.DeepCopyInto(&out.RoleBinding)
314 return
315 }
316
317
318 func (in *NamedClusterRoleBinding) DeepCopy() *NamedClusterRoleBinding {
319 if in == nil {
320 return nil
321 }
322 out := new(NamedClusterRoleBinding)
323 in.DeepCopyInto(out)
324 return out
325 }
326
327
328 func (in *NamedRole) DeepCopyInto(out *NamedRole) {
329 *out = *in
330 in.Role.DeepCopyInto(&out.Role)
331 return
332 }
333
334
335 func (in *NamedRole) DeepCopy() *NamedRole {
336 if in == nil {
337 return nil
338 }
339 out := new(NamedRole)
340 in.DeepCopyInto(out)
341 return out
342 }
343
344
345 func (in *NamedRoleBinding) DeepCopyInto(out *NamedRoleBinding) {
346 *out = *in
347 in.RoleBinding.DeepCopyInto(&out.RoleBinding)
348 return
349 }
350
351
352 func (in *NamedRoleBinding) DeepCopy() *NamedRoleBinding {
353 if in == nil {
354 return nil
355 }
356 out := new(NamedRoleBinding)
357 in.DeepCopyInto(out)
358 return out
359 }
360
361
362 func (in OptionalNames) DeepCopyInto(out *OptionalNames) {
363 {
364 in := &in
365 *out = make(OptionalNames, len(*in))
366 copy(*out, *in)
367 return
368 }
369 }
370
371
372 func (in OptionalNames) DeepCopy() OptionalNames {
373 if in == nil {
374 return nil
375 }
376 out := new(OptionalNames)
377 in.DeepCopyInto(out)
378 return *out
379 }
380
381
382 func (in OptionalScopes) DeepCopyInto(out *OptionalScopes) {
383 {
384 in := &in
385 *out = make(OptionalScopes, len(*in))
386 copy(*out, *in)
387 return
388 }
389 }
390
391
392 func (in OptionalScopes) DeepCopy() OptionalScopes {
393 if in == nil {
394 return nil
395 }
396 out := new(OptionalScopes)
397 in.DeepCopyInto(out)
398 return *out
399 }
400
401
402 func (in *PolicyRule) DeepCopyInto(out *PolicyRule) {
403 *out = *in
404 if in.Verbs != nil {
405 in, out := &in.Verbs, &out.Verbs
406 *out = make([]string, len(*in))
407 copy(*out, *in)
408 }
409 in.AttributeRestrictions.DeepCopyInto(&out.AttributeRestrictions)
410 if in.APIGroups != nil {
411 in, out := &in.APIGroups, &out.APIGroups
412 *out = make([]string, len(*in))
413 copy(*out, *in)
414 }
415 if in.Resources != nil {
416 in, out := &in.Resources, &out.Resources
417 *out = make([]string, len(*in))
418 copy(*out, *in)
419 }
420 if in.ResourceNames != nil {
421 in, out := &in.ResourceNames, &out.ResourceNames
422 *out = make([]string, len(*in))
423 copy(*out, *in)
424 }
425 if in.NonResourceURLsSlice != nil {
426 in, out := &in.NonResourceURLsSlice, &out.NonResourceURLsSlice
427 *out = make([]string, len(*in))
428 copy(*out, *in)
429 }
430 return
431 }
432
433
434 func (in *PolicyRule) DeepCopy() *PolicyRule {
435 if in == nil {
436 return nil
437 }
438 out := new(PolicyRule)
439 in.DeepCopyInto(out)
440 return out
441 }
442
443
444 func (in *ResourceAccessReview) DeepCopyInto(out *ResourceAccessReview) {
445 *out = *in
446 out.TypeMeta = in.TypeMeta
447 in.Action.DeepCopyInto(&out.Action)
448 return
449 }
450
451
452 func (in *ResourceAccessReview) DeepCopy() *ResourceAccessReview {
453 if in == nil {
454 return nil
455 }
456 out := new(ResourceAccessReview)
457 in.DeepCopyInto(out)
458 return out
459 }
460
461
462 func (in *ResourceAccessReview) DeepCopyObject() runtime.Object {
463 if c := in.DeepCopy(); c != nil {
464 return c
465 }
466 return nil
467 }
468
469
470 func (in *ResourceAccessReviewResponse) DeepCopyInto(out *ResourceAccessReviewResponse) {
471 *out = *in
472 out.TypeMeta = in.TypeMeta
473 if in.UsersSlice != nil {
474 in, out := &in.UsersSlice, &out.UsersSlice
475 *out = make([]string, len(*in))
476 copy(*out, *in)
477 }
478 if in.GroupsSlice != nil {
479 in, out := &in.GroupsSlice, &out.GroupsSlice
480 *out = make([]string, len(*in))
481 copy(*out, *in)
482 }
483 return
484 }
485
486
487 func (in *ResourceAccessReviewResponse) DeepCopy() *ResourceAccessReviewResponse {
488 if in == nil {
489 return nil
490 }
491 out := new(ResourceAccessReviewResponse)
492 in.DeepCopyInto(out)
493 return out
494 }
495
496
497 func (in *ResourceAccessReviewResponse) DeepCopyObject() runtime.Object {
498 if c := in.DeepCopy(); c != nil {
499 return c
500 }
501 return nil
502 }
503
504
505 func (in *Role) DeepCopyInto(out *Role) {
506 *out = *in
507 out.TypeMeta = in.TypeMeta
508 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
509 if in.Rules != nil {
510 in, out := &in.Rules, &out.Rules
511 *out = make([]PolicyRule, len(*in))
512 for i := range *in {
513 (*in)[i].DeepCopyInto(&(*out)[i])
514 }
515 }
516 return
517 }
518
519
520 func (in *Role) DeepCopy() *Role {
521 if in == nil {
522 return nil
523 }
524 out := new(Role)
525 in.DeepCopyInto(out)
526 return out
527 }
528
529
530 func (in *Role) DeepCopyObject() runtime.Object {
531 if c := in.DeepCopy(); c != nil {
532 return c
533 }
534 return nil
535 }
536
537
538 func (in *RoleBinding) DeepCopyInto(out *RoleBinding) {
539 *out = *in
540 out.TypeMeta = in.TypeMeta
541 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
542 if in.UserNames != nil {
543 in, out := &in.UserNames, &out.UserNames
544 *out = make(OptionalNames, len(*in))
545 copy(*out, *in)
546 }
547 if in.GroupNames != nil {
548 in, out := &in.GroupNames, &out.GroupNames
549 *out = make(OptionalNames, len(*in))
550 copy(*out, *in)
551 }
552 if in.Subjects != nil {
553 in, out := &in.Subjects, &out.Subjects
554 *out = make([]corev1.ObjectReference, len(*in))
555 copy(*out, *in)
556 }
557 out.RoleRef = in.RoleRef
558 return
559 }
560
561
562 func (in *RoleBinding) DeepCopy() *RoleBinding {
563 if in == nil {
564 return nil
565 }
566 out := new(RoleBinding)
567 in.DeepCopyInto(out)
568 return out
569 }
570
571
572 func (in *RoleBinding) DeepCopyObject() runtime.Object {
573 if c := in.DeepCopy(); c != nil {
574 return c
575 }
576 return nil
577 }
578
579
580 func (in *RoleBindingList) DeepCopyInto(out *RoleBindingList) {
581 *out = *in
582 out.TypeMeta = in.TypeMeta
583 in.ListMeta.DeepCopyInto(&out.ListMeta)
584 if in.Items != nil {
585 in, out := &in.Items, &out.Items
586 *out = make([]RoleBinding, len(*in))
587 for i := range *in {
588 (*in)[i].DeepCopyInto(&(*out)[i])
589 }
590 }
591 return
592 }
593
594
595 func (in *RoleBindingList) DeepCopy() *RoleBindingList {
596 if in == nil {
597 return nil
598 }
599 out := new(RoleBindingList)
600 in.DeepCopyInto(out)
601 return out
602 }
603
604
605 func (in *RoleBindingList) DeepCopyObject() runtime.Object {
606 if c := in.DeepCopy(); c != nil {
607 return c
608 }
609 return nil
610 }
611
612
613 func (in *RoleBindingRestriction) DeepCopyInto(out *RoleBindingRestriction) {
614 *out = *in
615 out.TypeMeta = in.TypeMeta
616 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
617 in.Spec.DeepCopyInto(&out.Spec)
618 return
619 }
620
621
622 func (in *RoleBindingRestriction) DeepCopy() *RoleBindingRestriction {
623 if in == nil {
624 return nil
625 }
626 out := new(RoleBindingRestriction)
627 in.DeepCopyInto(out)
628 return out
629 }
630
631
632 func (in *RoleBindingRestriction) DeepCopyObject() runtime.Object {
633 if c := in.DeepCopy(); c != nil {
634 return c
635 }
636 return nil
637 }
638
639
640 func (in *RoleBindingRestrictionList) DeepCopyInto(out *RoleBindingRestrictionList) {
641 *out = *in
642 out.TypeMeta = in.TypeMeta
643 in.ListMeta.DeepCopyInto(&out.ListMeta)
644 if in.Items != nil {
645 in, out := &in.Items, &out.Items
646 *out = make([]RoleBindingRestriction, len(*in))
647 for i := range *in {
648 (*in)[i].DeepCopyInto(&(*out)[i])
649 }
650 }
651 return
652 }
653
654
655 func (in *RoleBindingRestrictionList) DeepCopy() *RoleBindingRestrictionList {
656 if in == nil {
657 return nil
658 }
659 out := new(RoleBindingRestrictionList)
660 in.DeepCopyInto(out)
661 return out
662 }
663
664
665 func (in *RoleBindingRestrictionList) DeepCopyObject() runtime.Object {
666 if c := in.DeepCopy(); c != nil {
667 return c
668 }
669 return nil
670 }
671
672
673 func (in *RoleBindingRestrictionSpec) DeepCopyInto(out *RoleBindingRestrictionSpec) {
674 *out = *in
675 if in.UserRestriction != nil {
676 in, out := &in.UserRestriction, &out.UserRestriction
677 *out = new(UserRestriction)
678 (*in).DeepCopyInto(*out)
679 }
680 if in.GroupRestriction != nil {
681 in, out := &in.GroupRestriction, &out.GroupRestriction
682 *out = new(GroupRestriction)
683 (*in).DeepCopyInto(*out)
684 }
685 if in.ServiceAccountRestriction != nil {
686 in, out := &in.ServiceAccountRestriction, &out.ServiceAccountRestriction
687 *out = new(ServiceAccountRestriction)
688 (*in).DeepCopyInto(*out)
689 }
690 return
691 }
692
693
694 func (in *RoleBindingRestrictionSpec) DeepCopy() *RoleBindingRestrictionSpec {
695 if in == nil {
696 return nil
697 }
698 out := new(RoleBindingRestrictionSpec)
699 in.DeepCopyInto(out)
700 return out
701 }
702
703
704 func (in *RoleList) DeepCopyInto(out *RoleList) {
705 *out = *in
706 out.TypeMeta = in.TypeMeta
707 in.ListMeta.DeepCopyInto(&out.ListMeta)
708 if in.Items != nil {
709 in, out := &in.Items, &out.Items
710 *out = make([]Role, len(*in))
711 for i := range *in {
712 (*in)[i].DeepCopyInto(&(*out)[i])
713 }
714 }
715 return
716 }
717
718
719 func (in *RoleList) DeepCopy() *RoleList {
720 if in == nil {
721 return nil
722 }
723 out := new(RoleList)
724 in.DeepCopyInto(out)
725 return out
726 }
727
728
729 func (in *RoleList) DeepCopyObject() runtime.Object {
730 if c := in.DeepCopy(); c != nil {
731 return c
732 }
733 return nil
734 }
735
736
737 func (in *SelfSubjectRulesReview) DeepCopyInto(out *SelfSubjectRulesReview) {
738 *out = *in
739 out.TypeMeta = in.TypeMeta
740 in.Spec.DeepCopyInto(&out.Spec)
741 in.Status.DeepCopyInto(&out.Status)
742 return
743 }
744
745
746 func (in *SelfSubjectRulesReview) DeepCopy() *SelfSubjectRulesReview {
747 if in == nil {
748 return nil
749 }
750 out := new(SelfSubjectRulesReview)
751 in.DeepCopyInto(out)
752 return out
753 }
754
755
756 func (in *SelfSubjectRulesReview) DeepCopyObject() runtime.Object {
757 if c := in.DeepCopy(); c != nil {
758 return c
759 }
760 return nil
761 }
762
763
764 func (in *SelfSubjectRulesReviewSpec) DeepCopyInto(out *SelfSubjectRulesReviewSpec) {
765 *out = *in
766 if in.Scopes != nil {
767 in, out := &in.Scopes, &out.Scopes
768 *out = make(OptionalScopes, len(*in))
769 copy(*out, *in)
770 }
771 return
772 }
773
774
775 func (in *SelfSubjectRulesReviewSpec) DeepCopy() *SelfSubjectRulesReviewSpec {
776 if in == nil {
777 return nil
778 }
779 out := new(SelfSubjectRulesReviewSpec)
780 in.DeepCopyInto(out)
781 return out
782 }
783
784
785 func (in *ServiceAccountReference) DeepCopyInto(out *ServiceAccountReference) {
786 *out = *in
787 return
788 }
789
790
791 func (in *ServiceAccountReference) DeepCopy() *ServiceAccountReference {
792 if in == nil {
793 return nil
794 }
795 out := new(ServiceAccountReference)
796 in.DeepCopyInto(out)
797 return out
798 }
799
800
801 func (in *ServiceAccountRestriction) DeepCopyInto(out *ServiceAccountRestriction) {
802 *out = *in
803 if in.ServiceAccounts != nil {
804 in, out := &in.ServiceAccounts, &out.ServiceAccounts
805 *out = make([]ServiceAccountReference, len(*in))
806 copy(*out, *in)
807 }
808 if in.Namespaces != nil {
809 in, out := &in.Namespaces, &out.Namespaces
810 *out = make([]string, len(*in))
811 copy(*out, *in)
812 }
813 return
814 }
815
816
817 func (in *ServiceAccountRestriction) DeepCopy() *ServiceAccountRestriction {
818 if in == nil {
819 return nil
820 }
821 out := new(ServiceAccountRestriction)
822 in.DeepCopyInto(out)
823 return out
824 }
825
826
827 func (in *SubjectAccessReview) DeepCopyInto(out *SubjectAccessReview) {
828 *out = *in
829 out.TypeMeta = in.TypeMeta
830 in.Action.DeepCopyInto(&out.Action)
831 if in.GroupsSlice != nil {
832 in, out := &in.GroupsSlice, &out.GroupsSlice
833 *out = make([]string, len(*in))
834 copy(*out, *in)
835 }
836 if in.Scopes != nil {
837 in, out := &in.Scopes, &out.Scopes
838 *out = make(OptionalScopes, len(*in))
839 copy(*out, *in)
840 }
841 return
842 }
843
844
845 func (in *SubjectAccessReview) DeepCopy() *SubjectAccessReview {
846 if in == nil {
847 return nil
848 }
849 out := new(SubjectAccessReview)
850 in.DeepCopyInto(out)
851 return out
852 }
853
854
855 func (in *SubjectAccessReview) DeepCopyObject() runtime.Object {
856 if c := in.DeepCopy(); c != nil {
857 return c
858 }
859 return nil
860 }
861
862
863 func (in *SubjectAccessReviewResponse) DeepCopyInto(out *SubjectAccessReviewResponse) {
864 *out = *in
865 out.TypeMeta = in.TypeMeta
866 return
867 }
868
869
870 func (in *SubjectAccessReviewResponse) DeepCopy() *SubjectAccessReviewResponse {
871 if in == nil {
872 return nil
873 }
874 out := new(SubjectAccessReviewResponse)
875 in.DeepCopyInto(out)
876 return out
877 }
878
879
880 func (in *SubjectAccessReviewResponse) DeepCopyObject() runtime.Object {
881 if c := in.DeepCopy(); c != nil {
882 return c
883 }
884 return nil
885 }
886
887
888 func (in *SubjectRulesReview) DeepCopyInto(out *SubjectRulesReview) {
889 *out = *in
890 out.TypeMeta = in.TypeMeta
891 in.Spec.DeepCopyInto(&out.Spec)
892 in.Status.DeepCopyInto(&out.Status)
893 return
894 }
895
896
897 func (in *SubjectRulesReview) DeepCopy() *SubjectRulesReview {
898 if in == nil {
899 return nil
900 }
901 out := new(SubjectRulesReview)
902 in.DeepCopyInto(out)
903 return out
904 }
905
906
907 func (in *SubjectRulesReview) DeepCopyObject() runtime.Object {
908 if c := in.DeepCopy(); c != nil {
909 return c
910 }
911 return nil
912 }
913
914
915 func (in *SubjectRulesReviewSpec) DeepCopyInto(out *SubjectRulesReviewSpec) {
916 *out = *in
917 if in.Groups != nil {
918 in, out := &in.Groups, &out.Groups
919 *out = make([]string, len(*in))
920 copy(*out, *in)
921 }
922 if in.Scopes != nil {
923 in, out := &in.Scopes, &out.Scopes
924 *out = make(OptionalScopes, len(*in))
925 copy(*out, *in)
926 }
927 return
928 }
929
930
931 func (in *SubjectRulesReviewSpec) DeepCopy() *SubjectRulesReviewSpec {
932 if in == nil {
933 return nil
934 }
935 out := new(SubjectRulesReviewSpec)
936 in.DeepCopyInto(out)
937 return out
938 }
939
940
941 func (in *SubjectRulesReviewStatus) DeepCopyInto(out *SubjectRulesReviewStatus) {
942 *out = *in
943 if in.Rules != nil {
944 in, out := &in.Rules, &out.Rules
945 *out = make([]PolicyRule, len(*in))
946 for i := range *in {
947 (*in)[i].DeepCopyInto(&(*out)[i])
948 }
949 }
950 return
951 }
952
953
954 func (in *SubjectRulesReviewStatus) DeepCopy() *SubjectRulesReviewStatus {
955 if in == nil {
956 return nil
957 }
958 out := new(SubjectRulesReviewStatus)
959 in.DeepCopyInto(out)
960 return out
961 }
962
963
964 func (in *UserRestriction) DeepCopyInto(out *UserRestriction) {
965 *out = *in
966 if in.Users != nil {
967 in, out := &in.Users, &out.Users
968 *out = make([]string, len(*in))
969 copy(*out, *in)
970 }
971 if in.Groups != nil {
972 in, out := &in.Groups, &out.Groups
973 *out = make([]string, len(*in))
974 copy(*out, *in)
975 }
976 if in.Selectors != nil {
977 in, out := &in.Selectors, &out.Selectors
978 *out = make([]metav1.LabelSelector, len(*in))
979 for i := range *in {
980 (*in)[i].DeepCopyInto(&(*out)[i])
981 }
982 }
983 return
984 }
985
986
987 func (in *UserRestriction) DeepCopy() *UserRestriction {
988 if in == nil {
989 return nil
990 }
991 out := new(UserRestriction)
992 in.DeepCopyInto(out)
993 return out
994 }
995
View as plain text