iperf3exporter/vendor/cloud.google.com/go/storage
2021-11-16 15:32:13 +01:00
..
internal/apiv2 build: update deps 2021-11-16 15:32:13 +01:00
acl.go build: update deps 2021-11-16 15:32:13 +01:00
bucket.go build: update deps 2021-11-16 15:32:13 +01:00
CHANGES.md build: update deps 2021-11-16 15:32:13 +01:00
copy.go first commit 2021-10-20 10:08:56 +02:00
doc.go build: update deps 2021-11-16 15:32:13 +01:00
go_mod_tidy_hack.go first commit 2021-10-20 10:08:56 +02:00
hmac.go build: update deps 2021-11-16 15:32:13 +01:00
iam.go first commit 2021-10-20 10:08:56 +02:00
invoke.go build: update deps 2021-11-16 15:32:13 +01:00
LICENSE first commit 2021-10-20 10:08:56 +02:00
notifications.go build: update deps 2021-11-16 15:32:13 +01:00
post_policy_v4.go first commit 2021-10-20 10:08:56 +02:00
reader.go build: update deps 2021-11-16 15:32:13 +01:00
README.md first commit 2021-10-20 10:08:56 +02:00
storage.go build: update deps 2021-11-16 15:32:13 +01:00
storage.replay first commit 2021-10-20 10:08:56 +02:00
writer.go build: update deps 2021-11-16 15:32:13 +01:00

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