v1.14.9
This commit is contained in:
10
pkg/cloudapi/vgpu/ids.go
Normal file
10
pkg/cloudapi/vgpu/ids.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package vgpu
|
||||
|
||||
// IDs gets array of VGPU IDs from ListVGPU struct
|
||||
func (l ListVGPU) IDs() []uint64 {
|
||||
res := make([]uint64, 0, len(l.Data))
|
||||
for _, v := range l.Data {
|
||||
res = append(res, v.ID)
|
||||
}
|
||||
return res
|
||||
}
|
||||
Reference in New Issue
Block a user