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

Method UpdateWorkspaceAutostart

coderd/database/dbauthz/dbauthz.go:7853–7858  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateWorkspaceAutostartParams)

Source from the content-addressed store, hash-verified

7851}
7852
7853func (q *querier) UpdateWorkspaceAutostart(ctx context.Context, arg database.UpdateWorkspaceAutostartParams) error {
7854 fetch := func(ctx context.Context, arg database.UpdateWorkspaceAutostartParams) (database.Workspace, error) {
7855 return q.db.GetWorkspaceByID(ctx, arg.ID)
7856 }
7857 return update(q.log, q.auth, fetch, q.db.UpdateWorkspaceAutostart)(ctx, arg)
7858}
7859
7860// UpdateWorkspaceBuildCostByID is used by the provisioning system to update the cost of a workspace build.
7861func (q *querier) UpdateWorkspaceBuildCostByID(ctx context.Context, arg database.UpdateWorkspaceBuildCostByIDParams) error {

Callers

nothing calls this directly

Calls 2

updateFunction · 0.70
GetWorkspaceByIDMethod · 0.65

Tested by

no test coverage detected