shell

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MonitorTtySize

func MonitorTtySize(ctx context.Context, client client.APIClient, out *execcmd.OutStream, id string, isExec bool) error

MonitorTtySize updates the container tty size when the terminal tty changes size

Types

type Shell

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

Shell holds an instance of a user's interaction with a Docker container.

func NewShell

func NewShell(homeDir string) *Shell

NewShell builds a new shell instance.

func (*Shell) Execute

func (s *Shell) Execute(
	inputCmd string,
	execWithShell bool,
) error

Execute executes the shell, redirecting stdin.

Jump to

Keyboard shortcuts

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