Skip to content

Commit 8762ad7

Browse files
committed
imports
Signed-off-by: Nir Rozenbaum <[email protected]>
1 parent 73c9eaf commit 8762ad7

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed

pkg/epp/plugins/typedname.go

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,19 @@ limitations under the License.
1616

1717
package 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.
2324
type 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>".
3632
func (tn *TypedName) String() string {
37-
return tn.Type + Separator + tn.Name
33+
return tn.Type + separator + tn.Name
3834
}

pkg/epp/scheduling/framework/plugins/picker/max_score_picker.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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"

pkg/epp/scheduling/framework/plugins/picker/picker_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

3131
func TestPickMaxScorePicker(t *testing.T) {

0 commit comments

Comments
 (0)