common

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultUserName = "user"

Variables

This section is empty.

Functions

func BuildLocalImageName

func BuildLocalImageName(name, version string) string

BuildLocalImageName constructs a local Docker image name from a project name and version. Returns format: "kebab-case-name:version"

func BuildMCPServerRegistryName

func BuildMCPServerRegistryName(author, name string) string

func BuildRegistryImageName

func BuildRegistryImageName(registryURL, name, version string) string

BuildRegistryImageName constructs a full Docker registry image reference. Returns format: "registry-url/kebab-case-name:version"

func GetImageNameFromManifest

func GetImageNameFromManifest(loader manifest.ManifestLoader) (string, error)

GetImageNameFromManifest loads the project manifest and constructs a Docker image name in the format "kebab-case-name:version".

func ResolveVersion

func ResolveVersion(flagVersion, manifestVersion string) string

ResolveVersion returns the version to use based on priority: flag > manifest > "latest".

func ValidateProjectDir

func ValidateProjectDir(projectDir string) error

ValidateProjectDir checks if the provided project directory exists and is a directory.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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