Allows reading a mongodb as a fusefs.
ls mountpoint/
lists all collections in that databasels mountpoint/collection
lists all documents with their_id
as filenamecat mountpoint/collection/document
returns the document content withjson.MarshalIndent
- collections are only read on startup
- check some corner cases
- documents in
xxx.index
collections don't have_id
fields, so they aren't listed yet - maybe experiment with mgo's GridFS(http://godoc.org/labix.org/v2/mgo#GridFS)
- uses bazil.org/fuse/ for the fuse layer
- uses labix.org/mgo for the mgo connection