sshmock

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is the basic struct for the sshMock server

func New

func New(answers map[string][]byte, randomPort bool) (s *Server, err error)

New creates a new sshmock instance

func (*Server) Address

func (s *Server) Address() string

Address returns the current sshmock server address

func (*Server) Close

func (s *Server) Close() error

Close shutdown the current ssh server

Jump to

Keyboard shortcuts

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