Documentation
¶
Overview ¶
Package sshfixture provides an isolated SSH/SFTP protocol peer for core consumer tests. It never executes a local shell or reads personal keys.
Index ¶
Constants ¶
View Source
const Password = "synthetic-ssh-fixture-password"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
PublicKeys []ssh.PublicKey
// ServerVersion optionally supplies the SSH identification banner.
ServerVersion string
// HostKeys supplies deployment-owned fixture keys. The first public key is
// exposed as HostKey; all supplied algorithms are advertised by the peer.
HostKeys []ssh.Signer
// ExecHandler optionally overrides the synthetic command execution handler.
ExecHandler func(command string, channel ssh.Channel)
// ShellHandler optionally overrides the synthetic interactive shell handler.
ShellHandler func(channel ssh.Channel, requests <-chan *ssh.Request)
}
Click to show internal directories.
Click to hide internal directories.