sshtest

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

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