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

Function CheckTenantIDLength

pkg/util/users/tenant.go:80–86  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

78}
79
80func CheckTenantIDLength(s string) error {
81 if len(s) > 150 {
82 return errTenantIDTooLong
83 }
84
85 return nil
86}
87
88func CheckTenantIDIsSupported(s string) error {
89 // check tenantID is "__markers__"

Callers 2

TenantIDMethod · 0.92
ValidTenantIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected