acls

package
v0.0.0-...-60192f8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package acls defines a simple wrapper on top of casbin functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(group, path, act string) (bool, error)

Check performs the rule enforcment for a given user, path and action.

func GetPermissions

func GetPermissions(groups ...string) ([]string, error)

GetPermissions returns the permissions for a list of groups.

func InGroup

func InGroup(src, dest string) bool

InGroup returns true if permissions from "src" group are all in "dest" group.

Types

This section is empty.

Jump to

Keyboard shortcuts

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