Kirill Scherba
Posted on November 4, 2022
The TeoS3 package contains Golang features that make it easy to use S3 storage as a key-value database.
This project contain also the s3cp utility which copy files from disk to s3 storage and back.
https://github.com/teonet-go/teos3
There is a part of code with connect, set and get key value:
// Connect to S3 storage
con, err := teos3.Connect(accessKey, secretKey, endpoint, secure)
if err != nil {
log.Fatalln(err)
}
// Set key to teos3 Map
err = con.Map.Set(key, data)
if err != nil {
log.Fatalln(err)
}
// Get key from TeoS3 Map
data, err := con.Map.Get(key)
if err != nil {
log.Fatalln(err)
}
See the code and more descriptions and example at: https://github.com/teonet-go/teos3
💖 💪 🙅 🚩
Kirill Scherba
Posted on November 4, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
lambda From Node.js to Go: Supercharging S3 Downloads of Thousands of Files as a Single Zip
August 21, 2024
automq Insight: Why it's difficult to fully utilize the elasticity of the public cloud?
April 16, 2024