(ctx context.Context)
| 2703 | } |
| 2704 | |
| 2705 | func (q *querier) GetAllTailnetCoordinators(ctx context.Context) ([]database.TailnetCoordinator, error) { |
| 2706 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceTailnetCoordinator); err != nil { |
| 2707 | return nil, err |
| 2708 | } |
| 2709 | return q.db.GetAllTailnetCoordinators(ctx) |
| 2710 | } |
| 2711 | |
| 2712 | func (q *querier) GetAllTailnetPeers(ctx context.Context) ([]database.TailnetPeer, error) { |
| 2713 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceTailnetCoordinator); err != nil { |
nothing calls this directly
no test coverage detected