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.
Index ¶
- type FakeRemoteRunner
- func (fake *FakeRemoteRunner) ArchiveAndDownload(directory string, writer io.Writer) error
- func (fake *FakeRemoteRunner) ArchiveAndDownloadArgsForCall(i int) (string, io.Writer)
- func (fake *FakeRemoteRunner) ArchiveAndDownloadCallCount() int
- func (fake *FakeRemoteRunner) ArchiveAndDownloadReturns(result1 error)
- func (fake *FakeRemoteRunner) ArchiveAndDownloadReturnsOnCall(i int, result1 error)
- func (fake *FakeRemoteRunner) ChecksumDirectory(path string) (map[string]string, error)
- func (fake *FakeRemoteRunner) ChecksumDirectoryArgsForCall(i int) string
- func (fake *FakeRemoteRunner) ChecksumDirectoryCallCount() int
- 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) ConnectedUsernameReturns(result1 string)
- func (fake *FakeRemoteRunner) ConnectedUsernameReturnsOnCall(i int, result1 string)
- func (fake *FakeRemoteRunner) CreateDirectory(directory string) error
- func (fake *FakeRemoteRunner) CreateDirectoryArgsForCall(i int) string
- func (fake *FakeRemoteRunner) CreateDirectoryCallCount() int
- func (fake *FakeRemoteRunner) CreateDirectoryReturns(result1 error)
- func (fake *FakeRemoteRunner) CreateDirectoryReturnsOnCall(i int, result1 error)
- func (fake *FakeRemoteRunner) DirectoryExists(dir string) (bool, error)
- func (fake *FakeRemoteRunner) DirectoryExistsArgsForCall(i int) string
- func (fake *FakeRemoteRunner) DirectoryExistsCallCount() int
- func (fake *FakeRemoteRunner) DirectoryExistsReturns(result1 bool, result2 error)
- func (fake *FakeRemoteRunner) DirectoryExistsReturnsOnCall(i int, result1 bool, result2 error)
- func (fake *FakeRemoteRunner) ExtractAndUpload(reader io.Reader, directory string) error
- func (fake *FakeRemoteRunner) ExtractAndUploadArgsForCall(i int) (io.Reader, string)
- func (fake *FakeRemoteRunner) ExtractAndUploadCallCount() int
- func (fake *FakeRemoteRunner) ExtractAndUploadReturns(result1 error)
- func (fake *FakeRemoteRunner) ExtractAndUploadReturnsOnCall(i int, result1 error)
- func (fake *FakeRemoteRunner) FindFiles(pattern string) ([]string, error)
- func (fake *FakeRemoteRunner) FindFilesArgsForCall(i int) string
- func (fake *FakeRemoteRunner) FindFilesCallCount() int
- 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) RemoveDirectory(dir string) error
- func (fake *FakeRemoteRunner) RemoveDirectoryArgsForCall(i int) string
- func (fake *FakeRemoteRunner) RemoveDirectoryCallCount() int
- func (fake *FakeRemoteRunner) RemoveDirectoryReturns(result1 error)
- func (fake *FakeRemoteRunner) RemoveDirectoryReturnsOnCall(i int, result1 error)
- func (fake *FakeRemoteRunner) RunScript(path string, label string) (string, error)
- func (fake *FakeRemoteRunner) RunScriptArgsForCall(i int) (string, string)
- func (fake *FakeRemoteRunner) RunScriptCallCount() int
- func (fake *FakeRemoteRunner) RunScriptReturns(result1 string, result2 error)
- func (fake *FakeRemoteRunner) RunScriptReturnsOnCall(i int, result1 string, result2 error)
- func (fake *FakeRemoteRunner) RunScriptWithEnv(path string, env map[string]string, label string) (string, error)
- func (fake *FakeRemoteRunner) RunScriptWithEnvArgsForCall(i int) (string, map[string]string, string)
- func (fake *FakeRemoteRunner) RunScriptWithEnvCallCount() int
- func (fake *FakeRemoteRunner) RunScriptWithEnvReturns(result1 string, result2 error)
- func (fake *FakeRemoteRunner) RunScriptWithEnvReturnsOnCall(i int, result1 string, result2 error)
- func (fake *FakeRemoteRunner) SizeOf(path string) (string, error)
- func (fake *FakeRemoteRunner) SizeOfArgsForCall(i int) string
- func (fake *FakeRemoteRunner) SizeOfCallCount() int
- 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, sshcrypto.HostKeyCallback, []string, ssh.Logger)
- func (fake *FakeRemoteRunnerFactory) CallCount() int
- 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(host string, user string, privateKey string, ...) (ssh.RemoteRunner, error)
- type FakeSSHConnection
- func (fake *FakeSSHConnection) Invocations() map[string][][]interface{}
- func (fake *FakeSSHConnection) Run(cmd string) ([]byte, []byte, int, error)
- func (fake *FakeSSHConnection) RunArgsForCall(i int) string
- func (fake *FakeSSHConnection) RunCallCount() int
- 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(cmd string, writer io.Writer) ([]byte, int, error)
- func (fake *FakeSSHConnection) StreamArgsForCall(i int) (string, io.Writer)
- func (fake *FakeSSHConnection) StreamCallCount() int
- 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(cmd string, reader io.Reader) ([]byte, []byte, int, error)
- func (fake *FakeSSHConnection) StreamStdinArgsForCall(i int) (string, io.Reader)
- func (fake *FakeSSHConnection) StreamStdinCallCount() int
- 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) 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) 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(uuidGen uuid.Generator) (director.SSHOpts, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeRemoteRunner ¶ added in v1.1.4
type FakeRemoteRunner struct { ConnectedUsernameStub func() string DirectoryExistsStub func(dir string) (bool, error) RemoveDirectoryStub func(dir string) error ArchiveAndDownloadStub func(directory string, writer io.Writer) error CreateDirectoryStub func(directory string) error ExtractAndUploadStub func(reader io.Reader, directory string) error SizeOfStub func(path string) (string, error) ChecksumDirectoryStub func(path string) (map[string]string, error) RunScriptStub func(path, label string) (string, error) RunScriptWithEnvStub func(path string, env map[string]string, label string) (string, error) FindFilesStub func(pattern string) ([]string, error) // contains filtered or unexported fields }
func (*FakeRemoteRunner) ArchiveAndDownload ¶ added in v1.1.4
func (fake *FakeRemoteRunner) ArchiveAndDownload(directory string, writer io.Writer) error
func (*FakeRemoteRunner) ArchiveAndDownloadArgsForCall ¶ added in v1.1.4
func (fake *FakeRemoteRunner) ArchiveAndDownloadArgsForCall(i int) (string, io.Writer)
func (*FakeRemoteRunner) ArchiveAndDownloadCallCount ¶ added in v1.1.4
func (fake *FakeRemoteRunner) ArchiveAndDownloadCallCount() int
func (*FakeRemoteRunner) ArchiveAndDownloadReturns ¶ added in v1.1.4
func (fake *FakeRemoteRunner) ArchiveAndDownloadReturns(result1 error)
func (*FakeRemoteRunner) ArchiveAndDownloadReturnsOnCall ¶ added in v1.1.4
func (fake *FakeRemoteRunner) ArchiveAndDownloadReturnsOnCall(i int, result1 error)
func (*FakeRemoteRunner) ChecksumDirectory ¶ added in v1.1.4
func (fake *FakeRemoteRunner) ChecksumDirectory(path string) (map[string]string, error)
func (*FakeRemoteRunner) ChecksumDirectoryArgsForCall ¶ added in v1.1.4
func (fake *FakeRemoteRunner) ChecksumDirectoryArgsForCall(i int) string
func (*FakeRemoteRunner) ChecksumDirectoryCallCount ¶ added in v1.1.4
func (fake *FakeRemoteRunner) ChecksumDirectoryCallCount() int
func (*FakeRemoteRunner) ChecksumDirectoryReturns ¶ added in v1.1.4
func (fake *FakeRemoteRunner) ChecksumDirectoryReturns(result1 map[string]string, result2 error)
func (*FakeRemoteRunner) ChecksumDirectoryReturnsOnCall ¶ added in v1.1.4
func (fake *FakeRemoteRunner) ChecksumDirectoryReturnsOnCall(i int, result1 map[string]string, result2 error)
func (*FakeRemoteRunner) ConnectedUsername ¶ added in v1.1.4
func (fake *FakeRemoteRunner) ConnectedUsername() string
func (*FakeRemoteRunner) ConnectedUsernameCallCount ¶ added in v1.1.4
func (fake *FakeRemoteRunner) ConnectedUsernameCallCount() int
func (*FakeRemoteRunner) ConnectedUsernameReturns ¶ added in v1.1.4
func (fake *FakeRemoteRunner) ConnectedUsernameReturns(result1 string)
func (*FakeRemoteRunner) ConnectedUsernameReturnsOnCall ¶ added in v1.1.4
func (fake *FakeRemoteRunner) ConnectedUsernameReturnsOnCall(i int, result1 string)
func (*FakeRemoteRunner) CreateDirectory ¶ added in v1.1.4
func (fake *FakeRemoteRunner) CreateDirectory(directory string) error
func (*FakeRemoteRunner) CreateDirectoryArgsForCall ¶ added in v1.1.4
func (fake *FakeRemoteRunner) CreateDirectoryArgsForCall(i int) string
func (*FakeRemoteRunner) CreateDirectoryCallCount ¶ added in v1.1.4
func (fake *FakeRemoteRunner) CreateDirectoryCallCount() int
func (*FakeRemoteRunner) CreateDirectoryReturns ¶ added in v1.1.4
func (fake *FakeRemoteRunner) CreateDirectoryReturns(result1 error)
func (*FakeRemoteRunner) CreateDirectoryReturnsOnCall ¶ added in v1.1.4
func (fake *FakeRemoteRunner) CreateDirectoryReturnsOnCall(i int, result1 error)
func (*FakeRemoteRunner) DirectoryExists ¶ added in v1.1.4
func (fake *FakeRemoteRunner) DirectoryExists(dir string) (bool, error)
func (*FakeRemoteRunner) DirectoryExistsArgsForCall ¶ added in v1.1.4
func (fake *FakeRemoteRunner) DirectoryExistsArgsForCall(i int) string
func (*FakeRemoteRunner) DirectoryExistsCallCount ¶ added in v1.1.4
func (fake *FakeRemoteRunner) DirectoryExistsCallCount() int
func (*FakeRemoteRunner) DirectoryExistsReturns ¶ added in v1.1.4
func (fake *FakeRemoteRunner) DirectoryExistsReturns(result1 bool, result2 error)
func (*FakeRemoteRunner) DirectoryExistsReturnsOnCall ¶ added in v1.1.4
func (fake *FakeRemoteRunner) DirectoryExistsReturnsOnCall(i int, result1 bool, result2 error)
func (*FakeRemoteRunner) ExtractAndUpload ¶ added in v1.1.4
func (fake *FakeRemoteRunner) ExtractAndUpload(reader io.Reader, directory string) error
func (*FakeRemoteRunner) ExtractAndUploadArgsForCall ¶ added in v1.1.4
func (fake *FakeRemoteRunner) ExtractAndUploadArgsForCall(i int) (io.Reader, string)
func (*FakeRemoteRunner) ExtractAndUploadCallCount ¶ added in v1.1.4
func (fake *FakeRemoteRunner) ExtractAndUploadCallCount() int
func (*FakeRemoteRunner) ExtractAndUploadReturns ¶ added in v1.1.4
func (fake *FakeRemoteRunner) ExtractAndUploadReturns(result1 error)
func (*FakeRemoteRunner) ExtractAndUploadReturnsOnCall ¶ added in v1.1.4
func (fake *FakeRemoteRunner) ExtractAndUploadReturnsOnCall(i int, result1 error)
func (*FakeRemoteRunner) FindFiles ¶ added in v1.1.4
func (fake *FakeRemoteRunner) FindFiles(pattern string) ([]string, error)
func (*FakeRemoteRunner) FindFilesArgsForCall ¶ added in v1.1.4
func (fake *FakeRemoteRunner) FindFilesArgsForCall(i int) string
func (*FakeRemoteRunner) FindFilesCallCount ¶ added in v1.1.4
func (fake *FakeRemoteRunner) FindFilesCallCount() int
func (*FakeRemoteRunner) FindFilesReturns ¶ added in v1.1.4
func (fake *FakeRemoteRunner) FindFilesReturns(result1 []string, result2 error)
func (*FakeRemoteRunner) FindFilesReturnsOnCall ¶ added in v1.1.4
func (fake *FakeRemoteRunner) FindFilesReturnsOnCall(i int, result1 []string, result2 error)
func (*FakeRemoteRunner) Invocations ¶ added in v1.1.4
func (fake *FakeRemoteRunner) Invocations() map[string][][]interface{}
func (*FakeRemoteRunner) RemoveDirectory ¶ added in v1.1.4
func (fake *FakeRemoteRunner) RemoveDirectory(dir string) error
func (*FakeRemoteRunner) RemoveDirectoryArgsForCall ¶ added in v1.1.4
func (fake *FakeRemoteRunner) RemoveDirectoryArgsForCall(i int) string
func (*FakeRemoteRunner) RemoveDirectoryCallCount ¶ added in v1.1.4
func (fake *FakeRemoteRunner) RemoveDirectoryCallCount() int
func (*FakeRemoteRunner) RemoveDirectoryReturns ¶ added in v1.1.4
func (fake *FakeRemoteRunner) RemoveDirectoryReturns(result1 error)
func (*FakeRemoteRunner) RemoveDirectoryReturnsOnCall ¶ added in v1.1.4
func (fake *FakeRemoteRunner) RemoveDirectoryReturnsOnCall(i int, result1 error)
func (*FakeRemoteRunner) RunScript ¶ added in v1.1.4
func (fake *FakeRemoteRunner) RunScript(path string, label string) (string, error)
func (*FakeRemoteRunner) RunScriptArgsForCall ¶ added in v1.1.4
func (fake *FakeRemoteRunner) RunScriptArgsForCall(i int) (string, string)
func (*FakeRemoteRunner) RunScriptCallCount ¶ added in v1.1.4
func (fake *FakeRemoteRunner) RunScriptCallCount() int
func (*FakeRemoteRunner) RunScriptReturns ¶ added in v1.1.4
func (fake *FakeRemoteRunner) RunScriptReturns(result1 string, result2 error)
func (*FakeRemoteRunner) RunScriptReturnsOnCall ¶ added in v1.1.4
func (fake *FakeRemoteRunner) RunScriptReturnsOnCall(i int, result1 string, result2 error)
func (*FakeRemoteRunner) RunScriptWithEnv ¶ added in v1.1.4
func (*FakeRemoteRunner) RunScriptWithEnvArgsForCall ¶ added in v1.1.4
func (*FakeRemoteRunner) RunScriptWithEnvCallCount ¶ added in v1.1.4
func (fake *FakeRemoteRunner) RunScriptWithEnvCallCount() int
func (*FakeRemoteRunner) RunScriptWithEnvReturns ¶ added in v1.1.4
func (fake *FakeRemoteRunner) RunScriptWithEnvReturns(result1 string, result2 error)
func (*FakeRemoteRunner) RunScriptWithEnvReturnsOnCall ¶ added in v1.1.4
func (fake *FakeRemoteRunner) RunScriptWithEnvReturnsOnCall(i int, result1 string, result2 error)
func (*FakeRemoteRunner) SizeOf ¶ added in v1.1.4
func (fake *FakeRemoteRunner) SizeOf(path string) (string, error)
func (*FakeRemoteRunner) SizeOfArgsForCall ¶ added in v1.1.4
func (fake *FakeRemoteRunner) SizeOfArgsForCall(i int) string
func (*FakeRemoteRunner) SizeOfCallCount ¶ added in v1.1.4
func (fake *FakeRemoteRunner) SizeOfCallCount() int
func (*FakeRemoteRunner) SizeOfReturns ¶ added in v1.1.4
func (fake *FakeRemoteRunner) SizeOfReturns(result1 string, result2 error)
func (*FakeRemoteRunner) SizeOfReturnsOnCall ¶ added in v1.1.4
func (fake *FakeRemoteRunner) SizeOfReturnsOnCall(i int, result1 string, result2 error)
type FakeRemoteRunnerFactory ¶ added in v1.1.4
type FakeRemoteRunnerFactory struct { Stub func(host, user, privateKey string, publicKeyCallback sshcrypto.HostKeyCallback, publicKeyAlgorithm []string, logger ssh.Logger) (ssh.RemoteRunner, error) // contains filtered or unexported fields }
func (*FakeRemoteRunnerFactory) ArgsForCall ¶ added in v1.1.4
func (fake *FakeRemoteRunnerFactory) ArgsForCall(i int) (string, string, string, sshcrypto.HostKeyCallback, []string, ssh.Logger)
func (*FakeRemoteRunnerFactory) CallCount ¶ added in v1.1.4
func (fake *FakeRemoteRunnerFactory) CallCount() int
func (*FakeRemoteRunnerFactory) Invocations ¶ added in v1.1.4
func (fake *FakeRemoteRunnerFactory) Invocations() map[string][][]interface{}
func (*FakeRemoteRunnerFactory) Returns ¶ added in v1.1.4
func (fake *FakeRemoteRunnerFactory) Returns(result1 ssh.RemoteRunner, result2 error)
func (*FakeRemoteRunnerFactory) ReturnsOnCall ¶ added in v1.1.4
func (fake *FakeRemoteRunnerFactory) ReturnsOnCall(i int, result1 ssh.RemoteRunner, result2 error)
func (*FakeRemoteRunnerFactory) Spy ¶ added in v1.1.4
func (fake *FakeRemoteRunnerFactory) Spy(host string, user string, privateKey string, publicKeyCallback sshcrypto.HostKeyCallback, publicKeyAlgorithm []string, logger ssh.Logger) (ssh.RemoteRunner, error)
type FakeSSHConnection ¶
type FakeSSHConnection struct { StreamStub func(cmd string, writer io.Writer) ([]byte, int, error) StreamStdinStub func(cmd string, reader io.Reader) ([]byte, []byte, int, error) RunStub func(cmd string) ([]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) 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) 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) 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(uuidGen 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 ¶
Click to show internal directories.
Click to hide internal directories.