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