No-nonsense S3 backend for Afero.
Find a file
2026-01-18 18:30:01 +01:00
file.go Initial commit 2026-01-18 18:08:26 +01:00
fileinfo.go Initial commit 2026-01-18 18:08:26 +01:00
fs.go Initial commit 2026-01-18 18:08:26 +01:00
go.mod Initial commit 2026-01-18 18:08:26 +01:00
go.sum Initial commit 2026-01-18 18:08:26 +01:00
License.txt Initial commit 2026-01-18 18:08:26 +01:00
Readme.md Added installation section 2026-01-18 18:30:01 +01:00

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.