MCPcopy
hub / github.com/firecracker-microvm/firecracker-containerd / IsProxyOpen

Method IsProxyOpen

internal/vm/task.go:314–324  ·  view source on GitHub ↗
(taskID, execID string)

Source from the content-addressed store, hash-verified

312}
313
314func (m *taskManager) IsProxyOpen(taskID, execID string) (bool, error) {
315 m.mu.Lock()
316 defer m.mu.Unlock()
317
318 proc, err := m.findProc(taskID, execID)
319 if err != nil {
320 return false, err
321 }
322
323 return proc.proxy.IsOpen(), nil
324}
325
326// findProc returns a vmProc if exists. The function itself doesn't lock the manager's mutex.
327// The callers are responsible to lock/unlock since they may mutate the value.

Callers

nothing calls this directly

Calls 2

findProcMethod · 0.95
IsOpenMethod · 0.65

Tested by

no test coverage detected