No-nonsense S3 backend for Afero.
- Go 100%
| file.go | ||
| fileinfo.go | ||
| fs.go | ||
| go.mod | ||
| go.sum | ||
| License.txt | ||
| Readme.md | ||
S3 for Afero
This is a simple S3 backend for Afero.
Installation
$ go get -u codeberg.org/codecat/aferos3
Usage
Create the backend like this:
fs, err := aferos3.NewS3Fs(aferos3.S3FsConfig{
AccessKey: "your-access-key",
SecretKey: "your-secret-key",
Bucket: "your-bucket",
})
If you would like to use a different S3-compatible server, provide BaseEndpoint. For example, set it to https://ams3.digitaloceanspaces.com if you are using Digital Ocean's Spaces on the Amsterdam region.