tree: 026abd0dfad85695fc62bfed1f8e4fb2db80c5c5 [path history] [tgz]
  1. internal/
  2. acl.go
  3. bucket.go
  4. CHANGES.md
  5. copy.go
  6. doc.go
  7. go.mod
  8. go.sum
  9. go_mod_tidy_hack.go
  10. hmac.go
  11. iam.go
  12. invoke.go
  13. LICENSE
  14. notifications.go
  15. post_policy_v4.go
  16. reader.go
  17. README.md
  18. storage.go
  19. storage.replay
  20. writer.go
third_party/golibs/vendor/cloud.google.com/go/storage/README.md

Cloud Storage Go Reference

Example Usage

First create a storage.Client to use throughout your application:

client, err := storage.NewClient(ctx)
if err != nil {
	log.Fatal(err)
}
// Read the object1 from bucket.
rc, err := client.Bucket("bucket").Object("object1").NewReader(ctx)
if err != nil {
	log.Fatal(err)
}
defer rc.Close()
body, err := ioutil.ReadAll(rc)
if err != nil {
	log.Fatal(err)
}