modelaccesspolicy

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteProfileBudgetsAndGuardrailPolicies added in v0.28.0

func DeleteProfileBudgetsAndGuardrailPolicies(gateway *gatewayclient.Client) router.HandlerFunc

DeleteProfileBudgetsAndGuardrailPolicies returns the finalizer of a model access policy, which is a gateway profile: it deletes the profile's budgets and guardrail policies, retrying until it succeeds. Until then the policy isn't removed, so a policy created later with the same name, such as the Default Policy, can't take over another's budgets and guardrail policies. A policy marked for deletion already applies to no one.

func PruneDefaultPolicy added in v0.25.0

func PruneDefaultPolicy(req router.Request, _ router.Response) error

PruneDefaultPolicy ensures invalid and ineffectual model resources are removed from the default ModelAccessPolicy. Custom policies are intentionally left intact so their legacy resources remain visible for users to remediate. This handler removes: - Models that no longer exist - Models and default aliases that are not LLM usage types - Duplicates - Explicit model references when a wildcard is present

Wildcard suffix patterns (e.g. "claude-haiku-4-5*") are always kept, even when they currently match no models, since they apply to future models as well.

Types

This section is empty.

Jump to

Keyboard shortcuts

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