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

Struct RegexValidator

pkg/querier/tenantfederation/regex_resolver.go:233–233  ·  view source on GitHub ↗

RegexValidator used to pass a regex orgID to the querier. Using an existing tenant resolver could emit an errTenantIDUnsupportedCharacter since the regex would contain unsupported characters like a `+`.

Source from the content-addressed store, hash-verified

231// Using an existing tenant resolver could emit an errTenantIDUnsupportedCharacter
232// since the regex would contain unsupported characters like a `+`.
233type RegexValidator struct{}
234
235func NewRegexValidator() *RegexValidator {
236 return &RegexValidator{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected