packer-cn/vendor/cloud.google.com/go/storage
upodroid 2228b18fcb revendor the libraries 2020-10-01 22:06:15 +01:00
..
CHANGES.md revendor the libraries 2020-10-01 22:06:15 +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 revendor the libraries 2020-10-01 22:06:15 +01:00
copy.go revendor the libraries 2020-10-01 22:06:15 +01:00
doc.go revendor the libraries 2020-10-01 22:06:15 +01:00
go.mod revendor the libraries 2020-10-01 22:06:15 +01:00
go.sum revendor the libraries 2020-10-01 22:06:15 +01:00
go110.go revendor the libraries 2020-10-01 22:06:15 +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 Drop the iso_checksum_type & iso_checksum_url fields (#8437) 2020-05-28 11:02:09 +02: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
post_policy_v4.go revendor the libraries 2020-10-01 22:06:15 +01:00
reader.go revendor the libraries 2020-10-01 22:06:15 +01:00
storage.go revendor the libraries 2020-10-01 22:06:15 +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 revendor the libraries 2020-10-01 22:06:15 +01: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)
}