Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type FakeApiClient
- func (fake *FakeApiClient) GetServiceBindings(cliConnection plugin.CliConnection) ([]pluginModels.ServiceBinding, error)
- func (fake *FakeApiClient) GetServiceBindingsArgsForCall(i int) plugin.CliConnection
- func (fake *FakeApiClient) GetServiceBindingsCallCount() int
- func (fake *FakeApiClient) GetServiceBindingsReturns(result1 []pluginModels.ServiceBinding, result2 error)
- func (fake *FakeApiClient) GetServiceBindingsReturnsOnCall(i int, result1 []pluginModels.ServiceBinding, result2 error)
- func (fake *FakeApiClient) GetServiceInstances(cliConnection plugin.CliConnection) ([]pluginModels.ServiceInstance, error)
- func (fake *FakeApiClient) GetServiceInstancesArgsForCall(i int) plugin.CliConnection
- func (fake *FakeApiClient) GetServiceInstancesCallCount() int
- func (fake *FakeApiClient) GetServiceInstancesReturns(result1 []pluginModels.ServiceInstance, result2 error)
- func (fake *FakeApiClient) GetServiceInstancesReturnsOnCall(i int, result1 []pluginModels.ServiceInstance, result2 error)
- func (fake *FakeApiClient) GetStartedApps(cliConnection plugin.CliConnection) ([]sdkModels.GetAppsModel, error)
- func (fake *FakeApiClient) GetStartedAppsArgsForCall(i int) plugin.CliConnection
- func (fake *FakeApiClient) GetStartedAppsCallCount() int
- func (fake *FakeApiClient) GetStartedAppsReturns(result1 []sdkModels.GetAppsModel, result2 error)
- func (fake *FakeApiClient) GetStartedAppsReturnsOnCall(i int, result1 []sdkModels.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) GetMysqlServicesReturnsOnCall(i int, result1 []cfmysql.MysqlService, result2 error)
- func (fake *FakeCfService) GetStartedApps(cliConnection plugin.CliConnection) ([]sdkModels.GetAppsModel, error)
- func (fake *FakeCfService) GetStartedAppsArgsForCall(i int) plugin.CliConnection
- func (fake *FakeCfService) GetStartedAppsCallCount() int
- func (fake *FakeCfService) GetStartedAppsReturns(result1 []sdkModels.GetAppsModel, result2 error)
- func (fake *FakeCfService) GetStartedAppsReturnsOnCall(i int, result1 []sdkModels.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) LookPathReturnsOnCall(i int, 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)
- func (fake *FakeExec) RunReturnsOnCall(i int, result1 error)
- type FakeHttp
- func (fake *FakeHttp) Get(endpoint string, access_token string, skipSsl bool) ([]byte, error)
- func (fake *FakeHttp) GetArgsForCall(i int) (string, string, bool)
- func (fake *FakeHttp) GetCallCount() int
- func (fake *FakeHttp) GetReturns(result1 []byte, result2 error)
- func (fake *FakeHttp) GetReturnsOnCall(i int, result1 []byte, result2 error)
- func (fake *FakeHttp) Invocations() map[string][][]interface{}
- type FakeHttpClientFactory
- func (fake *FakeHttpClientFactory) Invocations() map[string][][]interface{}
- func (fake *FakeHttpClientFactory) NewClient(sslDisabled bool) *http.Client
- func (fake *FakeHttpClientFactory) NewClientArgsForCall(i int) bool
- func (fake *FakeHttpClientFactory) NewClientCallCount() int
- func (fake *FakeHttpClientFactory) NewClientReturns(result1 *http.Client)
- func (fake *FakeHttpClientFactory) NewClientReturnsOnCall(i int, result1 *http.Client)
- 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) RunMysqlDumpReturnsOnCall(i int, result1 error)
- func (fake *FakeMysqlRunner) RunMysqlReturns(result1 error)
- func (fake *FakeMysqlRunner) RunMysqlReturnsOnCall(i int, 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) CloseReturnsOnCall(i int, 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) DialReturnsOnCall(i int, 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) ([]pluginModels.ServiceBinding, error) GetServiceInstancesStub func(cliConnection plugin.CliConnection) ([]pluginModels.ServiceInstance, error) GetStartedAppsStub func(cliConnection plugin.CliConnection) ([]sdkModels.GetAppsModel, error) // contains filtered or unexported fields }
func (*FakeApiClient) GetServiceBindings ¶ added in v1.3.5
func (fake *FakeApiClient) GetServiceBindings(cliConnection plugin.CliConnection) ([]pluginModels.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 []pluginModels.ServiceBinding, result2 error)
func (*FakeApiClient) GetServiceBindingsReturnsOnCall ¶ added in v1.4.0
func (fake *FakeApiClient) GetServiceBindingsReturnsOnCall(i int, result1 []pluginModels.ServiceBinding, result2 error)
func (*FakeApiClient) GetServiceInstances ¶ added in v1.3.4
func (fake *FakeApiClient) GetServiceInstances(cliConnection plugin.CliConnection) ([]pluginModels.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 []pluginModels.ServiceInstance, result2 error)
func (*FakeApiClient) GetServiceInstancesReturnsOnCall ¶ added in v1.4.0
func (fake *FakeApiClient) GetServiceInstancesReturnsOnCall(i int, result1 []pluginModels.ServiceInstance, result2 error)
func (*FakeApiClient) GetStartedApps ¶
func (fake *FakeApiClient) GetStartedApps(cliConnection plugin.CliConnection) ([]sdkModels.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 []sdkModels.GetAppsModel, result2 error)
func (*FakeApiClient) GetStartedAppsReturnsOnCall ¶ added in v1.4.0
func (fake *FakeApiClient) GetStartedAppsReturnsOnCall(i int, result1 []sdkModels.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) ([]sdkModels.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) GetMysqlServicesReturnsOnCall ¶ added in v1.4.0
func (fake *FakeCfService) GetMysqlServicesReturnsOnCall(i int, result1 []cfmysql.MysqlService, result2 error)
func (*FakeCfService) GetStartedApps ¶ added in v1.3.4
func (fake *FakeCfService) GetStartedApps(cliConnection plugin.CliConnection) ([]sdkModels.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 []sdkModels.GetAppsModel, result2 error)
func (*FakeCfService) GetStartedAppsReturnsOnCall ¶ added in v1.4.0
func (fake *FakeCfService) GetStartedAppsReturnsOnCall(i int, result1 []sdkModels.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) LookPathReturnsOnCall ¶ added in v1.4.0
func (*FakeExec) RunCallCount ¶
func (*FakeExec) RunReturns ¶
func (*FakeExec) RunReturnsOnCall ¶ added in v1.4.0
type FakeHttp ¶ added in v1.3.1
type FakeHttp struct { GetStub func(endpoint string, access_token string, skipSsl bool) ([]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) GetReturnsOnCall ¶ added in v1.4.0
func (*FakeHttp) Invocations ¶ added in v1.3.1
type FakeHttpClientFactory ¶ added in v1.4.0
type FakeHttpClientFactory struct { NewClientStub func(sslDisabled bool) *http.Client // contains filtered or unexported fields }
func (*FakeHttpClientFactory) Invocations ¶ added in v1.4.0
func (fake *FakeHttpClientFactory) Invocations() map[string][][]interface{}
func (*FakeHttpClientFactory) NewClient ¶ added in v1.4.0
func (fake *FakeHttpClientFactory) NewClient(sslDisabled bool) *http.Client
func (*FakeHttpClientFactory) NewClientArgsForCall ¶ added in v1.4.0
func (fake *FakeHttpClientFactory) NewClientArgsForCall(i int) bool
func (*FakeHttpClientFactory) NewClientCallCount ¶ added in v1.4.0
func (fake *FakeHttpClientFactory) NewClientCallCount() int
func (*FakeHttpClientFactory) NewClientReturns ¶ added in v1.4.0
func (fake *FakeHttpClientFactory) NewClientReturns(result1 *http.Client)
func (*FakeHttpClientFactory) NewClientReturnsOnCall ¶ added in v1.4.0
func (fake *FakeHttpClientFactory) NewClientReturnsOnCall(i int, result1 *http.Client)
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) RunMysqlDumpReturnsOnCall ¶ added in v1.4.0
func (fake *FakeMysqlRunner) RunMysqlDumpReturnsOnCall(i int, result1 error)
func (*FakeMysqlRunner) RunMysqlReturns ¶
func (fake *FakeMysqlRunner) RunMysqlReturns(result1 error)
func (*FakeMysqlRunner) RunMysqlReturnsOnCall ¶ added in v1.4.0
func (fake *FakeMysqlRunner) RunMysqlReturnsOnCall(i int, 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) CloseReturnsOnCall ¶ added in v1.4.0
func (*FakeNet) DialCallCount ¶
func (*FakeNet) DialReturnsOnCall ¶ added in v1.4.0
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) GetPortReturnsOnCall ¶ added in v1.4.0
func (fake *FakePortFinder) GetPortReturnsOnCall(i int, 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.