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

Method UpdateVolumeResourceMonitor

coderd/database/dbauthz/dbauthz.go:7683–7689  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateVolumeResourceMonitorParams)

Source from the content-addressed store, hash-verified

7681}
7682
7683func (q *querier) UpdateVolumeResourceMonitor(ctx context.Context, arg database.UpdateVolumeResourceMonitorParams) error {
7684 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceWorkspaceAgentResourceMonitor); err != nil {
7685 return err
7686 }
7687
7688 return q.db.UpdateVolumeResourceMonitor(ctx, arg)
7689}
7690
7691func (q *querier) UpdateWorkspace(ctx context.Context, arg database.UpdateWorkspaceParams) (database.WorkspaceTable, error) {
7692 fetch := func(ctx context.Context, arg database.UpdateWorkspaceParams) (database.WorkspaceTable, error) {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected