You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
decort-golang-sdk/pkg/cloudbroker/node/ids.go

11 lines
215 B

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
}