authz

package
v1.54.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const NamespacesKey contextKey = "namespaces"

Variables

This section is empty.

Functions

This section is empty.

Types

type Verifier

type Verifier interface {
	// IsAllowed returns whether the user is allowed to access the resource
	IsAllowed(ctx context.Context, input map[string]any) (bool, error)
	// Namespaces returns the list of namespaces the user has access to
	Namespaces(ctx context.Context, input map[string]any) ([]string, error)
	// Shutdown is called when the server is shutting down
	Shutdown(ctx context.Context) error
}

Directories

Path Synopsis
engine
ext
middleware

Jump to

Keyboard shortcuts

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