Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Apps = Obj{ Name: "apps", Acts: []string{ http.MethodGet, http.MethodPost, http.MethodPut, }, AppName: envs.AppNameAdmin(), } Staffs = Obj{ Name: "staffs", Acts: []string{ http.MethodGet, http.MethodPost, http.MethodPut, }, AppName: envs.AppNameAdmin(), } Tokens = Obj{ Name: "tokens", Acts: []string{ http.MethodGet, http.MethodDelete, }, AppName: envs.AppNameAdmin(), } Groups = Obj{ Name: "groups", NeedRoot: true, Acts: []string{ http.MethodGet, http.MethodPost, http.MethodPut, }, AppName: envs.AppNameAdmin(), } Groupships = Obj{ Name: "groupships", NeedRoot: true, Acts: []string{ http.MethodGet, http.MethodPost, http.MethodDelete, }, AppName: envs.AppNameAdmin(), } Permissons = Obj{ Name: "permissions", NeedRoot: true, Acts: []string{ http.MethodGet, }, AppName: envs.AppNameAdmin(), } Policies = Obj{ Name: "policies", NeedRoot: true, Acts: []string{ http.MethodGet, http.MethodPost, http.MethodDelete, }, AppName: envs.AppNameAdmin(), } Departments = Obj{ Name: "departments", Acts: []string{ http.MethodGet, http.MethodPost, http.MethodPut, }, AppName: envs.AppNameAdmin(), } Logs = Obj{ Name: "logs", NeedRoot: true, Acts: []string{ http.MethodGet, }, AppName: envs.AppNameAdmin(), } )
Functions ¶
func RBACEnforcer ¶
func SetupEnforcer ¶
func SetupEnforcer(appCtx *app.AppContext)
Types ¶
Click to show internal directories.
Click to hide internal directories.