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

Method registered

agent/unit/manager.go:123–125  ·  view source on GitHub ↗

registered checks if a unit is registered in the manager.

(id ID)

Source from the content-addressed store, hash-verified

121
122// registered checks if a unit is registered in the manager.
123func (m *Manager) registered(id ID) bool {
124 return m.units[id].status != StatusNotRegistered
125}
126
127// Unit fetches a unit from the manager. If the unit does not exist,
128// it returns the Unit zero-value as a placeholder unit, because

Callers 5

RegisterMethod · 0.95
IsReadyMethod · 0.95
AddDependencyMethod · 0.95
UpdateStatusMethod · 0.95
GetAllDependenciesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected