v1.6.8
This commit is contained in:
10
pkg/cloudbroker/pcidevice/ids.go
Normal file
10
pkg/cloudbroker/pcidevice/ids.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package pcidevice
|
||||
|
||||
// IDs gets array of PCIDeviceIDs from ListPCIDevices struct
|
||||
func (lpd ListPCIDevices) IDs() []uint64 {
|
||||
res := make([]uint64, 0, len(lpd.Data))
|
||||
for _, lb := range lpd.Data {
|
||||
res = append(res, lb.ID)
|
||||
}
|
||||
return res
|
||||
}
|
||||
Reference in New Issue
Block a user