Comments (5)
What do you mean by a "a tree of key/value(s)"?
What would the structure look like? Are you suggesting it should create a path component from the index of your array, like this?
AAPL/0/shares: -75.088
AAPL/0/date: 11/27/2015
AAPL/1/shares: 75.088
AAPL/1/date: 11/26/2015
Or something different?
Consul can only store simple values at a given path, so I don't see a logical way to do this...
Sorry if I'm missing something obvious! 🙂
from consulator.
I've narrowed it down to array of objects:
Example:
AAPL:
- shares: -75.088
date: 11/27/2015
- shares: 75.088
date: 11/26/2015
This fails to import.
from consulator.
Currently, it's intentionally not supported.
If it were to be supported, how would you expect it to be represented in Consul?
from consulator.
As a tree of key/value(s) of course :) -- My consumer here is Consul Template and I was trying to use the {{ tree "<prefix>" }}
function but since consulator can't import such things I've opted for:
config:
nested_json: |
<json here>
from consulator.
No you are absolutely right! I don't know what I was thinking :P -- Long day!
It makes no sense to import an array of objects. Thanks for confirming my silliness :D
from consulator.
Related Issues (11)
- Move to subcommand-driven cli
- Optional purge / delete HOT 1
- Handle tar archives directly
- Performance: don't walk the destination kv tree for `import`
- Is this project still updated? HOT 1
- format error HOT 6
- Add examples for consulator dump HOT 3
- Export support? HOT 6
- Explain `[ path ...]` HOT 4
- Transactions endpoint for populating KV store HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from consulator.