e3w icon indicating copy to clipboard operation
e3w copied to clipboard

why can not set root_key to "/" or ""

Open kitech opened this issue 7 years ago • 11 comments

Is that say can not manager the real etcd root key "/"?

kitech avatar Oct 14 '17 06:10 kitech

I think it is just for convenience to handle hierachy system in etcd. For path "parent1/parent2/child", it will set dir_value for "parent1" and "parent1/parent2". But if the root_key is "", it is not allowed to set the empty key in etcd. Also I could handle this special situation, but at that time I just want to make it easy I think.

soyking avatar Oct 14 '17 15:10 soyking

I have the same problem. I want to use e3w as a graphical browser of the content of etcd and this only works if I can set the root key as "/". Thanks for your great work!

cs224 avatar Nov 25 '17 18:11 cs224

+1

farahfa avatar Jan 03 '18 19:01 farahfa

+1

imacks avatar Mar 11 '18 05:03 imacks

Just had a read on the client repo. My understanding is that for path /parent/child, you will create a key called /parent, and a key called /parent/child? Then for /, you won't be able to create anything?

Would it be possible to set a special key (maybe called /.root) to emulate the / key? Then just make an exception to redirect / to /.root, and reject any attempt to create the /.root key in the ui.

I'm a newbie to go, but I'm a fast learner. Can you confirm my understanding is correct @soyking ?

imacks avatar Mar 11 '18 05:03 imacks

just because the dir in e3w has a special value, that e3h seted,

zhoulouzi avatar Apr 10 '18 03:04 zhoulouzi

I have the same requirement to have e3w as a browser, it would be good to set root key to "", so that I can go through the datas there.

lynic avatar Apr 12 '18 15:04 lynic

+1 !

ghost avatar May 31 '18 15:05 ghost

+1

epicsoft-llc avatar Jun 11 '18 18:06 epicsoft-llc

+1

xbox1994 avatar Jan 14 '19 13:01 xbox1994