cfmysqlfakes

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2016 License: Apache-2.0 Imports: 7 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

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 {
	GetServiceBindingsStub func(cliConnection plugin.CliConnection) ([]modelscfmysql.ServiceBinding, error)

	GetServiceInstancesStub func(cliConnection plugin.CliConnection) ([]modelscfmysql.ServiceInstance, error)

	GetStartedAppsStub func(cliConnection plugin.CliConnection) ([]plugin_models.GetAppsModel, error)
	// contains filtered or unexported fields
}

func (*FakeApiClient) GetServiceBindings added in v1.3.5

func (fake *FakeApiClient) GetServiceBindings(cliConnection plugin.CliConnection) ([]modelscfmysql.ServiceBinding, error)

func (*FakeApiClient) GetServiceBindingsArgsForCall added in v1.3.5

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

func (*FakeApiClient) GetServiceBindingsCallCount added in v1.3.5

func (fake *FakeApiClient) GetServiceBindingsCallCount() int

func (*FakeApiClient) GetServiceBindingsReturns added in v1.3.5

func (fake *FakeApiClient) GetServiceBindingsReturns(result1 []modelscfmysql.ServiceBinding, result2 error)

func (*FakeApiClient) GetServiceInstances added in v1.3.4

func (fake *FakeApiClient) GetServiceInstances(cliConnection plugin.CliConnection) ([]modelscfmysql.ServiceInstance, error)

func (*FakeApiClient) GetServiceInstancesArgsForCall added in v1.3.4

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

func (*FakeApiClient) GetServiceInstancesCallCount added in v1.3.4

func (fake *FakeApiClient) GetServiceInstancesCallCount() int

func (*FakeApiClient) GetServiceInstancesReturns added in v1.3.4

func (fake *FakeApiClient) GetServiceInstancesReturns(result1 []modelscfmysql.ServiceInstance, result2 error)

func (*FakeApiClient) GetStartedApps

func (fake *FakeApiClient) GetStartedApps(cliConnection plugin.CliConnection) ([]plugin_models.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 []plugin_models.GetAppsModel, result2 error)

func (*FakeApiClient) Invocations

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

type FakeCfService added in v1.3.4

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

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

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

func (*FakeCfService) GetMysqlServices added in v1.3.4

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

func (*FakeCfService) GetMysqlServicesArgsForCall added in v1.3.4

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

func (*FakeCfService) GetMysqlServicesCallCount added in v1.3.4

func (fake *FakeCfService) GetMysqlServicesCallCount() int

func (*FakeCfService) GetMysqlServicesReturns added in v1.3.4

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

func (*FakeCfService) GetStartedApps added in v1.3.4

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

func (*FakeCfService) GetStartedAppsArgsForCall added in v1.3.4

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

func (*FakeCfService) GetStartedAppsCallCount added in v1.3.4

func (fake *FakeCfService) GetStartedAppsCallCount() int

func (*FakeCfService) GetStartedAppsReturns added in v1.3.4

func (fake *FakeCfService) GetStartedAppsReturns(result1 []modelsplugin.GetAppsModel, result2 error)

func (*FakeCfService) Invocations added in v1.3.4

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

func (*FakeCfService) OpenSshTunnel added in v1.3.4

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

func (*FakeCfService) OpenSshTunnelArgsForCall added in v1.3.4

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

func (*FakeCfService) OpenSshTunnelCallCount added in v1.3.4

func (fake *FakeCfService) 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 FakeHttp added in v1.3.1

type FakeHttp struct {
	GetStub func(endpoint string, access_token string) ([]byte, error)
	// contains filtered or unexported fields
}

func (*FakeHttp) Get added in v1.3.1

func (fake *FakeHttp) Get(endpoint string, access_token string) ([]byte, error)

func (*FakeHttp) GetArgsForCall added in v1.3.1

func (fake *FakeHttp) GetArgsForCall(i int) (string, string)

func (*FakeHttp) GetCallCount added in v1.3.1

func (fake *FakeHttp) GetCallCount() int

func (*FakeHttp) GetReturns added in v1.3.1

func (fake *FakeHttp) GetReturns(result1 []byte, result2 error)

func (*FakeHttp) Invocations added in v1.3.1

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

type FakeMysqlRunner

type FakeMysqlRunner struct {
	RunMysqlStub func(hostname string, port int, dbName string, username string, password string, args ...string) error

	RunMysqlDumpStub 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) RunMysqlDump added in v1.3.0

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

func (*FakeMysqlRunner) RunMysqlDumpArgsForCall added in v1.3.0

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

func (*FakeMysqlRunner) RunMysqlDumpCallCount added in v1.3.0

func (fake *FakeMysqlRunner) RunMysqlDumpCallCount() int

func (*FakeMysqlRunner) RunMysqlDumpReturns added in v1.3.0

func (fake *FakeMysqlRunner) RunMysqlDumpReturns(result1 error)

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