Help us shape the future of Go! Take the 2026 Go Developer Survey

exec

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package exec provides WebSocket-based remote command execution in workspace pods. It bridges WebSocket connections from clients to Kubernetes exec streams, enabling interactive terminal sessions within running workspace containers.

Package exec provides a WebSocket-to-Kubernetes-exec bridge for terminal sessions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(opts *Options) http.HandlerFunc

Handler creates an HTTP handler that upgrades to WebSocket and bridges to pod exec. The handler expects path parameters: namespace, name (workspace name). Query parameters: shell (optional, auto-detected if not provided), cols, rows.

Types

type Options

type Options struct {
	// RESTConfig is the Kubernetes REST config for SPDY exec connections.
	RESTConfig *rest.Config
	// Clientset is the Kubernetes clientset for pod exec requests.
	Clientset kubernetes.Interface
}

Options configures the exec handler.

Jump to

Keyboard shortcuts

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