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

Method Clear

coderd/agentapi/cached_workspace.go:30–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30func (cws *CachedWorkspaceFields) Clear() {
31 cws.lock.Lock()
32 defer cws.lock.Unlock()
33 cws.identity = database.WorkspaceIdentity{}
34 cws.taskID = uuid.NullUUID{}
35}
36
37func (cws *CachedWorkspaceFields) UpdateValues(ws database.Workspace) {
38 cws.lock.Lock()

Callers 8

ReportCLITelemetryFunction · 0.45
TestNotificationsFunction · 0.45
startCacheRefreshLoopMethod · 0.45
TestCacheClearFunction · 0.45
ReplaceProvidersMethod · 0.45

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by 5

TestNotificationsFunction · 0.36
TestCacheClearFunction · 0.36