policyutil

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowedToolCount

func AllowedToolCount(tools []catalog.Tool) int

AllowedToolCount returns the number of tools not blocked by policy.

func FallbackServerName

func FallbackServerName(serverType, source, image, endpoint string) string

FallbackServerName returns a best-effort name when a snapshot is missing.

func ServerSpecFromSnapshot

func ServerSpecFromSnapshot(
	snapshot *catalog.Server,
	serverType string,
	source string,
	image string,
	endpoint string,
) (catalog.Server, string)

ServerSpecFromSnapshot returns a policy server spec and name for evaluation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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