validation

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCatalogEntryManifest

func ValidateCatalogEntryManifest(manifest types.MCPServerCatalogEntryManifest) error

func ValidateServerManifest

func ValidateServerManifest(manifest types.MCPServerManifest) error

Types

type ContainerizedValidator

type ContainerizedValidator struct{}

ContainerizedValidator implements RuntimeValidator for containerized runtime

func (ContainerizedValidator) ValidateCatalogConfig

func (v ContainerizedValidator) ValidateCatalogConfig(manifest types.MCPServerCatalogEntryManifest) error

func (ContainerizedValidator) ValidateConfig

func (v ContainerizedValidator) ValidateConfig(manifest types.MCPServerManifest) error

type NPXValidator

type NPXValidator struct{}

NPXValidator implements RuntimeValidator for NPX runtime

func (NPXValidator) ValidateCatalogConfig

func (v NPXValidator) ValidateCatalogConfig(manifest types.MCPServerCatalogEntryManifest) error

func (NPXValidator) ValidateConfig

func (v NPXValidator) ValidateConfig(manifest types.MCPServerManifest) error

type RemoteValidator

type RemoteValidator struct{}

RemoteValidator implements RuntimeValidator for remote runtime

func (RemoteValidator) ValidateCatalogConfig

func (v RemoteValidator) ValidateCatalogConfig(manifest types.MCPServerCatalogEntryManifest) error

func (RemoteValidator) ValidateConfig

func (v RemoteValidator) ValidateConfig(manifest types.MCPServerManifest) error

type RuntimeValidator

type RuntimeValidator interface {
	ValidateConfig(manifest types.MCPServerManifest) error
	ValidateCatalogConfig(manifest types.MCPServerCatalogEntryManifest) error
}

RuntimeValidator defines the interface for validating runtime-specific configurations

type RuntimeValidators

type RuntimeValidators map[types.Runtime]RuntimeValidator

RuntimeValidators is a map type for storing validators by runtime type

type UVXValidator

type UVXValidator struct{}

UVXValidator implements RuntimeValidator for UVX runtime

func (UVXValidator) ValidateCatalogConfig

func (v UVXValidator) ValidateCatalogConfig(manifest types.MCPServerCatalogEntryManifest) error

func (UVXValidator) ValidateConfig

func (v UVXValidator) ValidateConfig(manifest types.MCPServerManifest) error

Jump to

Keyboard shortcuts

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