sshfakes

package
v7.0.0-beta.24+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeListenerFactory

type FakeListenerFactory struct {
	ListenStub func(string, 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(arg1 string, arg2 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) ListenCalls

func (fake *FakeListenerFactory) ListenCalls(stub func(string, string) (net.Listener, error))

func (*FakeListenerFactory) ListenReturns

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

func (*FakeListenerFactory) ListenReturnsOnCall

func (fake *FakeListenerFactory) ListenReturnsOnCall(i int, result1 net.Listener, result2 error)

type FakeSecureClient

type FakeSecureClient struct {
	CloseStub func() error

	ConnStub func() ssh.Conn

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

	NewSessionStub func() (sshCmd.SecureSession, error)

	WaitStub 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) CloseCalls

func (fake *FakeSecureClient) CloseCalls(stub func() error)

func (*FakeSecureClient) CloseReturns

func (fake *FakeSecureClient) CloseReturns(result1 error)

func (*FakeSecureClient) CloseReturnsOnCall

func (fake *FakeSecureClient) CloseReturnsOnCall(i int, result1 error)

func (*FakeSecureClient) Conn

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

func (*FakeSecureClient) ConnCallCount

func (fake *FakeSecureClient) ConnCallCount() int

func (*FakeSecureClient) ConnCalls

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

func (*FakeSecureClient) ConnReturns

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

func (*FakeSecureClient) ConnReturnsOnCall

func (fake *FakeSecureClient) ConnReturnsOnCall(i int, result1 ssh.Conn)

func (*FakeSecureClient) Dial

func (fake *FakeSecureClient) Dial(arg1 string, arg2 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) DialCalls

func (fake *FakeSecureClient) DialCalls(stub func(string, string) (net.Conn, error))

func (*FakeSecureClient) DialReturns

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

func (*FakeSecureClient) DialReturnsOnCall

func (fake *FakeSecureClient) DialReturnsOnCall(i int, 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) NewSessionCalls

func (fake *FakeSecureClient) NewSessionCalls(stub func() (sshCmd.SecureSession, error))

func (*FakeSecureClient) NewSessionReturns

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

func (*FakeSecureClient) NewSessionReturnsOnCall

func (fake *FakeSecureClient) NewSessionReturnsOnCall(i int, result1 sshCmd.SecureSession, result2 error)

func (*FakeSecureClient) Wait

func (fake *FakeSecureClient) Wait() error

func (*FakeSecureClient) WaitCallCount

func (fake *FakeSecureClient) WaitCallCount() int

func (*FakeSecureClient) WaitCalls

func (fake *FakeSecureClient) WaitCalls(stub func() error)

func (*FakeSecureClient) WaitReturns

func (fake *FakeSecureClient) WaitReturns(result1 error)

func (*FakeSecureClient) WaitReturnsOnCall

func (fake *FakeSecureClient) WaitReturnsOnCall(i int, result1 error)

type FakeSecureDialer

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

func (*FakeSecureDialer) Dial

func (fake *FakeSecureDialer) Dial(arg1 string, arg2 string, arg3 *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) DialCalls

func (fake *FakeSecureDialer) DialCalls(stub func(string, string, *ssh.ClientConfig) (sshCmd.SecureClient, error))

func (*FakeSecureDialer) DialReturns

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

func (*FakeSecureDialer) DialReturnsOnCall

func (fake *FakeSecureDialer) DialReturnsOnCall(i int, result1 sshCmd.SecureClient, result2 error)

func (*FakeSecureDialer) Invocations

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

type FakeSecureSession

type FakeSecureSession struct {
	CloseStub func() error

	RequestPtyStub func(string, int, int, ssh.TerminalModes) error

	SendRequestStub func(string, bool, []byte) (bool, error)

	ShellStub func() error

	StartStub func(string) error

	StderrPipeStub func() (io.Reader, error)

	StdinPipeStub func() (io.WriteCloser, error)

	StdoutPipeStub func() (io.Reader, error)

	WaitStub 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) CloseCalls

func (fake *FakeSecureSession) CloseCalls(stub func() error)

func (*FakeSecureSession) CloseReturns

func (fake *FakeSecureSession) CloseReturns(result1 error)

func (*FakeSecureSession) CloseReturnsOnCall

func (fake *FakeSecureSession) CloseReturnsOnCall(i int, result1 error)

func (*FakeSecureSession) Invocations

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

func (*FakeSecureSession) RequestPty

func (fake *FakeSecureSession) RequestPty(arg1 string, arg2 int, arg3 int, arg4 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) RequestPtyCalls

func (fake *FakeSecureSession) RequestPtyCalls(stub func(string, int, int, ssh.TerminalModes) error)

func (*FakeSecureSession) RequestPtyReturns

func (fake *FakeSecureSession) RequestPtyReturns(result1 error)

func (*FakeSecureSession) RequestPtyReturnsOnCall

func (fake *FakeSecureSession) RequestPtyReturnsOnCall(i int, result1 error)

func (*FakeSecureSession) SendRequest

func (fake *FakeSecureSession) SendRequest(arg1 string, arg2 bool, arg3 []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) SendRequestCalls

func (fake *FakeSecureSession) SendRequestCalls(stub func(string, bool, []byte) (bool, error))

func (*FakeSecureSession) SendRequestReturns

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

func (*FakeSecureSession) SendRequestReturnsOnCall

func (fake *FakeSecureSession) SendRequestReturnsOnCall(i int, result1 bool, result2 error)

func (*FakeSecureSession) Shell

func (fake *FakeSecureSession) Shell() error

func (*FakeSecureSession) ShellCallCount

func (fake *FakeSecureSession) ShellCallCount() int

func (*FakeSecureSession) ShellCalls

func (fake *FakeSecureSession) ShellCalls(stub func() error)

func (*FakeSecureSession) ShellReturns

func (fake *FakeSecureSession) ShellReturns(result1 error)

func (*FakeSecureSession) ShellReturnsOnCall

func (fake *FakeSecureSession) ShellReturnsOnCall(i int, result1 error)

func (*FakeSecureSession) Start

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

func (*FakeSecureSession) StartArgsForCall

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

func (*FakeSecureSession) StartCallCount

func (fake *FakeSecureSession) StartCallCount() int

func (*FakeSecureSession) StartCalls

func (fake *FakeSecureSession) StartCalls(stub func(string) error)

func (*FakeSecureSession) StartReturns

func (fake *FakeSecureSession) StartReturns(result1 error)

func (*FakeSecureSession) StartReturnsOnCall

func (fake *FakeSecureSession) StartReturnsOnCall(i int, result1 error)

func (*FakeSecureSession) StderrPipe

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

func (*FakeSecureSession) StderrPipeCallCount

func (fake *FakeSecureSession) StderrPipeCallCount() int

func (*FakeSecureSession) StderrPipeCalls

func (fake *FakeSecureSession) StderrPipeCalls(stub func() (io.Reader, error))

func (*FakeSecureSession) StderrPipeReturns

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

func (*FakeSecureSession) StderrPipeReturnsOnCall

func (fake *FakeSecureSession) StderrPipeReturnsOnCall(i int, 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) StdinPipeCalls

func (fake *FakeSecureSession) StdinPipeCalls(stub func() (io.WriteCloser, error))

func (*FakeSecureSession) StdinPipeReturns

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

func (*FakeSecureSession) StdinPipeReturnsOnCall

func (fake *FakeSecureSession) StdinPipeReturnsOnCall(i int, 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) StdoutPipeCalls

func (fake *FakeSecureSession) StdoutPipeCalls(stub func() (io.Reader, error))

func (*FakeSecureSession) StdoutPipeReturns

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

func (*FakeSecureSession) StdoutPipeReturnsOnCall

func (fake *FakeSecureSession) StdoutPipeReturnsOnCall(i int, result1 io.Reader, result2 error)

func (*FakeSecureSession) Wait

func (fake *FakeSecureSession) Wait() error

func (*FakeSecureSession) WaitCallCount

func (fake *FakeSecureSession) WaitCallCount() int

func (*FakeSecureSession) WaitCalls

func (fake *FakeSecureSession) WaitCalls(stub func() error)

func (*FakeSecureSession) WaitReturns

func (fake *FakeSecureSession) WaitReturns(result1 error)

func (*FakeSecureSession) WaitReturnsOnCall

func (fake *FakeSecureSession) WaitReturnsOnCall(i int, result1 error)

type FakeSecureShell

type FakeSecureShell struct {
	CloseStub func() error

	ConnectStub func(*options.SSHOptions) error

	InteractiveSessionStub func() error

	LocalPortForwardStub func() error

	WaitStub 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) CloseCalls

func (fake *FakeSecureShell) CloseCalls(stub func() error)

func (*FakeSecureShell) CloseReturns

func (fake *FakeSecureShell) CloseReturns(result1 error)

func (*FakeSecureShell) CloseReturnsOnCall

func (fake *FakeSecureShell) CloseReturnsOnCall(i int, result1 error)

func (*FakeSecureShell) Connect

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

func (*FakeSecureShell) ConnectArgsForCall

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

func (*FakeSecureShell) ConnectCallCount

func (fake *FakeSecureShell) ConnectCallCount() int

func (*FakeSecureShell) ConnectCalls

func (fake *FakeSecureShell) ConnectCalls(stub func(*options.SSHOptions) error)

func (*FakeSecureShell) ConnectReturns

func (fake *FakeSecureShell) ConnectReturns(result1 error)

func (*FakeSecureShell) ConnectReturnsOnCall

func (fake *FakeSecureShell) ConnectReturnsOnCall(i int, result1 error)

func (*FakeSecureShell) InteractiveSession

func (fake *FakeSecureShell) InteractiveSession() error

func (*FakeSecureShell) InteractiveSessionCallCount

func (fake *FakeSecureShell) InteractiveSessionCallCount() int

func (*FakeSecureShell) InteractiveSessionCalls

func (fake *FakeSecureShell) InteractiveSessionCalls(stub func() error)

func (*FakeSecureShell) InteractiveSessionReturns

func (fake *FakeSecureShell) InteractiveSessionReturns(result1 error)

func (*FakeSecureShell) InteractiveSessionReturnsOnCall

func (fake *FakeSecureShell) InteractiveSessionReturnsOnCall(i int, 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) LocalPortForwardCalls

func (fake *FakeSecureShell) LocalPortForwardCalls(stub func() error)

func (*FakeSecureShell) LocalPortForwardReturns

func (fake *FakeSecureShell) LocalPortForwardReturns(result1 error)

func (*FakeSecureShell) LocalPortForwardReturnsOnCall

func (fake *FakeSecureShell) LocalPortForwardReturnsOnCall(i int, result1 error)

func (*FakeSecureShell) Wait

func (fake *FakeSecureShell) Wait() error

func (*FakeSecureShell) WaitCallCount

func (fake *FakeSecureShell) WaitCallCount() int

func (*FakeSecureShell) WaitCalls

func (fake *FakeSecureShell) WaitCalls(stub func() error)

func (*FakeSecureShell) WaitReturns

func (fake *FakeSecureShell) WaitReturns(result1 error)

func (*FakeSecureShell) WaitReturnsOnCall

func (fake *FakeSecureShell) WaitReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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