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

Function TenantIDs

pkg/util/users/resolver.go:37–39  ·  view source on GitHub ↗

TenantIDs returns all tenant IDs from the context. It should return normalized list of ordered and distinct tenant IDs (as produced by NormalizeTenantIDs). ignore stutter warning nolint:revive

(ctx context.Context)

Source from the content-addressed store, hash-verified

35//
36//nolint:revive
37func TenantIDs(ctx context.Context) ([]string, error) {
38 return defaultResolver.TenantIDs(ctx)
39}
40
41type Resolver interface {
42 // TenantID returns exactly a single tenant ID from the context. It should be

Callers 15

ServeHTTPMethod · 0.92
RoundTripGRPCMethod · 0.92
QueryResultMethod · 0.92
queueRequestMethod · 0.92
NewQueryTripperwareFunction · 0.92
DoMethod · 0.92
DoRequestsFunction · 0.92
DoMethod · 0.92
DoMethod · 0.92
getMaxVerticalShardSizeFunction · 0.92
DoMethod · 0.92

Calls 1

TenantIDsMethod · 0.65

Tested by 6

MetricsMetadataMethod · 0.74
ExemplarQuerierMethod · 0.74
SelectMethod · 0.74
LabelValuesMethod · 0.74
LabelNamesMethod · 0.74