Beispiel #1
0
func initializeServices(clusterName string) {
	remote := c_GRU_REMOTE + clusterName + "/" + c_SERVICES_REMOTE
	services := cfg.ReadServices(remote)
	cfg.SetServices(services)
}
Beispiel #2
0
func updateServices(cluster string) {
	remote := c_GRU_REMOTE + cluster + "/" + c_SERVICES_REMOTE
	services := cfg.ReadServices(remote)
	cfg.SetServices(services)
	log.WithField("services", services).Debugln("Services updated from remote")
}
Beispiel #3
0
func GetServices(clusterName string) []cfg.Service {
	remote := c_GRU_REMOTE + clusterName + "/services"
	return cfg.ReadServices(remote)
}