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