validators

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Package validators provides centralized validation functions for resource names across the AgentRegistry CLI and services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAgentName

func ValidateAgentName(name string) error

ValidateAgentName checks if the agent name is valid. Allowed: lowercase letters and digits only, must start with a letter, minimum 2 characters. Not allowed: uppercase, underscores, dots, hyphens, or Python keywords.

func ValidateMCPServerName

func ValidateMCPServerName(name string) error

ValidateMCPServerName enforces DNS-1123 subdomain form.

func ValidateProjectName

func ValidateProjectName(name string) error

ValidateProjectName checks if the provided project name is valid for use as a directory name. This is a permissive check for filesystem safety, not a resource-name check.

func ValidatePromptName added in v0.4.0

func ValidatePromptName(name string) error

ValidatePromptName enforces DNS-1123 subdomain form.

func ValidateSkillName

func ValidateSkillName(name string) error

ValidateSkillName enforces DNS-1123 subdomain form.

Types

This section is empty.

Jump to

Keyboard shortcuts

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