fakes

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2017 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 FakeSSHConnectionFactory

type FakeSSHConnectionFactory struct {
	Stub func(host, user, privateKey string, publicKeyCallback sshcrypto.HostKeyCallback, publicKeyAlgorithm []string, logger ssh.Logger) (ssh.SSHConnection, error)
	// contains filtered or unexported fields
}

func (*FakeSSHConnectionFactory) ArgsForCall

func (*FakeSSHConnectionFactory) CallCount

func (fake *FakeSSHConnectionFactory) CallCount() int

func (*FakeSSHConnectionFactory) Invocations

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

func (*FakeSSHConnectionFactory) Returns

func (fake *FakeSSHConnectionFactory) Returns(result1 ssh.SSHConnection, result2 error)

func (*FakeSSHConnectionFactory) ReturnsOnCall

func (fake *FakeSSHConnectionFactory) ReturnsOnCall(i int, result1 ssh.SSHConnection, result2 error)

func (*FakeSSHConnectionFactory) Spy

func (fake *FakeSSHConnectionFactory) Spy(host string, user string, privateKey string, publicKeyCallback sshcrypto.HostKeyCallback, publicKeyAlgorithm []string, logger ssh.Logger) (ssh.SSHConnection, error)

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