cfpsqlfakes

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

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.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeApiClient

type FakeApiClient struct {
	GetStartedAppsStub func(cliConnection plugin.CliConnection) ([]sdkModels.GetAppsModel, error)

	GetServiceStub func(cliConnection plugin.CliConnection, spaceGuid string, name string) (pluginModels.ServiceInstance, error)

	GetServiceKeyStub func(cliConnection plugin.CliConnection, serviceInstanceGuid string, keyName string) (key pluginModels.ServiceKey, found bool, err error)

	CreateServiceKeyStub func(cliConnection plugin.CliConnection, serviceInstanceGuid string, keyName string) (pluginModels.ServiceKey, error)
	// contains filtered or unexported fields
}

func (*FakeApiClient) CreateServiceKey

func (fake *FakeApiClient) CreateServiceKey(cliConnection plugin.CliConnection, serviceInstanceGuid string, keyName string) (pluginModels.ServiceKey, error)

func (*FakeApiClient) CreateServiceKeyArgsForCall

func (fake *FakeApiClient) CreateServiceKeyArgsForCall(i int) (plugin.CliConnection, string, string)

func (*FakeApiClient) CreateServiceKeyCallCount

func (fake *FakeApiClient) CreateServiceKeyCallCount() int

func (*FakeApiClient) CreateServiceKeyReturns

func (fake *FakeApiClient) CreateServiceKeyReturns(result1 pluginModels.ServiceKey, result2 error)

func (*FakeApiClient) CreateServiceKeyReturnsOnCall

func (fake *FakeApiClient) CreateServiceKeyReturnsOnCall(i int, result1 pluginModels.ServiceKey, result2 error)

func (*FakeApiClient) GetService

func (fake *FakeApiClient) GetService(cliConnection plugin.CliConnection, spaceGuid string, name string) (pluginModels.ServiceInstance, error)

func (*FakeApiClient) GetServiceArgsForCall

func (fake *FakeApiClient) GetServiceArgsForCall(i int) (plugin.CliConnection, string, string)

func (*FakeApiClient) GetServiceCallCount

func (fake *FakeApiClient) GetServiceCallCount() int

func (*FakeApiClient) GetServiceKey

func (fake *FakeApiClient) GetServiceKey(cliConnection plugin.CliConnection, serviceInstanceGuid string, keyName string) (key pluginModels.ServiceKey, found bool, err error)

func (*FakeApiClient) GetServiceKeyArgsForCall

func (fake *FakeApiClient) GetServiceKeyArgsForCall(i int) (plugin.CliConnection, string, string)

func (*FakeApiClient) GetServiceKeyCallCount

func (fake *FakeApiClient) GetServiceKeyCallCount() int

func (*FakeApiClient) GetServiceKeyReturns

func (fake *FakeApiClient) GetServiceKeyReturns(result1 pluginModels.ServiceKey, result2 bool, result3 error)

func (*FakeApiClient) GetServiceKeyReturnsOnCall

func (fake *FakeApiClient) GetServiceKeyReturnsOnCall(i int, result1 pluginModels.ServiceKey, result2 bool, result3 error)

func (*FakeApiClient) GetServiceReturns

func (fake *FakeApiClient) GetServiceReturns(result1 pluginModels.ServiceInstance, result2 error)

func (*FakeApiClient) GetServiceReturnsOnCall

func (fake *FakeApiClient) GetServiceReturnsOnCall(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

func (fake *FakeApiClient) GetStartedAppsReturnsOnCall(i int, result1 []sdkModels.GetAppsModel, result2 error)

func (*FakeApiClient) Invocations

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

type FakeCfService

type FakeCfService struct {
	GetStartedAppsStub func(cliConnection plugin.CliConnection) ([]sdkModels.GetAppsModel, error)

	OpenSshTunnelStub func(cliConnection plugin.CliConnection, toService cfpsql.PsqlService, apps []sdkModels.GetAppsModel, localPort int)

	GetServiceStub func(connection plugin.CliConnection, name string) (cfpsql.PsqlService, error)
	// contains filtered or unexported fields
}

func (*FakeCfService) GetService

func (fake *FakeCfService) GetService(connection plugin.CliConnection, name string) (cfpsql.PsqlService, error)

func (*FakeCfService) GetServiceArgsForCall

func (fake *FakeCfService) GetServiceArgsForCall(i int) (plugin.CliConnection, string)

func (*FakeCfService) GetServiceCallCount

func (fake *FakeCfService) GetServiceCallCount() int

func (*FakeCfService) GetServiceReturns

func (fake *FakeCfService) GetServiceReturns(result1 cfpsql.PsqlService, result2 error)

func (*FakeCfService) GetServiceReturnsOnCall

func (fake *FakeCfService) GetServiceReturnsOnCall(i int, result1 cfpsql.PsqlService, result2 error)

func (*FakeCfService) GetStartedApps

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

func (*FakeCfService) GetStartedAppsArgsForCall

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

func (*FakeCfService) GetStartedAppsCallCount

func (fake *FakeCfService) GetStartedAppsCallCount() int

func (*FakeCfService) GetStartedAppsReturns

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

func (*FakeCfService) GetStartedAppsReturnsOnCall

func (fake *FakeCfService) GetStartedAppsReturnsOnCall(i int, result1 []sdkModels.GetAppsModel, result2 error)

func (*FakeCfService) Invocations

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

func (*FakeCfService) OpenSshTunnel

func (fake *FakeCfService) OpenSshTunnel(cliConnection plugin.CliConnection, toService cfpsql.PsqlService, apps []sdkModels.GetAppsModel, localPort int)

func (*FakeCfService) OpenSshTunnelArgsForCall

func (fake *FakeCfService) OpenSshTunnelArgsForCall(i int) (plugin.CliConnection, cfpsql.PsqlService, []sdkModels.GetAppsModel, int)

func (*FakeCfService) OpenSshTunnelCallCount

func (fake *FakeCfService) OpenSshTunnelCallCount() int

type FakeExecWrapper

type FakeExecWrapper struct {
	LookPathStub func(file string) (string, error)

	RunStub func(*exec.Cmd) error
	// contains filtered or unexported fields
}

func (*FakeExecWrapper) Invocations

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

func (*FakeExecWrapper) LookPath

func (fake *FakeExecWrapper) LookPath(file string) (string, error)

func (*FakeExecWrapper) LookPathArgsForCall

func (fake *FakeExecWrapper) LookPathArgsForCall(i int) string

func (*FakeExecWrapper) LookPathCallCount

func (fake *FakeExecWrapper) LookPathCallCount() int

func (*FakeExecWrapper) LookPathReturns

func (fake *FakeExecWrapper) LookPathReturns(result1 string, result2 error)

func (*FakeExecWrapper) LookPathReturnsOnCall

func (fake *FakeExecWrapper) LookPathReturnsOnCall(i int, result1 string, result2 error)

func (*FakeExecWrapper) Run

func (fake *FakeExecWrapper) Run(arg1 *exec.Cmd) error

func (*FakeExecWrapper) RunArgsForCall

func (fake *FakeExecWrapper) RunArgsForCall(i int) *exec.Cmd

func (*FakeExecWrapper) RunCallCount

func (fake *FakeExecWrapper) RunCallCount() int

func (*FakeExecWrapper) RunReturns

func (fake *FakeExecWrapper) RunReturns(result1 error)

func (*FakeExecWrapper) RunReturnsOnCall

func (fake *FakeExecWrapper) RunReturnsOnCall(i int, result1 error)

type FakeHttpClientFactory

type FakeHttpClientFactory struct {
	NewClientStub func(sslDisabled bool) *http.Client
	// contains filtered or unexported fields
}

func (*FakeHttpClientFactory) Invocations

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

func (*FakeHttpClientFactory) NewClient

func (fake *FakeHttpClientFactory) NewClient(sslDisabled bool) *http.Client

func (*FakeHttpClientFactory) NewClientArgsForCall

func (fake *FakeHttpClientFactory) NewClientArgsForCall(i int) bool

func (*FakeHttpClientFactory) NewClientCallCount

func (fake *FakeHttpClientFactory) NewClientCallCount() int

func (*FakeHttpClientFactory) NewClientReturns

func (fake *FakeHttpClientFactory) NewClientReturns(result1 *http.Client)

func (*FakeHttpClientFactory) NewClientReturnsOnCall

func (fake *FakeHttpClientFactory) NewClientReturnsOnCall(i int, result1 *http.Client)

type FakeHttpWrapper

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)
	// contains filtered or unexported fields
}

func (*FakeHttpWrapper) Get

func (fake *FakeHttpWrapper) Get(endpoint string, accessToken string, skipSsl bool) ([]byte, error)

func (*FakeHttpWrapper) GetArgsForCall

func (fake *FakeHttpWrapper) GetArgsForCall(i int) (string, string, bool)

func (*FakeHttpWrapper) GetCallCount

func (fake *FakeHttpWrapper) GetCallCount() int

func (*FakeHttpWrapper) GetReturns

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

func (*FakeHttpWrapper) GetReturnsOnCall

func (fake *FakeHttpWrapper) GetReturnsOnCall(i int, result1 []byte, result2 error)

func (*FakeHttpWrapper) Invocations

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

func (*FakeHttpWrapper) Post

func (fake *FakeHttpWrapper) Post(url string, body io.Reader, accessToken string, sslDisabled bool) ([]byte, error)

func (*FakeHttpWrapper) PostArgsForCall

func (fake *FakeHttpWrapper) PostArgsForCall(i int) (string, io.Reader, string, bool)

func (*FakeHttpWrapper) PostCallCount

func (fake *FakeHttpWrapper) PostCallCount() int

func (*FakeHttpWrapper) PostReturns

func (fake *FakeHttpWrapper) PostReturns(result1 []byte, result2 error)

func (*FakeHttpWrapper) PostReturnsOnCall

func (fake *FakeHttpWrapper) PostReturnsOnCall(i int, result1 []byte, result2 error)

type FakeNetWrapper

type FakeNetWrapper struct {
	DialStub func(network, address string) (net.Conn, error)

	CloseStub func(conn net.Conn) error
	// contains filtered or unexported fields
}

func (*FakeNetWrapper) Close

func (fake *FakeNetWrapper) Close(conn net.Conn) error

func (*FakeNetWrapper) CloseArgsForCall

func (fake *FakeNetWrapper) CloseArgsForCall(i int) net.Conn

func (*FakeNetWrapper) CloseCallCount

func (fake *FakeNetWrapper) CloseCallCount() int

func (*FakeNetWrapper) CloseReturns

func (fake *FakeNetWrapper) CloseReturns(result1 error)

func (*FakeNetWrapper) CloseReturnsOnCall

func (fake *FakeNetWrapper) CloseReturnsOnCall(i int, result1 error)

func (*FakeNetWrapper) Dial

func (fake *FakeNetWrapper) Dial(network string, address string) (net.Conn, error)

func (*FakeNetWrapper) DialArgsForCall

func (fake *FakeNetWrapper) DialArgsForCall(i int) (string, string)

func (*FakeNetWrapper) DialCallCount

func (fake *FakeNetWrapper) DialCallCount() int

func (*FakeNetWrapper) DialReturns

func (fake *FakeNetWrapper) DialReturns(result1 net.Conn, result2 error)

func (*FakeNetWrapper) DialReturnsOnCall

func (fake *FakeNetWrapper) DialReturnsOnCall(i int, result1 net.Conn, result2 error)

func (*FakeNetWrapper) Invocations

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

type FakeOsWrapper

type FakeOsWrapper struct {
	LookupEnvStub func(key string) (string, bool)
	// contains filtered or unexported fields
}

func (*FakeOsWrapper) Invocations

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

func (*FakeOsWrapper) LookupEnv

func (fake *FakeOsWrapper) LookupEnv(key string) (string, bool)

func (*FakeOsWrapper) LookupEnvArgsForCall

func (fake *FakeOsWrapper) LookupEnvArgsForCall(i int) string

func (*FakeOsWrapper) LookupEnvCallCount

func (fake *FakeOsWrapper) LookupEnvCallCount() int

func (*FakeOsWrapper) LookupEnvReturns

func (fake *FakeOsWrapper) LookupEnvReturns(result1 string, result2 bool)

func (*FakeOsWrapper) LookupEnvReturnsOnCall

func (fake *FakeOsWrapper) LookupEnvReturnsOnCall(i int, result1 string, result2 bool)

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

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 FakePsqlRunner

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

	RunPsqlDumpStub func(hostname string, port int, dbName string, username string, password string, args ...string) error
	// contains filtered or unexported fields
}

func (*FakePsqlRunner) Invocations

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

func (*FakePsqlRunner) RunPsql

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

func (*FakePsqlRunner) RunPsqlArgsForCall

func (fake *FakePsqlRunner) RunPsqlArgsForCall(i int) (string, int, string, string, string, []string)

func (*FakePsqlRunner) RunPsqlCallCount

func (fake *FakePsqlRunner) RunPsqlCallCount() int

func (*FakePsqlRunner) RunPsqlReturns

func (fake *FakePsqlRunner) RunPsqlReturns(result1 error)

func (*FakePsqlRunner) RunPsqlReturnsOnCall

func (fake *FakePsqlRunner) RunPsqlReturnsOnCall(i int, result1 error)

type FakeRandWrapper

type FakeRandWrapper struct {
	IntnStub func(n int) int
	// contains filtered or unexported fields
}

func (*FakeRandWrapper) Intn

func (fake *FakeRandWrapper) Intn(n int) int

func (*FakeRandWrapper) IntnArgsForCall

func (fake *FakeRandWrapper) IntnArgsForCall(i int) int

func (*FakeRandWrapper) IntnCallCount

func (fake *FakeRandWrapper) IntnCallCount() int

func (*FakeRandWrapper) IntnReturns

func (fake *FakeRandWrapper) IntnReturns(result1 int)

func (*FakeRandWrapper) IntnReturnsOnCall

func (fake *FakeRandWrapper) IntnReturnsOnCall(i int, result1 int)

func (*FakeRandWrapper) Invocations

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

type FakeSshRunner

type FakeSshRunner struct {
	OpenSshTunnelStub func(cliConnection plugin.CliConnection, toService cfpsql.PsqlService, 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 cfpsql.PsqlService, throughApp string, localPort int)

func (*FakeSshRunner) OpenSshTunnelArgsForCall

func (fake *FakeSshRunner) OpenSshTunnelArgsForCall(i int) (plugin.CliConnection, cfpsql.PsqlService, 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