iperf3exporter/vendor/cloud.google.com/go/storage
Marvin Preuss 2343c9588a
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing
first commit
2021-10-20 10:08:56 +02:00
..
internal/apiv2 first commit 2021-10-20 10:08:56 +02:00
acl.go first commit 2021-10-20 10:08:56 +02:00
bucket.go first commit 2021-10-20 10:08:56 +02:00
CHANGES.md first commit 2021-10-20 10:08:56 +02:00
copy.go first commit 2021-10-20 10:08:56 +02:00
doc.go first commit 2021-10-20 10:08:56 +02:00
go_mod_tidy_hack.go first commit 2021-10-20 10:08:56 +02:00
hmac.go first commit 2021-10-20 10:08:56 +02:00
iam.go first commit 2021-10-20 10:08:56 +02:00
invoke.go first commit 2021-10-20 10:08:56 +02:00
LICENSE first commit 2021-10-20 10:08:56 +02:00
notifications.go first commit 2021-10-20 10:08:56 +02:00
post_policy_v4.go first commit 2021-10-20 10:08:56 +02:00
reader.go first commit 2021-10-20 10:08:56 +02:00
README.md first commit 2021-10-20 10:08:56 +02:00
storage.go first commit 2021-10-20 10:08:56 +02:00
storage.replay first commit 2021-10-20 10:08:56 +02:00
writer.go first commit 2021-10-20 10:08:56 +02: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)
}