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

Method deleteWorkspaceLocked

tailnet/controllers.go:1379–1386  ·  view source on GitHub ↗
(id uuid.UUID)

Source from the content-addressed store, hash-verified

1377}
1378
1379func (t *tunnelUpdater) deleteWorkspaceLocked(id uuid.UUID) (*Workspace, error) {
1380 w, ok := t.workspaces[id]
1381 if !ok {
1382 return nil, xerrors.Errorf("workspace %s not found", id)
1383 }
1384 delete(t.workspaces, id)
1385 return w, nil
1386}
1387
1388func (t *tunnelUpdater) upsertAgentLocked(workspaceID uuid.UUID, a *Agent) error {
1389 w, ok := t.workspaces[workspaceID]

Callers 1

handleUpdateMethod · 0.95

Calls 1

ErrorfMethod · 0.45

Tested by

no test coverage detected