Documentation ¶
Index ¶
- Constants
- type ApiClient
- type ApiClientImpl
- func (self *ApiClientImpl) GetServiceBindings(cliConnection plugin.CliConnection) ([]pluginModels.ServiceBinding, error)
- func (self *ApiClientImpl) GetServiceInstances(cliConnection plugin.CliConnection) ([]pluginModels.ServiceInstance, error)
- func (self *ApiClientImpl) GetStartedApps(cliConnection plugin.CliConnection) ([]sdkModels.GetAppsModel, error)
- type BindingResult
- type CfService
- type CfServiceImpl
- func (self *CfServiceImpl) GetMysqlServices(cliConnection plugin.CliConnection) ([]MysqlService, error)
- func (self *CfServiceImpl) GetStartedApps(cliConnection plugin.CliConnection) ([]sdkModels.GetAppsModel, error)
- func (self *CfServiceImpl) OpenSshTunnel(cliConnection plugin.CliConnection, toService MysqlService, throughApp string, ...)
- type CfSshRunner
- type Exec
- type ExecWrapper
- type FreePortFinder
- type Http
- type HttpWrapper
- type MysqlClientRunner
- func (self *MysqlClientRunner) MakeMysqlCommand(hostname string, port int, dbName string, username string, password string) *exec.Cmd
- func (self *MysqlClientRunner) RunMysql(hostname string, port int, dbName string, username string, password string, ...) error
- func (self *MysqlClientRunner) RunMysqlDump(hostname string, port int, dbName string, username string, password string, ...) error
- type MysqlPlugin
- type MysqlRunner
- type MysqlService
- type Net
- type NetWrapper
- type PortFinder
- type PortWaiter
- type SshRunner
- type StartedAppsResult
- type TcpPortWaiter
Constants ¶
View Source
const SLEEP_TIME = 100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiClient ¶
type ApiClient interface { GetServiceBindings(cliConnection plugin.CliConnection) ([]pluginModels.ServiceBinding, error) GetServiceInstances(cliConnection plugin.CliConnection) ([]pluginModels.ServiceInstance, error) GetStartedApps(cliConnection plugin.CliConnection) ([]sdkModels.GetAppsModel, error) }
type ApiClientImpl ¶ added in v1.3.4
type ApiClientImpl struct {
HttpClient Http
}
func NewApiClient ¶ added in v1.3.4
func NewApiClient() *ApiClientImpl
func (*ApiClientImpl) GetServiceBindings ¶ added in v1.3.5
func (self *ApiClientImpl) GetServiceBindings(cliConnection plugin.CliConnection) ([]pluginModels.ServiceBinding, error)
func (*ApiClientImpl) GetServiceInstances ¶ added in v1.3.4
func (self *ApiClientImpl) GetServiceInstances(cliConnection plugin.CliConnection) ([]pluginModels.ServiceInstance, error)
func (*ApiClientImpl) GetStartedApps ¶ added in v1.3.4
func (self *ApiClientImpl) GetStartedApps(cliConnection plugin.CliConnection) ([]sdkModels.GetAppsModel, error)
type BindingResult ¶ added in v1.3.1
type BindingResult struct { Bindings []pluginModels.ServiceBinding Err error }
type CfService ¶ added in v1.3.4
type CfService interface { GetMysqlServices(cliConnection plugin.CliConnection) ([]MysqlService, error) GetStartedApps(cliConnection plugin.CliConnection) ([]sdkModels.GetAppsModel, error) OpenSshTunnel(cliConnection plugin.CliConnection, toService MysqlService, throughApp string, localPort int) }
type CfServiceImpl ¶ added in v1.3.4
type CfServiceImpl struct { ApiClient ApiClient HttpClient Http PortWaiter PortWaiter SshRunner SshRunner }
func NewCfService ¶ added in v1.3.4
func NewCfService() *CfServiceImpl
func (*CfServiceImpl) GetMysqlServices ¶ added in v1.3.4
func (self *CfServiceImpl) GetMysqlServices(cliConnection plugin.CliConnection) ([]MysqlService, error)
func (*CfServiceImpl) GetStartedApps ¶ added in v1.3.4
func (self *CfServiceImpl) GetStartedApps(cliConnection plugin.CliConnection) ([]sdkModels.GetAppsModel, error)
func (*CfServiceImpl) OpenSshTunnel ¶ added in v1.3.4
func (self *CfServiceImpl) OpenSshTunnel(cliConnection plugin.CliConnection, toService MysqlService, throughApp string, localPort int)
type CfSshRunner ¶
type CfSshRunner struct{}
func (*CfSshRunner) OpenSshTunnel ¶
func (self *CfSshRunner) OpenSshTunnel(cliConnection plugin.CliConnection, toService MysqlService, throughApp string, localPort int)
type ExecWrapper ¶
type ExecWrapper struct{}
type FreePortFinder ¶
type FreePortFinder struct{}
func (*FreePortFinder) GetPort ¶
func (self *FreePortFinder) GetPort() int
type HttpWrapper ¶ added in v1.3.1
type HttpWrapper struct{}
type MysqlClientRunner ¶
type MysqlClientRunner struct {
ExecWrapper Exec
}
func (*MysqlClientRunner) MakeMysqlCommand ¶
func (*MysqlClientRunner) RunMysqlDump ¶ added in v1.3.0
type MysqlPlugin ¶
type MysqlPlugin struct { In io.Reader Out io.Writer Err io.Writer CfService CfService MysqlRunner MysqlRunner PortFinder PortFinder // contains filtered or unexported fields }
func NewPlugin ¶
func NewPlugin() *MysqlPlugin
func (*MysqlPlugin) GetExitCode ¶
func (self *MysqlPlugin) GetExitCode() int
func (*MysqlPlugin) GetMetadata ¶
func (self *MysqlPlugin) GetMetadata() plugin.PluginMetadata
func (*MysqlPlugin) Run ¶
func (self *MysqlPlugin) Run(cliConnection plugin.CliConnection, args []string)
type MysqlRunner ¶
type MysqlRunner interface { RunMysql(hostname string, port int, dbName string, username string, password string, args ...string) error RunMysqlDump(hostname string, port int, dbName string, username string, password string, args ...string) error }
func NewMysqlRunner ¶
func NewMysqlRunner() MysqlRunner
type MysqlService ¶
type NetWrapper ¶
type NetWrapper struct{}
type PortFinder ¶
type PortFinder interface {
GetPort() int
}
type PortWaiter ¶
type PortWaiter interface {
WaitUntilOpen(localPort int)
}
func NewPortWaiter ¶
func NewPortWaiter() PortWaiter
type SshRunner ¶
type SshRunner interface {
OpenSshTunnel(cliConnection plugin.CliConnection, toService MysqlService, throughApp string, localPort int)
}
type StartedAppsResult ¶ added in v1.3.1
type StartedAppsResult struct { Apps []plugin_models.GetAppsModel Err error }
type TcpPortWaiter ¶
type TcpPortWaiter struct {
NetWrapper Net
}
func (*TcpPortWaiter) WaitUntilOpen ¶
func (self *TcpPortWaiter) WaitUntilOpen(localPort int)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
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
|
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 |
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.