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

Function FormatRole

backend/common/resource_name.go:590–592  ·  view source on GitHub ↗
(role string)

Source from the content-addressed store, hash-verified

588}
589
590func FormatRole(role string) string {
591 return fmt.Sprintf("%s%s", RolePrefix, role)
592}
593
594func FormatSheet(projectID string, sheetSha256 string) string {
595 return fmt.Sprintf("%s/%s%s", FormatProject(projectID), SheetIDPrefix, sheetSha256)

Callers 10

TestCheckFunction · 0.92
CreateProjectMethod · 0.92
DeleteRoleMethod · 0.92
convertToRoleFunction · 0.92
validateBindingsFunction · 0.92
isUserWorkspaceAdminFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestCheckFunction · 0.74