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
bucket.go builder/hyperone: fix & add tests for tags 2019-12-03 14:57:40 +01:00
copy.go
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
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
invoke.go
not_go110.go
notifications.go
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)
}