Documentation
¶
Overview ¶
Package sshclient contains the transport-independent half of croc's SSH client. Native and browser callers provide an already-authenticated byte stream plus their own terminal input and output adapters.
Index ¶
Constants ¶
View Source
const DefaultHandshakeTimeout = 30 * time.Second
Variables ¶
This section is empty.
Functions ¶
func HandshakeError ¶
Types ¶
type Config ¶
type Config struct {
ExpectedHostKey gossh.PublicKey
ClientAuth []byte
TerminalName string
InitialSize WindowSize
Input io.Reader
PrepareInput func() (io.Reader, func(), error)
Output io.Writer
ErrorOutput io.Writer
Resizes <-chan WindowSize
HandshakeTimeout time.Duration
BeforeShell func() (func(), error)
OnConnected func()
}
type WindowSize ¶
Click to show internal directories.
Click to hide internal directories.