issh

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake struct {
	DialStub func(string, string, *ssh.ClientConfig) (*ssh.Client, error)
	// contains filtered or unexported fields
}

Fake ...

func NewFake

func NewFake() *Fake

NewFake is the preferred way to initialise a Fake

func (*Fake) Dial

func (fake *Fake) Dial(arg1 string, arg2 string, arg3 *ssh.ClientConfig) (*ssh.Client, error)

Dial ...

func (*Fake) DialArgsForCall

func (fake *Fake) DialArgsForCall(i int) (string, string, *ssh.ClientConfig)

DialArgsForCall ...

func (*Fake) DialCallCount

func (fake *Fake) DialCallCount() int

DialCallCount ...

func (*Fake) DialReturns

func (fake *Fake) DialReturns(result1 *ssh.Client, result2 error)

DialReturns ...

func (*Fake) Invocations

func (fake *Fake) Invocations() map[string][][]interface{}

Invocations ...

type Real

type Real struct{}

Real is a wrapper around ssh that implements issh.SSH

func New

func New() *Real

New creates a struct that behaves like the ssh package

func (*Real) Dial

func (*Real) Dial(protocol, address string, config *ssh.ClientConfig) (*ssh.Client, error)

Dial is a wrapper around ssh.Dial()

type SSH

type SSH interface {
	Dial(string, string, *ssh.ClientConfig) (*ssh.Client, error)
}

SSH is an interface around ssh

Jump to

Keyboard shortcuts

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