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

Method info

agent/agentproc/process.go:50–64  ·  view source on GitHub ↗

info returns a snapshot of the process state.

()

Source from the content-addressed store, hash-verified

48
49// info returns a snapshot of the process state.
50func (p *process) info() workspacesdk.ProcessInfo {
51 p.mu.Lock()
52 defer p.mu.Unlock()
53
54 return workspacesdk.ProcessInfo{
55 ID: p.id,
56 Command: p.command,
57 WorkDir: p.workDir,
58 Background: p.background,
59 Running: p.running,
60 ExitCode: p.exitCode,
61 StartedAt: p.startedAt,
62 ExitedAt: p.exitedAt,
63 }
64}
65
66// output returns the truncated output from the process buffer
67// along with optional truncation metadata.

Callers 11

index.tsxFile · 0.80
startWorkspaceProxyFunction · 0.80
sshIntoWorkspaceFunction · 0.80
downloadCoderVersionFunction · 0.80
startAgentWithCommandFunction · 0.80
onTestEndMethod · 0.80
beforeCoderTestFunction · 0.80
preflight.tsFile · 0.80
handleProcessOutputMethod · 0.80
listMethod · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected