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

Function newMapper

pkg/ruler/mapper.go:25–34  ·  view source on GitHub ↗
(path string, logger log.Logger)

Source from the content-addressed store, hash-verified

23}
24
25func newMapper(path string, logger log.Logger) *mapper {
26 m := &mapper{
27 Path: path,
28 FS: afero.NewOsFs(),
29 logger: logger,
30 }
31 m.cleanup()
32
33 return m
34}
35
36func (m *mapper) cleanupUser(userID string) {
37 dirPath := filepath.Join(m.Path, userID)

Callers 1

Calls 1

cleanupMethod · 0.95

Tested by

no test coverage detected