role

package
v0.0.0-...-fa598d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPerm

func CheckPerm(roleName, zone, action, domain string) bool

CheckPerm : check permission by role with domain

func DeletePerm

func DeletePerm(roleName string)

DeletePerm : delete role in casbin policies

func DeletePermWithDomain

func DeletePermWithDomain(roleName, domain string)

DeletePermWithDomain : clear role permission with domain

func OverwritePerm

func OverwritePerm(roleName, domainCode string, polices [][]string)

OverwritePerm : overwrite permissions remove or create policy

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL