Skip to content
This repository was archived by the owner on May 29, 2018. It is now read-only.
sourcegraphPublic archive

About

Package rwvfs augments vfs to support write operations.

Resources

Stars

9 stars

Watchers

3 watching

Forks

Repository files navigation

rwvfs

Package rwvfs augments vfs to support write operations.

Build Status

HTTP VFS

This repository includes HTTP server and client implementations of a read-write virtual filesystem. The HTTP server is a Go http.Handler that exposes any underlying RWVFS via HTTP. The HTTP client is a Go implementation of rwvfs.FileSystem that communicates with an external HTTP server. They both speak the same API on top of HTTP; see the code for details.

To spin up a test client and server, follow these instructions. (They require Go and a $GOPATH set; as a quickstart, install the latest Go from golang.org and then run export GOPATH=$HOME; export PATH=$PATH:$GOPATH/bin.)

Server

go get sourcegraph.com/sourcegraph/rwvfs/httpvfs
httpvfs &

go get sourcegraph.com/sourcegraph/rwvfs/httpvfs-client
httpvfs-client ls .
echo hello | httpvfs-client put foo
httpvfs-client cat foo
httpvfs-client rm foo

Future roadmap

  • Add corresponding implementations of rwvfs.FileSystem for mapfs and zipfs

About

Package rwvfs augments vfs to support write operations.

Resources

Stars

9 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages

⌂ 换网址