Documentation ¶
Index ¶
- Constants
- func GenCheckPortCommand(port int) string
- func ValidateClusterNameOrError(n string) error
- type ClusterStatusPerServer
- type DeployerInstance
- type GeminiInstaller
- type GeminiStarter
- type GeminiStatusPatroller
- type GeminiStop
- type GeminiUninstaller
- type InstallOptions
- type Installer
- type Manager
- func (m *Manager) Install(clusterName string, clusterVersion string, topoFile string, opt InstallOptions, ...) error
- func (m *Manager) StartCluster(name string, gOpt operation.Options, ...) error
- func (m *Manager) StopCluster(name string, gOpt operator.Options, skipConfirm bool) error
- func (m *Manager) UninstallCluster(name string, gOpt operator.Options, destroyOpt operator.Options, ...) error
- type Starter
- type StatusPatroller
- type Stop
- type Uninstall
- type UploadAction
Constants ¶
View Source
const CheckDiskCapacityCommand = "df -h | grep '^/dev/'"
View Source
const CheckProcessCommand = "ps aux | grep -E '(ts-meta|ts-sql|ts-store)' | grep -v grep | awk '{print $11}'"
Variables ¶
This section is empty.
Functions ¶
func GenCheckPortCommand ¶
func ValidateClusterNameOrError ¶
ValidateClusterNameOrError validates a cluster name and returns error if the name is invalid.
Types ¶
type ClusterStatusPerServer ¶
type DeployerInstance ¶
type DeployerInstance interface {
Deploy(b *task.Builder, srcPath string, deployDir string, version string, name string, clusterVersion string)
}
TODO DeployerInstance is an instance can deploy to a target deploy directory.
type GeminiInstaller ¶
type GeminiInstaller struct {
// contains filtered or unexported fields
}
func (*GeminiInstaller) Close ¶
func (d *GeminiInstaller) Close()
func (*GeminiInstaller) Install ¶
func (d *GeminiInstaller) Install() error
func (*GeminiInstaller) PrepareForInstall ¶
func (d *GeminiInstaller) PrepareForInstall() error
type GeminiStarter ¶
type GeminiStarter struct {
// contains filtered or unexported fields
}
func (*GeminiStarter) Close ¶
func (d *GeminiStarter) Close()
func (*GeminiStarter) PrepareForStart ¶
func (d *GeminiStarter) PrepareForStart() error
func (*GeminiStarter) Start ¶
func (d *GeminiStarter) Start() error
type GeminiStatusPatroller ¶
type GeminiStatusPatroller struct {
// contains filtered or unexported fields
}
func (*GeminiStatusPatroller) Close ¶
func (d *GeminiStatusPatroller) Close()
func (*GeminiStatusPatroller) Patrol ¶
func (d *GeminiStatusPatroller) Patrol() error
func (*GeminiStatusPatroller) PrepareForPatrol ¶
func (d *GeminiStatusPatroller) PrepareForPatrol() error
type GeminiStop ¶
type GeminiStop struct {
// contains filtered or unexported fields
}
func (*GeminiStop) Close ¶
func (s *GeminiStop) Close()
func (*GeminiStop) Prepare ¶
func (s *GeminiStop) Prepare() error
func (*GeminiStop) Run ¶
func (s *GeminiStop) Run() error
type GeminiUninstaller ¶
type GeminiUninstaller struct {
// contains filtered or unexported fields
}
func (*GeminiUninstaller) Close ¶
func (s *GeminiUninstaller) Close()
func (*GeminiUninstaller) Prepare ¶
func (s *GeminiUninstaller) Prepare() error
func (*GeminiUninstaller) Run ¶
func (s *GeminiUninstaller) Run() error
type InstallOptions ¶
type InstallOptions struct { User string // username of login to the SSH server SkipCreateUser bool // don't create the user IdentityFile string // path to the private key file UsePassword bool // use password instead of identity file for ssh connection }
InstallOptions contains the options for install.
type Installer ¶
func NewGeminiInstaller ¶
func NewGeminiInstaller(ops utils.ClusterOptions) Installer
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager to deploy a cluster.
func NewManager ¶
func NewManager(sysName string, specManager *spec.SpecManager, logger *logprinter.Logger) *Manager
NewManager create a Manager.
func (*Manager) Install ¶
func (m *Manager) Install( clusterName string, clusterVersion string, topoFile string, opt InstallOptions, skipConfirm bool, gOpt operator.Options, ) error
Install a cluster.
func (*Manager) StartCluster ¶
func (m *Manager) StartCluster(name string, gOpt operation.Options, fn ...func(b *task.Builder, metadata spec.Metadata)) error
StartCluster start the cluster with specified name.
func (*Manager) StopCluster ¶
StopCluster stop the cluster.
type Starter ¶
func NewGeminiStarter ¶
func NewGeminiStarter(ops utils.ClusterOptions, startOpts utils.StartOptions) Starter
type StatusPatroller ¶
func NewGeminiStatusPatroller ¶
func NewGeminiStatusPatroller(ops utils.ClusterOptions) StatusPatroller
type Stop ¶
func NewGeminiStop ¶
func NewGeminiStop(ops utils.ClusterOptions) Stop
type Uninstall ¶
func NewGeminiUninstaller ¶
func NewGeminiUninstaller(ops utils.ClusterOptions) Uninstall
type UploadAction ¶
type UploadAction struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.