IsServiceAccountEmail checks if the email is a service account email.
(email string)
| 697 | |
| 698 | // IsServiceAccountEmail checks if the email is a service account email. |
| 699 | func 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. |
| 704 | func FormatServiceAccountEmail(email string) string { |
no test coverage detected