https://github.com/meowgorithm/baby-s3
Simple S3 Go library, for babies
https://github.com/meowgorithm/baby-s3
go s3
Last synced: 3 months ago
JSON representation
Simple S3 Go library, for babies
- Host: GitHub
- URL: https://github.com/meowgorithm/baby-s3
- Owner: meowgorithm
- License: mit
- Created: 2018-05-02T19:25:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-12-18T01:17:42.000Z (about 6 years ago)
- Last Synced: 2025-02-18T19:48:58.937Z (11 months ago)
- Topics: go, s3
- Language: Go
- Homepage: https://godoc.org/github.com/meowgorithm/baby-s3
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Baby S3
=======
This a simple interface to some common S3 tasks.
For example:
```go
import (
s3 "github.com/meowgorithm/baby-s3"
)
func main() {
if err := s3.CreateBucket("my-cute-bucket"); err != nil {
fmt.Println("It didn't work :(", err)
return
}
if err := s3.MakeBucketPublic("my-cute-bucket"); err != nil {
fmt.Println("It didn't work. Weird :/", err)
}
err := s3.UploadObject("my-cute-bucket", "some-bytes.txt", []byte("a few nice bytes"));
err != nil {
fmt.Println("Nope :(", err)
}
}
```
⚠️ For now, this library is in an alpha state and the API could change. If you
have any thoughts about the API do let me know.
## AWS Keys and Regions and Stuff
AWS loves it when you put settings in environment variables, so you'll need to
do that to work with this library. Set the following:
AWS_ACCESS_KEY
AWS_SECRET_ACCESS_KEY
AWS_REGION
## Dependencies
This only dependency of this library is `github.com/aws/aws-sdk-go`. More
details can be found in `Gopkg.toml`. If you use `dep` to manage your
dependencies the AWS SDK will be installed automatically.
## License
MIT