sshfakes

package
v6.29.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

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 FakeListenerFactory

type FakeListenerFactory struct {
	ListenStub func(network, address string) (net.Listener, error)
	// contains filtered or unexported fields
}

func (*FakeListenerFactory) Invocations

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

func (*FakeListenerFactory) Listen

func (fake *FakeListenerFactory) Listen(network string, address string) (net.Listener, error)

func (*FakeListenerFactory) ListenArgsForCall

func (fake *FakeListenerFactory) ListenArgsForCall(i int) (string, string)

func (*FakeListenerFactory) ListenCallCount

func (fake *FakeListenerFactory) ListenCallCount() int

func (*FakeListenerFactory) ListenReturns

func (fake *FakeListenerFactory) ListenReturns(result1 net.Listener, result2 error)

type FakeSecureClient

type FakeSecureClient struct {
	NewSessionStub func() (sshCmd.SecureSession, error)

	ConnStub func() ssh.Conn

	DialStub func(network, address string) (net.Conn, error)

	WaitStub func() error

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

func (*FakeSecureClient) Close

func (fake *FakeSecureClient) Close() error

func (*FakeSecureClient) CloseCallCount

func (fake *FakeSecureClient) CloseCallCount() int

func (*FakeSecureClient) CloseReturns

func (fake *FakeSecureClient) CloseReturns(result1 error)

func (*FakeSecureClient) Conn

func (fake *FakeSecureClient) Conn() ssh.Conn

func (*FakeSecureClient) ConnCallCount

func (fake *FakeSecureClient) ConnCallCount() int

func (*FakeSecureClient) ConnReturns

func (fake *FakeSecureClient) ConnReturns(result1 ssh.Conn)

func (*FakeSecureClient) Dial

func (fake *FakeSecureClient) Dial(network string, address string) (net.Conn, error)

func (*FakeSecureClient) DialArgsForCall

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

func (*FakeSecureClient) DialCallCount

func (fake *FakeSecureClient) DialCallCount() int

func (*FakeSecureClient) DialReturns

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

func (*FakeSecureClient) Invocations

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

func (*FakeSecureClient) NewSession

func (fake *FakeSecureClient) NewSession() (sshCmd.SecureSession, error)

func (*FakeSecureClient) NewSessionCallCount

func (fake *FakeSecureClient) NewSessionCallCount() int

func (*FakeSecureClient) NewSessionReturns

func (fake *FakeSecureClient) NewSessionReturns(result1 sshCmd.SecureSession, result2 error)

func (*FakeSecureClient) Wait

func (fake *FakeSecureClient) Wait() error

func (*FakeSecureClient) WaitCallCount

func (fake *FakeSecureClient) WaitCallCount() int

func (*FakeSecureClient) WaitReturns

func (fake *FakeSecureClient) WaitReturns(result1 error)

type FakeSecureDialer

type FakeSecureDialer struct {
	DialStub func(network, address string, config *ssh.ClientConfig) (sshCmd.SecureClient, error)
	// contains filtered or unexported fields
}

func (*FakeSecureDialer) Dial

func (fake *FakeSecureDialer) Dial(network string, address string, config *ssh.ClientConfig) (sshCmd.SecureClient, error)

func (*FakeSecureDialer) DialArgsForCall

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

func (*FakeSecureDialer) DialCallCount

func (fake *FakeSecureDialer) DialCallCount() int

func (*FakeSecureDialer) DialReturns

func (fake *FakeSecureDialer) DialReturns(result1 sshCmd.SecureClient, result2 error)

func (*FakeSecureDialer) Invocations

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

type FakeSecureSession

type FakeSecureSession struct {
	RequestPtyStub func(term string, height, width int, termModes ssh.TerminalModes) error

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

	StdinPipeStub func() (io.WriteCloser, error)

	StdoutPipeStub func() (io.Reader, error)

	StderrPipeStub func() (io.Reader, error)

	StartStub func(command string) error

	ShellStub func() error

	WaitStub func() error

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

func (*FakeSecureSession) Close

func (fake *FakeSecureSession) Close() error

func (*FakeSecureSession) CloseCallCount

func (fake *FakeSecureSession) CloseCallCount() int

func (*FakeSecureSession) CloseReturns

func (fake *FakeSecureSession) CloseReturns(result1 error)

func (*FakeSecureSession) Invocations

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

func (*FakeSecureSession) RequestPty

func (fake *FakeSecureSession) RequestPty(term string, height int, width int, termModes ssh.TerminalModes) error

func (*FakeSecureSession) RequestPtyArgsForCall

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

func (*FakeSecureSession) RequestPtyCallCount

func (fake *FakeSecureSession) RequestPtyCallCount() int

func (*FakeSecureSession) RequestPtyReturns

func (fake *FakeSecureSession) RequestPtyReturns(result1 error)

func (*FakeSecureSession) SendRequest

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

func (*FakeSecureSession) SendRequestArgsForCall

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

func (*FakeSecureSession) SendRequestCallCount

func (fake *FakeSecureSession) SendRequestCallCount() int

func (*FakeSecureSession) SendRequestReturns

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

func (*FakeSecureSession) Shell

func (fake *FakeSecureSession) Shell() error

func (*FakeSecureSession) ShellCallCount

func (fake *FakeSecureSession) ShellCallCount() int

func (*FakeSecureSession) ShellReturns

func (fake *FakeSecureSession) ShellReturns(result1 error)

func (*FakeSecureSession) Start

func (fake *FakeSecureSession) Start(command string) error

func (*FakeSecureSession) StartArgsForCall

func (fake *FakeSecureSession) StartArgsForCall(i int) string

func (*FakeSecureSession) StartCallCount

func (fake *FakeSecureSession) StartCallCount() int

func (*FakeSecureSession) StartReturns

func (fake *FakeSecureSession) StartReturns(result1 error)

func (*FakeSecureSession) StderrPipe

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

func (*FakeSecureSession) StderrPipeCallCount

func (fake *FakeSecureSession) StderrPipeCallCount() int

func (*FakeSecureSession) StderrPipeReturns

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

func (*FakeSecureSession) StdinPipe

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

func (*FakeSecureSession) StdinPipeCallCount

func (fake *FakeSecureSession) StdinPipeCallCount() int

func (*FakeSecureSession) StdinPipeReturns

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

func (*FakeSecureSession) StdoutPipe

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

func (*FakeSecureSession) StdoutPipeCallCount

func (fake *FakeSecureSession) StdoutPipeCallCount() int

func (*FakeSecureSession) StdoutPipeReturns

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

func (*FakeSecureSession) Wait

func (fake *FakeSecureSession) Wait() error

func (*FakeSecureSession) WaitCallCount

func (fake *FakeSecureSession) WaitCallCount() int

func (*FakeSecureSession) WaitReturns

func (fake *FakeSecureSession) WaitReturns(result1 error)

type FakeSecureShell

type FakeSecureShell struct {
	ConnectStub func(opts *options.SSHOptions) error

	InteractiveSessionStub func() error

	LocalPortForwardStub func() error

	WaitStub func() error

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

func (*FakeSecureShell) Close

func (fake *FakeSecureShell) Close() error

func (*FakeSecureShell) CloseCallCount

func (fake *FakeSecureShell) CloseCallCount() int

func (*FakeSecureShell) CloseReturns

func (fake *FakeSecureShell) CloseReturns(result1 error)

func (*FakeSecureShell) Connect

func (fake *FakeSecureShell) Connect(opts *options.SSHOptions) error

func (*FakeSecureShell) ConnectArgsForCall

func (fake *FakeSecureShell) ConnectArgsForCall(i int) *options.SSHOptions

func (*FakeSecureShell) ConnectCallCount

func (fake *FakeSecureShell) ConnectCallCount() int

func (*FakeSecureShell) ConnectReturns

func (fake *FakeSecureShell) ConnectReturns(result1 error)

func (*FakeSecureShell) InteractiveSession

func (fake *FakeSecureShell) InteractiveSession() error

func (*FakeSecureShell) InteractiveSessionCallCount

func (fake *FakeSecureShell) InteractiveSessionCallCount() int

func (*FakeSecureShell) InteractiveSessionReturns

func (fake *FakeSecureShell) InteractiveSessionReturns(result1 error)

func (*FakeSecureShell) Invocations

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

func (*FakeSecureShell) LocalPortForward

func (fake *FakeSecureShell) LocalPortForward() error

func (*FakeSecureShell) LocalPortForwardCallCount

func (fake *FakeSecureShell) LocalPortForwardCallCount() int

func (*FakeSecureShell) LocalPortForwardReturns

func (fake *FakeSecureShell) LocalPortForwardReturns(result1 error)

func (*FakeSecureShell) Wait

func (fake *FakeSecureShell) Wait() error

func (*FakeSecureShell) WaitCallCount

func (fake *FakeSecureShell) WaitCallCount() int

func (*FakeSecureShell) WaitReturns

func (fake *FakeSecureShell) WaitReturns(result1 error)

Jump to

Keyboard shortcuts

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