cfmysqlfakes

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeApiClient

type FakeApiClient struct {
	GetMysqlServicesStub func(cliConnection plugin.CliConnection) ([]cfmysql.MysqlService, error)

	GetStartedAppsStub func(cliConnection plugin.CliConnection) ([]GetAppsModel, error)

	OpenSshTunnelStub func(cliConnection plugin.CliConnection, toService cfmysql.MysqlService, throughApp string, localPort int)
	// contains filtered or unexported fields
}

func (*FakeApiClient) GetMysqlServices

func (fake *FakeApiClient) GetMysqlServices(cliConnection plugin.CliConnection) ([]cfmysql.MysqlService, error)

func (*FakeApiClient) GetMysqlServicesArgsForCall

func (fake *FakeApiClient) GetMysqlServicesArgsForCall(i int) plugin.CliConnection

func (*FakeApiClient) GetMysqlServicesCallCount

func (fake *FakeApiClient) GetMysqlServicesCallCount() int

func (*FakeApiClient) GetMysqlServicesReturns

func (fake *FakeApiClient) GetMysqlServicesReturns(result1 []cfmysql.MysqlService, result2 error)

func (*FakeApiClient) GetStartedApps

func (fake *FakeApiClient) GetStartedApps(cliConnection plugin.CliConnection) ([]GetAppsModel, error)

func (*FakeApiClient) GetStartedAppsArgsForCall

func (fake *FakeApiClient) GetStartedAppsArgsForCall(i int) plugin.CliConnection

func (*FakeApiClient) GetStartedAppsCallCount

func (fake *FakeApiClient) GetStartedAppsCallCount() int

func (*FakeApiClient) GetStartedAppsReturns

func (fake *FakeApiClient) GetStartedAppsReturns(result1 []GetAppsModel, result2 error)

func (*FakeApiClient) Invocations

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

func (*FakeApiClient) OpenSshTunnel

func (fake *FakeApiClient) OpenSshTunnel(cliConnection plugin.CliConnection, toService cfmysql.MysqlService, throughApp string, localPort int)

func (*FakeApiClient) OpenSshTunnelArgsForCall

func (fake *FakeApiClient) OpenSshTunnelArgsForCall(i int) (plugin.CliConnection, cfmysql.MysqlService, string, int)

func (*FakeApiClient) OpenSshTunnelCallCount

func (fake *FakeApiClient) OpenSshTunnelCallCount() int

type FakeExec

type FakeExec struct {
	LookPathStub func(file string) (string, error)

	RunStub func(*exec.Cmd) error
	// contains filtered or unexported fields
}

func (*FakeExec) Invocations

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

func (*FakeExec) LookPath

func (fake *FakeExec) LookPath(file string) (string, error)

func (*FakeExec) LookPathArgsForCall

func (fake *FakeExec) LookPathArgsForCall(i int) string

func (*FakeExec) LookPathCallCount

func (fake *FakeExec) LookPathCallCount() int

func (*FakeExec) LookPathReturns

func (fake *FakeExec) LookPathReturns(result1 string, result2 error)

func (*FakeExec) Run

func (fake *FakeExec) Run(arg1 *exec.Cmd) error

func (*FakeExec) RunArgsForCall

func (fake *FakeExec) RunArgsForCall(i int) *exec.Cmd

func (*FakeExec) RunCallCount

func (fake *FakeExec) RunCallCount() int

func (*FakeExec) RunReturns

func (fake *FakeExec) RunReturns(result1 error)

type FakeMysqlRunner

type FakeMysqlRunner struct {
	RunMysqlStub func(hostname string, port int, dbName string, username string, password string, args ...string) error
	// contains filtered or unexported fields
}

func (*FakeMysqlRunner) Invocations

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

func (*FakeMysqlRunner) RunMysql

func (fake *FakeMysqlRunner) RunMysql(hostname string, port int, dbName string, username string, password string, args ...string) error

func (*FakeMysqlRunner) RunMysqlArgsForCall

func (fake *FakeMysqlRunner) RunMysqlArgsForCall(i int) (string, int, string, string, string, []string)

func (*FakeMysqlRunner) RunMysqlCallCount

func (fake *FakeMysqlRunner) RunMysqlCallCount() int

func (*FakeMysqlRunner) RunMysqlReturns

func (fake *FakeMysqlRunner) RunMysqlReturns(result1 error)

type FakeNet

type FakeNet struct {
	DialStub func(network, address string) (net.Conn, error)

	CloseStub func(conn net.Conn) error
	// contains filtered or unexported fields
}

func (*FakeNet) Close

func (fake *FakeNet) Close(conn net.Conn) error

func (*FakeNet) CloseArgsForCall

func (fake *FakeNet) CloseArgsForCall(i int) net.Conn

func (*FakeNet) CloseCallCount

func (fake *FakeNet) CloseCallCount() int

func (*FakeNet) CloseReturns

func (fake *FakeNet) CloseReturns(result1 error)

func (*FakeNet) Dial

func (fake *FakeNet) Dial(network string, address string) (net.Conn, error)

func (*FakeNet) DialArgsForCall

func (fake *FakeNet) DialArgsForCall(i int) (string, string)

func (*FakeNet) DialCallCount

func (fake *FakeNet) DialCallCount() int

func (*FakeNet) DialReturns

func (fake *FakeNet) DialReturns(result1 net.Conn, result2 error)

func (*FakeNet) Invocations

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

type FakePortFinder

type FakePortFinder struct {
	GetPortStub func() int
	// contains filtered or unexported fields
}

func (*FakePortFinder) GetPort

func (fake *FakePortFinder) GetPort() int

func (*FakePortFinder) GetPortCallCount

func (fake *FakePortFinder) GetPortCallCount() int

func (*FakePortFinder) GetPortReturns

func (fake *FakePortFinder) GetPortReturns(result1 int)

func (*FakePortFinder) Invocations

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

type FakePortWaiter

type FakePortWaiter struct {
	WaitUntilOpenStub func(localPort int)
	// contains filtered or unexported fields
}

func (*FakePortWaiter) Invocations

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

func (*FakePortWaiter) WaitUntilOpen

func (fake *FakePortWaiter) WaitUntilOpen(localPort int)

func (*FakePortWaiter) WaitUntilOpenArgsForCall

func (fake *FakePortWaiter) WaitUntilOpenArgsForCall(i int) int

func (*FakePortWaiter) WaitUntilOpenCallCount

func (fake *FakePortWaiter) WaitUntilOpenCallCount() int

type FakeSshRunner

type FakeSshRunner struct {
	OpenSshTunnelStub func(cliConnection plugin.CliConnection, toService cfmysql.MysqlService, throughApp string, localPort int)
	// contains filtered or unexported fields
}

func (*FakeSshRunner) Invocations

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

func (*FakeSshRunner) OpenSshTunnel

func (fake *FakeSshRunner) OpenSshTunnel(cliConnection plugin.CliConnection, toService cfmysql.MysqlService, throughApp string, localPort int)

func (*FakeSshRunner) OpenSshTunnelArgsForCall

func (fake *FakeSshRunner) OpenSshTunnelArgsForCall(i int) (plugin.CliConnection, cfmysql.MysqlService, string, int)

func (*FakeSshRunner) OpenSshTunnelCallCount

func (fake *FakeSshRunner) OpenSshTunnelCallCount() int

Jump to

Keyboard shortcuts

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