Åke Persson
Åke Persson
You just need a recursive function that can traverse a nested struct using reflection. This is one example: https://github.com/mickep76/flatten/blob/master/flatten.go
No progress.
Saw you started on a patch for this, once you have it working I can merge it.
I'll add you as a participant; I don't actively maintain this. So it's good we have more contributors.
I could look into it, may I ask what is your main use-case for using etcdtool. Also do you have suggestions for improvements?
I'm not sure how useful import/export JSON/YAML/TOML is for etcd v3, since it doesn't support nested nodes anymore i.e. it's a flat key/value store. You could simulate a nested structure...
Ftm moment I haven't implemented v3 since it flattened the namespace and you can't really import/export a nested structure anymore. You can simulate it thought using a (dot) notation like:...
Suggestions as how to handle this is welcome either use a flat name space for import/export in etcdv3 or simulate a nested one.
I'm planning on supporting etcdv3, I started prototyping a backend that can support etcd v2/v3. https://github.com/mickep76/kvstore Atm. for etcdv3 there are some options included in the tools themselves.
Etcd only handles strings natively for a key, also it doesn't support lists per default this is simulated in this manner. I could add some logic that would assume that...