packer-cn/vendor/cloud.google.com/go/storage
Adrien Delorme 4748958cca go get go get github.com/hashicorp/go-getter@master && tidy 2019-09-06 11:59:23 +02: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 go get go get github.com/hashicorp/go-getter@master && tidy 2019-09-06 11:59:23 +02:00
copy.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
doc.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
go110.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
hmac.go go get go get github.com/hashicorp/go-getter@master && tidy 2019-09-06 11:59:23 +02: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 go get go get github.com/hashicorp/go-getter@master && tidy 2019-09-06 11:59:23 +02: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)
}