Golang's http.FileSystem Implementation for AWS S3
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Darshil Chanpura 9c8fa2be51 Added code with minor testcases 10 months ago
LICENSE.md Added README.md and LICENSE.md 10 months ago
README.md Added README.md and LICENSE.md 10 months ago
file.go Added code with minor testcases 10 months ago
file_test.go Added code with minor testcases 10 months ago
fileinfo.go Added code with minor testcases 10 months ago
fs.go Added code with minor testcases 10 months ago
go.mod Initial Commit 10 months ago
go.sum Initial Commit 10 months ago
init.go Added code with minor testcases 10 months ago
models.go Added code with minor testcases 10 months ago
models_test.go Added code with minor testcases 10 months ago
utils.go Added code with minor testcases 10 months ago
utils_test.go Added code with minor testcases 10 months ago

README.md

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