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

Method users

pkg/ruler/mapper.go:59–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59func (m *mapper) users() ([]string, error) {
60 var result []string
61
62 dirs, err := afero.ReadDir(m.FS, m.Path)
63 for _, u := range dirs {
64 if u.IsDir() {
65 result = append(result, u.Name())
66 }
67 }
68
69 return result, err
70}
71
72func (m *mapper) MapRules(user string, ruleConfigs map[string][]rulefmt.RuleGroup) (bool, []string, error) {
73 anyUpdated := false

Callers 2

cleanupMethod · 0.95
TestSyncRuleGroupsFunction · 0.80

Calls 1

NameMethod · 0.65

Tested by 1

TestSyncRuleGroupsFunction · 0.64