shell

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDialer = websocket.DefaultDialer
View Source
var SIGWINCH *regexp.Regexp

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

Functions

func ResizePty

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 Service

type Service struct {
	Name                string `json:"name"`
	HasWebinterface     bool   `json:"hasWebinterface"`
	Port                int    `json:"port"`
	Path                string `json:"path"`
	HasOwnTab           bool   `json:"hasOwnTab"`
	NoRewriteRootPath   bool   `json:"noRewriteRootPath"`
	RewriteHostHeader   bool   `json:"rewriteHostHeader"`
	RewriteOriginHeader bool   `json:"rewriteOriginHeader"`
}

type ShellProxy

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

func NewShellProxy

func NewShellProxy(authnClient authn.AuthNClient, authrClient authr.AuthRClient, vmClient *vmclient.VirtualMachineClient, hfClientSet hfClientset.Interface, kubeClient kubernetes.Interface, ctx context.Context) (*ShellProxy, error)

func (ShellProxy) ConnectGuacFunc

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

* This is used for all connections made via the guacamole client * Currently supported protocols are: rdp, vnc, telnet, ssh

func (ShellProxy) ConnectSSHFunc

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

* This is mainly used for SSH Connections to VMs

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