ssh

package
v0.4.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(apiOp *types.APIRequest) (types.APIObjectList, error)

func NewSSHClient

func NewSSHClient(id, node string) (*hosts.Tunnel, error)

Types

type Terminal

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

func NewTerminal

func NewTerminal(conn *websocket.Conn) *Terminal

func (*Terminal) ChangeWindowSize

func (t *Terminal) ChangeWindowSize(win *websocketutils.WindowSize)

func (*Terminal) Close

func (t *Terminal) Close()

func (*Terminal) ReadMessage

func (t *Terminal) ReadMessage(ctx context.Context) error

func (*Terminal) StartTerminal

func (t *Terminal) StartTerminal(sshClient *hosts.Tunnel, rows, cols int) error

func (*Terminal) WriteToTerminal

func (t *Terminal) WriteToTerminal(data []byte)

Jump to

Keyboard shortcuts

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