runtime

package
v0.69.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package runtime provides workload deployment setup functionality that was previously part of the transport package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SetupResult

type SetupResult struct {
	ContainerName string
	TargetURI     string
	TargetPort    int
	TargetHost    string
}

SetupResult contains the results of setting up a workload

func Setup

func Setup(
	ctx context.Context,
	transportType types.TransportType,
	runtime rt.Deployer,
	containerName string,
	image string,
	cmdArgs []string,
	envVars, labels map[string]string,
	permissionProfile *permissions.Profile,
	k8sPodTemplatePatch string,
	isolateNetwork bool,
	allowDockerGateway bool,
	readOnlyRootfs bool,
	ignoreConfig *ignore.Config,
	host string,
	targetPort int,
	targetHost string,
	publishedPorts []string,
	scalingConfig *rt.ScalingConfig,
	runConfigMCPServerGeneration int64,
) (*SetupResult, error)

Setup prepares and deploys a workload for use with a transport. The runtime parameter provides access to container operations. The permissionProfile is used to configure container permissions (including network mode). The k8sPodTemplatePatch is a JSON string to patch the Kubernetes pod template. Returns the container name and target URI for configuring the transport.

Jump to

Keyboard shortcuts

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