(ctx context.Context, arg database.DeleteOldAuditLogsParams)
| 2176 | } |
| 2177 | |
| 2178 | func (q *querier) DeleteOldAuditLogs(ctx context.Context, arg database.DeleteOldAuditLogsParams) (int64, error) { |
| 2179 | if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceSystem); err != nil { |
| 2180 | return 0, err |
| 2181 | } |
| 2182 | return q.db.DeleteOldAuditLogs(ctx, arg) |
| 2183 | } |
| 2184 | |
| 2185 | // TODO (PR #24810): Replace rbac.ResourceSystem with dedicated boundary_log resource type. |
| 2186 | func (q *querier) DeleteOldBoundaryLogs(ctx context.Context, arg database.DeleteOldBoundaryLogsParams) (int64, error) { |
nothing calls this directly
no test coverage detected