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 ¶
- type FakeApiClient
- func (fake *FakeApiClient) GetMysqlServices(cliConnection plugin.CliConnection) ([]cfmysql.MysqlService, error)
- func (fake *FakeApiClient) GetMysqlServicesArgsForCall(i int) plugin.CliConnection
- func (fake *FakeApiClient) GetMysqlServicesCallCount() int
- func (fake *FakeApiClient) GetMysqlServicesReturns(result1 []cfmysql.MysqlService, result2 error)
- func (fake *FakeApiClient) GetStartedApps(cliConnection plugin.CliConnection) ([]GetAppsModel, error)
- func (fake *FakeApiClient) GetStartedAppsArgsForCall(i int) plugin.CliConnection
- func (fake *FakeApiClient) GetStartedAppsCallCount() int
- func (fake *FakeApiClient) GetStartedAppsReturns(result1 []GetAppsModel, result2 error)
- func (fake *FakeApiClient) Invocations() map[string][][]interface{}
- func (fake *FakeApiClient) OpenSshTunnel(cliConnection plugin.CliConnection, toService cfmysql.MysqlService, ...)
- func (fake *FakeApiClient) OpenSshTunnelArgsForCall(i int) (plugin.CliConnection, cfmysql.MysqlService, string, int)
- func (fake *FakeApiClient) OpenSshTunnelCallCount() int
- type FakeExec
- func (fake *FakeExec) Invocations() map[string][][]interface{}
- func (fake *FakeExec) LookPath(file string) (string, error)
- func (fake *FakeExec) LookPathArgsForCall(i int) string
- func (fake *FakeExec) LookPathCallCount() int
- func (fake *FakeExec) LookPathReturns(result1 string, result2 error)
- func (fake *FakeExec) Run(arg1 *exec.Cmd) error
- func (fake *FakeExec) RunArgsForCall(i int) *exec.Cmd
- func (fake *FakeExec) RunCallCount() int
- func (fake *FakeExec) RunReturns(result1 error)
- type FakeMysqlRunner
- func (fake *FakeMysqlRunner) Invocations() map[string][][]interface{}
- func (fake *FakeMysqlRunner) RunMysql(hostname string, port int, dbName string, username string, password string, ...) error
- func (fake *FakeMysqlRunner) RunMysqlArgsForCall(i int) (string, int, string, string, string, []string)
- func (fake *FakeMysqlRunner) RunMysqlCallCount() int
- func (fake *FakeMysqlRunner) RunMysqlReturns(result1 error)
- type FakeNet
- func (fake *FakeNet) Close(conn net.Conn) error
- func (fake *FakeNet) CloseArgsForCall(i int) net.Conn
- func (fake *FakeNet) CloseCallCount() int
- func (fake *FakeNet) CloseReturns(result1 error)
- func (fake *FakeNet) Dial(network string, address string) (net.Conn, error)
- func (fake *FakeNet) DialArgsForCall(i int) (string, string)
- func (fake *FakeNet) DialCallCount() int
- func (fake *FakeNet) DialReturns(result1 net.Conn, result2 error)
- func (fake *FakeNet) Invocations() map[string][][]interface{}
- type FakePortFinder
- type FakePortWaiter
- type FakeSshRunner
- func (fake *FakeSshRunner) Invocations() map[string][][]interface{}
- func (fake *FakeSshRunner) OpenSshTunnel(cliConnection plugin.CliConnection, toService cfmysql.MysqlService, ...)
- func (fake *FakeSshRunner) OpenSshTunnelArgsForCall(i int) (plugin.CliConnection, cfmysql.MysqlService, string, int)
- func (fake *FakeSshRunner) OpenSshTunnelCallCount() int
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 (*FakeExec) LookPathArgsForCall ¶
func (*FakeExec) LookPathCallCount ¶
func (*FakeExec) LookPathReturns ¶
func (*FakeExec) RunCallCount ¶
func (*FakeExec) RunReturns ¶
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) RunMysqlArgsForCall ¶
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) CloseCallCount ¶
func (*FakeNet) CloseReturns ¶
func (*FakeNet) DialCallCount ¶
func (*FakeNet) Invocations ¶
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
Click to show internal directories.
Click to hide internal directories.