()
| 1408 | } |
| 1409 | |
| 1410 | func (t *tunnelUpdater) allAgentIDsLocked() []uuid.UUID { |
| 1411 | out := make([]uuid.UUID, 0, len(t.workspaces)) |
| 1412 | for _, w := range t.workspaces { |
| 1413 | for id := range w.agents { |
| 1414 | out = append(out, id) |
| 1415 | } |
| 1416 | } |
| 1417 | return out |
| 1418 | } |
| 1419 | |
| 1420 | // updateDNSNamesLocked updates the DNS names for all workspaces in the tunnelUpdater. |
| 1421 | // t.Mutex must be held. |