MCPcopy Index your code
hub / github.com/coder/coder / DeleteOldTelemetryLocks

Method DeleteOldTelemetryLocks

coderd/database/dbauthz/dbauthz.go:2235–2240  ·  view source on GitHub ↗
(ctx context.Context, beforeTime time.Time)

Source from the content-addressed store, hash-verified

2233}
2234
2235func (q *querier) DeleteOldTelemetryLocks(ctx context.Context, beforeTime time.Time) error {
2236 if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceSystem); err != nil {
2237 return err
2238 }
2239 return q.db.DeleteOldTelemetryLocks(ctx, beforeTime)
2240}
2241
2242func (q *querier) DeleteOldWorkspaceAgentLogs(ctx context.Context, threshold time.Time) (int64, error) {
2243 if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceSystem); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected