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

Function ValidateOrgIDs

pkg/util/users/resolver.go:130–138  ·  view source on GitHub ↗
(orgIDs []string)

Source from the content-addressed store, hash-verified

128}
129
130func ValidateOrgIDs(orgIDs []string) ([]string, error) {
131 for _, orgID := range orgIDs {
132 if err := ValidTenantID(orgID); err != nil {
133 return nil, err
134 }
135 }
136
137 return NormalizeTenantIDs(orgIDs), nil
138}
139
140// ExtractTenantIDFromHTTPRequest extracts a single TenantID through a given
141// resolver directly from a HTTP request.

Callers 2

getRegexMatchedOrgIdsMethod · 0.92
TenantIDsMethod · 0.85

Calls 2

ValidTenantIDFunction · 0.85
NormalizeTenantIDsFunction · 0.85

Tested by

no test coverage detected