utils

package
v1.2.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package utils contains utility functions for RBAC.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadPolicyLine

func LoadPolicyLine(line string, m model.Model) error

LoadPolicyLine loads a text line as a policy rule to model.

This function is copied (and modified) from https://github.com/casbin/casbin/blob/71c8c84e300cf8b276f28e21e555a39ad793d65c/persist/adapter.go#L25. The original function is missing certain validations that leads to panics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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