Documentation
¶
Overview ¶
Package testutils provides helpers for integration and transport tests. It is intended to be imported only by _test.go files; production binaries never import it directly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseSSHString ¶
Types ¶
type SSHServer ¶
type SSHServer struct {
// contains filtered or unexported fields
}
A minimal in-process SSH server backed by the local filesystem.
The server supports two channel types:
- exec: runs the command via sh -c on the local host
- subsystem sftp: serves the local filesystem via github.com/pkg/sftp
The exec subprocess is killed when the SSH signal request is received, when the session channel is closed, or when the connection drops.
Click to show internal directories.
Click to hide internal directories.