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

Method UpdateWorkspaceAgentConnectionByID

coderd/database/dbauthz/dbauthz.go:7714–7719  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateWorkspaceAgentConnectionByIDParams)

Source from the content-addressed store, hash-verified

7712}
7713
7714func (q *querier) UpdateWorkspaceAgentConnectionByID(ctx context.Context, arg database.UpdateWorkspaceAgentConnectionByIDParams) error {
7715 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceSystem); err != nil {
7716 return err
7717 }
7718 return q.db.UpdateWorkspaceAgentConnectionByID(ctx, arg)
7719}
7720
7721func (q *querier) UpdateWorkspaceAgentDirectoryByID(ctx context.Context, arg database.UpdateWorkspaceAgentDirectoryByIDParams) error {
7722 workspace, err := q.db.GetWorkspaceByAgentID(ctx, arg.ID)

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected