common

package
v0.3.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultAgentGatewayPort = "21212"
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. Skip non-deployed statuses and non-matching resource types.

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 adds a leading "v" only for valid semver values. Non-semver labels are returned unchanged.

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.

func WaitForDeploymentReady added in v0.3.1

func WaitForDeploymentReady(c *client.Client, deploymentID string) error

WaitForDeploymentReady polls a deployment until it reaches a terminal state (deployed or failed). Returns an error if the deployment fails or the timeout is exceeded.

Types

This section is empty.

Directories

Path Synopsis
Package gitutil provides shared utilities for cloning Git repositories and copying their contents to a target directory.
Package gitutil provides shared utilities for cloning Git repositories and copying their contents to a target directory.

Jump to

Keyboard shortcuts

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