MCPcopy Create free account
hub / github.com/cortexproject/cortex / shardedScanner

Struct shardedScanner

pkg/util/users/scanner.go:180–184  ·  view source on GitHub ↗

shardedScanner is a user scanner but applies a filter to the users to check ownership.

Source from the content-addressed store, hash-verified

178
179// shardedScanner is a user scanner but applies a filter to the users to check ownership.
180type shardedScanner struct {
181 scanner Scanner
182 isOwned func(userID string) (bool, error)
183 logger log.Logger
184}
185
186func (s *shardedScanner) ScanUsers(ctx context.Context) ([]string, []string, []string, error) {
187 baseActiveUsers, baseDeletingUsers, baseDeletedUsers, err := s.scanner.ScanUsers(ctx)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected