roles

package
v0.0.0-...-51fd5d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

README

Roles

The user role is used on the protection system to define what system data will available depending on user's role. It can be difined on the user creation or updated later.

Roles

Role Level (value) Description
Viewer 1 Can only access data and send actions from the dashbords he can access.
Teams Manager 2 Can create teams, dashboards and manage them. Can also access any metric data or send any action (if user is not blocked).
Admin 3 Same thing above, but also can make CRUD on users, containers, metrics, actions, data polcies, etc. Can also access any metric data or send any action (if user is not blocked).
Master 4 Can do everything above. Cannot be blocked from send any action. Can create / delete admins and master users. Can also change the price table and base plan of the system.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateRole

func ValidateRole(role Role) bool

Types

type Role

type Role = int16
const (
	Unknown Role = iota
	Viewer
	TeamsManager
	Admin
	Master
	Invalid
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL