runtime

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

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,
	ignoreConfig *ignore.Config,
	host string,
	targetPort int,
	targetHost string,
) (*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