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.
20 lines
444 B
20 lines
444 B
package extnet
|
|
|
|
// IDs gets array of ExtNetIDs from ListExtNets struct
|
|
func (le ListExtNets) IDs() []uint64 {
|
|
res := make([]uint64, 0, len(le.Data))
|
|
for _, e := range le.Data {
|
|
res = append(res, e.ID)
|
|
}
|
|
return res
|
|
}
|
|
|
|
// IDs gets array of ComputeIDs from ListExtNetComputes struct
|
|
func (le ListExtNetComputes) IDs() []uint64 {
|
|
res := make([]uint64, 0, len(le.Data))
|
|
for _, e := range le.Data {
|
|
res = append(res, e.ID)
|
|
}
|
|
return res
|
|
}
|