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

Method DeleteOldBoundaryLogs

coderd/database/dbauthz/dbauthz.go:2186–2191  ·  view source on GitHub ↗

TODO (PR #24810): Replace rbac.ResourceSystem with dedicated boundary_log resource type.

(ctx context.Context, arg database.DeleteOldBoundaryLogsParams)

Source from the content-addressed store, hash-verified

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) {
2187 if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceSystem); err != nil {
2188 return 0, err
2189 }
2190 return q.db.DeleteOldBoundaryLogs(ctx, arg)
2191}
2192
2193func (q *querier) DeleteOldChatDebugRuns(ctx context.Context, arg database.DeleteOldChatDebugRunsParams) (int64, error) {
2194 if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceSystem); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
DeleteOldBoundaryLogsMethod · 0.65

Tested by

no test coverage detected