Documentation ¶
Index ¶
- Constants
- type ApiClient
- type CfSshRunner
- type Exec
- type ExecWrapper
- type FreePortFinder
- type MysqlClientRunner
- 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 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 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 MysqlClientRunner ¶
type MysqlClientRunner struct {
ExecWrapper Exec
}
func (*MysqlClientRunner) MakeMysqlCommand ¶
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) 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 }
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 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 |
Click to show internal directories.
Click to hide internal directories.