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