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

Method DeleteOldConnectionLogs

coderd/database/dbauthz/dbauthz.go:2214–2219  ·  view source on GitHub ↗
(ctx context.Context, arg database.DeleteOldConnectionLogsParams)

Source from the content-addressed store, hash-verified

2212}
2213
2214func (q *querier) DeleteOldConnectionLogs(ctx context.Context, arg database.DeleteOldConnectionLogsParams) (int64, error) {
2215 if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceSystem); err != nil {
2216 return 0, err
2217 }
2218 return q.db.DeleteOldConnectionLogs(ctx, arg)
2219}
2220
2221func (q *querier) DeleteOldNotificationMessages(ctx context.Context) error {
2222 if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceNotificationMessage); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected