shell

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MonitorTTYSize added in v1.15.0

func MonitorTTYSize(
	ctx context.Context,
	le *logrus.Entry,
	dockerClient client.APIClient,
	out *execcmd.OutStream,
	id string,
	isExec bool,
) error

MonitorTTYSize updates a container TTY until ctx ends.

Types

type Shell

type Shell struct {
	// contains filtered or unexported fields
}

Shell executes a host user's commands inside the configured Docker container.

func NewShell

func NewShell(le *logrus.Entry, homeDir string) *Shell

NewShell constructs a shell for a host user home directory.

func (*Shell) Execute

func (s *Shell) Execute(ctx context.Context, inputCmd string, execWithShell bool) error

Execute runs a command inside the user's configured Docker container.

Jump to

Keyboard shortcuts

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