Documentation ¶
Index ¶
- type Context
- type PermManager
- func (p *PermManager) AddPoliciesForGroup(route string, newActions ...string) error
- func (p *PermManager) AddPoliciesForGroupHere(newActions ...string) error
- func (p *PermManager) AddPoliciesForUser(route string, newActions ...string) error
- func (p *PermManager) AddPoliciesForUserHere(newActions ...string) error
- func (p *PermManager) UserDerivePolicesFromGroup(groupID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PermManager ¶
type PermManager struct { *casbin.Enforcer Context }
func (*PermManager) AddPoliciesForGroup ¶
func (p *PermManager) AddPoliciesForGroup(route string, newActions ...string) error
func (*PermManager) AddPoliciesForGroupHere ¶
func (p *PermManager) AddPoliciesForGroupHere(newActions ...string) error
add actions for user at the current route.
func (*PermManager) AddPoliciesForUser ¶
func (p *PermManager) AddPoliciesForUser(route string, newActions ...string) error
func (*PermManager) AddPoliciesForUserHere ¶
func (p *PermManager) AddPoliciesForUserHere(newActions ...string) error
add actions for user at the current route.
func (*PermManager) UserDerivePolicesFromGroup ¶
func (p *PermManager) UserDerivePolicesFromGroup(groupID string) error
Click to show internal directories.
Click to hide internal directories.