2017-11-03 19:32:59 +00:00
|
|
|
package roles
|
|
|
|
|
|
|
|
type contextKey string
|
|
|
|
|
|
|
|
// ContextKey is the key used to specify the
|
|
|
|
// role via context
|
|
|
|
const ContextKey = contextKey("role")
|
|
|
|
|
2017-11-03 20:32:05 +00:00
|
|
|
// Chronograf User Roles
|
|
|
|
const (
|
2017-11-07 18:59:51 +00:00
|
|
|
MemberRoleName = "member"
|
|
|
|
ViewerRoleName = "viewer"
|
|
|
|
EditorRoleName = "editor"
|
|
|
|
AdminRoleName = "admin"
|
|
|
|
SuperAdminStatus = "superadmin"
|
2018-01-12 17:27:55 +00:00
|
|
|
|
|
|
|
// Indicatior that the server should retrieve the default role for the organization.
|
|
|
|
WildcardRoleName = "*"
|
2017-11-03 20:32:05 +00:00
|
|
|
)
|