aferos3

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 11 Imported by: 0

README

S3 for Afero

This is a simple S3 backend for Afero.

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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewS3Fs

func NewS3Fs(cfg S3FsConfig) (afero.Fs, error)

Types

type S3FsConfig

type S3FsConfig struct {
	AccessKey  string
	SecretKey  string
	SessionKey string

	BaseEndpoint string
	Region       string

	Bucket string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL