Documentation
¶
Overview ¶
Package testserver runs an SSH server with an SFTP subsystem in the test process, so the remote code paths need no Docker and no real host.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
Addr string // host:port
Host string
Port int
Root string // directory the SFTP subsystem serves
Fingerprint string // SHA256 fingerprint of the host key
ClientKey string // path to the private key clients authenticate with
// contains filtered or unexported fields
}
func (*Server) Path ¶
Path joins a name onto the server's served directory, for assertions made from the test's side of the connection.
func (*Server) RotateHostKey ¶
RotateHostKey restarts on the same port with a different host key, which is what interception looks like.
Click to show internal directories.
Click to hide internal directories.