MCPcopy Create free account
hub / github.com/coder/coder / CleanTailnetCoordinators

Method CleanTailnetCoordinators

coderd/database/dbauthz/dbauthz.go:1760–1765  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

1758}
1759
1760func (q *querier) CleanTailnetCoordinators(ctx context.Context) error {
1761 if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceTailnetCoordinator); err != nil {
1762 return err
1763 }
1764 return q.db.CleanTailnetCoordinators(ctx)
1765}
1766
1767func (q *querier) CleanTailnetLostPeers(ctx context.Context) error {
1768 if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceTailnetCoordinator); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected