Documentation ¶
Index ¶
- type AlertManagerScript
- func (c *AlertManagerScript) AppendEndpoints(ends []*AlertManagerScript) *AlertManagerScript
- func (c *AlertManagerScript) Config() ([]byte, error)
- func (c *AlertManagerScript) ConfigToFile(file string) error
- func (c *AlertManagerScript) ConfigWithTemplate(tpl string) ([]byte, error)
- func (c *AlertManagerScript) WithClusterPort(port int) *AlertManagerScript
- func (c *AlertManagerScript) WithNumaNode(numa string) *AlertManagerScript
- func (c *AlertManagerScript) WithWebPort(port int) *AlertManagerScript
- type BlackboxExporterScript
- func (c *BlackboxExporterScript) Config() ([]byte, error)
- func (c *BlackboxExporterScript) ConfigToFile(file string) error
- func (c *BlackboxExporterScript) ConfigWithTemplate(tpl string) ([]byte, error)
- func (c *BlackboxExporterScript) WithNumaNode(numa string) *BlackboxExporterScript
- func (c *BlackboxExporterScript) WithPort(port uint64) *BlackboxExporterScript
- type CDCScript
- func (c *CDCScript) AppendEndpoints(ends ...*PDScript) *CDCScript
- func (c *CDCScript) Config() ([]byte, error)
- func (c *CDCScript) ConfigToFile(file string) error
- func (c *CDCScript) ConfigWithTemplate(tpl string) ([]byte, error)
- func (c *CDCScript) WithNumaNode(numa string) *CDCScript
- func (c *CDCScript) WithPort(port int) *CDCScript
- type DMMasterScript
- func (c *DMMasterScript) AppendEndpoints(ends ...*DMMasterScript) *DMMasterScript
- func (c *DMMasterScript) Config() ([]byte, error)
- func (c *DMMasterScript) ConfigToFile(file string) error
- func (c *DMMasterScript) ConfigWithTemplate(tpl string) ([]byte, error)
- func (c *DMMasterScript) WithNumaNode(numa string) *DMMasterScript
- func (c *DMMasterScript) WithPeerPort(port int) *DMMasterScript
- func (c *DMMasterScript) WithPort(port int) *DMMasterScript
- func (c *DMMasterScript) WithScheme(scheme string) *DMMasterScript
- type DMWorkerScript
- func (c *DMWorkerScript) AppendEndpoints(ends ...*DMMasterScript) *DMWorkerScript
- func (c *DMWorkerScript) Config() ([]byte, error)
- func (c *DMWorkerScript) ConfigToFile(file string) error
- func (c *DMWorkerScript) ConfigWithTemplate(tpl string) ([]byte, error)
- func (c *DMWorkerScript) WithNumaNode(numa string) *DMWorkerScript
- func (c *DMWorkerScript) WithPort(port int) *DMWorkerScript
- type DrainerScript
- func (c *DrainerScript) AppendEndpoints(ends ...*PDScript) *DrainerScript
- func (c *DrainerScript) Config() ([]byte, error)
- func (c *DrainerScript) ConfigToFile(file string) error
- func (c *DrainerScript) ConfigWithTemplate(tpl string) ([]byte, error)
- func (c *DrainerScript) WithCommitTs(ts int64) *DrainerScript
- func (c *DrainerScript) WithNumaNode(numa string) *DrainerScript
- func (c *DrainerScript) WithPort(port int) *DrainerScript
- type GrafanaScript
- type NodeExporterScript
- func (c *NodeExporterScript) Config() ([]byte, error)
- func (c *NodeExporterScript) ConfigToFile(file string) error
- func (c *NodeExporterScript) ConfigWithTemplate(tpl string) ([]byte, error)
- func (c *NodeExporterScript) WithNumaNode(numa string) *NodeExporterScript
- func (c *NodeExporterScript) WithPort(port uint64) *NodeExporterScript
- type PDScaleScript
- func (c *PDScaleScript) AppendEndpoints(ends ...*PDScript) *PDScaleScript
- func (c *PDScaleScript) Config() ([]byte, error)
- func (c *PDScaleScript) ConfigToFile(file string) error
- func (c *PDScaleScript) WithClientPort(port int) *PDScaleScript
- func (c *PDScaleScript) WithNumaNode(numa string) *PDScaleScript
- func (c *PDScaleScript) WithPeerPort(port int) *PDScaleScript
- func (c *PDScaleScript) WithScheme(scheme string) *PDScaleScript
- type PDScript
- func (c *PDScript) AppendEndpoints(ends ...*PDScript) *PDScript
- func (c *PDScript) Config() ([]byte, error)
- func (c *PDScript) ConfigToFile(file string) error
- func (c *PDScript) ConfigWithTemplate(tpl string) ([]byte, error)
- func (c *PDScript) WithClientPort(port int) *PDScript
- func (c *PDScript) WithNumaNode(numa string) *PDScript
- func (c *PDScript) WithPeerPort(port int) *PDScript
- func (c *PDScript) WithScheme(scheme string) *PDScript
- type PrometheusScript
- func (c *PrometheusScript) Config() ([]byte, error)
- func (c *PrometheusScript) ConfigToFile(file string) error
- func (c *PrometheusScript) ConfigWithTemplate(tpl string) ([]byte, error)
- func (c *PrometheusScript) WithNumaNode(numa string) *PrometheusScript
- func (c *PrometheusScript) WithPort(port int) *PrometheusScript
- type PumpScript
- func (c *PumpScript) AppendEndpoints(ends ...*PDScript) *PumpScript
- func (c *PumpScript) Config() ([]byte, error)
- func (c *PumpScript) ConfigToFile(file string) error
- func (c *PumpScript) ConfigWithTemplate(tpl string) ([]byte, error)
- func (c *PumpScript) WithNumaNode(numa string) *PumpScript
- func (c *PumpScript) WithPort(port int) *PumpScript
- type TiDBScript
- func (c *TiDBScript) AppendEndpoints(ends ...*PDScript) *TiDBScript
- func (c *TiDBScript) Config() ([]byte, error)
- func (c *TiDBScript) ConfigToFile(file string) error
- func (c *TiDBScript) ConfigWithTemplate(tpl string) ([]byte, error)
- func (c *TiDBScript) WithNumaNode(numa string) *TiDBScript
- func (c *TiDBScript) WithPort(port int) *TiDBScript
- func (c *TiDBScript) WithStatusPort(port int) *TiDBScript
- type TiFlashScript
- func (c *TiFlashScript) AppendEndpoints(ends ...*PDScript) *TiFlashScript
- func (c *TiFlashScript) Config() ([]byte, error)
- func (c *TiFlashScript) ConfigToFile(file string) error
- func (c *TiFlashScript) ConfigWithTemplate(tpl string) ([]byte, error)
- func (c *TiFlashScript) WithFlashProxyPort(port int) *TiFlashScript
- func (c *TiFlashScript) WithFlashProxyStatusPort(port int) *TiFlashScript
- func (c *TiFlashScript) WithFlashServicePort(port int) *TiFlashScript
- func (c *TiFlashScript) WithHTTPPort(port int) *TiFlashScript
- func (c *TiFlashScript) WithNumaNode(numa string) *TiFlashScript
- func (c *TiFlashScript) WithStatusPort(port int) *TiFlashScript
- func (c *TiFlashScript) WithTCPPort(port int) *TiFlashScript
- func (c *TiFlashScript) WithTmpDir(tmpDir string) *TiFlashScript
- type TiKVScript
- func (c *TiKVScript) AppendEndpoints(ends ...*PDScript) *TiKVScript
- func (c *TiKVScript) Config() ([]byte, error)
- func (c *TiKVScript) ConfigToFile(file string) error
- func (c *TiKVScript) ConfigWithTemplate(tpl string) ([]byte, error)
- func (c *TiKVScript) WithNumaNode(numa string) *TiKVScript
- func (c *TiKVScript) WithPort(port int) *TiKVScript
- func (c *TiKVScript) WithStatusPort(port int) *TiKVScript
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertManagerScript ¶
type AlertManagerScript struct { IP string WebPort int ClusterPort int DeployDir string DataDir string LogDir string NumaNode string EndPoints []*AlertManagerScript }
AlertManagerScript represent the data to generate AlertManager start script
func NewAlertManagerScript ¶
func NewAlertManagerScript(ip, deployDir, dataDir, logDir string) *AlertManagerScript
NewAlertManagerScript returns a AlertManagerScript with given arguments
func (*AlertManagerScript) AppendEndpoints ¶ added in v0.6.0
func (c *AlertManagerScript) AppendEndpoints(ends []*AlertManagerScript) *AlertManagerScript
AppendEndpoints add new alert manager to Endpoints field
func (*AlertManagerScript) Config ¶
func (c *AlertManagerScript) Config() ([]byte, error)
Config generate the config file data.
func (*AlertManagerScript) ConfigToFile ¶
func (c *AlertManagerScript) ConfigToFile(file string) error
ConfigToFile write config content to specific path
func (*AlertManagerScript) ConfigWithTemplate ¶
func (c *AlertManagerScript) ConfigWithTemplate(tpl string) ([]byte, error)
ConfigWithTemplate generate the AlertManager config content by tpl
func (*AlertManagerScript) WithClusterPort ¶
func (c *AlertManagerScript) WithClusterPort(port int) *AlertManagerScript
WithClusterPort set WebPort field of AlertManagerScript
func (*AlertManagerScript) WithNumaNode ¶
func (c *AlertManagerScript) WithNumaNode(numa string) *AlertManagerScript
WithNumaNode set NumaNode field of AlertManagerScript
func (*AlertManagerScript) WithWebPort ¶
func (c *AlertManagerScript) WithWebPort(port int) *AlertManagerScript
WithWebPort set WebPort field of AlertManagerScript
type BlackboxExporterScript ¶
BlackboxExporterScript represent the data to generate BlackboxExporter config
func NewBlackboxExporterScript ¶
func NewBlackboxExporterScript(deployDir, logDir string) *BlackboxExporterScript
NewBlackboxExporterScript returns a BlackboxExporterScript with given arguments
func (*BlackboxExporterScript) Config ¶
func (c *BlackboxExporterScript) Config() ([]byte, error)
Config generate the config file data.
func (*BlackboxExporterScript) ConfigToFile ¶
func (c *BlackboxExporterScript) ConfigToFile(file string) error
ConfigToFile write config content to specific path
func (*BlackboxExporterScript) ConfigWithTemplate ¶
func (c *BlackboxExporterScript) ConfigWithTemplate(tpl string) ([]byte, error)
ConfigWithTemplate generate the BlackboxExporter config content by tpl
func (*BlackboxExporterScript) WithNumaNode ¶
func (c *BlackboxExporterScript) WithNumaNode(numa string) *BlackboxExporterScript
WithNumaNode set NumaNode field of BlackboxExporterScript
func (*BlackboxExporterScript) WithPort ¶
func (c *BlackboxExporterScript) WithPort(port uint64) *BlackboxExporterScript
WithPort set WebPort field of BlackboxExporterScript
type CDCScript ¶ added in v0.6.0
type CDCScript struct { IP string Port int DeployDir string LogDir string NumaNode string Endpoints []*PDScript }
CDCScript represent the data to generate cdc config
func NewCDCScript ¶ added in v0.6.0
NewCDCScript returns a CDCScript with given arguments
func (*CDCScript) AppendEndpoints ¶ added in v0.6.0
AppendEndpoints add new PDScript to Endpoints field
func (*CDCScript) ConfigToFile ¶ added in v0.6.0
ConfigToFile write config content to specific file.
func (*CDCScript) ConfigWithTemplate ¶ added in v0.6.0
ConfigWithTemplate generate the CDC config content by tpl
func (*CDCScript) WithNumaNode ¶ added in v0.6.0
WithNumaNode set NumaNode field of TiKVScript
type DMMasterScript ¶ added in v0.5.0
type DMMasterScript struct { Name string Scheme string IP string Port int PeerPort int DeployDir string DataDir string LogDir string NumaNode string Endpoints []*DMMasterScript }
DMMasterScript represent the data to generate TiDB config
func NewDMMasterScript ¶ added in v0.5.0
func NewDMMasterScript(name, ip, deployDir, dataDir, logDir string) *DMMasterScript
NewDMMasterScript returns a DMMasterScript with given arguments
func (*DMMasterScript) AppendEndpoints ¶ added in v0.5.0
func (c *DMMasterScript) AppendEndpoints(ends ...*DMMasterScript) *DMMasterScript
AppendEndpoints add new DMMasterScript to Endpoints field
func (*DMMasterScript) Config ¶ added in v0.5.0
func (c *DMMasterScript) Config() ([]byte, error)
Config generate the config file data.
func (*DMMasterScript) ConfigToFile ¶ added in v0.5.0
func (c *DMMasterScript) ConfigToFile(file string) error
ConfigToFile write config content to specific path
func (*DMMasterScript) ConfigWithTemplate ¶ added in v0.5.0
func (c *DMMasterScript) ConfigWithTemplate(tpl string) ([]byte, error)
ConfigWithTemplate generate the TiDB config content by tpl
func (*DMMasterScript) WithNumaNode ¶ added in v0.5.0
func (c *DMMasterScript) WithNumaNode(numa string) *DMMasterScript
WithNumaNode set NumaNode field of DMMasterScript
func (*DMMasterScript) WithPeerPort ¶ added in v0.5.0
func (c *DMMasterScript) WithPeerPort(port int) *DMMasterScript
WithPeerPort set PeerPort field of DMMasterScript
func (*DMMasterScript) WithPort ¶ added in v0.5.0
func (c *DMMasterScript) WithPort(port int) *DMMasterScript
WithPort set Port field of DMMasterScript
func (*DMMasterScript) WithScheme ¶ added in v0.5.0
func (c *DMMasterScript) WithScheme(scheme string) *DMMasterScript
WithScheme set Scheme field of PDScript
type DMWorkerScript ¶ added in v0.5.0
type DMWorkerScript struct { Name string IP string Port int DeployDir string LogDir string NumaNode string Endpoints []*DMMasterScript }
DMWorkerScript represent the data to generate TiDB config
func NewDMWorkerScript ¶ added in v0.5.0
func NewDMWorkerScript(name, ip, deployDir, logDir string) *DMWorkerScript
NewDMWorkerScript returns a DMWorkerScript with given arguments
func (*DMWorkerScript) AppendEndpoints ¶ added in v0.5.0
func (c *DMWorkerScript) AppendEndpoints(ends ...*DMMasterScript) *DMWorkerScript
AppendEndpoints add new PDScript to Endpoints field
func (*DMWorkerScript) Config ¶ added in v0.5.0
func (c *DMWorkerScript) Config() ([]byte, error)
Config generate the config file data.
func (*DMWorkerScript) ConfigToFile ¶ added in v0.5.0
func (c *DMWorkerScript) ConfigToFile(file string) error
ConfigToFile write config content to specific path
func (*DMWorkerScript) ConfigWithTemplate ¶ added in v0.5.0
func (c *DMWorkerScript) ConfigWithTemplate(tpl string) ([]byte, error)
ConfigWithTemplate generate the DM worker config content by tpl
func (*DMWorkerScript) WithNumaNode ¶ added in v0.5.0
func (c *DMWorkerScript) WithNumaNode(numa string) *DMWorkerScript
WithNumaNode set NumaNode field of DMWorkerScript
func (*DMWorkerScript) WithPort ¶ added in v0.5.0
func (c *DMWorkerScript) WithPort(port int) *DMWorkerScript
WithPort set Port field of DMWorkerScript
type DrainerScript ¶
type DrainerScript struct { NodeID string IP string Port int DeployDir string DataDir string LogDir string NumaNode string CommitTs int64 Endpoints []*PDScript }
DrainerScript represent the data to generate drainer config
func NewDrainerScript ¶
func NewDrainerScript(nodeID, ip, deployDir, dataDir, logDir string) *DrainerScript
NewDrainerScript returns a DrainerScript with given arguments
func (*DrainerScript) AppendEndpoints ¶
func (c *DrainerScript) AppendEndpoints(ends ...*PDScript) *DrainerScript
AppendEndpoints add new DrainerScript to Endpoints field
func (*DrainerScript) Config ¶
func (c *DrainerScript) Config() ([]byte, error)
Config generate the config file data.
func (*DrainerScript) ConfigToFile ¶
func (c *DrainerScript) ConfigToFile(file string) error
ConfigToFile write config content to specific file.
func (*DrainerScript) ConfigWithTemplate ¶
func (c *DrainerScript) ConfigWithTemplate(tpl string) ([]byte, error)
ConfigWithTemplate generate the Drainer config content by tpl
func (*DrainerScript) WithCommitTs ¶
func (c *DrainerScript) WithCommitTs(ts int64) *DrainerScript
WithCommitTs set CommitTs field of DrainerScript
func (*DrainerScript) WithNumaNode ¶
func (c *DrainerScript) WithNumaNode(numa string) *DrainerScript
WithNumaNode set NumaNode field of DrainerScript
func (*DrainerScript) WithPort ¶
func (c *DrainerScript) WithPort(port int) *DrainerScript
WithPort set Port field of DrainerScript
type GrafanaScript ¶
GrafanaScript represent the data to generate Grafana config
func NewGrafanaScript ¶
func NewGrafanaScript(cluster, deployDir string) *GrafanaScript
NewGrafanaScript returns a GrafanaScript with given arguments
func (*GrafanaScript) Config ¶
func (c *GrafanaScript) Config() ([]byte, error)
Config generate the config file data.
func (*GrafanaScript) ConfigToFile ¶
func (c *GrafanaScript) ConfigToFile(file string) error
ConfigToFile write config content to specific path
func (*GrafanaScript) ConfigWithTemplate ¶
func (c *GrafanaScript) ConfigWithTemplate(tpl string) ([]byte, error)
ConfigWithTemplate generate the Grafana config content by tpl
func (*GrafanaScript) WithNumaNode ¶
func (c *GrafanaScript) WithNumaNode(numa string) *GrafanaScript
WithNumaNode set NumaNode field of GrafanaScript
type NodeExporterScript ¶
NodeExporterScript represent the data to generate NodeExporter config
func NewNodeExporterScript ¶
func NewNodeExporterScript(deployDir, logDir string) *NodeExporterScript
NewNodeExporterScript returns a NodeExporterScript with given arguments
func (*NodeExporterScript) Config ¶
func (c *NodeExporterScript) Config() ([]byte, error)
Config generate the config file data.
func (*NodeExporterScript) ConfigToFile ¶
func (c *NodeExporterScript) ConfigToFile(file string) error
ConfigToFile write config content to specific path
func (*NodeExporterScript) ConfigWithTemplate ¶
func (c *NodeExporterScript) ConfigWithTemplate(tpl string) ([]byte, error)
ConfigWithTemplate generate the NodeExporter config content by tpl
func (*NodeExporterScript) WithNumaNode ¶
func (c *NodeExporterScript) WithNumaNode(numa string) *NodeExporterScript
WithNumaNode set NumaNode field of NodeExporterScript
func (*NodeExporterScript) WithPort ¶
func (c *NodeExporterScript) WithPort(port uint64) *NodeExporterScript
WithPort set Port field of NodeExporterScript
type PDScaleScript ¶
type PDScaleScript struct {
PDScript
}
PDScaleScript represent the data to generate pd config on scaling
func NewPDScaleScript ¶
func NewPDScaleScript(name, ip, deployDir, dataDir, logDir string) *PDScaleScript
NewPDScaleScript return a new PDScaleScript
func (*PDScaleScript) AppendEndpoints ¶
func (c *PDScaleScript) AppendEndpoints(ends ...*PDScript) *PDScaleScript
AppendEndpoints add new PDScaleScript to Endpoints field
func (*PDScaleScript) Config ¶
func (c *PDScaleScript) Config() ([]byte, error)
Config generate the config file data.
func (*PDScaleScript) ConfigToFile ¶
func (c *PDScaleScript) ConfigToFile(file string) error
ConfigToFile write config content to specific path
func (*PDScaleScript) WithClientPort ¶
func (c *PDScaleScript) WithClientPort(port int) *PDScaleScript
WithClientPort set ClientPort field of PDScaleScript
func (*PDScaleScript) WithNumaNode ¶
func (c *PDScaleScript) WithNumaNode(numa string) *PDScaleScript
WithNumaNode set NumaNode field of PDScaleScript
func (*PDScaleScript) WithPeerPort ¶
func (c *PDScaleScript) WithPeerPort(port int) *PDScaleScript
WithPeerPort set PeerPort field of PDScript
func (*PDScaleScript) WithScheme ¶
func (c *PDScaleScript) WithScheme(scheme string) *PDScaleScript
WithScheme set Scheme field of PDScaleScript
type PDScript ¶
type PDScript struct { Name string Scheme string IP string ClientPort int PeerPort int DeployDir string DataDir string LogDir string NumaNode string Endpoints []*PDScript }
PDScript represent the data to generate pd config
func NewPDScript ¶
NewPDScript returns a PDScript with given arguments
func (*PDScript) AppendEndpoints ¶
AppendEndpoints add new PDScript to Endpoints field
func (*PDScript) ConfigToFile ¶
ConfigToFile write config content to specific path
func (*PDScript) ConfigWithTemplate ¶
ConfigWithTemplate generate the PD config content by tpl
func (*PDScript) WithClientPort ¶
WithClientPort set ClientPort field of PDScript
func (*PDScript) WithNumaNode ¶
WithNumaNode set NumaNode field of PDScript
func (*PDScript) WithPeerPort ¶
WithPeerPort set PeerPort field of PDScript
func (*PDScript) WithScheme ¶
WithScheme set Scheme field of PDScript
type PrometheusScript ¶
type PrometheusScript struct { IP string Port int DeployDir string DataDir string LogDir string NumaNode string }
PrometheusScript represent the data to generate Prometheus config
func NewPrometheusScript ¶
func NewPrometheusScript(ip, deployDir, dataDir, logDir string) *PrometheusScript
NewPrometheusScript returns a PrometheusScript with given arguments
func (*PrometheusScript) Config ¶
func (c *PrometheusScript) Config() ([]byte, error)
Config generate the config file data.
func (*PrometheusScript) ConfigToFile ¶
func (c *PrometheusScript) ConfigToFile(file string) error
ConfigToFile write config content to specific path
func (*PrometheusScript) ConfigWithTemplate ¶
func (c *PrometheusScript) ConfigWithTemplate(tpl string) ([]byte, error)
ConfigWithTemplate generate the Prometheus config content by tpl
func (*PrometheusScript) WithNumaNode ¶
func (c *PrometheusScript) WithNumaNode(numa string) *PrometheusScript
WithNumaNode set NumaNode field of PrometheusScript
func (*PrometheusScript) WithPort ¶
func (c *PrometheusScript) WithPort(port int) *PrometheusScript
WithPort set Port field of PrometheusScript
type PumpScript ¶
type PumpScript struct { NodeID string Host string Port int DeployDir string DataDir string LogDir string NumaNode string CommitTs int64 Endpoints []*PDScript }
PumpScript represent the data to generate Pump config
func NewPumpScript ¶
func NewPumpScript(nodeID, host, deployDir, dataDir, logDir string) *PumpScript
NewPumpScript returns a PumpScript with given arguments
func (*PumpScript) AppendEndpoints ¶
func (c *PumpScript) AppendEndpoints(ends ...*PDScript) *PumpScript
AppendEndpoints add new PumpScript to Endpoints field
func (*PumpScript) Config ¶
func (c *PumpScript) Config() ([]byte, error)
Config generate the config file data.
func (*PumpScript) ConfigToFile ¶
func (c *PumpScript) ConfigToFile(file string) error
ConfigToFile write config content to specific file.
func (*PumpScript) ConfigWithTemplate ¶
func (c *PumpScript) ConfigWithTemplate(tpl string) ([]byte, error)
ConfigWithTemplate generate the Pump config content by tpl
func (*PumpScript) WithNumaNode ¶
func (c *PumpScript) WithNumaNode(numa string) *PumpScript
WithNumaNode set NumaNode field of PumpScript
func (*PumpScript) WithPort ¶
func (c *PumpScript) WithPort(port int) *PumpScript
WithPort set Port field of PumpScript
type TiDBScript ¶
type TiDBScript struct { IP string Port int StatusPort int DeployDir string LogDir string NumaNode string Endpoints []*PDScript }
TiDBScript represent the data to generate TiDB config
func NewTiDBScript ¶
func NewTiDBScript(ip, deployDir, logDir string) *TiDBScript
NewTiDBScript returns a TiDBScript with given arguments
func (*TiDBScript) AppendEndpoints ¶
func (c *TiDBScript) AppendEndpoints(ends ...*PDScript) *TiDBScript
AppendEndpoints add new PDScript to Endpoints field
func (*TiDBScript) Config ¶
func (c *TiDBScript) Config() ([]byte, error)
Config generate the config file data.
func (*TiDBScript) ConfigToFile ¶
func (c *TiDBScript) ConfigToFile(file string) error
ConfigToFile write config content to specific path
func (*TiDBScript) ConfigWithTemplate ¶
func (c *TiDBScript) ConfigWithTemplate(tpl string) ([]byte, error)
ConfigWithTemplate generate the TiDB config content by tpl
func (*TiDBScript) WithNumaNode ¶
func (c *TiDBScript) WithNumaNode(numa string) *TiDBScript
WithNumaNode set NumaNode field of TiDBScript
func (*TiDBScript) WithPort ¶
func (c *TiDBScript) WithPort(port int) *TiDBScript
WithPort set Port field of TiDBScript
func (*TiDBScript) WithStatusPort ¶
func (c *TiDBScript) WithStatusPort(port int) *TiDBScript
WithStatusPort set StatusPort field of TiDBScript
type TiFlashScript ¶
type TiFlashScript struct { IP string TCPPort int HTTPPort int FlashServicePort int FlashProxyPort int FlashProxyStatusPort int StatusPort int DeployDir string DataDir string LogDir string TmpDir string NumaNode string Endpoints []*PDScript TiDBStatusAddrs string PDAddrs string }
TiFlashScript represent the data to generate TiFlash config
func NewTiFlashScript ¶
func NewTiFlashScript(ip, deployDir, dataDir string, logDir string, tidbStatusAddrs string, pdAddrs string) *TiFlashScript
NewTiFlashScript returns a TiFlashScript with given arguments
func (*TiFlashScript) AppendEndpoints ¶
func (c *TiFlashScript) AppendEndpoints(ends ...*PDScript) *TiFlashScript
AppendEndpoints add new PDScript to Endpoints field
func (*TiFlashScript) Config ¶
func (c *TiFlashScript) Config() ([]byte, error)
Config generate the config file data.
func (*TiFlashScript) ConfigToFile ¶
func (c *TiFlashScript) ConfigToFile(file string) error
ConfigToFile write config content to specific path
func (*TiFlashScript) ConfigWithTemplate ¶
func (c *TiFlashScript) ConfigWithTemplate(tpl string) ([]byte, error)
ConfigWithTemplate generate the TiFlash config content by tpl
func (*TiFlashScript) WithFlashProxyPort ¶
func (c *TiFlashScript) WithFlashProxyPort(port int) *TiFlashScript
WithFlashProxyPort set FlashProxyPort field of TiFlashScript
func (*TiFlashScript) WithFlashProxyStatusPort ¶
func (c *TiFlashScript) WithFlashProxyStatusPort(port int) *TiFlashScript
WithFlashProxyStatusPort set FlashProxyStatusPort field of TiFlashScript
func (*TiFlashScript) WithFlashServicePort ¶
func (c *TiFlashScript) WithFlashServicePort(port int) *TiFlashScript
WithFlashServicePort set FlashServicePort field of TiFlashScript
func (*TiFlashScript) WithHTTPPort ¶
func (c *TiFlashScript) WithHTTPPort(port int) *TiFlashScript
WithHTTPPort set HTTPPort field of TiFlashScript
func (*TiFlashScript) WithNumaNode ¶
func (c *TiFlashScript) WithNumaNode(numa string) *TiFlashScript
WithNumaNode set NumaNode field of TiFlashScript
func (*TiFlashScript) WithStatusPort ¶
func (c *TiFlashScript) WithStatusPort(port int) *TiFlashScript
WithStatusPort set FlashProxyStatusPort field of TiFlashScript
func (*TiFlashScript) WithTCPPort ¶
func (c *TiFlashScript) WithTCPPort(port int) *TiFlashScript
WithTCPPort set TCPPort field of TiFlashScript
func (*TiFlashScript) WithTmpDir ¶ added in v0.4.9
func (c *TiFlashScript) WithTmpDir(tmpDir string) *TiFlashScript
WithTmpDir set TmpDir field of TiFlashScript
type TiKVScript ¶
type TiKVScript struct { IP string Port int StatusPort int DeployDir string DataDir string LogDir string NumaNode string Endpoints []*PDScript }
TiKVScript represent the data to generate TiKV config
func NewTiKVScript ¶
func NewTiKVScript(ip, deployDir, dataDir, logDir string) *TiKVScript
NewTiKVScript returns a TiKVScript with given arguments
func (*TiKVScript) AppendEndpoints ¶
func (c *TiKVScript) AppendEndpoints(ends ...*PDScript) *TiKVScript
AppendEndpoints add new PDScript to Endpoints field
func (*TiKVScript) Config ¶
func (c *TiKVScript) Config() ([]byte, error)
Config generate the config file data.
func (*TiKVScript) ConfigToFile ¶
func (c *TiKVScript) ConfigToFile(file string) error
ConfigToFile write config content to specific path
func (*TiKVScript) ConfigWithTemplate ¶
func (c *TiKVScript) ConfigWithTemplate(tpl string) ([]byte, error)
ConfigWithTemplate generate the TiKV config content by tpl
func (*TiKVScript) WithNumaNode ¶
func (c *TiKVScript) WithNumaNode(numa string) *TiKVScript
WithNumaNode set NumaNode field of TiKVScript
func (*TiKVScript) WithPort ¶
func (c *TiKVScript) WithPort(port int) *TiKVScript
WithPort set Port field of TiKVScript
func (*TiKVScript) WithStatusPort ¶
func (c *TiKVScript) WithStatusPort(port int) *TiKVScript
WithStatusPort set StatusPort field of TiKVScript