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

Method UserVisibleModuleNames

pkg/util/modules/modules.go:131–142  ·  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

129// UserVisibleModuleNames gets list of module names that are
130// user visible. Returned list is sorted in increasing order.
131func (m *Manager) UserVisibleModuleNames() []string {
132 var result []string
133 for key, val := range m.modules {
134 if val.userVisible {
135 result = append(result, key)
136 }
137 }
138
139 sort.Strings(result)
140
141 return result
142}
143
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.

Calls

no outgoing calls