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

Function GetPredefinedRole

backend/store/predefined_roles.go:599–601  ·  view source on GitHub ↗

GetPredefinedRole returns the predefined role by ID.

(roleID string)

Source from the content-addressed store, hash-verified

597
598// GetPredefinedRole returns the predefined role by ID.
599func GetPredefinedRole(roleID string) *RoleMessage {
600 return predefinedRolesMap[roleID]
601}
602
603// IsPredefinedRole returns true if the role ID is a predefined role.
604func IsPredefinedRole(roleID string) bool {

Callers 2

getBuildinRoleMethod · 0.92
ListRolesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected