MCPcopy Create free account
hub / github.com/cortexproject/cortex / IsModuleRegistered

Method IsModuleRegistered

pkg/util/modules/modules.go:158–161  ·  view source on GitHub ↗

IsModuleRegistered checks if the given module has been registered or not. Returns true if the module has previously been registered via a call to RegisterModule, false otherwise.

(mod string)

Source from the content-addressed store, hash-verified

156// IsModuleRegistered checks if the given module has been registered or not. Returns true
157// if the module has previously been registered via a call to RegisterModule, false otherwise.
158func (m *Manager) IsModuleRegistered(mod string) bool {
159 _, ok := m.modules[mod]
160 return ok
161}
162
163// listDeps recursively gets a list of dependencies for a passed moduleName
164func (m *Manager) listDeps(mod string) []string {

Callers 1

TestIsModuleRegisteredFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestIsModuleRegisteredFunction · 0.76