This commit is contained in:
asteam
2025-08-29 12:51:25 +03:00
parent e10ee7f801
commit 825b1a0a00
177 changed files with 4821 additions and 349 deletions

19
pkg/sdn/acsgroups/ids.go Normal file
View File

@@ -0,0 +1,19 @@
package acsgroups
// IDs gets array of IDs from AccessGroupList struct
func (agl AccessGroupList) IDs() []string {
res := make([]string, 0, len(agl.AccessGroups))
for _, c := range agl.AccessGroups {
res = append(res, c.ID)
}
return res
}
// IDs gets array of IDs from UsersList struct
func (ul UsersList) IDs() []string {
res := make([]string, 0, len(ul.Users))
for _, c := range ul.Users {
res = append(res, c.ID)
}
return res
}