validators

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 3 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: letters and digits only, must start with a letter, minimum 2 characters. Not allowed: underscores, dots, hyphens, or Python keywords.

func ValidateMCPServerName

func ValidateMCPServerName(name string) error

ValidateMCPServerName checks if the MCP server name matches the required format. Server name must be in format "namespace/name" where: - namespace: starts/ends with alphanumeric, can contain dots and hyphens, min 2 chars - name: starts/ends with alphanumeric, can contain dots, underscores, and hyphens, min 2 chars

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.

func ValidateSkillName

func ValidateSkillName(name string) error

ValidateSkillName checks if the skill name matches the required format for registry storage. Skill names can contain alphanumeric characters, underscores, and hyphens.

Types

This section is empty.

Jump to

Keyboard shortcuts

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