Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
fs
 
 
pkg
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Fake File System

Purpose

To create a simple interface for users to implement in memory filesystems.

API

Any struct that implementes the ffs.Fs interface detailed in ffs.go can make use of the server package to serve its files over HTTP and 9p.

The fsutil package implements in-memory files that are compatible with the ffs.Writer and ffs.File interface. The *os.File struct implements both of these as well.

Filesystems

  • Diskfs: Serve arbitrary folder from the host OS.
  • Pastefs: A fileserver for saving and sharing text snippets.
  • MKVfs: Creates files and folders for exploring mkv file structure.
  • Domainfs: Mux's between sub filesystem based on http header, or folders over 9p.
  • Mediafs: Filesystem counterpart to anidb2json.
  • Jukeboxfs: Parses directory to create file tree based on audio file metainfo

Usage

./ffs http_port https_port 9p_port config_file

Example

./ffs 8080 4430 5640 config.json will create a default config.json if it doesn't exist with sample values, serving http, https, and 9p on the specified ports.

Inspiration

https://talks.golang.org/2012/10things.slide#8

https://github.com/droyo/jsonfs

About

Fake Filesystem in GO

Topics

Resources

License

Packages

No packages published
You can’t perform that action at this time.