Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/goxiaoy/vfs

golang virtual file system
https://github.com/goxiaoy/vfs

blob golang oss s3 virtual-file-system

Last synced: about 1 month ago
JSON representation

golang virtual file system

Awesome Lists containing this project

README

        

### Virtual File System
Golang virtual file system based on [afero](https://github.com/spf13/afero)

#### usage

```shell
go get github.com/goxiaoy/vfs
```

```go

v := vfs.New() //vfs implements afero.Fs

v.Mount("/", afero.NewMemMapFs()) //second prameter could be any afero.Fs
v.Mount("/abc", afero.NewMemMapFs())
v.Mount("/a/b/c/d", afero.NewMemMapFs())

f,err := v.Create("/a/test.txt") // Creat file, for all functions see https://github.com/spf13/afero#list-of-all-available-functions
```

#### Blob

Extra blob interface
```go
type Blob interface {
FS
Linker
//TODO
//Mover
//Copier
//Lister
}
```

#### Planned Features

- [ ] Metadata storage
- [ ] Data At Rest Encryption (DARE)

### Thanks to
https://github.com/embeddedgo/go

https://github.com/spf13/afero

https://pkg.go.dev/gocloud.dev/blob

https://github.com/dghubble/trie