MCPcopy Index your code
hub / github.com/bytebase/bytebase / FormatWorkloadIdentityEmail

Function FormatWorkloadIdentityEmail

backend/common/resource_name.go:709–711  ·  view source on GitHub ↗

FormatWorkloadIdentityEmail formats a workload identity email from email.

(email string)

Source from the content-addressed store, hash-verified

707
708// FormatWorkloadIdentityEmail formats a workload identity email from email.
709func FormatWorkloadIdentityEmail(email string) string {
710 return fmt.Sprintf("%s%s", WorkloadIdentityNamePrefix, email)
711}
712
713// GetServiceAccountEmail extracts email from a service account resource name.
714func GetServiceAccountEmail(name string) (string, error) {

Callers 4

formatMemberNameByTypeFunction · 0.92
formatUserNameByTypeFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected