MCPcopy
hub / github.com/grafana/dskit / UserVisibleModuleNames

Method UserVisibleModuleNames

modules/modules.go:160–171  ·  view source on GitHub ↗

UserVisibleModuleNames gets list of module names that are user visible. Returned list is sorted in increasing order.

()

Source from the content-addressed store, hash-verified

158// UserVisibleModuleNames gets list of module names that are
159// user visible. Returned list is sorted in increasing order.
160func (m *Manager) UserVisibleModuleNames() []string {
161 var result []string
162 for key, val := range m.modules {
163 if val.userVisible {
164 result = append(result, key)
165 }
166 }
167
168 sort.Strings(result)
169
170 return result
171}
172
173// IsUserVisibleModule check if given module is public or not. Returns true
174// if and only if the given module is registered and is public.

Calls

no outgoing calls