package
Version:
v0.0.0-...-fa598d4
Opens a new window with list of versions in this module.
Published: Dec 18, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func CheckPerm(roleName, zone, action, domain string) bool
CheckPerm : check permission by role with domain
func DeletePerm(roleName string)
DeletePerm : delete role in casbin policies
func DeletePermWithDomain(roleName, domain string)
DeletePermWithDomain : clear role permission with domain
func OverwritePerm(roleName, domainCode string, polices [][]string)
OverwritePerm : overwrite permissions
remove or create policy
Source Files
¶
Click to show internal directories.
Click to hide internal directories.