Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- 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 FakeSSHConnectionFactory
- func (fake *FakeSSHConnectionFactory) ArgsForCall(i int) (string, string, string, sshcrypto.HostKeyCallback, []string, ssh.Logger)
- func (fake *FakeSSHConnectionFactory) CallCount() int
- func (fake *FakeSSHConnectionFactory) Invocations() map[string][][]interface{}
- func (fake *FakeSSHConnectionFactory) Returns(result1 ssh.SSHConnection, result2 error)
- func (fake *FakeSSHConnectionFactory) ReturnsOnCall(i int, result1 ssh.SSHConnection, result2 error)
- func (fake *FakeSSHConnectionFactory) Spy(host string, user string, privateKey string, ...) (ssh.SSHConnection, error)
- 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 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 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 (fake *FakeSSHConnectionFactory) ArgsForCall(i int) (string, string, string, sshcrypto.HostKeyCallback, []string, ssh.Logger)
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 ¶
Click to show internal directories.
Click to hide internal directories.