rbac

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MODEL is the used model for casbin to store roles, permissions, users and comparisons patterns
	// docs: https://casbin.org/docs/syntax-for-models
	MODEL = `` /* 265-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func Init

func Init(conf rbacconf.Config, policyPath string) (*casbin.SyncedCachedEnforcer, error)

func New

func New(rbacStoragePath string, rbac rbacconf.Config, logger logrus.FieldLogger) (*manager, error)

func WeaviateMatcher added in v1.28.6

func WeaviateMatcher(key1 string, key2 string) bool

func WeaviateMatcherFunc added in v1.28.6

func WeaviateMatcherFunc(args ...interface{}) (interface{}, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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