clisshfakes

package
v6.44.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 8, 2019 License: Apache-2.0 Imports: 6 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() (clissh.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() (clissh.SecureSession, error)

func (*FakeSecureClient) NewSessionCallCount

func (fake *FakeSecureClient) NewSessionCallCount() int

func (*FakeSecureClient) NewSessionCalls

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

func (*FakeSecureClient) NewSessionReturns

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

func (*FakeSecureClient) NewSessionReturnsOnCall

func (fake *FakeSecureClient) NewSessionReturnsOnCall(i int, result1 clissh.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) (clissh.SecureClient, error)
	// contains filtered or unexported fields
}

func (*FakeSecureDialer) Dial

func (fake *FakeSecureDialer) Dial(arg1 string, arg2 string, arg3 *ssh.ClientConfig) (clissh.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) (clissh.SecureClient, error))

func (*FakeSecureDialer) DialReturns

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

func (*FakeSecureDialer) DialReturnsOnCall

func (fake *FakeSecureDialer) DialReturnsOnCall(i int, result1 clissh.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 FakeTerminalHelper

type FakeTerminalHelper struct {
	GetFdInfoStub func(interface{}) (uintptr, bool)

	GetWinsizeStub func(uintptr) (*term.Winsize, error)

	RestoreTerminalStub func(uintptr, *term.State) error

	SetRawTerminalStub func(uintptr) (*term.State, error)

	StdStreamsStub func() (io.ReadCloser, io.Writer, io.Writer)
	// contains filtered or unexported fields
}

func (*FakeTerminalHelper) GetFdInfo

func (fake *FakeTerminalHelper) GetFdInfo(arg1 interface{}) (uintptr, bool)

func (*FakeTerminalHelper) GetFdInfoArgsForCall

func (fake *FakeTerminalHelper) GetFdInfoArgsForCall(i int) interface{}

func (*FakeTerminalHelper) GetFdInfoCallCount

func (fake *FakeTerminalHelper) GetFdInfoCallCount() int

func (*FakeTerminalHelper) GetFdInfoCalls

func (fake *FakeTerminalHelper) GetFdInfoCalls(stub func(interface{}) (uintptr, bool))

func (*FakeTerminalHelper) GetFdInfoReturns

func (fake *FakeTerminalHelper) GetFdInfoReturns(result1 uintptr, result2 bool)

func (*FakeTerminalHelper) GetFdInfoReturnsOnCall

func (fake *FakeTerminalHelper) GetFdInfoReturnsOnCall(i int, result1 uintptr, result2 bool)

func (*FakeTerminalHelper) GetWinsize

func (fake *FakeTerminalHelper) GetWinsize(arg1 uintptr) (*term.Winsize, error)

func (*FakeTerminalHelper) GetWinsizeArgsForCall

func (fake *FakeTerminalHelper) GetWinsizeArgsForCall(i int) uintptr

func (*FakeTerminalHelper) GetWinsizeCallCount

func (fake *FakeTerminalHelper) GetWinsizeCallCount() int

func (*FakeTerminalHelper) GetWinsizeCalls

func (fake *FakeTerminalHelper) GetWinsizeCalls(stub func(uintptr) (*term.Winsize, error))

func (*FakeTerminalHelper) GetWinsizeReturns

func (fake *FakeTerminalHelper) GetWinsizeReturns(result1 *term.Winsize, result2 error)

func (*FakeTerminalHelper) GetWinsizeReturnsOnCall

func (fake *FakeTerminalHelper) GetWinsizeReturnsOnCall(i int, result1 *term.Winsize, result2 error)

func (*FakeTerminalHelper) Invocations

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

func (*FakeTerminalHelper) RestoreTerminal

func (fake *FakeTerminalHelper) RestoreTerminal(arg1 uintptr, arg2 *term.State) error

func (*FakeTerminalHelper) RestoreTerminalArgsForCall

func (fake *FakeTerminalHelper) RestoreTerminalArgsForCall(i int) (uintptr, *term.State)

func (*FakeTerminalHelper) RestoreTerminalCallCount

func (fake *FakeTerminalHelper) RestoreTerminalCallCount() int

func (*FakeTerminalHelper) RestoreTerminalCalls

func (fake *FakeTerminalHelper) RestoreTerminalCalls(stub func(uintptr, *term.State) error)

func (*FakeTerminalHelper) RestoreTerminalReturns

func (fake *FakeTerminalHelper) RestoreTerminalReturns(result1 error)

func (*FakeTerminalHelper) RestoreTerminalReturnsOnCall

func (fake *FakeTerminalHelper) RestoreTerminalReturnsOnCall(i int, result1 error)

func (*FakeTerminalHelper) SetRawTerminal

func (fake *FakeTerminalHelper) SetRawTerminal(arg1 uintptr) (*term.State, error)

func (*FakeTerminalHelper) SetRawTerminalArgsForCall

func (fake *FakeTerminalHelper) SetRawTerminalArgsForCall(i int) uintptr

func (*FakeTerminalHelper) SetRawTerminalCallCount

func (fake *FakeTerminalHelper) SetRawTerminalCallCount() int

func (*FakeTerminalHelper) SetRawTerminalCalls

func (fake *FakeTerminalHelper) SetRawTerminalCalls(stub func(uintptr) (*term.State, error))

func (*FakeTerminalHelper) SetRawTerminalReturns

func (fake *FakeTerminalHelper) SetRawTerminalReturns(result1 *term.State, result2 error)

func (*FakeTerminalHelper) SetRawTerminalReturnsOnCall

func (fake *FakeTerminalHelper) SetRawTerminalReturnsOnCall(i int, result1 *term.State, result2 error)

func (*FakeTerminalHelper) StdStreams

func (fake *FakeTerminalHelper) StdStreams() (io.ReadCloser, io.Writer, io.Writer)

func (*FakeTerminalHelper) StdStreamsCallCount

func (fake *FakeTerminalHelper) StdStreamsCallCount() int

func (*FakeTerminalHelper) StdStreamsCalls

func (fake *FakeTerminalHelper) StdStreamsCalls(stub func() (io.ReadCloser, io.Writer, io.Writer))

func (*FakeTerminalHelper) StdStreamsReturns

func (fake *FakeTerminalHelper) StdStreamsReturns(result1 io.ReadCloser, result2 io.Writer, result3 io.Writer)

func (*FakeTerminalHelper) StdStreamsReturnsOnCall

func (fake *FakeTerminalHelper) StdStreamsReturnsOnCall(i int, result1 io.ReadCloser, result2 io.Writer, result3 io.Writer)

Jump to

Keyboard shortcuts

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