authz

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ModelString = `` /* 225-byte string literal not displayed */

Variables

This section is empty.

Functions

func DeletePermission

func DeletePermission(permissionString string) error

func DeleteRole

func DeleteRole(sub string) error

func DeleteUser

func DeleteUser(sub string) error

func GetEnforcer

func GetEnforcer() *casbin.Enforcer

func RequiresPermissions

func RequiresPermissions(permissions ...string) gin.HandlerFunc

func RoleSub

func RoleSub(roleId int64) string

func UpdateGroupingPolicies

func UpdateGroupingPolicies(userSub string, roleSubs []string) error

func UpdateSubPolicies

func UpdateSubPolicies(sub string, permissionStrings []string) error

func UserSub

func UserSub(userId int64) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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