terraform/vendor/cloud.google.com/go/storage
Radek Simko 5fb1e08678
vendor: Bump go-getter to 1.4.0
2019-09-09 14:04:58 +02:00
..
README.md vendor: Bump go-getter to 1.4.0 2019-09-09 14:04:58 +02:00
acl.go vendor: cloud.google.com/go@v0.36.0 2019-02-20 18:57:56 +00:00
bucket.go vendor: Bump go-getter to 1.4.0 2019-09-09 14:04:58 +02:00
copy.go vendor: cloud.google.com/go@v0.36.0 2019-02-20 18:57:56 +00:00
doc.go vendor: cloud.google.com/go@v0.36.0 2019-02-20 18:57:56 +00:00
go110.go vendor: google.golang.org/grpc@v1.18.0 2019-02-20 18:51:33 +00:00
hmac.go vendor: Bump go-getter to 1.4.0 2019-09-09 14:04:58 +02:00
iam.go vendor: cloud.google.com/go@v0.36.0 2019-02-20 18:57:56 +00:00
invoke.go vendor: cloud.google.com/go@v0.36.0 2019-02-20 18:57:56 +00:00
not_go110.go vendor: google.golang.org/grpc@v1.18.0 2019-02-20 18:51:33 +00:00
notifications.go vendor: cloud.google.com/go@v0.36.0 2019-02-20 18:57:56 +00:00
reader.go vendor: Bump go-getter to 1.4.0 2019-09-09 14:04:58 +02:00
storage.go vendor: Bump go-getter to 1.4.0 2019-09-09 14:04:58 +02:00
storage.replay vendor: Bump go-getter to 1.4.0 2019-09-09 14:04:58 +02:00
writer.go vendor: Bump go-getter to 1.4.0 2019-09-09 14:04:58 +02: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)
}