clisshfakes

package
v6.36.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2018 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(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)

func (*FakeListenerFactory) ListenReturnsOnCall

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

type FakeSecureClient

type FakeSecureClient struct {
	NewSessionStub func() (clissh.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) 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) 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(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) 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) 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) 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(network, address string, config *ssh.ClientConfig) (clissh.SecureClient, error)
	// contains filtered or unexported fields
}

func (*FakeSecureDialer) Dial

func (fake *FakeSecureDialer) Dial(network string, address string, config *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) 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 {
	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) 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(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) RequestPtyReturnsOnCall

func (fake *FakeSecureSession) RequestPtyReturnsOnCall(i int, 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) 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) 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(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) 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) 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) 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) 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) 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(in interface{}) (fd uintptr, isTerminal bool)

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

	RestoreTerminalStub func(fd uintptr, state *term.State) error

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

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

func (*FakeTerminalHelper) GetFdInfo

func (fake *FakeTerminalHelper) GetFdInfo(in interface{}) (fd uintptr, isTerminal bool)

func (*FakeTerminalHelper) GetFdInfoArgsForCall

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

func (*FakeTerminalHelper) GetFdInfoCallCount

func (fake *FakeTerminalHelper) GetFdInfoCallCount() int

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(fd uintptr) (*term.Winsize, error)

func (*FakeTerminalHelper) GetWinsizeArgsForCall

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

func (*FakeTerminalHelper) GetWinsizeCallCount

func (fake *FakeTerminalHelper) GetWinsizeCallCount() int

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(fd uintptr, state *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) 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(fd uintptr) (*term.State, error)

func (*FakeTerminalHelper) SetRawTerminalArgsForCall

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

func (*FakeTerminalHelper) SetRawTerminalCallCount

func (fake *FakeTerminalHelper) SetRawTerminalCallCount() int

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() (stdin io.ReadCloser, stdout io.Writer, stderr io.Writer)

func (*FakeTerminalHelper) StdStreamsCallCount

func (fake *FakeTerminalHelper) StdStreamsCallCount() int

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