e3w
e3w copied to clipboard
why can not set root_key to "/" or ""
Is that say can not manager the real etcd root key "/"?
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.
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!
+1
+1
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 ?
just because the dir in e3w has a special value, that e3h seted,
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.
+1 !
+1
+1
Recommended use https://github.com/shiguanghuxian/etcd-manage