Help us shape the future of Go! Take the 2026 Go Developer Survey

resourcelevel

package
v1.149.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package resourcelevel narrows a caller's resource claims to their persona's portal resources level (#2225).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(claims *resource.Claims, pr *persona.Registry, method string) (*resource.Claims, error)

Apply narrows a caller's resource claims to their persona's portal resources level (#2225): none refuses every resources route, shared reads the caller's own folder, their persona's folder and Global and writes nothing, own drops the persona folders and keeps the caller's own (which an administrator still sees), and persona leaves the claims as they were. An administrator is held to none of it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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