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

localauthority

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package localauthority provides the in-process set-check implementation of port.AuthorityEvaluator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Evaluator

type Evaluator struct{}

Evaluator authorizes exact tool names from the capability set carried by each request. It performs no lookup and therefore cannot widen a run's authority.

func New

func New() *Evaluator

New constructs a local capability-set evaluator.

func (*Evaluator) AuthorizeTool

func (*Evaluator) AuthorizeTool(_ context.Context, request port.AuthorityRequest) (port.AuthorityDecision, error)

AuthorizeTool permits only a well-formed request whose tool is in its carried capability set.

Jump to

Keyboard shortcuts

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