Documentation
¶
Index ¶
- func Auth(gateway term.Endpoint) (ssh.AuthMethod, error)
- func Connect(ctx context.Context, gateways []term.Endpoint) (*ssh.Client, error)
- func ConnectToNextJumpHost(ctx context.Context, currentClient *ssh.Client, user string, host string, ...) (*ssh.Client, error)
- type SSHConnect
- type TerminalMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SSHConnect ¶
type SSHConnect struct {
StdinPipe io.WriteCloser
// contains filtered or unexported fields
}
func NewSSHConnect ¶
func (*SSHConnect) SendMessageToWebSocket ¶
func (s *SSHConnect) SendMessageToWebSocket(msg string) error
func (*SSHConnect) Start ¶
func (s *SSHConnect) Start()
func (*SSHConnect) Stop ¶
func (s *SSHConnect) Stop()
func (*SSHConnect) WindowChange ¶
func (s *SSHConnect) WindowChange(h int, w int) error
type TerminalMessage ¶
type TerminalMessage struct {
Operation string `json:"operation"`
Data string `json:"data"`
Cols int `json:"cols"`
Rows int `json:"rows"`
}
func NewMessage ¶
func NewMessage(operation string, data string, cols, rows int) TerminalMessage
func ParseTerminalMessage ¶
func ParseTerminalMessage(value []byte) (TerminalMessage, error)
Click to show internal directories.
Click to hide internal directories.