fakes

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeRemoteRunner

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)

	IsWindowsStub func() (bool, error)
	// contains filtered or unexported fields
}

func (*FakeRemoteRunner) ArchiveAndDownload

func (fake *FakeRemoteRunner) ArchiveAndDownload(directory string, writer 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) 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(path 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) 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) 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(directory string) error

func (*FakeRemoteRunner) CreateDirectoryArgsForCall

func (fake *FakeRemoteRunner) CreateDirectoryArgsForCall(i int) string

func (*FakeRemoteRunner) CreateDirectoryCallCount

func (fake *FakeRemoteRunner) CreateDirectoryCallCount() int

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(dir string) (bool, error)

func (*FakeRemoteRunner) DirectoryExistsArgsForCall

func (fake *FakeRemoteRunner) DirectoryExistsArgsForCall(i int) string

func (*FakeRemoteRunner) DirectoryExistsCallCount

func (fake *FakeRemoteRunner) DirectoryExistsCallCount() int

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(reader io.Reader, directory string) error

func (*FakeRemoteRunner) ExtractAndUploadArgsForCall

func (fake *FakeRemoteRunner) ExtractAndUploadArgsForCall(i int) (io.Reader, string)

func (*FakeRemoteRunner) ExtractAndUploadCallCount

func (fake *FakeRemoteRunner) ExtractAndUploadCallCount() int

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(pattern string) ([]string, error)

func (*FakeRemoteRunner) FindFilesArgsForCall

func (fake *FakeRemoteRunner) FindFilesArgsForCall(i int) string

func (*FakeRemoteRunner) FindFilesCallCount

func (fake *FakeRemoteRunner) FindFilesCallCount() int

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) 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(dir string) error

func (*FakeRemoteRunner) RemoveDirectoryArgsForCall

func (fake *FakeRemoteRunner) RemoveDirectoryArgsForCall(i int) string

func (*FakeRemoteRunner) RemoveDirectoryCallCount

func (fake *FakeRemoteRunner) RemoveDirectoryCallCount() int

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(path string, label string) (string, error)

func (*FakeRemoteRunner) RunScriptArgsForCall

func (fake *FakeRemoteRunner) RunScriptArgsForCall(i int) (string, string)

func (*FakeRemoteRunner) RunScriptCallCount

func (fake *FakeRemoteRunner) RunScriptCallCount() int

func (*FakeRemoteRunner) RunScriptReturns

func (fake *FakeRemoteRunner) RunScriptReturns(result1 string, result2 error)

func (*FakeRemoteRunner) RunScriptReturnsOnCall

func (fake *FakeRemoteRunner) RunScriptReturnsOnCall(i int, result1 string, result2 error)

func (*FakeRemoteRunner) RunScriptWithEnv

func (fake *FakeRemoteRunner) RunScriptWithEnv(path string, env map[string]string, label string) (string, error)

func (*FakeRemoteRunner) RunScriptWithEnvArgsForCall

func (fake *FakeRemoteRunner) RunScriptWithEnvArgsForCall(i int) (string, map[string]string, string)

func (*FakeRemoteRunner) RunScriptWithEnvCallCount

func (fake *FakeRemoteRunner) RunScriptWithEnvCallCount() int

func (*FakeRemoteRunner) RunScriptWithEnvReturns

func (fake *FakeRemoteRunner) RunScriptWithEnvReturns(result1 string, result2 error)

func (*FakeRemoteRunner) RunScriptWithEnvReturnsOnCall

func (fake *FakeRemoteRunner) RunScriptWithEnvReturnsOnCall(i int, result1 string, result2 error)

func (*FakeRemoteRunner) SizeOf

func (fake *FakeRemoteRunner) SizeOf(path string) (string, error)

func (*FakeRemoteRunner) SizeOfArgsForCall

func (fake *FakeRemoteRunner) SizeOfArgsForCall(i int) string

func (*FakeRemoteRunner) SizeOfCallCount

func (fake *FakeRemoteRunner) SizeOfCallCount() int

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(host, user, privateKey string, publicKeyCallback sshcrypto.HostKeyCallback, publicKeyAlgorithm []string, logger ssh.Logger) (ssh.RemoteRunner, error)
	// contains filtered or unexported fields
}

func (*FakeRemoteRunnerFactory) ArgsForCall

func (*FakeRemoteRunnerFactory) CallCount

func (fake *FakeRemoteRunnerFactory) CallCount() int

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(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) Run

func (fake *FakeSSHConnection) Run(cmd string) ([]byte, []byte, int, error)

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 (fake *FakeSSHConnection) RunReturnsOnCall(i int, result1 []byte, result2 []byte, result3 int, result4 error)

func (*FakeSSHConnection) Stream

func (fake *FakeSSHConnection) Stream(cmd string, writer io.Writer) ([]byte, int, error)

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 (fake *FakeSSHConnection) StreamStdin(cmd string, reader io.Reader) ([]byte, []byte, int, error)

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 (fake *FakeSSHConnection) StreamStdinReturnsOnCall(i int, result1 []byte, result2 []byte, result3 int, result4 error)

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

func (fake *FakeSSHOptsGenerator) ReturnsOnCall(i int, result1 director.SSHOpts, result2 string, result3 error)

func (*FakeSSHOptsGenerator) Spy

Jump to

Keyboard shortcuts

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