Documentation
¶
Index ¶
- func Create() *casbin.Enforcer
- func DeleteRoleForUser(user string, role string) bool
- func GetAllSubjects() []string
- func GetRolesForUser(user string) ([]string, error)
- func GetUserByRole(role string) ([]string, error)
- func LoadPolicy()
- type Action
- type Object
- type Policy
- type PolicyType
- type Resource
- type Subject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadPolicy ¶
func LoadPolicy()
Types ¶
Source Files
¶
- Adapter.go
Click to show internal directories.
Click to hide internal directories.