Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerFactory ¶ added in v0.1.2
type HandlerFactory func(t assert.TestingT) SSHHandler
HandlerFactory is a test function that will deliver an SSHHandler.
type SSHHandler ¶ added in v0.1.1
type SSHHandler interface { // Handler is a function that handles i/o to/from an SSH channel Handle(t assert.TestingT, ch ssh.Channel) }
SSHHandler is the interface that is implemented to handle an SSH channel.
type SSHServer ¶
type SSHServer struct {
// contains filtered or unexported fields
}
SSHServer represents a test SSH Server
func NewSSHServer ¶
NewSSHServer deflivers a new test SSH Server, with a Handler that simply echoes lines received. The server implements password authentication with the given credentials.
func NewSSHServerHandler ¶ added in v0.1.1
func NewSSHServerHandler(t assert.TestingT, uname, password string, factory HandlerFactory) *SSHServer
NewSSHServerHandler deflivers a new test SSH Server, with a custom channel handler. The server implements password authentication with the given credentials.
Click to show internal directories.
Click to hide internal directories.