MCPcopy
hub / github.com/cloudflare/cloudflared / Remove

Method Remove

overwatch/app_manager.go:38–43  ·  view source on GitHub ↗

Remove shutdowns the service by name and removes it from its current management list

(name string)

Source from the content-addressed store, hash-verified

36
37// Remove shutdowns the service by name and removes it from its current management list
38func (m *AppManager) Remove(name string) {
39 if currentService, ok := m.services[name]; ok {
40 currentService.Shutdown()
41 }
42 delete(m.services, name)
43}
44
45// Services returns all the current Services being managed
46func (m *AppManager) Services() []Service {

Callers 1

TestManagerAddAndRemoveFunction · 0.95

Calls 1

ShutdownMethod · 0.65

Tested by 1

TestManagerAddAndRemoveFunction · 0.76