packer-cn/vendor/cloud.google.com/go/storage
Adam Dobrawy 3b091e6046 builder/hyperone: fix & add tests for tags 2019-12-03 14:57:40 +01:00
..
.repo-metadata.json builder/hyperone: fix & add tests for tags 2019-12-03 14:57:40 +01:00
CHANGES.md builder/hyperone: fix & add tests for tags 2019-12-03 14:57:40 +01:00
LICENSE builder/hyperone: fix & add tests for tags 2019-12-03 14:57:40 +01:00
README.md go get go get github.com/hashicorp/go-getter@master && tidy 2019-09-06 11:59:23 +02:00
acl.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
bucket.go builder/hyperone: fix & add tests for tags 2019-12-03 14:57:40 +01:00
copy.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
doc.go builder/hyperone: fix & add tests for tags 2019-12-03 14:57:40 +01:00
go.mod builder/hyperone: fix & add tests for tags 2019-12-03 14:57:40 +01:00
go.sum builder/hyperone: fix & add tests for tags 2019-12-03 14:57:40 +01:00
go110.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
go_mod_tidy_hack.go builder/hyperone: fix & add tests for tags 2019-12-03 14:57:40 +01:00
hmac.go builder/hyperone: fix & add tests for tags 2019-12-03 14:57:40 +01:00
iam.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
invoke.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
not_go110.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
notifications.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
reader.go go get go get github.com/hashicorp/go-getter@master && tidy 2019-09-06 11:59:23 +02:00
storage.go builder/hyperone: fix & add tests for tags 2019-12-03 14:57:40 +01:00
storage.replay go get go get github.com/hashicorp/go-getter@master && tidy 2019-09-06 11:59:23 +02:00
writer.go go get go get github.com/hashicorp/go-getter@master && tidy 2019-09-06 11:59:23 +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)
}