rbac

package
v0.0.0-...-a14a4d2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Evaluator

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

Evaluator the permission evaluator for rbac user

func New

func New(rbacUser types.RBACUser) *Evaluator

New returns evaluator.Evaluator for the RBACUser

func (*Evaluator) HasPermission

func (e *Evaluator) HasPermission(_ context.Context, resource types.Resource, action types.Action) bool

HasPermission returns true when the rbac user has action permission for the resource

Jump to

Keyboard shortcuts

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