Example #1
0
func unsetFrontend(etcd *store.Etcd, identifier string) error {
	if err := etcd.DeleteDir(fmt.Sprintf("%s/frontends/%s", vulcandKeyBase, identifier), true); err != nil {
		return err
	}

	return nil
}
Example #2
0
func unsetServer(etcd *store.Etcd, projectName string) error {
	key := fmt.Sprintf("%s/backends/%s/servers", vulcandKeyBase, projectName)

	if err := etcd.DeleteDir(key, true); err != nil {
		return err
	}

	return nil
}