Documentation
¶
Index ¶
- Constants
- func Add(args ParsedAddArgs, force bool) error
- func Bootstrap(ctx context.Context, outputPath string) error
- func Create(name string) error
- func DownloadFile(ctx context.Context, url string) ([]byte, error)
- func Export(_ context.Context, catalogName, outputPath string) error
- func Fork(src, dst string) error
- func GetDockerCatalogURL(mcpOAuthDcrEnabled bool) string
- func Import(ctx context.Context, nameOrURL string) error
- func Init(ctx context.Context) error
- func Ls(ctx context.Context, format Format) error
- func ReadCatalogFile(name string) ([]byte, error)
- func Reset(context.Context) error
- func Rm(name string) error
- func Show(ctx context.Context, name string, format Format, mcpOAuthDcrEnabled bool) error
- func SupportedFormats() string
- func Update(ctx context.Context, args []string, mcpOAuthDcrEnabled bool) error
- func ValidateArgs(args ParsedAddArgs) error
- func WriteCatalogFile(name string, content []byte) error
- func WriteConfig(cfg *Config) error
- type Catalog
- type Config
- type Format
- type MetaData
- type ParsedAddArgs
- type Registry
- type Tile
Constants ¶
View Source
const ( DockerCatalogName = "docker-mcp" DockerCatalogURLV2 = "https://desktop.docker.com/mcp/catalog/v2/catalog.yaml" DockerCatalogURLV3 = "https://desktop.docker.com/mcp/catalog/v3/catalog.yaml" DockerCatalogFilename = "docker-mcp.yaml" // Docker server names for bootstrap command DockerHubServerName = "dockerhub" DockerCLIServerName = "docker" )
Variables ¶
This section is empty.
Functions ¶
func Add ¶ added in v0.11.0
func Add(args ParsedAddArgs, force bool) error
func Bootstrap ¶ added in v0.14.0
Bootstrap creates a starter catalog file with Docker and Docker Hub server entries as examples
func Export ¶ added in v0.14.0
Export exports a configured catalog to a file This function only allows exporting user-managed catalogs, not the Docker catalog
func GetDockerCatalogURL ¶ added in v0.24.0
GetDockerCatalogURL returns the appropriate Docker catalog URL based on the mcp-oauth-dcr flag
func ReadCatalogFile ¶
func SupportedFormats ¶ added in v0.11.0
func SupportedFormats() string
func ValidateArgs ¶ added in v0.11.0
func ValidateArgs(args ParsedAddArgs) error
func WriteCatalogFile ¶
func WriteConfig ¶
Types ¶
type Config ¶
func ReadConfig ¶
type ParsedAddArgs ¶
func ParseAddArgs ¶ added in v0.11.0
func ParseAddArgs(dst, src, catalogFile string) *ParsedAddArgs
Click to show internal directories.
Click to hide internal directories.