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

Method ScanUsers

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

ScanUsers returns the list of active, deleting and deleted users. Both deleting and deleted users are marked for deletion. The difference is that deleting users might still have data in the bucket, while deleted users don't.

(ctx context.Context)

Source from the content-addressed store, hash-verified

24 // Both deleting and deleted users are marked for deletion. The difference is that
25 // deleting users might still have data in the bucket, while deleted users don't.
26 ScanUsers(ctx context.Context) (active, deleting, deleted []string, err error)
27}
28
29func NewScanner(cfg UsersScannerConfig, bkt objstore.InstrumentedBucket, logger log.Logger, reg prometheus.Registerer) (Scanner, error) {

Callers 15

RunMethod · 0.95
scanUsersMethod · 0.65
ListAllUsersMethod · 0.65
discoverUsersMethod · 0.65
scanUsersMethod · 0.65
discoverUsersMethod · 0.65
scanBucketMethod · 0.65
runningMethod · 0.65
ListAllUsersMethod · 0.65
ScanUsersMethod · 0.65
ScanUsersMethod · 0.65
ScanUsersMethod · 0.65

Implementers 6

mockScannerpkg/storegateway/bucket_stores_test.go
cachedScannerpkg/util/users/cache.go
mockScannerpkg/util/users/index_updater_test.go
listScannerpkg/util/users/scanner.go
userIndexScannerpkg/util/users/scanner.go
shardedScannerpkg/util/users/scanner.go

Calls

no outgoing calls