Documentation ¶
Index ¶
- Constants
- func AddCkClusterNode(conf *model.CKManClickHouseConfig, req *model.AddNodeReq) error
- func DeleteCkClusterNode(conf *model.CKManClickHouseConfig, ip string) error
- func DestroyCkCluster(conf *model.CKManClickHouseConfig) error
- func GenerateMacrosTemplate(templateFile string, conf *model.CkDeployConfig, hostIp string) (string, error)
- func GenerateMetrikaTemplate(templateFile string, conf *model.CkDeployConfig, hostIp string) (string, error)
- func ParseConfigTemplate(templateFile string, conf CkConfigTemplate) (string, error)
- func StartCkCluster(conf *model.CKManClickHouseConfig) error
- func StopCkCluster(conf *model.CKManClickHouseConfig) error
- func UpgradeCkCluster(conf *model.CKManClickHouseConfig, version string) error
- type CKDeploy
- func (d *CKDeploy) Check() error
- func (d *CKDeploy) Config() error
- func (d *CKDeploy) Init(base *DeployBase, conf interface{}) error
- func (d *CKDeploy) Install() error
- func (d *CKDeploy) Prepare() error
- func (d *CKDeploy) Start() error
- func (d *CKDeploy) Stop() error
- func (d *CKDeploy) Uninstall() error
- func (d *CKDeploy) Upgrade() error
- type CKDeployFacotry
- type CkConfigTemplate
- type CkUpdateNodeParam
- type Cluster
- type Deploy
- type DeployBase
- type DeployFactory
- type HostInfo
- type Macro
- type MacroConf
- type Metrika
- type Node
- type Replica
- type Shard
- type ZKDeploy
- type ZKDeployFacotry
Constants ¶
View Source
const ( TmpWorkDirectory string = "/tmp/" CkClusterNodeAdd int = 1 CkClusterNodeDelete int = 2 )
Variables ¶
This section is empty.
Functions ¶
func AddCkClusterNode ¶
func AddCkClusterNode(conf *model.CKManClickHouseConfig, req *model.AddNodeReq) error
func DeleteCkClusterNode ¶
func DeleteCkClusterNode(conf *model.CKManClickHouseConfig, ip string) error
func DestroyCkCluster ¶
func DestroyCkCluster(conf *model.CKManClickHouseConfig) error
func GenerateMacrosTemplate ¶ added in v1.3.3
func GenerateMetrikaTemplate ¶
func ParseConfigTemplate ¶
func ParseConfigTemplate(templateFile string, conf CkConfigTemplate) (string, error)
func StartCkCluster ¶
func StartCkCluster(conf *model.CKManClickHouseConfig) error
func StopCkCluster ¶
func StopCkCluster(conf *model.CKManClickHouseConfig) error
func UpgradeCkCluster ¶
func UpgradeCkCluster(conf *model.CKManClickHouseConfig, version string) error
Types ¶
type CKDeploy ¶
type CKDeploy struct { DeployBase Conf *model.CkDeployConfig HostInfos []HostInfo }
func (*CKDeploy) Init ¶
func (d *CKDeploy) Init(base *DeployBase, conf interface{}) error
type CKDeployFacotry ¶
type CKDeployFacotry struct{}
func (CKDeployFacotry) Create ¶
func (CKDeployFacotry) Create() Deploy
type CkConfigTemplate ¶
type CkUpdateNodeParam ¶
type DeployBase ¶
type ZKDeploy ¶
type ZKDeploy struct {
DeployBase
}
func (*ZKDeploy) Init ¶
func (d *ZKDeploy) Init(base *DeployBase, conf interface{}) error
type ZKDeployFacotry ¶
type ZKDeployFacotry struct{}
func (ZKDeployFacotry) Create ¶
func (ZKDeployFacotry) Create() Deploy
Click to show internal directories.
Click to hide internal directories.