Documentation ¶
Index ¶
Constants ¶
View Source
const ( MemberRoleName = "member" ViewerRoleName = "viewer" EditorRoleName = "editor" AdminRoleName = "admin" SuperAdminStatus = "superadmin" // Indicatior that the server should retrieve the default role for the organization. WildcardRoleName = "*" )
CMP User Roles
View Source
const ContextKey = contextKey("role")
ContextKey is the key used to specify the role via context
Variables ¶
View Source
var ( // MemberRole is the role for a user who can only perform No operations. MemberRole = cmp.Role{ Name: MemberRoleName, } // ViewerRole is the role for a user who can only perform READ operations on Dashboards, Rules, Sources, and Servers, ViewerRole = cmp.Role{ Name: ViewerRoleName, } // EditorRole is the role for a user who can perform READ and WRITE operations on Dashboards, Rules, Sources, and Servers. EditorRole = cmp.Role{ Name: EditorRoleName, } // AdminRole is the role for a user who can perform READ and WRITE operations on Dashboards, Rules, Sources, Servers, and Users AdminRole = cmp.Role{ Name: AdminRoleName, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.