VictoriaMetrics/vendor/cloud.google.com/go/storage
2020-11-02 22:01:42 +02:00
..
acl.go vendor: add missing files 2020-11-02 22:01:42 +02:00
bucket.go vendor: add missing files 2020-11-02 22:01:42 +02:00
CHANGES.md vendor: add missing files 2020-11-02 22:01:42 +02:00
copy.go vendor: add missing files 2020-11-02 22:01:42 +02:00
doc.go vendor: add missing files 2020-11-02 22:01:42 +02:00
go.mod vendor: add missing files 2020-11-02 22:01:42 +02:00
go.sum vendor: add missing files 2020-11-02 22:01:42 +02:00
go110.go vendor: add missing files 2020-11-02 22:01:42 +02:00
go_mod_tidy_hack.go vendor: add missing files 2020-11-02 22:01:42 +02:00
hmac.go vendor: add missing files 2020-11-02 22:01:42 +02:00
iam.go vendor: add missing files 2020-11-02 22:01:42 +02:00
invoke.go vendor: add missing files 2020-11-02 22:01:42 +02:00
LICENSE vendor: add missing files 2020-11-02 22:01:42 +02:00
not_go110.go vendor: add missing files 2020-11-02 22:01:42 +02:00
notifications.go vendor: add missing files 2020-11-02 22:01:42 +02:00
post_policy_v4.go vendor: add missing files 2020-11-02 22:01:42 +02:00
reader.go vendor: add missing files 2020-11-02 22:01:42 +02:00
README.md vendor: add missing files 2020-11-02 22:01:42 +02:00
storage.go vendor: add missing files 2020-11-02 22:01:42 +02:00
storage.replay vendor: add missing files 2020-11-02 22:01:42 +02:00
writer.go vendor: add missing files 2020-11-02 22:01:42 +02:00

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)
}