MCPcopy Index your code
hub / github.com/cortexproject/cortex / IsUserVisibleModule

Method IsUserVisibleModule

pkg/util/modules/modules.go:146–154  ·  view source on GitHub ↗

IsUserVisibleModule check if given module is public or not. Returns true if and only if the given module is registered and is public.

(mod string)

Source from the content-addressed store, hash-verified

144// IsUserVisibleModule check if given module is public or not. Returns true
145// if and only if the given module is registered and is public.
146func (m *Manager) IsUserVisibleModule(mod string) bool {
147 val, ok := m.modules[mod]
148
149 if ok {
150 return val.userVisible
151 }
152
153 return false
154}
155
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.

Callers 2

TestIsUserVisibleModuleFunction · 0.95
RunMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestIsUserVisibleModuleFunction · 0.76