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.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type FakeLogger
- func (fake *FakeLogger) Debug(arg1 string, arg2 string, arg3 ...interface{})
- func (fake *FakeLogger) DebugArgsForCall(i int) (string, string, []interface{})
- func (fake *FakeLogger) DebugCallCount() int
- func (fake *FakeLogger) DebugCalls(stub func(string, string, ...interface{}))
- func (fake *FakeLogger) Error(arg1 string, arg2 string, arg3 ...interface{})
- func (fake *FakeLogger) ErrorArgsForCall(i int) (string, string, []interface{})
- func (fake *FakeLogger) ErrorCallCount() int
- func (fake *FakeLogger) ErrorCalls(stub func(string, string, ...interface{}))
- func (fake *FakeLogger) Invocations() map[string][][]interface{}
- func (fake *FakeLogger) Warn(arg1 string, arg2 string, arg3 ...interface{})
- func (fake *FakeLogger) WarnArgsForCall(i int) (string, string, []interface{})
- func (fake *FakeLogger) WarnCallCount() int
- func (fake *FakeLogger) WarnCalls(stub func(string, string, ...interface{}))
- type FakeRemoteRunner
- func (fake *FakeRemoteRunner) ArchiveAndDownload(arg1 string, arg2 io.Writer) error
- func (fake *FakeRemoteRunner) ArchiveAndDownloadArgsForCall(i int) (string, io.Writer)
- func (fake *FakeRemoteRunner) ArchiveAndDownloadCallCount() int
- func (fake *FakeRemoteRunner) ArchiveAndDownloadCalls(stub func(string, io.Writer) error)
- func (fake *FakeRemoteRunner) ArchiveAndDownloadReturns(result1 error)
- func (fake *FakeRemoteRunner) ArchiveAndDownloadReturnsOnCall(i int, result1 error)
- func (fake *FakeRemoteRunner) ChecksumDirectory(arg1 string) (map[string]string, error)
- func (fake *FakeRemoteRunner) ChecksumDirectoryArgsForCall(i int) string
- func (fake *FakeRemoteRunner) ChecksumDirectoryCallCount() int
- func (fake *FakeRemoteRunner) ChecksumDirectoryCalls(stub func(string) (map[string]string, error))
- func (fake *FakeRemoteRunner) ChecksumDirectoryReturns(result1 map[string]string, result2 error)
- func (fake *FakeRemoteRunner) ChecksumDirectoryReturnsOnCall(i int, result1 map[string]string, result2 error)
- func (fake *FakeRemoteRunner) ConnectedUsername() string
- func (fake *FakeRemoteRunner) ConnectedUsernameCallCount() int
- func (fake *FakeRemoteRunner) ConnectedUsernameCalls(stub func() string)
- func (fake *FakeRemoteRunner) ConnectedUsernameReturns(result1 string)
- func (fake *FakeRemoteRunner) ConnectedUsernameReturnsOnCall(i int, result1 string)
- func (fake *FakeRemoteRunner) CreateDirectory(arg1 string) error
- func (fake *FakeRemoteRunner) CreateDirectoryArgsForCall(i int) string
- func (fake *FakeRemoteRunner) CreateDirectoryCallCount() int
- func (fake *FakeRemoteRunner) CreateDirectoryCalls(stub func(string) error)
- func (fake *FakeRemoteRunner) CreateDirectoryReturns(result1 error)
- func (fake *FakeRemoteRunner) CreateDirectoryReturnsOnCall(i int, result1 error)
- func (fake *FakeRemoteRunner) DirectoryExists(arg1 string) (bool, error)
- func (fake *FakeRemoteRunner) DirectoryExistsArgsForCall(i int) string
- func (fake *FakeRemoteRunner) DirectoryExistsCallCount() int
- func (fake *FakeRemoteRunner) DirectoryExistsCalls(stub func(string) (bool, error))
- func (fake *FakeRemoteRunner) DirectoryExistsReturns(result1 bool, result2 error)
- func (fake *FakeRemoteRunner) DirectoryExistsReturnsOnCall(i int, result1 bool, result2 error)
- func (fake *FakeRemoteRunner) ExtractAndUpload(arg1 io.Reader, arg2 string) error
- func (fake *FakeRemoteRunner) ExtractAndUploadArgsForCall(i int) (io.Reader, string)
- func (fake *FakeRemoteRunner) ExtractAndUploadCallCount() int
- func (fake *FakeRemoteRunner) ExtractAndUploadCalls(stub func(io.Reader, string) error)
- func (fake *FakeRemoteRunner) ExtractAndUploadReturns(result1 error)
- func (fake *FakeRemoteRunner) ExtractAndUploadReturnsOnCall(i int, result1 error)
- func (fake *FakeRemoteRunner) FindFiles(arg1 string) ([]string, error)
- func (fake *FakeRemoteRunner) FindFilesArgsForCall(i int) string
- func (fake *FakeRemoteRunner) FindFilesCallCount() int
- func (fake *FakeRemoteRunner) FindFilesCalls(stub func(string) ([]string, error))
- func (fake *FakeRemoteRunner) FindFilesReturns(result1 []string, result2 error)
- func (fake *FakeRemoteRunner) FindFilesReturnsOnCall(i int, result1 []string, result2 error)
- func (fake *FakeRemoteRunner) Invocations() map[string][][]interface{}
- func (fake *FakeRemoteRunner) IsWindows() (bool, error)
- func (fake *FakeRemoteRunner) IsWindowsCallCount() int
- func (fake *FakeRemoteRunner) IsWindowsCalls(stub func() (bool, error))
- func (fake *FakeRemoteRunner) IsWindowsReturns(result1 bool, result2 error)
- func (fake *FakeRemoteRunner) IsWindowsReturnsOnCall(i int, result1 bool, result2 error)
- func (fake *FakeRemoteRunner) RemoveDirectory(arg1 string) error
- func (fake *FakeRemoteRunner) RemoveDirectoryArgsForCall(i int) string
- func (fake *FakeRemoteRunner) RemoveDirectoryCallCount() int
- func (fake *FakeRemoteRunner) RemoveDirectoryCalls(stub func(string) error)
- func (fake *FakeRemoteRunner) RemoveDirectoryReturns(result1 error)
- func (fake *FakeRemoteRunner) RemoveDirectoryReturnsOnCall(i int, result1 error)
- func (fake *FakeRemoteRunner) RunScript(arg1 string, arg2 string) error
- func (fake *FakeRemoteRunner) RunScriptArgsForCall(i int) (string, string)
- func (fake *FakeRemoteRunner) RunScriptCallCount() int
- func (fake *FakeRemoteRunner) RunScriptCalls(stub func(string, string) error)
- func (fake *FakeRemoteRunner) RunScriptReturns(result1 error)
- func (fake *FakeRemoteRunner) RunScriptReturnsOnCall(i int, result1 error)
- func (fake *FakeRemoteRunner) RunScriptWithEnv(arg1 string, arg2 map[string]string, arg3 string, arg4 io.Writer) error
- func (fake *FakeRemoteRunner) RunScriptWithEnvArgsForCall(i int) (string, map[string]string, string, io.Writer)
- func (fake *FakeRemoteRunner) RunScriptWithEnvCallCount() int
- func (fake *FakeRemoteRunner) RunScriptWithEnvCalls(stub func(string, map[string]string, string, io.Writer) error)
- func (fake *FakeRemoteRunner) RunScriptWithEnvReturns(result1 error)
- func (fake *FakeRemoteRunner) RunScriptWithEnvReturnsOnCall(i int, result1 error)
- func (fake *FakeRemoteRunner) SizeInBytes(arg1 string) (int, error)
- func (fake *FakeRemoteRunner) SizeInBytesArgsForCall(i int) string
- func (fake *FakeRemoteRunner) SizeInBytesCallCount() int
- func (fake *FakeRemoteRunner) SizeInBytesCalls(stub func(string) (int, error))
- func (fake *FakeRemoteRunner) SizeInBytesReturns(result1 int, result2 error)
- func (fake *FakeRemoteRunner) SizeInBytesReturnsOnCall(i int, result1 int, result2 error)
- func (fake *FakeRemoteRunner) SizeOf(arg1 string) (string, error)
- func (fake *FakeRemoteRunner) SizeOfArgsForCall(i int) string
- func (fake *FakeRemoteRunner) SizeOfCallCount() int
- func (fake *FakeRemoteRunner) SizeOfCalls(stub func(string) (string, error))
- func (fake *FakeRemoteRunner) SizeOfReturns(result1 string, result2 error)
- func (fake *FakeRemoteRunner) SizeOfReturnsOnCall(i int, result1 string, result2 error)
- type FakeRemoteRunnerFactory
- func (fake *FakeRemoteRunnerFactory) ArgsForCall(i int) (string, string, string, ssha.HostKeyCallback, []string, ssh.Logger)
- func (fake *FakeRemoteRunnerFactory) CallCount() int
- func (fake *FakeRemoteRunnerFactory) Calls(...)
- func (fake *FakeRemoteRunnerFactory) Invocations() map[string][][]interface{}
- func (fake *FakeRemoteRunnerFactory) Returns(result1 ssh.RemoteRunner, result2 error)
- func (fake *FakeRemoteRunnerFactory) ReturnsOnCall(i int, result1 ssh.RemoteRunner, result2 error)
- func (fake *FakeRemoteRunnerFactory) Spy(arg1 string, arg2 string, arg3 string, arg4 ssha.HostKeyCallback, ...) (ssh.RemoteRunner, error)
- type FakeSSHConnection
- func (fake *FakeSSHConnection) Invocations() map[string][][]interface{}
- func (fake *FakeSSHConnection) Run(arg1 string) ([]byte, []byte, int, error)
- func (fake *FakeSSHConnection) RunArgsForCall(i int) string
- func (fake *FakeSSHConnection) RunCallCount() int
- func (fake *FakeSSHConnection) RunCalls(stub func(string) ([]byte, []byte, int, error))
- func (fake *FakeSSHConnection) RunReturns(result1 []byte, result2 []byte, result3 int, result4 error)
- func (fake *FakeSSHConnection) RunReturnsOnCall(i int, result1 []byte, result2 []byte, result3 int, result4 error)
- func (fake *FakeSSHConnection) Stream(arg1 string, arg2 io.Writer) ([]byte, int, error)
- func (fake *FakeSSHConnection) StreamArgsForCall(i int) (string, io.Writer)
- func (fake *FakeSSHConnection) StreamCallCount() int
- func (fake *FakeSSHConnection) StreamCalls(stub func(string, io.Writer) ([]byte, int, error))
- func (fake *FakeSSHConnection) StreamReturns(result1 []byte, result2 int, result3 error)
- func (fake *FakeSSHConnection) StreamReturnsOnCall(i int, result1 []byte, result2 int, result3 error)
- func (fake *FakeSSHConnection) StreamStdin(arg1 string, arg2 io.Reader) ([]byte, []byte, int, error)
- func (fake *FakeSSHConnection) StreamStdinArgsForCall(i int) (string, io.Reader)
- func (fake *FakeSSHConnection) StreamStdinCallCount() int
- func (fake *FakeSSHConnection) StreamStdinCalls(stub func(string, io.Reader) ([]byte, []byte, int, error))
- func (fake *FakeSSHConnection) StreamStdinReturns(result1 []byte, result2 []byte, result3 int, result4 error)
- func (fake *FakeSSHConnection) StreamStdinReturnsOnCall(i int, result1 []byte, result2 []byte, result3 int, result4 error)
- func (fake *FakeSSHConnection) Username() string
- func (fake *FakeSSHConnection) UsernameCallCount() int
- func (fake *FakeSSHConnection) UsernameCalls(stub func() string)
- func (fake *FakeSSHConnection) UsernameReturns(result1 string)
- func (fake *FakeSSHConnection) UsernameReturnsOnCall(i int, result1 string)
- type FakeSSHOptsGenerator
- func (fake *FakeSSHOptsGenerator) ArgsForCall(i int) uuid.Generator
- func (fake *FakeSSHOptsGenerator) CallCount() int
- func (fake *FakeSSHOptsGenerator) Calls(stub func(uuid.Generator) (director.SSHOpts, string, error))
- func (fake *FakeSSHOptsGenerator) Invocations() map[string][][]interface{}
- func (fake *FakeSSHOptsGenerator) Returns(result1 director.SSHOpts, result2 string, result3 error)
- func (fake *FakeSSHOptsGenerator) ReturnsOnCall(i int, result1 director.SSHOpts, result2 string, result3 error)
- func (fake *FakeSSHOptsGenerator) Spy(arg1 uuid.Generator) (director.SSHOpts, string, error)
- type FakeSSHSession
- func (fake *FakeSSHSession) Close() error
- func (fake *FakeSSHSession) CloseCallCount() int
- func (fake *FakeSSHSession) CloseCalls(stub func() error)
- func (fake *FakeSSHSession) CloseReturns(result1 error)
- func (fake *FakeSSHSession) CloseReturnsOnCall(i int, result1 error)
- func (fake *FakeSSHSession) Invocations() map[string][][]interface{}
- func (fake *FakeSSHSession) Run(arg1 string) error
- func (fake *FakeSSHSession) RunArgsForCall(i int) string
- func (fake *FakeSSHSession) RunCallCount() int
- func (fake *FakeSSHSession) RunCalls(stub func(string) error)
- func (fake *FakeSSHSession) RunReturns(result1 error)
- func (fake *FakeSSHSession) RunReturnsOnCall(i int, result1 error)
- func (fake *FakeSSHSession) SendRequest(arg1 string, arg2 bool, arg3 []byte) (bool, error)
- func (fake *FakeSSHSession) SendRequestArgsForCall(i int) (string, bool, []byte)
- func (fake *FakeSSHSession) SendRequestCallCount() int
- func (fake *FakeSSHSession) SendRequestCalls(stub func(string, bool, []byte) (bool, error))
- func (fake *FakeSSHSession) SendRequestReturns(result1 bool, result2 error)
- func (fake *FakeSSHSession) SendRequestReturnsOnCall(i int, result1 bool, result2 error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeLogger ¶ added in v1.9.1
type FakeLogger struct { DebugStub func(string, string, ...interface{}) ErrorStub func(string, string, ...interface{}) WarnStub func(string, string, ...interface{}) // contains filtered or unexported fields }
func (*FakeLogger) Debug ¶ added in v1.9.1
func (fake *FakeLogger) Debug(arg1 string, arg2 string, arg3 ...interface{})
func (*FakeLogger) DebugArgsForCall ¶ added in v1.9.1
func (fake *FakeLogger) DebugArgsForCall(i int) (string, string, []interface{})
func (*FakeLogger) DebugCallCount ¶ added in v1.9.1
func (fake *FakeLogger) DebugCallCount() int
func (*FakeLogger) DebugCalls ¶ added in v1.9.1
func (fake *FakeLogger) DebugCalls(stub func(string, string, ...interface{}))
func (*FakeLogger) Error ¶ added in v1.9.1
func (fake *FakeLogger) Error(arg1 string, arg2 string, arg3 ...interface{})
func (*FakeLogger) ErrorArgsForCall ¶ added in v1.9.1
func (fake *FakeLogger) ErrorArgsForCall(i int) (string, string, []interface{})
func (*FakeLogger) ErrorCallCount ¶ added in v1.9.1
func (fake *FakeLogger) ErrorCallCount() int
func (*FakeLogger) ErrorCalls ¶ added in v1.9.1
func (fake *FakeLogger) ErrorCalls(stub func(string, string, ...interface{}))
func (*FakeLogger) Invocations ¶ added in v1.9.1
func (fake *FakeLogger) Invocations() map[string][][]interface{}
func (*FakeLogger) Warn ¶ added in v1.9.1
func (fake *FakeLogger) Warn(arg1 string, arg2 string, arg3 ...interface{})
func (*FakeLogger) WarnArgsForCall ¶ added in v1.9.1
func (fake *FakeLogger) WarnArgsForCall(i int) (string, string, []interface{})
func (*FakeLogger) WarnCallCount ¶ added in v1.9.1
func (fake *FakeLogger) WarnCallCount() int
func (*FakeLogger) WarnCalls ¶ added in v1.9.1
func (fake *FakeLogger) WarnCalls(stub func(string, string, ...interface{}))
type FakeRemoteRunner ¶
type FakeRemoteRunner struct { ArchiveAndDownloadStub func(string, io.Writer) error ChecksumDirectoryStub func(string) (map[string]string, error) ConnectedUsernameStub func() string CreateDirectoryStub func(string) error DirectoryExistsStub func(string) (bool, error) ExtractAndUploadStub func(io.Reader, string) error FindFilesStub func(string) ([]string, error) IsWindowsStub func() (bool, error) RemoveDirectoryStub func(string) error RunScriptStub func(string, string) error RunScriptWithEnvStub func(string, map[string]string, string, io.Writer) error SizeInBytesStub func(string) (int, error) SizeOfStub func(string) (string, error) // contains filtered or unexported fields }
func (*FakeRemoteRunner) ArchiveAndDownload ¶
func (fake *FakeRemoteRunner) ArchiveAndDownload(arg1 string, arg2 io.Writer) error
func (*FakeRemoteRunner) ArchiveAndDownloadArgsForCall ¶
func (fake *FakeRemoteRunner) ArchiveAndDownloadArgsForCall(i int) (string, io.Writer)
func (*FakeRemoteRunner) ArchiveAndDownloadCallCount ¶
func (fake *FakeRemoteRunner) ArchiveAndDownloadCallCount() int
func (*FakeRemoteRunner) ArchiveAndDownloadCalls ¶ added in v1.7.2
func (fake *FakeRemoteRunner) ArchiveAndDownloadCalls(stub func(string, io.Writer) error)
func (*FakeRemoteRunner) ArchiveAndDownloadReturns ¶
func (fake *FakeRemoteRunner) ArchiveAndDownloadReturns(result1 error)
func (*FakeRemoteRunner) ArchiveAndDownloadReturnsOnCall ¶
func (fake *FakeRemoteRunner) ArchiveAndDownloadReturnsOnCall(i int, result1 error)
func (*FakeRemoteRunner) ChecksumDirectory ¶
func (fake *FakeRemoteRunner) ChecksumDirectory(arg1 string) (map[string]string, error)
func (*FakeRemoteRunner) ChecksumDirectoryArgsForCall ¶
func (fake *FakeRemoteRunner) ChecksumDirectoryArgsForCall(i int) string
func (*FakeRemoteRunner) ChecksumDirectoryCallCount ¶
func (fake *FakeRemoteRunner) ChecksumDirectoryCallCount() int
func (*FakeRemoteRunner) ChecksumDirectoryCalls ¶ added in v1.7.2
func (fake *FakeRemoteRunner) ChecksumDirectoryCalls(stub func(string) (map[string]string, error))
func (*FakeRemoteRunner) ChecksumDirectoryReturns ¶
func (fake *FakeRemoteRunner) ChecksumDirectoryReturns(result1 map[string]string, result2 error)
func (*FakeRemoteRunner) ChecksumDirectoryReturnsOnCall ¶
func (fake *FakeRemoteRunner) ChecksumDirectoryReturnsOnCall(i int, result1 map[string]string, result2 error)
func (*FakeRemoteRunner) ConnectedUsername ¶
func (fake *FakeRemoteRunner) ConnectedUsername() string
func (*FakeRemoteRunner) ConnectedUsernameCallCount ¶
func (fake *FakeRemoteRunner) ConnectedUsernameCallCount() int
func (*FakeRemoteRunner) ConnectedUsernameCalls ¶ added in v1.7.2
func (fake *FakeRemoteRunner) ConnectedUsernameCalls(stub func() string)
func (*FakeRemoteRunner) ConnectedUsernameReturns ¶
func (fake *FakeRemoteRunner) ConnectedUsernameReturns(result1 string)
func (*FakeRemoteRunner) ConnectedUsernameReturnsOnCall ¶
func (fake *FakeRemoteRunner) ConnectedUsernameReturnsOnCall(i int, result1 string)
func (*FakeRemoteRunner) CreateDirectory ¶
func (fake *FakeRemoteRunner) CreateDirectory(arg1 string) error
func (*FakeRemoteRunner) CreateDirectoryArgsForCall ¶
func (fake *FakeRemoteRunner) CreateDirectoryArgsForCall(i int) string
func (*FakeRemoteRunner) CreateDirectoryCallCount ¶
func (fake *FakeRemoteRunner) CreateDirectoryCallCount() int
func (*FakeRemoteRunner) CreateDirectoryCalls ¶ added in v1.7.2
func (fake *FakeRemoteRunner) CreateDirectoryCalls(stub func(string) error)
func (*FakeRemoteRunner) CreateDirectoryReturns ¶
func (fake *FakeRemoteRunner) CreateDirectoryReturns(result1 error)
func (*FakeRemoteRunner) CreateDirectoryReturnsOnCall ¶
func (fake *FakeRemoteRunner) CreateDirectoryReturnsOnCall(i int, result1 error)
func (*FakeRemoteRunner) DirectoryExists ¶
func (fake *FakeRemoteRunner) DirectoryExists(arg1 string) (bool, error)
func (*FakeRemoteRunner) DirectoryExistsArgsForCall ¶
func (fake *FakeRemoteRunner) DirectoryExistsArgsForCall(i int) string
func (*FakeRemoteRunner) DirectoryExistsCallCount ¶
func (fake *FakeRemoteRunner) DirectoryExistsCallCount() int
func (*FakeRemoteRunner) DirectoryExistsCalls ¶ added in v1.7.2
func (fake *FakeRemoteRunner) DirectoryExistsCalls(stub func(string) (bool, error))
func (*FakeRemoteRunner) DirectoryExistsReturns ¶
func (fake *FakeRemoteRunner) DirectoryExistsReturns(result1 bool, result2 error)
func (*FakeRemoteRunner) DirectoryExistsReturnsOnCall ¶
func (fake *FakeRemoteRunner) DirectoryExistsReturnsOnCall(i int, result1 bool, result2 error)
func (*FakeRemoteRunner) ExtractAndUpload ¶
func (fake *FakeRemoteRunner) ExtractAndUpload(arg1 io.Reader, arg2 string) error
func (*FakeRemoteRunner) ExtractAndUploadArgsForCall ¶
func (fake *FakeRemoteRunner) ExtractAndUploadArgsForCall(i int) (io.Reader, string)
func (*FakeRemoteRunner) ExtractAndUploadCallCount ¶
func (fake *FakeRemoteRunner) ExtractAndUploadCallCount() int
func (*FakeRemoteRunner) ExtractAndUploadCalls ¶ added in v1.7.2
func (fake *FakeRemoteRunner) ExtractAndUploadCalls(stub func(io.Reader, string) error)
func (*FakeRemoteRunner) ExtractAndUploadReturns ¶
func (fake *FakeRemoteRunner) ExtractAndUploadReturns(result1 error)
func (*FakeRemoteRunner) ExtractAndUploadReturnsOnCall ¶
func (fake *FakeRemoteRunner) ExtractAndUploadReturnsOnCall(i int, result1 error)
func (*FakeRemoteRunner) FindFiles ¶
func (fake *FakeRemoteRunner) FindFiles(arg1 string) ([]string, error)
func (*FakeRemoteRunner) FindFilesArgsForCall ¶
func (fake *FakeRemoteRunner) FindFilesArgsForCall(i int) string
func (*FakeRemoteRunner) FindFilesCallCount ¶
func (fake *FakeRemoteRunner) FindFilesCallCount() int
func (*FakeRemoteRunner) FindFilesCalls ¶ added in v1.7.2
func (fake *FakeRemoteRunner) FindFilesCalls(stub func(string) ([]string, error))
func (*FakeRemoteRunner) FindFilesReturns ¶
func (fake *FakeRemoteRunner) FindFilesReturns(result1 []string, result2 error)
func (*FakeRemoteRunner) FindFilesReturnsOnCall ¶
func (fake *FakeRemoteRunner) FindFilesReturnsOnCall(i int, result1 []string, result2 error)
func (*FakeRemoteRunner) Invocations ¶
func (fake *FakeRemoteRunner) Invocations() map[string][][]interface{}
func (*FakeRemoteRunner) IsWindows ¶
func (fake *FakeRemoteRunner) IsWindows() (bool, error)
func (*FakeRemoteRunner) IsWindowsCallCount ¶
func (fake *FakeRemoteRunner) IsWindowsCallCount() int
func (*FakeRemoteRunner) IsWindowsCalls ¶ added in v1.7.2
func (fake *FakeRemoteRunner) IsWindowsCalls(stub func() (bool, error))
func (*FakeRemoteRunner) IsWindowsReturns ¶
func (fake *FakeRemoteRunner) IsWindowsReturns(result1 bool, result2 error)
func (*FakeRemoteRunner) IsWindowsReturnsOnCall ¶
func (fake *FakeRemoteRunner) IsWindowsReturnsOnCall(i int, result1 bool, result2 error)
func (*FakeRemoteRunner) RemoveDirectory ¶
func (fake *FakeRemoteRunner) RemoveDirectory(arg1 string) error
func (*FakeRemoteRunner) RemoveDirectoryArgsForCall ¶
func (fake *FakeRemoteRunner) RemoveDirectoryArgsForCall(i int) string
func (*FakeRemoteRunner) RemoveDirectoryCallCount ¶
func (fake *FakeRemoteRunner) RemoveDirectoryCallCount() int
func (*FakeRemoteRunner) RemoveDirectoryCalls ¶ added in v1.7.2
func (fake *FakeRemoteRunner) RemoveDirectoryCalls(stub func(string) error)
func (*FakeRemoteRunner) RemoveDirectoryReturns ¶
func (fake *FakeRemoteRunner) RemoveDirectoryReturns(result1 error)
func (*FakeRemoteRunner) RemoveDirectoryReturnsOnCall ¶
func (fake *FakeRemoteRunner) RemoveDirectoryReturnsOnCall(i int, result1 error)
func (*FakeRemoteRunner) RunScript ¶
func (fake *FakeRemoteRunner) RunScript(arg1 string, arg2 string) error
func (*FakeRemoteRunner) RunScriptArgsForCall ¶
func (fake *FakeRemoteRunner) RunScriptArgsForCall(i int) (string, string)
func (*FakeRemoteRunner) RunScriptCallCount ¶
func (fake *FakeRemoteRunner) RunScriptCallCount() int
func (*FakeRemoteRunner) RunScriptCalls ¶ added in v1.7.2
func (fake *FakeRemoteRunner) RunScriptCalls(stub func(string, string) error)
func (*FakeRemoteRunner) RunScriptReturns ¶
func (fake *FakeRemoteRunner) RunScriptReturns(result1 error)
func (*FakeRemoteRunner) RunScriptReturnsOnCall ¶
func (fake *FakeRemoteRunner) RunScriptReturnsOnCall(i int, result1 error)
func (*FakeRemoteRunner) RunScriptWithEnv ¶
func (*FakeRemoteRunner) RunScriptWithEnvArgsForCall ¶
func (*FakeRemoteRunner) RunScriptWithEnvCallCount ¶
func (fake *FakeRemoteRunner) RunScriptWithEnvCallCount() int
func (*FakeRemoteRunner) RunScriptWithEnvCalls ¶ added in v1.7.2
func (*FakeRemoteRunner) RunScriptWithEnvReturns ¶
func (fake *FakeRemoteRunner) RunScriptWithEnvReturns(result1 error)
func (*FakeRemoteRunner) RunScriptWithEnvReturnsOnCall ¶
func (fake *FakeRemoteRunner) RunScriptWithEnvReturnsOnCall(i int, result1 error)
func (*FakeRemoteRunner) SizeInBytes ¶ added in v1.7.2
func (fake *FakeRemoteRunner) SizeInBytes(arg1 string) (int, error)
func (*FakeRemoteRunner) SizeInBytesArgsForCall ¶ added in v1.7.2
func (fake *FakeRemoteRunner) SizeInBytesArgsForCall(i int) string
func (*FakeRemoteRunner) SizeInBytesCallCount ¶ added in v1.7.2
func (fake *FakeRemoteRunner) SizeInBytesCallCount() int
func (*FakeRemoteRunner) SizeInBytesCalls ¶ added in v1.7.2
func (fake *FakeRemoteRunner) SizeInBytesCalls(stub func(string) (int, error))
func (*FakeRemoteRunner) SizeInBytesReturns ¶ added in v1.7.2
func (fake *FakeRemoteRunner) SizeInBytesReturns(result1 int, result2 error)
func (*FakeRemoteRunner) SizeInBytesReturnsOnCall ¶ added in v1.7.2
func (fake *FakeRemoteRunner) SizeInBytesReturnsOnCall(i int, result1 int, result2 error)
func (*FakeRemoteRunner) SizeOfArgsForCall ¶
func (fake *FakeRemoteRunner) SizeOfArgsForCall(i int) string
func (*FakeRemoteRunner) SizeOfCallCount ¶
func (fake *FakeRemoteRunner) SizeOfCallCount() int
func (*FakeRemoteRunner) SizeOfCalls ¶ added in v1.7.2
func (fake *FakeRemoteRunner) SizeOfCalls(stub func(string) (string, error))
func (*FakeRemoteRunner) SizeOfReturns ¶
func (fake *FakeRemoteRunner) SizeOfReturns(result1 string, result2 error)
func (*FakeRemoteRunner) SizeOfReturnsOnCall ¶
func (fake *FakeRemoteRunner) SizeOfReturnsOnCall(i int, result1 string, result2 error)
type FakeRemoteRunnerFactory ¶
type FakeRemoteRunnerFactory struct { Stub func(string, string, string, ssha.HostKeyCallback, []string, ssh.Logger) (ssh.RemoteRunner, error) // contains filtered or unexported fields }
func (*FakeRemoteRunnerFactory) ArgsForCall ¶
func (fake *FakeRemoteRunnerFactory) ArgsForCall(i int) (string, string, string, ssha.HostKeyCallback, []string, ssh.Logger)
func (*FakeRemoteRunnerFactory) CallCount ¶
func (fake *FakeRemoteRunnerFactory) CallCount() int
func (*FakeRemoteRunnerFactory) Calls ¶ added in v1.7.2
func (fake *FakeRemoteRunnerFactory) Calls(stub func(string, string, string, ssha.HostKeyCallback, []string, ssh.Logger) (ssh.RemoteRunner, error))
func (*FakeRemoteRunnerFactory) Invocations ¶
func (fake *FakeRemoteRunnerFactory) Invocations() map[string][][]interface{}
func (*FakeRemoteRunnerFactory) Returns ¶
func (fake *FakeRemoteRunnerFactory) Returns(result1 ssh.RemoteRunner, result2 error)
func (*FakeRemoteRunnerFactory) ReturnsOnCall ¶
func (fake *FakeRemoteRunnerFactory) ReturnsOnCall(i int, result1 ssh.RemoteRunner, result2 error)
func (*FakeRemoteRunnerFactory) Spy ¶
func (fake *FakeRemoteRunnerFactory) Spy(arg1 string, arg2 string, arg3 string, arg4 ssha.HostKeyCallback, arg5 []string, arg6 ssh.Logger) (ssh.RemoteRunner, error)
type FakeSSHConnection ¶
type FakeSSHConnection struct { RunStub func(string) ([]byte, []byte, int, error) StreamStub func(string, io.Writer) ([]byte, int, error) StreamStdinStub func(string, io.Reader) ([]byte, []byte, int, error) UsernameStub func() string // contains filtered or unexported fields }
func (*FakeSSHConnection) Invocations ¶
func (fake *FakeSSHConnection) Invocations() map[string][][]interface{}
func (*FakeSSHConnection) RunArgsForCall ¶
func (fake *FakeSSHConnection) RunArgsForCall(i int) string
func (*FakeSSHConnection) RunCallCount ¶
func (fake *FakeSSHConnection) RunCallCount() int
func (*FakeSSHConnection) RunReturns ¶
func (fake *FakeSSHConnection) RunReturns(result1 []byte, result2 []byte, result3 int, result4 error)
func (*FakeSSHConnection) RunReturnsOnCall ¶
func (*FakeSSHConnection) StreamArgsForCall ¶
func (fake *FakeSSHConnection) StreamArgsForCall(i int) (string, io.Writer)
func (*FakeSSHConnection) StreamCallCount ¶
func (fake *FakeSSHConnection) StreamCallCount() int
func (*FakeSSHConnection) StreamCalls ¶ added in v1.7.2
func (*FakeSSHConnection) StreamReturns ¶
func (fake *FakeSSHConnection) StreamReturns(result1 []byte, result2 int, result3 error)
func (*FakeSSHConnection) StreamReturnsOnCall ¶
func (fake *FakeSSHConnection) StreamReturnsOnCall(i int, result1 []byte, result2 int, result3 error)
func (*FakeSSHConnection) StreamStdin ¶
func (*FakeSSHConnection) StreamStdinArgsForCall ¶
func (fake *FakeSSHConnection) StreamStdinArgsForCall(i int) (string, io.Reader)
func (*FakeSSHConnection) StreamStdinCallCount ¶
func (fake *FakeSSHConnection) StreamStdinCallCount() int
func (*FakeSSHConnection) StreamStdinCalls ¶ added in v1.7.2
func (*FakeSSHConnection) StreamStdinReturns ¶
func (fake *FakeSSHConnection) StreamStdinReturns(result1 []byte, result2 []byte, result3 int, result4 error)
func (*FakeSSHConnection) StreamStdinReturnsOnCall ¶
func (*FakeSSHConnection) Username ¶
func (fake *FakeSSHConnection) Username() string
func (*FakeSSHConnection) UsernameCallCount ¶
func (fake *FakeSSHConnection) UsernameCallCount() int
func (*FakeSSHConnection) UsernameCalls ¶ added in v1.7.2
func (fake *FakeSSHConnection) UsernameCalls(stub func() string)
func (*FakeSSHConnection) UsernameReturns ¶
func (fake *FakeSSHConnection) UsernameReturns(result1 string)
func (*FakeSSHConnection) UsernameReturnsOnCall ¶
func (fake *FakeSSHConnection) UsernameReturnsOnCall(i int, result1 string)
type FakeSSHOptsGenerator ¶
type FakeSSHOptsGenerator struct { Stub func(uuid.Generator) (director.SSHOpts, string, error) // contains filtered or unexported fields }
func (*FakeSSHOptsGenerator) ArgsForCall ¶
func (fake *FakeSSHOptsGenerator) ArgsForCall(i int) uuid.Generator
func (*FakeSSHOptsGenerator) CallCount ¶
func (fake *FakeSSHOptsGenerator) CallCount() int
func (*FakeSSHOptsGenerator) Invocations ¶
func (fake *FakeSSHOptsGenerator) Invocations() map[string][][]interface{}
func (*FakeSSHOptsGenerator) Returns ¶
func (fake *FakeSSHOptsGenerator) Returns(result1 director.SSHOpts, result2 string, result3 error)
func (*FakeSSHOptsGenerator) ReturnsOnCall ¶
type FakeSSHSession ¶ added in v1.9.1
type FakeSSHSession struct { CloseStub func() error RunStub func(string) error SendRequestStub func(string, bool, []byte) (bool, error) // contains filtered or unexported fields }
func (*FakeSSHSession) Close ¶ added in v1.9.1
func (fake *FakeSSHSession) Close() error
func (*FakeSSHSession) CloseCallCount ¶ added in v1.9.1
func (fake *FakeSSHSession) CloseCallCount() int
func (*FakeSSHSession) CloseCalls ¶ added in v1.9.1
func (fake *FakeSSHSession) CloseCalls(stub func() error)
func (*FakeSSHSession) CloseReturns ¶ added in v1.9.1
func (fake *FakeSSHSession) CloseReturns(result1 error)
func (*FakeSSHSession) CloseReturnsOnCall ¶ added in v1.9.1
func (fake *FakeSSHSession) CloseReturnsOnCall(i int, result1 error)
func (*FakeSSHSession) Invocations ¶ added in v1.9.1
func (fake *FakeSSHSession) Invocations() map[string][][]interface{}
func (*FakeSSHSession) Run ¶ added in v1.9.1
func (fake *FakeSSHSession) Run(arg1 string) error
func (*FakeSSHSession) RunArgsForCall ¶ added in v1.9.1
func (fake *FakeSSHSession) RunArgsForCall(i int) string
func (*FakeSSHSession) RunCallCount ¶ added in v1.9.1
func (fake *FakeSSHSession) RunCallCount() int
func (*FakeSSHSession) RunCalls ¶ added in v1.9.1
func (fake *FakeSSHSession) RunCalls(stub func(string) error)
func (*FakeSSHSession) RunReturns ¶ added in v1.9.1
func (fake *FakeSSHSession) RunReturns(result1 error)
func (*FakeSSHSession) RunReturnsOnCall ¶ added in v1.9.1
func (fake *FakeSSHSession) RunReturnsOnCall(i int, result1 error)
func (*FakeSSHSession) SendRequest ¶ added in v1.9.1
func (*FakeSSHSession) SendRequestArgsForCall ¶ added in v1.9.1
func (fake *FakeSSHSession) SendRequestArgsForCall(i int) (string, bool, []byte)
func (*FakeSSHSession) SendRequestCallCount ¶ added in v1.9.1
func (fake *FakeSSHSession) SendRequestCallCount() int
func (*FakeSSHSession) SendRequestCalls ¶ added in v1.9.1
func (*FakeSSHSession) SendRequestReturns ¶ added in v1.9.1
func (fake *FakeSSHSession) SendRequestReturns(result1 bool, result2 error)
func (*FakeSSHSession) SendRequestReturnsOnCall ¶ added in v1.9.1
func (fake *FakeSSHSession) SendRequestReturnsOnCall(i int, result1 bool, result2 error)
Click to show internal directories.
Click to hide internal directories.