(ctx context.Context)
| 116 | } |
| 117 | |
| 118 | func (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 | |
| 130 | func ValidateOrgIDs(orgIDs []string) ([]string, error) { |
| 131 | for _, orgID := range orgIDs { |
no test coverage detected