Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages a cache of roles by fetching unknown roles from the settings.RoleService.
func NewManager ¶
NewManager returns a new instance of Manager.
func (*Manager) FindPermissionByID ¶
func (m *Manager) FindPermissionByID(ctx context.Context, roleIDs []string, permissionID string) *settingsmsg.Setting
FindPermissionByID searches for a permission-setting by the permissionID, but limited to the given roleIDs
func (*Manager) FindRoleIDsForUser ¶
FindRoleIdsForUser returns all roles that are assigned to the supplied userid
type Option ¶
type Option func(*Options)
Option mutates option
func RoleService ¶
func RoleService(rs settingssvc.RoleService) Option
RoleService provides endpoints for fetching roles.
Click to show internal directories.
Click to hide internal directories.