Skip to content

Commit 8a98bfe

Browse files
committed
cr - make type private
1 parent 3f563a8 commit 8a98bfe

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

internal/compute-domain-dra-plugin/discovery.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ const (
2727
maxChannelID = 2048
2828
)
2929

30-
type AllocatableComputeDomainDevices map[string]resourceapi.Device
30+
type allocatableComputeDomainDevices map[string]resourceapi.Device
3131

32-
func enumerateComputeDomainDevices() (AllocatableComputeDomainDevices, error) {
33-
alldevices := make(AllocatableComputeDomainDevices)
32+
func enumerateComputeDomainDevices() (allocatableComputeDomainDevices, error) {
33+
alldevices := make(allocatableComputeDomainDevices)
3434

3535
for channelID := range maxChannelID {
3636
device := newChannelDevice(channelID)

internal/compute-domain-dra-plugin/discovery_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func TestEnumerateComputeDomainDevices(t *testing.T) {
4848
}
4949

5050
func TestAllocatableComputeDomainDevices(t *testing.T) {
51-
devices := make(AllocatableComputeDomainDevices)
51+
devices := make(allocatableComputeDomainDevices)
5252
assert.NotNil(t, devices)
5353
assert.Len(t, devices, 0)
5454

internal/compute-domain-dra-plugin/driver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import (
3535
type computeDomainDriver struct {
3636
client coreclientset.Interface
3737
helper *kubeletplugin.Helper
38-
allocatable AllocatableComputeDomainDevices
38+
allocatable allocatableComputeDomainDevices
3939
cancelCtx func(error)
4040
}
4141

0 commit comments

Comments
 (0)