Versions in this module Expand all Collapse all v1 v1.0.0 Jun 27, 2018 Changes in this version + type FakeApiClient struct + CreateServiceKeyStub func(cliConnection plugin.CliConnection, serviceInstanceGuid string, keyName string) (pluginModels.ServiceKey, error) + GetServiceKeyStub func(cliConnection plugin.CliConnection, serviceInstanceGuid string, keyName string) (key pluginModels.ServiceKey, found bool, err error) + GetServiceStub func(cliConnection plugin.CliConnection, spaceGuid string, name string) (pluginModels.ServiceInstance, error) + GetStartedAppsStub func(cliConnection plugin.CliConnection) ([]sdkModels.GetAppsModel, error) + func (fake *FakeApiClient) CreateServiceKey(cliConnection plugin.CliConnection, serviceInstanceGuid string, keyName string) (pluginModels.ServiceKey, error) + func (fake *FakeApiClient) CreateServiceKeyArgsForCall(i int) (plugin.CliConnection, string, string) + func (fake *FakeApiClient) CreateServiceKeyCallCount() int + func (fake *FakeApiClient) CreateServiceKeyReturns(result1 pluginModels.ServiceKey, result2 error) + func (fake *FakeApiClient) CreateServiceKeyReturnsOnCall(i int, result1 pluginModels.ServiceKey, result2 error) + func (fake *FakeApiClient) GetService(cliConnection plugin.CliConnection, spaceGuid string, name string) (pluginModels.ServiceInstance, error) + func (fake *FakeApiClient) GetServiceArgsForCall(i int) (plugin.CliConnection, string, string) + func (fake *FakeApiClient) GetServiceCallCount() int + func (fake *FakeApiClient) GetServiceKey(cliConnection plugin.CliConnection, serviceInstanceGuid string, keyName string) (key pluginModels.ServiceKey, found bool, err error) + func (fake *FakeApiClient) GetServiceKeyArgsForCall(i int) (plugin.CliConnection, string, string) + func (fake *FakeApiClient) GetServiceKeyCallCount() int + func (fake *FakeApiClient) GetServiceKeyReturns(result1 pluginModels.ServiceKey, result2 bool, result3 error) + func (fake *FakeApiClient) GetServiceKeyReturnsOnCall(i int, result1 pluginModels.ServiceKey, result2 bool, result3 error) + func (fake *FakeApiClient) GetServiceReturns(result1 pluginModels.ServiceInstance, result2 error) + func (fake *FakeApiClient) GetServiceReturnsOnCall(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 struct + GetServiceStub func(connection plugin.CliConnection, name string) (cfpsql.PsqlService, error) + GetStartedAppsStub func(cliConnection plugin.CliConnection) ([]sdkModels.GetAppsModel, error) + OpenSshTunnelStub func(cliConnection plugin.CliConnection, toService cfpsql.PsqlService, ...) + func (fake *FakeCfService) GetService(connection plugin.CliConnection, name string) (cfpsql.PsqlService, error) + func (fake *FakeCfService) GetServiceArgsForCall(i int) (plugin.CliConnection, string) + func (fake *FakeCfService) GetServiceCallCount() int + func (fake *FakeCfService) GetServiceReturns(result1 cfpsql.PsqlService, result2 error) + func (fake *FakeCfService) GetServiceReturnsOnCall(i int, result1 cfpsql.PsqlService, 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 cfpsql.PsqlService, ...) + func (fake *FakeCfService) OpenSshTunnelArgsForCall(i int) (plugin.CliConnection, cfpsql.PsqlService, []sdkModels.GetAppsModel, int) + func (fake *FakeCfService) OpenSshTunnelCallCount() int + type FakeExecWrapper struct + LookPathStub func(file string) (string, error) + RunStub func(*exec.Cmd) error + func (fake *FakeExecWrapper) Invocations() map[string][][]interface{} + func (fake *FakeExecWrapper) LookPath(file string) (string, error) + func (fake *FakeExecWrapper) LookPathArgsForCall(i int) string + func (fake *FakeExecWrapper) LookPathCallCount() int + func (fake *FakeExecWrapper) LookPathReturns(result1 string, result2 error) + func (fake *FakeExecWrapper) LookPathReturnsOnCall(i int, result1 string, result2 error) + func (fake *FakeExecWrapper) Run(arg1 *exec.Cmd) error + func (fake *FakeExecWrapper) RunArgsForCall(i int) *exec.Cmd + func (fake *FakeExecWrapper) RunCallCount() int + func (fake *FakeExecWrapper) RunReturns(result1 error) + func (fake *FakeExecWrapper) RunReturnsOnCall(i int, result1 error) + type FakeHttpClientFactory struct + NewClientStub func(sslDisabled bool) *http.Client + 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 FakeHttpWrapper struct + GetStub func(endpoint string, accessToken string, skipSsl bool) ([]byte, error) + PostStub func(url string, body io.Reader, accessToken string, sslDisabled bool) ([]byte, error) + func (fake *FakeHttpWrapper) Get(endpoint string, accessToken string, skipSsl bool) ([]byte, error) + func (fake *FakeHttpWrapper) GetArgsForCall(i int) (string, string, bool) + func (fake *FakeHttpWrapper) GetCallCount() int + func (fake *FakeHttpWrapper) GetReturns(result1 []byte, result2 error) + func (fake *FakeHttpWrapper) GetReturnsOnCall(i int, result1 []byte, result2 error) + func (fake *FakeHttpWrapper) Invocations() map[string][][]interface{} + func (fake *FakeHttpWrapper) Post(url string, body io.Reader, accessToken string, sslDisabled bool) ([]byte, error) + func (fake *FakeHttpWrapper) PostArgsForCall(i int) (string, io.Reader, string, bool) + func (fake *FakeHttpWrapper) PostCallCount() int + func (fake *FakeHttpWrapper) PostReturns(result1 []byte, result2 error) + func (fake *FakeHttpWrapper) PostReturnsOnCall(i int, result1 []byte, result2 error) + type FakeNetWrapper struct + CloseStub func(conn net.Conn) error + DialStub func(network, address string) (net.Conn, error) + func (fake *FakeNetWrapper) Close(conn net.Conn) error + func (fake *FakeNetWrapper) CloseArgsForCall(i int) net.Conn + func (fake *FakeNetWrapper) CloseCallCount() int + func (fake *FakeNetWrapper) CloseReturns(result1 error) + func (fake *FakeNetWrapper) CloseReturnsOnCall(i int, result1 error) + func (fake *FakeNetWrapper) Dial(network string, address string) (net.Conn, error) + func (fake *FakeNetWrapper) DialArgsForCall(i int) (string, string) + func (fake *FakeNetWrapper) DialCallCount() int + func (fake *FakeNetWrapper) DialReturns(result1 net.Conn, result2 error) + func (fake *FakeNetWrapper) DialReturnsOnCall(i int, result1 net.Conn, result2 error) + func (fake *FakeNetWrapper) Invocations() map[string][][]interface{} + type FakeOsWrapper struct + LookupEnvStub func(key string) (string, bool) + func (fake *FakeOsWrapper) Invocations() map[string][][]interface{} + func (fake *FakeOsWrapper) LookupEnv(key string) (string, bool) + func (fake *FakeOsWrapper) LookupEnvArgsForCall(i int) string + func (fake *FakeOsWrapper) LookupEnvCallCount() int + func (fake *FakeOsWrapper) LookupEnvReturns(result1 string, result2 bool) + func (fake *FakeOsWrapper) LookupEnvReturnsOnCall(i int, result1 string, result2 bool) + type FakePortFinder struct + GetPortStub func() int + func (fake *FakePortFinder) GetPort() int + func (fake *FakePortFinder) GetPortCallCount() int + func (fake *FakePortFinder) GetPortReturns(result1 int) + func (fake *FakePortFinder) GetPortReturnsOnCall(i int, result1 int) + func (fake *FakePortFinder) Invocations() map[string][][]interface{} + type FakePortWaiter struct + WaitUntilOpenStub func(localPort int) + func (fake *FakePortWaiter) Invocations() map[string][][]interface{} + func (fake *FakePortWaiter) WaitUntilOpen(localPort int) + func (fake *FakePortWaiter) WaitUntilOpenArgsForCall(i int) int + func (fake *FakePortWaiter) WaitUntilOpenCallCount() int + type FakePsqlRunner struct + RunPsqlDumpStub func(hostname string, port int, dbName string, username string, password string, ...) error + RunPsqlStub func(hostname string, port int, dbName string, username string, password string, ...) error + func (fake *FakePsqlRunner) Invocations() map[string][][]interface{} + func (fake *FakePsqlRunner) RunPsql(hostname string, port int, dbName string, username string, password string, ...) error + func (fake *FakePsqlRunner) RunPsqlArgsForCall(i int) (string, int, string, string, string, []string) + func (fake *FakePsqlRunner) RunPsqlCallCount() int + func (fake *FakePsqlRunner) RunPsqlReturns(result1 error) + func (fake *FakePsqlRunner) RunPsqlReturnsOnCall(i int, result1 error) + type FakeRandWrapper struct + IntnStub func(n int) int + func (fake *FakeRandWrapper) Intn(n int) int + func (fake *FakeRandWrapper) IntnArgsForCall(i int) int + func (fake *FakeRandWrapper) IntnCallCount() int + func (fake *FakeRandWrapper) IntnReturns(result1 int) + func (fake *FakeRandWrapper) IntnReturnsOnCall(i int, result1 int) + func (fake *FakeRandWrapper) Invocations() map[string][][]interface{} + type FakeSshRunner struct + OpenSshTunnelStub func(cliConnection plugin.CliConnection, toService cfpsql.PsqlService, ...) + func (fake *FakeSshRunner) Invocations() map[string][][]interface{} + func (fake *FakeSshRunner) OpenSshTunnel(cliConnection plugin.CliConnection, toService cfpsql.PsqlService, ...) + func (fake *FakeSshRunner) OpenSshTunnelArgsForCall(i int) (plugin.CliConnection, cfpsql.PsqlService, string, int) + func (fake *FakeSshRunner) OpenSshTunnelCallCount() int