File tree Expand file tree Collapse file tree 3 files changed +12
-15
lines changed
scheduling/framework/plugins/picker Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -16,23 +16,19 @@ limitations under the License.
1616
1717package plugins
1818
19- // TypedName is a utility struct providing a type and a name
20- // to plugins.
21- // It implements the Plugin interface and can be embedded in
22- // plugins across the code to reduce boilerplate.
19+ const (
20+ separator = "/"
21+ )
22+
23+ // TypedName is a utility struct providing a type and a name to plugins.
2324type TypedName struct {
24- // Type returns the type of the plugin.
25+ // Type returns the type of a plugin.
2526 Type string
26- // Name returns the name of this plugin instance.
27+ // Name returns the name of a plugin instance.
2728 Name string
2829}
2930
30- const (
31- Separator = "/"
32- )
33-
34- // String returns the type and name rendered as
35- // "<type>/<name>".
31+ // String returns the type and name rendered as "<type>/<name>".
3632func (tn * TypedName ) String () string {
37- return tn .Type + Separator + tn .Name
33+ return tn .Type + separator + tn .Name
3834}
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import (
2323 "slices"
2424
2525 "sigs.k8s.io/controller-runtime/pkg/log"
26+
2627 "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/plugins"
2728 "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/scheduling/framework"
2829 "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/scheduling/types"
Original file line number Diff line number Diff line change @@ -21,11 +21,11 @@ import (
2121 "testing"
2222
2323 "github.com/google/go-cmp/cmp"
24+ k8stypes "k8s.io/apimachinery/pkg/types"
25+
2426 "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/backend"
2527 "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/scheduling/framework"
2628 "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/scheduling/types"
27-
28- k8stypes "k8s.io/apimachinery/pkg/types"
2929)
3030
3131func TestPickMaxScorePicker (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments