This commit is contained in:
dayterr
2026-05-08 14:10:06 +03:00
parent 2bd93e92c2
commit f93065e8b1
11 changed files with 252 additions and 85 deletions

10
pkg/cloudapi/vgpu/ids.go Normal file
View 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
}