Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoleInfo ¶
type RoleInfo struct {
ViewRoles map[string][]string
CrudRoles map[string][]string
InheritRoles map[string][]string
CreateRoles map[string][]string
}
func ParseRoleAnnotations ¶
ParseRoleAnnotations parses relevant annotations and role line from roles/roles.fga to determine which objects to add the roles to
func (*RoleInfo) AddInheritedRoles ¶
func (r *RoleInfo) AddInheritedRoles()
addInheritedRoles adds roles to objects based on the inherit annotations, so if role A inherits role B, and role B has access to edit a group, then role A should also have access to edit the group, even if it is not explicitly defined in the annotations for role A
Click to show internal directories.
Click to hide internal directories.