Documentation
¶
Index ¶
- Constants
- type ApiClient
- type BindingResult
- 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 SdkApiClient
- func (self *SdkApiClient) GetMysqlServices(cliConnection plugin.CliConnection) ([]MysqlService, error)
- func (self *SdkApiClient) GetServiceBindings(cliConnection plugin.CliConnection) (*pluginResources.PaginatedServiceBindingResources, error)
- func (self *SdkApiClient) GetServiceInstances(cliConnection plugin.CliConnection) (*resources.PaginatedServiceInstanceResources, error)
- func (self *SdkApiClient) GetStartedApps(cliConnection plugin.CliConnection) ([]GetAppsModel, error)
- func (self *SdkApiClient) OpenSshTunnel(cliConnection plugin.CliConnection, toService MysqlService, throughApp string, ...)
- 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 {
GetMysqlServices(cliConnection plugin.CliConnection) ([]MysqlService, error)
GetStartedApps(cliConnection plugin.CliConnection) ([]GetAppsModel, error)
OpenSshTunnel(cliConnection plugin.CliConnection, toService MysqlService, throughApp string, localPort int)
}
type BindingResult ¶ added in v1.3.1
type BindingResult struct {
Bindings *pluginResources.PaginatedServiceBindingResources
Err error
}
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
ApiClient ApiClient
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 SdkApiClient ¶
type SdkApiClient struct {
SshRunner SshRunner
PortWaiter PortWaiter
HttpClient Http
}
func NewSdkApiClient ¶
func NewSdkApiClient() *SdkApiClient
func (*SdkApiClient) GetMysqlServices ¶
func (self *SdkApiClient) GetMysqlServices(cliConnection plugin.CliConnection) ([]MysqlService, error)
func (*SdkApiClient) GetServiceBindings ¶
func (self *SdkApiClient) GetServiceBindings(cliConnection plugin.CliConnection) (*pluginResources.PaginatedServiceBindingResources, error)
func (*SdkApiClient) GetServiceInstances ¶
func (self *SdkApiClient) GetServiceInstances(cliConnection plugin.CliConnection) (*resources.PaginatedServiceInstanceResources, error)
func (*SdkApiClient) GetStartedApps ¶
func (self *SdkApiClient) GetStartedApps(cliConnection plugin.CliConnection) ([]GetAppsModel, error)
func (*SdkApiClient) OpenSshTunnel ¶
func (self *SdkApiClient) OpenSshTunnel(cliConnection plugin.CliConnection, toService MysqlService, throughApp string, localPort int)
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 |
Click to show internal directories.
Click to hide internal directories.