Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/goxiaoy/vfs
- Owner: goxiaoy
- License: apache-2.0
- Created: 2023-01-28T13:05:43.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-30T06:32:24.000Z (almost 2 years ago)
- Last Synced: 2024-10-15T00:27:29.511Z (3 months ago)
- Topics: blob, golang, oss, s3, virtual-file-system
- Language: Go
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/gohttps://github.com/spf13/afero
https://pkg.go.dev/gocloud.dev/blob
https://github.com/dghubble/trie