(auths []*coreauth.Auth)
| 319 | } |
| 320 | |
| 321 | func authSliceToMap(auths []*coreauth.Auth) map[string]*coreauth.Auth { |
| 322 | byID := make(map[string]*coreauth.Auth, len(auths)) |
| 323 | for _, a := range auths { |
| 324 | if a == nil || strings.TrimSpace(a.ID) == "" { |
| 325 | continue |
| 326 | } |
| 327 | byID[a.ID] = a |
| 328 | } |
| 329 | return byID |
| 330 | } |
| 331 | |
| 332 | func authIDSet(auths map[string]*coreauth.Auth) map[string]*coreauth.Auth { |
| 333 | set := make(map[string]*coreauth.Auth, len(auths)) |
no outgoing calls