authz

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 6 Imported by: 1

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.

Jump to

Keyboard shortcuts

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