containerexec

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: EPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultExecTerm is used for interactive TTY exec when the container has no TERM.
	DefaultExecTerm = "xterm-256color"
)

Variables

This section is empty.

Functions

func ExecEnvForTTY added in v1.0.2

func ExecEnvForTTY(containerEnv []string, preferredTerm string) []string

ExecEnvForTTY returns container env with TERM set for interactive exec sessions. An existing container TERM is preserved. When TERM is missing, preferredTerm is used when non-empty; otherwise DefaultExecTerm is injected.

func IsInteractiveShellCommand

func IsInteractiveShellCommand(command []string) bool

IsInteractiveShellCommand reports argv used for local ms exec without an explicit command.

func ShellCommandForScript

func ShellCommandForScript(script string) []string

ShellCommandForScript runs script inside the container using the best available shell (bash → sh → busybox). For interactive exec default, use ShellCommandInteractive.

func ShellCommandInteractive

func ShellCommandInteractive() []string

ShellCommandInteractive returns argv for an interactive exec session when no command is supplied. Prefers bash, then sh, then busybox.

Types

This section is empty.

Jump to

Keyboard shortcuts

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