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 694ad260da Upgraded awssdk version 1 year ago
LICENSE.md Added README.md and LICENSE.md 1 year ago
README.md Added README.md and LICENSE.md 1 year ago
file.go Added code with minor testcases 1 year ago
file_test.go Added code with minor testcases 1 year ago
fileinfo.go Added code with minor testcases 1 year ago
fs.go Added code with minor testcases 1 year ago
go.mod Upgraded awssdk version 1 year ago
go.sum Upgraded awssdk version 1 year ago
init.go Added code with minor testcases 1 year ago
models.go Added code with minor testcases 1 year ago
models_test.go Added code with minor testcases 1 year ago
utils.go Added code with minor testcases 1 year ago
utils_test.go Added code with minor testcases 1 year 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