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

Method ByUserID

pkg/util/validation/limits.go:611–611  ·  view source on GitHub ↗

ByUserID gets limits specific to a particular tenant or nil if there are none

(userID string)

Source from the content-addressed store, hash-verified

609type TenantLimits interface {
610 // ByUserID gets limits specific to a particular tenant or nil if there are none
611 ByUserID(userID string) *Limits
612
613 // AllByUserID gets a mapping of all tenant IDs and limits for that user
614 AllByUserID() map[string]*Limits

Callers 2

DisabledRuleGroupsMethod · 0.65
GetOverridesForUserMethod · 0.65

Implementers 6

runtimeConfigTenantLimitspkg/cortex/runtime_config.go
mockTenantLimitspkg/compactor/compactor_test.go
mockTenantLimitspkg/parquetconverter/converter_test.go
tenantLimitpkg/querier/querier_test.go
mockTenantLimitspkg/ingester/ingester_test.go
mockTenantLimitspkg/util/validation/limits_test.go

Calls

no outgoing calls

Tested by

no test coverage detected