testutil

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2018 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHServer

type SSHServer struct {
	// contains filtered or unexported fields
}

SSHServer represents a test SSH Server

func NewSSHServer

func NewSSHServer(t *testing.T, uname, password string) *SSHServer

NewSSHServer deflivers a new test SSH Server. The server implements password authentication with the given credentials.

func (*SSHServer) Close

func (ts *SSHServer) Close()

Close closes any resources used by the server.

func (*SSHServer) Port

func (ts *SSHServer) Port() int

Port delivers the tcp port number on which the server is listening.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL