MCPcopy Create free account
hub / github.com/bytebase/bytebase / IsServiceAccountEmail

Function IsServiceAccountEmail

backend/common/resource_name.go:699–701  ·  view source on GitHub ↗

IsServiceAccountEmail checks if the email is a service account email.

(email string)

Source from the content-addressed store, hash-verified

697
698// IsServiceAccountEmail checks if the email is a service account email.
699func IsServiceAccountEmail(email string) bool {
700 return strings.HasSuffix(email, fmt.Sprintf("@%s", ServiceAccountSuffix)) || isProjectLevelEmail(email, ServiceAccountSuffix)
701}
702
703// FormatServiceAccountEmail formats a service account email from email.
704func FormatServiceAccountEmail(email string) string {

Callers 3

GetAccountByEmailMethod · 0.92
validateEndUserEmailFunction · 0.92

Calls 1

isProjectLevelEmailFunction · 0.85

Tested by

no test coverage detected