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 ¶
- type FakeApiClient
- func (fake *FakeApiClient) GetServiceBindings(cliConnection plugin.CliConnection) ([]modelscfmysql.ServiceBinding, error)
- func (fake *FakeApiClient) GetServiceBindingsArgsForCall(i int) plugin.CliConnection
- func (fake *FakeApiClient) GetServiceBindingsCallCount() int
- func (fake *FakeApiClient) GetServiceBindingsReturns(result1 []modelscfmysql.ServiceBinding, result2 error)
- func (fake *FakeApiClient) GetServiceInstances(cliConnection plugin.CliConnection) ([]modelscfmysql.ServiceInstance, error)
- func (fake *FakeApiClient) GetServiceInstancesArgsForCall(i int) plugin.CliConnection
- func (fake *FakeApiClient) GetServiceInstancesCallCount() int
- func (fake *FakeApiClient) GetServiceInstancesReturns(result1 []modelscfmysql.ServiceInstance, result2 error)
- func (fake *FakeApiClient) GetStartedApps(cliConnection plugin.CliConnection) ([]plugin_models.GetAppsModel, error)
- func (fake *FakeApiClient) GetStartedAppsArgsForCall(i int) plugin.CliConnection
- func (fake *FakeApiClient) GetStartedAppsCallCount() int
- func (fake *FakeApiClient) GetStartedAppsReturns(result1 []plugin_models.GetAppsModel, result2 error)
- func (fake *FakeApiClient) Invocations() map[string][][]interface{}
- type FakeCfService
- func (fake *FakeCfService) GetMysqlServices(cliConnection plugin.CliConnection) ([]cfmysql.MysqlService, error)
- func (fake *FakeCfService) GetMysqlServicesArgsForCall(i int) plugin.CliConnection
- func (fake *FakeCfService) GetMysqlServicesCallCount() int
- func (fake *FakeCfService) GetMysqlServicesReturns(result1 []cfmysql.MysqlService, result2 error)
- func (fake *FakeCfService) GetStartedApps(cliConnection plugin.CliConnection) ([]modelsplugin.GetAppsModel, error)
- func (fake *FakeCfService) GetStartedAppsArgsForCall(i int) plugin.CliConnection
- func (fake *FakeCfService) GetStartedAppsCallCount() int
- func (fake *FakeCfService) GetStartedAppsReturns(result1 []modelsplugin.GetAppsModel, result2 error)
- func (fake *FakeCfService) Invocations() map[string][][]interface{}
- func (fake *FakeCfService) OpenSshTunnel(cliConnection plugin.CliConnection, toService cfmysql.MysqlService, ...)
- func (fake *FakeCfService) OpenSshTunnelArgsForCall(i int) (plugin.CliConnection, cfmysql.MysqlService, string, int)
- func (fake *FakeCfService) 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 FakeHttp
- func (fake *FakeHttp) Get(endpoint string, access_token string) ([]byte, error)
- func (fake *FakeHttp) GetArgsForCall(i int) (string, string)
- func (fake *FakeHttp) GetCallCount() int
- func (fake *FakeHttp) GetReturns(result1 []byte, result2 error)
- func (fake *FakeHttp) Invocations() map[string][][]interface{}
- 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) RunMysqlDump(hostname string, port int, dbName string, username string, password string, ...) error
- func (fake *FakeMysqlRunner) RunMysqlDumpArgsForCall(i int) (string, int, string, string, string, []string)
- func (fake *FakeMysqlRunner) RunMysqlDumpCallCount() int
- func (fake *FakeMysqlRunner) RunMysqlDumpReturns(result1 error)
- 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 { 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 (*FakeExec) LookPathArgsForCall ¶
func (*FakeExec) LookPathCallCount ¶
func (*FakeExec) LookPathReturns ¶
func (*FakeExec) RunCallCount ¶
func (*FakeExec) RunReturns ¶
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) GetArgsForCall ¶ added in v1.3.1
func (*FakeHttp) GetCallCount ¶ added in v1.3.1
func (*FakeHttp) GetReturns ¶ added in v1.3.1
func (*FakeHttp) Invocations ¶ added in v1.3.1
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) RunMysqlArgsForCall ¶
func (*FakeMysqlRunner) RunMysqlCallCount ¶
func (fake *FakeMysqlRunner) RunMysqlCallCount() int
func (*FakeMysqlRunner) RunMysqlDump ¶ added in v1.3.0
func (*FakeMysqlRunner) RunMysqlDumpArgsForCall ¶ added in v1.3.0
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) 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.