authz

package
v0.0.0-...-a1224c5 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPolicies

func CheckPolicies(user *domains.UserWithRoles, callOpts ...CallOPAInputOption) (denyMsg []string, err error)

func CheckPoliciesContext

func CheckPoliciesContext(c echo.Context, callOpts ...CallOPAInputOption) (denyMsg []string, err error)

Types

type CallOPAInputOption

type CallOPAInputOption struct {
	// contains filtered or unexported fields
}

func WithInputExtraData

func WithInputExtraData(key string, data interface{}) CallOPAInputOption

func WithInputOrg

func WithInputOrg(org *domains.Org) CallOPAInputOption

func WithInputRequestEndpoint

func WithInputRequestEndpoint(reqEndpoint string) CallOPAInputOption

func WithInputRequestMethod

func WithInputRequestMethod(reqMethod string) CallOPAInputOption

func WithInputResourcePermissions

func WithInputResourcePermissions(resPerms map[string][]string) CallOPAInputOption

Jump to

Keyboard shortcuts

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