Exemplo n.º 1
0
// Destroy all the nodes in the cluster
func destroyCluster(etcds []*os.Process) error {
	for _, etcd := range etcds {
		etcd.Kill()
		etcd.Release()
	}
	return nil
}
Exemplo n.º 2
0
Arquivo: util.go Projeto: ronnylt/etcd
// Destroy all the nodes in the cluster
func DestroyCluster(etcds []*os.Process) error {
	for _, etcd := range etcds {
		err := etcd.Kill()
		if err != nil {
			panic(err.Error())
		}
		etcd.Release()
	}
	return nil
}
Exemplo n.º 3
0
Arquivo: test.go Projeto: juliusv/etcd
// Destroy all the nodes in the cluster
func destroyCluster(etcds []*os.Process) error {
	for i, etcd := range etcds {
		err := etcd.Kill()
		fmt.Println("kill ", i)
		if err != nil {
			panic(err.Error())
		}
		etcd.Release()
	}
	return nil
}