AWS S3 service support for go-storage.
This package has been moved to go-storage.
go get go.beyondstorage.io/services/s3/v3
import (
"log"
_ "github.com/beyondstorage/go-service-s3/v2"
"github.com/beyondstorage/go-storage/v4/services"
)
func main() {
store, err := services.NewStoragerFromString("s3://bucket_name/path/to/workdir")
if err != nil {
log.Fatal(err)
}
// Write data from io.Reader into hello.txt
n, err := store.Write("hello.txt", r, length)
}
- See more examples in go-storage-example.
- Read more docs about go-service-s3.
We can use go-service-s3 for the following services:
- Aliyun OSS S3 Compatible API (We also provide native support in go-service-oss)
- AWS S3 (The native support service.)
- DigitalOcean Space
- ECloud (China Mobile Cloud) Object Storage
- GCS S3 Compatible API (We also provide native support in go-service-gcs)
- IBM Cloud Storage Service
- ksyun KS3
- JCloud Object Storage
- Minio (We also provide native support in go-service-minio)
- QingStor Object Storage S3 Compatible API (We also provide native support in go-service-qingstor)
- Scaleway Object Storage