Documentation
¶
Overview ¶
Package authz provides engine-native factories for the Casbin RBAC module and pipeline steps. Import this package when embedding the authz plugin directly into an engine plugin (avoiding gRPC / duplicate step registration).
Usage in a host plugin:
func (p *MyPlugin) ModuleFactories() map[string]plugin.ModuleFactory {
return map[string]plugin.ModuleFactory{
"authz.casbin": authz.NewCasbinModuleFactory(),
}
}
func (p *MyPlugin) StepFactories() map[string]plugin.StepFactory {
return authz.StepFactories()
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCasbinModuleFactory ¶
func NewCasbinModuleFactory() plugin.ModuleFactory
NewCasbinModuleFactory returns an engine-compatible ModuleFactory for "authz.casbin".
func StepFactories ¶
func StepFactories() map[string]plugin.StepFactory
StepFactories returns all authz step factories as engine-native StepFactory values. Step types: step.authz_check_casbin, step.authz_add_policy, step.authz_remove_policy, step.authz_role_assign.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.