shell

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SIGWINCH *regexp.Regexp

SIGWINCH is the regex to match window change (resize) codes

Functions

func ResizePty added in v0.2.1

func ResizePty(h int, w int)

Types

type InputWrapper

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

func (*InputWrapper) Read

func (this *InputWrapper) Read(out []byte) (n int, err error)

type ShellProxy

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

func NewShellProxy

func NewShellProxy(authClient *authclient.AuthClient, vmClient *vmclient.VirtualMachineClient, hfClientSet hfClientset.Interface, kubeClient kubernetes.Interface, ctx context.Context) (*ShellProxy, error)

func (ShellProxy) ConnectFunc

func (sp ShellProxy) ConnectFunc(w http.ResponseWriter, r *http.Request)

func (ShellProxy) SetupRoutes

func (sp ShellProxy) SetupRoutes(r *mux.Router)

type WSWrapper

type WSWrapper struct {
	io.ReadWriteCloser
	// contains filtered or unexported fields
}

func NewWSWrapper

func NewWSWrapper(ws *websocket.Conn, mode int) *WSWrapper

func (*WSWrapper) Close

func (w *WSWrapper) Close() error

func (*WSWrapper) Read

func (w *WSWrapper) Read(out []byte) (n int, err error)

func (*WSWrapper) Write

func (w *WSWrapper) Write(data []byte) (n int, err error)

Jump to

Keyboard shortcuts

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