policy

package
v0.0.0-...-08ba271 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCreatePolicy

func AddCreatePolicy(policyEnforcer *casbin.Enforcer, user string, url string)

AddCreatePolicy is used to add policy for specified user.

func AddDeletePolicy

func AddDeletePolicy(policyEnforcer *casbin.Enforcer, user string, url string)

AddDeletePolicy is used to add policy for specified user.

func AddGetByIDPolicy

func AddGetByIDPolicy(policyEnforcer *casbin.Enforcer, user string, url string)

AddGetByIDPolicy is used to add policy for specified user.

func AddGetPolicy

func AddGetPolicy(policyEnforcer *casbin.Enforcer, user string, url string)

AddGetPolicy is used to add policy for specified user.

func AddUpdatePolicy

func AddUpdatePolicy(policyEnforcer *casbin.Enforcer, user string, url string)

AddUpdatePolicy is used to add policy for specified user.

func InitPolicy

func InitPolicy(gormClient *gorm.DB) (*casbin.Enforcer, error)

InitPolicy is used to initialise all policy manager needs to function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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