peridot/vendor/cloud.google.com/go/storage
2022-07-07 22:13:21 +02:00
..
acl.go Initial commit 2022-07-07 22:13:21 +02:00
bucket.go Initial commit 2022-07-07 22:13:21 +02:00
BUILD.bazel Initial commit 2022-07-07 22:13:21 +02:00
CHANGES.md Initial commit 2022-07-07 22:13:21 +02:00
copy.go Initial commit 2022-07-07 22:13:21 +02:00
doc.go Initial commit 2022-07-07 22:13:21 +02:00
go110.go Initial commit 2022-07-07 22:13:21 +02:00
go_mod_tidy_hack.go Initial commit 2022-07-07 22:13:21 +02:00
go.mod Initial commit 2022-07-07 22:13:21 +02:00
go.sum Initial commit 2022-07-07 22:13:21 +02:00
hmac.go Initial commit 2022-07-07 22:13:21 +02:00
iam.go Initial commit 2022-07-07 22:13:21 +02:00
invoke.go Initial commit 2022-07-07 22:13:21 +02:00
LICENSE Initial commit 2022-07-07 22:13:21 +02:00
not_go110.go Initial commit 2022-07-07 22:13:21 +02:00
notifications.go Initial commit 2022-07-07 22:13:21 +02:00
post_policy_v4.go Initial commit 2022-07-07 22:13:21 +02:00
reader.go Initial commit 2022-07-07 22:13:21 +02:00
README.md Initial commit 2022-07-07 22:13:21 +02:00
storage.go Initial commit 2022-07-07 22:13:21 +02:00
storage.replay Initial commit 2022-07-07 22:13:21 +02:00
writer.go Initial commit 2022-07-07 22:13:21 +02:00

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