VictoriaMetrics/vendor/cloud.google.com/go/storage
2021-10-22 19:28:27 +03:00
..
internal/apiv2 vendor: make vendor-update 2021-10-22 19:28:27 +03:00
acl.go vendor: make vendor-update 2021-09-30 17:54:45 +03:00
bucket.go vendor: make vendor-update 2021-10-18 15:23:46 +03:00
CHANGES.md vendor: make vendor-update 2021-10-22 19:28:27 +03:00
copy.go vendor: make vendor-update 2020-06-06 00:00:40 +03:00
doc.go vendor: make vendor-update 2021-10-11 21:52:27 +03:00
go_mod_tidy_hack.go build(deps): bump cloud.google.com/go/storage from 1.16.0 to 1.16.1 (#1589) 2021-09-01 12:54:54 +03:00
go.mod vendor: make vendor-update 2021-10-22 19:28:27 +03:00
go.sum vendor: make vendor-update 2021-10-22 19:28:27 +03:00
hmac.go vendor: make vendor-update 2021-09-30 17:54:45 +03:00
iam.go make vendor-update 2020-02-26 20:46:24 +02:00
invoke.go vendor: make vendor-update 2021-10-11 21:52:27 +03:00
LICENSE app/{vmbackup,vmrestore}: add vmbackup and vmrestore tools for creating backups on s3 or gcs from instant snapshots 2019-11-07 21:26:43 +02:00
notifications.go vendor: make vendor-update 2021-09-30 17:54:45 +03:00
post_policy_v4.go vendor: make vendor-update 2020-09-23 14:23:51 +03:00
reader.go vendor: make vendor-update 2021-10-11 21:52:27 +03:00
README.md vendor: make vendor-update 2021-02-09 01:12:22 +02:00
storage.go vendor: make vendor-update 2021-10-22 19:28:27 +03:00
storage.replay app/{vmbackup,vmrestore}: add vmbackup and vmrestore tools for creating backups on s3 or gcs from instant snapshots 2019-11-07 21:26:43 +02:00
writer.go vendor: make vendor-update 2021-10-22 19:28:27 +03:00

Cloud Storage Go Reference

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