mocks

package
v0.0.0-...-098adc7 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeDialer

type FakeDialer struct {
	DialStub func(n, addr string) (net.Conn, error)
	// contains filtered or unexported fields
}

func (*FakeDialer) Dial

func (fake *FakeDialer) Dial(n string, addr string) (net.Conn, error)

func (*FakeDialer) DialArgsForCall

func (fake *FakeDialer) DialArgsForCall(i int) (string, string)

func (*FakeDialer) DialCallCount

func (fake *FakeDialer) DialCallCount() int

func (*FakeDialer) DialReturns

func (fake *FakeDialer) DialReturns(result1 net.Conn, result2 error)

type FakeSSHSession

type FakeSSHSession struct {
	StdinPipeStub func() (io.WriteCloser, error)

	StdoutPipeStub func() (io.Reader, error)

	StderrPipeStub func() (io.Reader, error)

	SendRequestStub func(name string, wantReply bool, payload []byte) (bool, error)

	RequestPtyStub func(term string, h, w int, termmodes ssh.TerminalModes) error

	ShellStub func() error

	RunStub func(string) error

	WaitStub func() error

	CloseStub func() error
	// contains filtered or unexported fields
}

func (*FakeSSHSession) Close

func (fake *FakeSSHSession) Close() error

func (*FakeSSHSession) CloseCallCount

func (fake *FakeSSHSession) CloseCallCount() int

func (*FakeSSHSession) CloseReturns

func (fake *FakeSSHSession) CloseReturns(result1 error)

func (*FakeSSHSession) RequestPty

func (fake *FakeSSHSession) RequestPty(term string, h int, w int, termmodes ssh.TerminalModes) error

func (*FakeSSHSession) RequestPtyArgsForCall

func (fake *FakeSSHSession) RequestPtyArgsForCall(i int) (string, int, int, ssh.TerminalModes)

func (*FakeSSHSession) RequestPtyCallCount

func (fake *FakeSSHSession) RequestPtyCallCount() int

func (*FakeSSHSession) RequestPtyReturns

func (fake *FakeSSHSession) RequestPtyReturns(result1 error)

func (*FakeSSHSession) Run

func (fake *FakeSSHSession) Run(arg1 string) error

func (*FakeSSHSession) RunArgsForCall

func (fake *FakeSSHSession) RunArgsForCall(i int) string

func (*FakeSSHSession) RunCallCount

func (fake *FakeSSHSession) RunCallCount() int

func (*FakeSSHSession) RunReturns

func (fake *FakeSSHSession) RunReturns(result1 error)

func (*FakeSSHSession) SendRequest

func (fake *FakeSSHSession) SendRequest(name string, wantReply bool, payload []byte) (bool, error)

func (*FakeSSHSession) SendRequestArgsForCall

func (fake *FakeSSHSession) SendRequestArgsForCall(i int) (string, bool, []byte)

func (*FakeSSHSession) SendRequestCallCount

func (fake *FakeSSHSession) SendRequestCallCount() int

func (*FakeSSHSession) SendRequestReturns

func (fake *FakeSSHSession) SendRequestReturns(result1 bool, result2 error)

func (*FakeSSHSession) Shell

func (fake *FakeSSHSession) Shell() error

func (*FakeSSHSession) ShellCallCount

func (fake *FakeSSHSession) ShellCallCount() int

func (*FakeSSHSession) ShellReturns

func (fake *FakeSSHSession) ShellReturns(result1 error)

func (*FakeSSHSession) StderrPipe

func (fake *FakeSSHSession) StderrPipe() (io.Reader, error)

func (*FakeSSHSession) StderrPipeCallCount

func (fake *FakeSSHSession) StderrPipeCallCount() int

func (*FakeSSHSession) StderrPipeReturns

func (fake *FakeSSHSession) StderrPipeReturns(result1 io.Reader, result2 error)

func (*FakeSSHSession) StdinPipe

func (fake *FakeSSHSession) StdinPipe() (io.WriteCloser, error)

func (*FakeSSHSession) StdinPipeCallCount

func (fake *FakeSSHSession) StdinPipeCallCount() int

func (*FakeSSHSession) StdinPipeReturns

func (fake *FakeSSHSession) StdinPipeReturns(result1 io.WriteCloser, result2 error)

func (*FakeSSHSession) StdoutPipe

func (fake *FakeSSHSession) StdoutPipe() (io.Reader, error)

func (*FakeSSHSession) StdoutPipeCallCount

func (fake *FakeSSHSession) StdoutPipeCallCount() int

func (*FakeSSHSession) StdoutPipeReturns

func (fake *FakeSSHSession) StdoutPipeReturns(result1 io.Reader, result2 error)

func (*FakeSSHSession) Wait

func (fake *FakeSSHSession) Wait() error

func (*FakeSSHSession) WaitCallCount

func (fake *FakeSSHSession) WaitCallCount() int

func (*FakeSSHSession) WaitReturns

func (fake *FakeSSHSession) WaitReturns(result1 error)

type FakeSSHSessionFactory

type FakeSSHSessionFactory struct {
	NewStub func() (sshapi.SSHSession, error)
	// contains filtered or unexported fields
}

func (*FakeSSHSessionFactory) New

func (*FakeSSHSessionFactory) NewCallCount

func (fake *FakeSSHSessionFactory) NewCallCount() int

func (*FakeSSHSessionFactory) NewReturns

func (fake *FakeSSHSessionFactory) NewReturns(result1 sshapi.SSHSession, result2 error)

Jump to

Keyboard shortcuts

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