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

Function NewMultiResolver

pkg/util/users/resolver.go:101–103  ·  view source on GitHub ↗

NewMultiResolver creates a tenant resolver, which allows request to have multiple tenant ids submitted separated by a '|' character. This enforces further limits on the character set allowed within tenants as detailed here: https://cortexmetrics.io/docs/guides/limitations/#tenant-id-naming)

()

Source from the content-addressed store, hash-verified

99// further limits on the character set allowed within tenants as detailed here:
100// https://cortexmetrics.io/docs/guides/limitations/#tenant-id-naming)
101func NewMultiResolver() *MultiResolver {
102 return &MultiResolver{}
103}
104
105func (t *MultiResolver) TenantID(ctx context.Context) (string, error) {
106 orgIDs, err := t.TenantIDs(ctx)

Calls

no outgoing calls