s3fs

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: MIT Imports: 12 Imported by: 1

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

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.

Jump to

Keyboard shortcuts

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