Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdminAccess ¶
type AdminAccess struct {
// Enabled indicates if access is enabled
Enabled bool `json:"enabled"`
}
AdminAccess describes admin access
type Role ¶
type Role struct {
// Name is role name
Name string `json:"name"`
// Access is a set of attributes describing role permissions
Access RoleAccess `json:"access"`
// System is a flag indicating if a role is builtin system role
System bool `json:"system"`
}
Role describes user role consumed by web ui
type RoleAccess ¶
type RoleAccess struct {
// Admin describes admin access
Admin AdminAccess `json:"admin"`
// SSH describes SSH access
SSH SSHAccess `json:"ssh"`
}
RoleAccess describes a set of role permissions
func MergeAccessSet ¶
func MergeAccessSet(accessList []RoleAccess) RoleAccess
MergeAccessSet merges a set of roles by strongest permission
func (*RoleAccess) Apply ¶
func (a *RoleAccess) Apply(teleRole services.Role)
Apply applies this role access to Teleport Role
Click to show internal directories.
Click to hide internal directories.