Project

consul-fs

0.0
No commit activity in last 3 years
No release in over 3 years
Mount the Consul KV store as a filesystem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Consul FS

Proof-of-concept fuse adapter for Consul KV store. Allows you to browse the store as a filesystem.

Only works on linux.

apt-get install libfuse-dev

gem install consul-fs
mkdir consul-kv

consul-fs consul-kv

That mounts a fuse system in the consul-kv directory.

> curl -X PUT --data "hello" localhost:8500/v1/kv/one
> curl -X PUT --data "world" localhost:8500/v1/kv/two
> curl -X PUT --data "!!!" localhost:8500/v1/kv/sub/three
> ls consul-kv
sub/ one two
> ls consul-kv/sub
three
> cat consul-kv/one && echo
hello

Development

A Vagrantfile is provided, so just vagrant up and you are on your way.