Commit 776608f
Introduce plugins.TypedName to be used for Plugin base implementation (kubernetes-sigs#1086)
* introduce TypedName to reduce boilerplate, modify plugins
Signed-off-by: Etai Lev Ran <[email protected]>
* implement GetTypedName()
Signed-off-by: Etai Lev Ran <[email protected]>
* Remove Type() and Name() from Plugin interface
Signed-off-by: Etai Lev Ran <[email protected]>
* use TypedName as private field, not embedded
Signed-off-by: Etai Lev Ran <[email protected]>
---------
Signed-off-by: Etai Lev Ran <[email protected]>1 parent 0338c5a commit 776608f
File tree
21 files changed
+249
-229
lines changed- conformance/testing-epp/plugins/filter
- pkg/epp
- common/config/loader
- plugins
- requestcontrol
- scheduling
- framework
- plugins
- filter
- multi/prefix
- picker
- profile
- scorer
21 files changed
+249
-229
lines changedLines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 48 | + | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
| 558 | + | |
558 | 559 | | |
559 | 560 | | |
560 | 561 | | |
561 | | - | |
562 | | - | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
563 | 566 | | |
564 | 567 | | |
565 | | - | |
566 | | - | |
| 568 | + | |
| 569 | + | |
567 | 570 | | |
568 | 571 | | |
569 | 572 | | |
| |||
575 | 578 | | |
576 | 579 | | |
577 | 580 | | |
578 | | - | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
579 | 584 | | |
580 | | - | |
581 | | - | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
582 | 589 | | |
583 | 590 | | |
584 | | - | |
585 | | - | |
| 591 | + | |
| 592 | + | |
586 | 593 | | |
587 | 594 | | |
588 | 595 | | |
| |||
594 | 601 | | |
595 | 602 | | |
596 | 603 | | |
597 | | - | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
598 | 607 | | |
599 | | - | |
600 | | - | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
601 | 612 | | |
602 | 613 | | |
603 | | - | |
604 | | - | |
| 614 | + | |
| 615 | + | |
605 | 616 | | |
606 | 617 | | |
607 | 618 | | |
| |||
611 | 622 | | |
612 | 623 | | |
613 | 624 | | |
614 | | - | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
615 | 628 | | |
616 | | - | |
617 | | - | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
618 | 633 | | |
619 | 634 | | |
620 | | - | |
621 | | - | |
| 635 | + | |
| 636 | + | |
622 | 637 | | |
623 | 638 | | |
624 | 639 | | |
| |||
631 | 646 | | |
632 | 647 | | |
633 | 648 | | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
638 | 653 | | |
639 | 654 | | |
640 | 655 | | |
641 | 656 | | |
642 | | - | |
643 | | - | |
| 657 | + | |
| 658 | + | |
644 | 659 | | |
645 | 660 | | |
646 | 661 | | |
647 | 662 | | |
648 | | - | |
649 | | - | |
| 663 | + | |
| 664 | + | |
650 | 665 | | |
651 | 666 | | |
652 | 667 | | |
653 | 668 | | |
654 | | - | |
655 | | - | |
| 669 | + | |
| 670 | + | |
656 | 671 | | |
657 | 672 | | |
658 | 673 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 27 | + | |
| 28 | + | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
653 | | - | |
| 653 | + | |
654 | 654 | | |
655 | 655 | | |
656 | | - | |
| 656 | + | |
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
661 | 661 | | |
662 | | - | |
| 662 | + | |
663 | 663 | | |
664 | 664 | | |
665 | | - | |
| 665 | + | |
666 | 666 | | |
667 | 667 | | |
668 | 668 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
894 | 895 | | |
895 | 896 | | |
896 | 897 | | |
897 | | - | |
898 | | - | |
899 | | - | |
| 898 | + | |
900 | 899 | | |
901 | 900 | | |
902 | 901 | | |
| |||
932 | 931 | | |
933 | 932 | | |
934 | 933 | | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
935 | 938 | | |
936 | | - | |
| 939 | + | |
937 | 940 | | |
938 | 941 | | |
939 | 942 | | |
940 | 943 | | |
941 | | - | |
942 | | - | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
943 | 953 | | |
944 | 954 | | |
945 | 955 | | |
| |||
Lines changed: 11 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
134 | | - | |
135 | | - | |
| 136 | + | |
136 | 137 | | |
137 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
138 | 142 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
| 143 | + | |
148 | 144 | | |
149 | 145 | | |
150 | 146 | | |
| |||
161 | 157 | | |
162 | 158 | | |
163 | 159 | | |
164 | | - | |
| 160 | + | |
165 | 161 | | |
166 | 162 | | |
167 | 163 | | |
| |||
172 | 168 | | |
173 | 169 | | |
174 | 170 | | |
175 | | - | |
| 171 | + | |
176 | 172 | | |
177 | 173 | | |
178 | 174 | | |
| |||
0 commit comments