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

Method DeleteOldAuditLogs

coderd/database/dbauthz/dbauthz.go:2178–2183  ·  view source on GitHub ↗
(ctx context.Context, arg database.DeleteOldAuditLogsParams)

Source from the content-addressed store, hash-verified

2176}
2177
2178func (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.
2186func (q *querier) DeleteOldBoundaryLogs(ctx context.Context, arg database.DeleteOldBoundaryLogsParams) (int64, error) {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
DeleteOldAuditLogsMethod · 0.65

Tested by

no test coverage detected