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

Method TenantIDs

pkg/util/users/resolver.go:118–128  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

116}
117
118func (t *MultiResolver) TenantIDs(ctx context.Context) ([]string, error) {
119 //lint:ignore faillint wrapper around upstream method
120 orgID, err := user.ExtractOrgID(ctx)
121 if err != nil {
122 return nil, err
123 }
124
125 orgIDs := strings.Split(orgID, tenantIDsLabelSeparator)
126
127 return ValidateOrgIDs(orgIDs)
128}
129
130func ValidateOrgIDs(orgIDs []string) ([]string, error) {
131 for _, orgID := range orgIDs {

Callers 1

TenantIDMethod · 0.95

Calls 1

ValidateOrgIDsFunction · 0.85

Tested by

no test coverage detected