docs/vendor/cloud.google.com/go/storage
Christoph Stäbler 8a7c976784
Update to golang 1.18 (#5477)
2023-03-16 12:46:58 +00:00
..
CHANGES.md Fix the go mod vendor path for knative test-infra (#2785) 2020-08-28 10:37:07 -07:00
LICENSE Switch from dep to go mod (#2718) 2020-08-26 13:58:06 -07:00
README.md Switch from dep to go mod (#2718) 2020-08-26 13:58:06 -07:00
acl.go This adds a simple sample demonstrating Secret Volumes (#852) 2019-02-19 07:12:46 -08:00
bucket.go Fix the go mod vendor path for knative test-infra (#2785) 2020-08-28 10:37:07 -07:00
copy.go Fix the go mod vendor path for knative test-infra (#2785) 2020-08-28 10:37:07 -07:00
doc.go Fix the go mod vendor path for knative test-infra (#2785) 2020-08-28 10:37:07 -07:00
go110.go Fix the go mod vendor path for knative test-infra (#2785) 2020-08-28 10:37:07 -07:00
go_mod_tidy_hack.go Switch from dep to go mod (#2718) 2020-08-26 13:58:06 -07:00
hmac.go Switch from dep to go mod (#2718) 2020-08-26 13:58:06 -07:00
iam.go Switch from dep to go mod (#2718) 2020-08-26 13:58:06 -07:00
invoke.go This adds a simple sample demonstrating Secret Volumes (#852) 2019-02-19 07:12:46 -08:00
not_go110.go This adds a simple sample demonstrating Secret Volumes (#852) 2019-02-19 07:12:46 -08:00
notifications.go This adds a simple sample demonstrating Secret Volumes (#852) 2019-02-19 07:12:46 -08:00
post_policy_v4.go Fix the go mod vendor path for knative test-infra (#2785) 2020-08-28 10:37:07 -07:00
reader.go Fix the go mod vendor path for knative test-infra (#2785) 2020-08-28 10:37:07 -07:00
storage.go Fix the go mod vendor path for knative test-infra (#2785) 2020-08-28 10:37:07 -07:00
storage.replay Switch from dep to go mod (#2718) 2020-08-26 13:58:06 -07:00
writer.go Fix the go mod vendor path for knative test-infra (#2785) 2020-08-28 10:37:07 -07:00

README.md

Cloud Storage GoDoc

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)
}