Documentation
¶
Overview ¶
Package sshtest provides an in-process SSH server exposing an SFTP subsystem, backed by a temporary directory, for exercising the libssh helpers in tests without a real fablab host.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory is an libssh.SshConfigFactory implementation that points at a Server. It is returned as a concrete type so this package does not depend on libssh; it satisfies the interface structurally at the call site.
func (*Factory) Config ¶
func (f *Factory) Config() *ssh.ClientConfig
type Server ¶
type Server struct {
// Root is a temporary directory that stands in for the remote host's filesystem.
Root string
// contains filtered or unexported fields
}
Server is an in-process SSH+SFTP server listening on the loopback interface. Its SFTP subsystem operates on the real filesystem; tests use paths under Root.
Click to show internal directories.
Click to hide internal directories.