Help us shape the future of Go! Take the 2026 Go Developer Survey

gateway

package
v1.75.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DockerCatalogURL = "https://desktop.docker.com/mcp/catalog/v3/catalog.yaml"
)

Variables

This section is empty.

Functions

func OverrideCatalogForTesting added in v1.48.0

func OverrideCatalogForTesting(catalog Catalog)

OverrideCatalogForTesting replaces the catalog loader with a fixed function that returns the given catalog. It should only be called from TestMain or equivalent test-setup code, before any call to ServerSpec.

func ParseServerRef

func ParseServerRef(ref string) string

ParseServerRef strips the optional "docker:" prefix from a server reference.

Types

type Catalog

type Catalog map[string]Server

type Remote

type Remote struct {
	URL           string `json:"url"`
	TransportType string `json:"transport_type"`
}

type Secret

type Secret struct {
	Name    string `json:"name"`
	Env     string `json:"env"`
	Example string `json:"example"`
}

func RequiredEnvVars

func RequiredEnvVars(ctx context.Context, serverName string) ([]Secret, error)

type Server

type Server struct {
	Type    string   `json:"type"`
	Secrets []Secret `json:"secrets,omitempty"`
	Remote  Remote   `json:"remote"`
}

func ServerSpec

func ServerSpec(_ context.Context, serverName string) (Server, error)

Jump to

Keyboard shortcuts

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