Documentation ¶
Index ¶
- func NewSocks5Dialer(proxyURL string, logger *log.Logger) (proxy.DialFunc, error)
- func SetupSocks5Proxy()
- type CLI
- func (c *CLI) DeleteDeployment() error
- func (c *CLI) Deploy(manifestPath string, options ...DeploymentOption) error
- func (c *CLI) Follower() (*Instance, error)
- func (c *CLI) InstanceAddress(instance string) (string, error)
- func (c *CLI) InstanceGroupByName(instanceGroup string) ([]Instance, error)
- func (c *CLI) Leader() (*Instance, error)
- func (c *CLI) MySQLExec(instance, sql string) error
- func (c *CLI) MySQLIsReadOnly(instance string) (bool, error)
- func (c *CLI) MySQLQuery(instance, sql string) (string, error)
- func (c *CLI) MySQLSchemaExists(instance, schemaName string) (bool, error)
- func (c *CLI) MySQLTableExists(instance, schemaName, tableName string) (bool, error)
- func (c *CLI) Restart(instance string) error
- func (c *CLI) Run(args ...string) (string, error)
- func (c *CLI) RunErrand(errandName, instance string) (string, error)
- func (c *CLI) Start(instance string) error
- func (c *CLI) Stop(instance string) error
- type DeploymentOption
- type Instance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSocks5Dialer ¶
func SetupSocks5Proxy ¶
func SetupSocks5Proxy()
Types ¶
type CLI ¶
type CLI struct { Deployment string Timeout time.Duration // contains filtered or unexported fields }
func NewCLIWithCnfPath ¶
func (*CLI) DeleteDeployment ¶
func (*CLI) InstanceGroupByName ¶
func (*CLI) MySQLSchemaExists ¶
func (*CLI) MySQLTableExists ¶
type DeploymentOption ¶
type DeploymentOption func(args *[]string)
func WithOpsFiles ¶
func WithOpsFiles(path ...string) DeploymentOption
func WithVars ¶
func WithVars(varKeyValue ...string) DeploymentOption
func WithVarsStore ¶
func WithVarsStore(path string) DeploymentOption
Click to show internal directories.
Click to hide internal directories.