deploy

package
v0.0.0-...-ced8162 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StandaloneScript = "deploy_standalone.sh"
	ClusterScript    = "deploy_cluster.sh"

	RedisShake     = "redis-shake"
	RedisShakeConf = "redis-shake.conf"

	CmdStart = "start"
	CmdStop  = "stop"
)

Variables

This section is empty.

Functions

func Deploy

func Deploy(tp string, port int, cmd string, node int) error

* tp: standalone, cluster * port: redis-server port * cmd: start/stop * node: node number, only used in cluster

func StartShake

func StartShake(shakeDir, runDir string, conf map[string]interface{}, mode string) error

start redis-shake with given configuration, mode means sync/rump/dump/restore/decode

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL