utils

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

Documentation

Index

Constants

View Source
const DefaultLocalAgentPort uint16 = 8080

Variables

View Source
var ErrDeploymentNotSupported = errors.New("deployment operation is not supported for this provider platform type")

Functions

func BuildPlatformMCPServer

func BuildPlatformMCPServer(
	ctx context.Context,
	registryService service.RegistryService,
	deployment *models.Deployment,
	namespace string,
) (*platformtypes.MCPServer, error)

func EnvMapToStringSlice

func EnvMapToStringSlice(envMap map[string]string) []string

func GenerateInternalNameForDeployment

func GenerateInternalNameForDeployment(name, deploymentID string) string

func ResolveAgent

func ResolveAgent(
	ctx context.Context,
	registryService service.RegistryService,
	deployment *models.Deployment,
	namespace string,
) (*platformtypes.ResolvedAgentConfig, error)

func ValidateDeploymentRequest

func ValidateDeploymentRequest(deployment *models.Deployment, allowExisting bool) error

Types

type MCPServerRunRequest

type MCPServerRunRequest struct {
	RegistryServer *apiv0.ServerJSON
	DeploymentID   string
	PreferRemote   bool
	EnvValues      map[string]string
	ArgValues      map[string]string
	HeaderValues   map[string]string
}

type RegistryConfig

type RegistryConfig struct {
	Image   string
	Command string
	IsOCI   bool
}

func GetRegistryConfig

func GetRegistryConfig(
	packageInfo model.Package,
	args []string,
) (RegistryConfig, []string, error)

Jump to

Keyboard shortcuts

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