shell

package
v0.0.0-...-4786a4a Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BIND    fe->be     sessionID      Id sent back from TerminalResponse
	BIND = iota // 0
	// STDIN   fe->be     Data           Keystrokes/paste buffer
	STDIN // 1
	// STDOUT  be->fe     Data           Output from the process
	STDOUT // 2
	// RESIZE  fe->be     Rows, Cols     New terminal size
	RESIZE // 3
	// TOAST   be->fe     Data           OOB message to be shown to the user
	TOAST // 4
	// INEXIT
	INEXIT // 5
	// OUTEXIT
	OUTEXIT // 6
)
View Source
const EndOfTransmission = "\u0004"

EndOfTransmission terminal end of

Variables

This section is empty.

Functions

func HandleTerminalSession

func HandleTerminalSession(session sockjs.Session)

func NewShellServer

func NewShellServer(serviceName string, server *api.Server, clientSet *kubernetes.Clientset, cfg *rest.Config) *shellServer

Types

type OP

type OP uint8

OP DIRECTION FIELD(S) USED DESCRIPTION

type PtyHandler

type PtyHandler interface {
	io.Reader
	io.Writer
	remotecommand.TerminalSizeQueue
}

PtyHandler is what remotecommand expects from a pty

type Type

type Type = string
const (
	DebugShell  Type = "debug"
	CommonShell Type = "common"
)

Jump to

Keyboard shortcuts

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