registries

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateMCPB

func ValidateMCPB(ctx context.Context, pkg model.Package, _ string) error

func ValidateNPM

func ValidateNPM(ctx context.Context, pkg model.Package, serverName string) error

ValidateNPM validates that an NPM package contains the correct MCP server name

func ValidateNuGet

func ValidateNuGet(ctx context.Context, pkg model.Package, serverName string) error

ValidateNuGet validates that a NuGet package contains the correct MCP server name

func ValidateOCI

func ValidateOCI(ctx context.Context, pkg model.Package, serverName string) error

ValidateOCI validates that an OCI image contains the correct MCP server name annotation

func ValidatePyPI

func ValidatePyPI(ctx context.Context, pkg model.Package, serverName string) error

ValidatePyPI validates that a PyPI package contains the correct MCP server name

Types

type NPMPackageResponse

type NPMPackageResponse struct {
	MCPName string `json:"mcpName"`
}

NPMPackageResponse represents the structure returned by the NPM registry API

type OCIAuthResponse

type OCIAuthResponse struct {
	Token string `json:"token"`
}

OCIAuthResponse represents the Docker Hub authentication response

type OCIImageConfig

type OCIImageConfig struct {
	Config struct {
		Labels map[string]string `json:"Labels"`
	} `json:"config"`
}

OCIImageConfig represents an OCI image configuration

type OCIManifest

type OCIManifest struct {
	Manifests []struct {
		Digest string `json:"digest"`
	} `json:"manifests,omitempty"`
	Config struct {
		Digest string `json:"digest"`
	} `json:"config,omitempty"`
}

OCIManifest represents an OCI image manifest

type PyPIPackageResponse

type PyPIPackageResponse struct {
	Info struct {
		Description string `json:"description"`
	} `json:"info"`
}

PyPIPackageResponse represents the structure returned by the PyPI JSON API

Jump to

Keyboard shortcuts

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