README

S3FS

s3fs is a Go http.FileSystem implementation for AWS S3.

Usage

This Go module can be used directly with http.FileSystem, for example

// Create a new s3fs with bucket and prefix.
fs, err := s3fs.New(bucket, prefix)

if err != nil {
	// handle error
}

// Add handler for "/"
http.Handle("/", http.StripPrefix("/", http.FileServer(fs)))

LICENSE

MIT

Expand ▾ Collapse ▴

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(bucket, prefix string) (http.FileSystem, error)

    New for getting a new s3FileSystem object

    Types

    This section is empty.