Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestSSHServer ¶
type TestSSHServer struct {
// contains filtered or unexported fields
}
func NewTestSSHServer ¶
func NewTestSSHServer(addr string, username, pass string) *TestSSHServer
TestSSHServer creates a new TestSSHServer.
func (*TestSSHServer) Close ¶
func (fs *TestSSHServer) Close() error
Close returns any error returned from closing the Server's underlying Listener(s).
func (*TestSSHServer) ListenAndServe ¶
func (fs *TestSSHServer) ListenAndServe() error
ListenAndServe listens on the TCP network address srv.Addr and then calls Serve to handle incoming connections
func (*TestSSHServer) SetReturnString ¶
func (fs *TestSSHServer) SetReturnString(str string)
SetReturnString takes in a string and set it as the response from the server
Click to show internal directories.
Click to hide internal directories.