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