common

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultUserName = "user"

Variables

This section is empty.

Functions

func BuildDeploymentCounts added in v0.2.1

func BuildDeploymentCounts(deployments []*client.DeploymentResponse, resourceType string) map[string]map[string]int

BuildDeploymentCounts indexes deployment rows by resource name and version.

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 DeployedStatus added in v0.2.1

func DeployedStatus(counts map[string]map[string]int, name, version string, includeOtherVersionsMessage bool) string

DeployedStatus returns a display status for name/version deployment counts.

func FormatVersionForDisplay added in v0.2.1

func FormatVersionForDisplay(version string) string

FormatVersionForDisplay normalizes version display with a leading "v".

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