https://github.com/pkg6/gfs
Abstraction for local and remote filesystems
https://github.com/pkg6/gfs
Last synced: 3 months ago
JSON representation
Abstraction for local and remote filesystems
- Host: GitHub
- URL: https://github.com/pkg6/gfs
- Owner: pkg6
- License: apache-2.0
- Created: 2023-10-07T07:09:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-15T03:23:49.000Z (about 1 year ago)
- Last Synced: 2025-01-09T11:40:53.906Z (4 months ago)
- Language: Go
- Size: 78.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://goreportcard.com/report/github.com/pkg6/gfs)
[](https://pkg.go.dev/github.com/pkg6/gfs?tab=doc)
[](https://sourcegraph.com/github.com/pkg6/gfs?badge)
[](https://github.com/pkg6/gfs/releases)## gfs
gfs is a file storage library for Golang. It provides one interface to interact with many types of fs. When you use gfs, you're not only protected from vendor lock-in, you'll also have a consistent experience for which ever storage is right for you.## Install
~~~
go get github.com/pkg6/gfs
~~~## Officially supported adapters
- **Local**
- **[ALiYun OSS](https://help.aliyun.com/product/31815.html)**
- **[Google Cloud Storage](https://cloud.google.com/storage/docs/introduction?hl=zh-CN)**
- **[QiNiu KoDo](https://www.qiniu.com/products/kodo)**
- **[Tencent COS](https://curl.qcloud.com/CupX5XVS)**
- **[BaiDu BOS](https://cloud.baidu.com/product/bos.html)**## adapter Interface
[You can always create an adapter yourself.](https://github.com/pkg6/gfs/blob/main/ifs.go#L77)