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

Function NewManager

agent/unit/manager.go:92–97  ·  view source on GitHub ↗

NewManager creates a new Manager instance.

()

Source from the content-addressed store, hash-verified

90
91// NewManager creates a new Manager instance.
92func NewManager() *Manager {
93 return &Manager{
94 graph: &Graph[Status, ID]{},
95 units: make(map[ID]Unit),
96 }
97}
98
99// Register adds a unit to the manager if it is not already registered.
100// If a Unit is already registered (per the ID field), it is not updated.

Callers 9

NewServerFunction · 0.92
TestManager_RegisterFunction · 0.92
TestManager_UpdateStatusFunction · 0.92
TestManager_IsReadyFunction · 0.92
TestManager_ToDOTFunction · 0.92

Calls

no outgoing calls

Tested by 8

TestManager_RegisterFunction · 0.74
TestManager_UpdateStatusFunction · 0.74
TestManager_IsReadyFunction · 0.74
TestManager_ToDOTFunction · 0.74