terminal

package
v0.0.0-...-6f6f2b9 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (

	// EndOfTransmission end
	EndOfTransmission = "\u0004"
)

Variables

This section is empty.

Functions

func ValidatePod

func ValidatePod(pod *corev1.Pod, containerName string) (bool, error)

ValidatePod validate pod.

Types

type PtyHandler

type PtyHandler interface {
	remotecommand.TerminalSizeQueue
	Done()
	Tty() bool
	Stdin() io.Reader
	Stdout() io.Writer
	Stderr() io.Writer
}

PtyHandler is what remotecommand expects from a pty

type TerminalMessage

type TerminalMessage struct {
	Operation string `json:"operation"`
	Data      string `json:"data"`
	Rows      uint16 `json:"rows"`
	Cols      uint16 `json:"cols"`
}

TerminalMessage is the messaging protocol between ShellController and TerminalSession.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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