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
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.