Description Usage Arguments Value Examples
See https://www.consul.io/ for more about Consul.
1 2 3 | get_kv(key)
get_batch_kv(path, ...)
|
key |
Key name to retrieve |
path |
Path name to retrieve |
... |
One or many keys under path to retrieve. All but path name will be coersed into a list. |
Decoded value retrieved from Consul. 'NA' if empty.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# Return a string
get_kv("fruit/apple")
# Return a list of values
get_batch_kv("fruit", c("apple", "banana", "coconut"))
# This works too
get_batch_kv("fruit", "apple", "banana", "coconut")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.