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

Method BatchUpdateWorkspaceAgentMetadata

coderd/database/dbauthz/dbauthz.go:1682–1689  ·  view source on GitHub ↗
(ctx context.Context, arg database.BatchUpdateWorkspaceAgentMetadataParams)

Source from the content-addressed store, hash-verified

1680}
1681
1682func (q *querier) BatchUpdateWorkspaceAgentMetadata(ctx context.Context, arg database.BatchUpdateWorkspaceAgentMetadataParams) error {
1683 // Could be any workspace agent and checking auth to each workspace agent is overkill for
1684 // the purpose of this function.
1685 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceWorkspace.All()); err != nil {
1686 return err
1687 }
1688 return q.db.BatchUpdateWorkspaceAgentMetadata(ctx, arg)
1689}
1690
1691func (q *querier) BatchUpdateWorkspaceLastUsedAt(ctx context.Context, arg database.BatchUpdateWorkspaceLastUsedAtParams) error {
1692 // Could be any workspace and checking auth to each workspace is overkill for

Callers

nothing calls this directly

Calls 3

authorizeContextMethod · 0.95
AllMethod · 0.80

Tested by

no test coverage detected