SnapshotCoreAuths converts current clients snapshot into core auth entries.
()
| 168 | |
| 169 | // SnapshotCoreAuths converts current clients snapshot into core auth entries. |
| 170 | func (w *Watcher) SnapshotCoreAuths() []*coreauth.Auth { |
| 171 | w.clientsMutex.RLock() |
| 172 | cfg := w.config |
| 173 | authDir := w.authDir |
| 174 | parser := w.pluginAuthParser |
| 175 | w.clientsMutex.RUnlock() |
| 176 | return snapshotCoreAuths(cfg, authDir, parser) |
| 177 | } |