admin

package
v0.0.0-...-12382fa Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 5 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 the system administrator

func New

func New(username string) *Evaluator

New returns evaluator.Evaluator for the system administrator

func (*Evaluator) HasPermission

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

HasPermission always return true for the system administrator

Jump to

Keyboard shortcuts

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