VictoriaMetrics/vendor/cloud.google.com/go/storage
2022-07-21 21:11:58 +03:00
..
internal vendor: make vendor-update 2022-07-21 21:11:58 +03:00
.release-please-manifest.json vendor: make vendor-update 2022-07-21 21:11:58 +03:00
acl.go vendor: make vendor-update 2022-07-21 21:11:58 +03:00
bucket.go vendor: make vendor-update 2022-07-21 21:11:58 +03:00
CHANGES.md vendor: make vendor-update 2022-07-21 21:11:58 +03:00
client.go vendor: make vendor-update 2022-07-21 21:11:58 +03:00
copy.go vendor: make vendor-update 2022-07-21 21:11:58 +03:00
doc.go vendor: make vendor-update 2022-04-12 12:56:50 +03:00
emulator_test.sh vendor: make vendor-update 2022-04-12 12:56:50 +03:00
grpc_client.go vendor: make vendor-update 2022-07-21 21:11:58 +03:00
hmac.go vendor: make vendor-update 2022-07-21 21:11:58 +03:00
http_client.go vendor: make vendor-update 2022-07-21 21:11:58 +03:00
iam.go vendor: make vendor-update 2022-05-20 14:48:23 +03:00
invoke.go vendor: make vendor-update 2022-05-20 14:48:23 +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 2022-07-21 21:11:58 +03:00
post_policy_v4.go vendor: make vendor-update 2022-04-12 12:56:50 +03:00
reader.go vendor: make vendor-update 2022-06-28 14:55:41 +03:00
README.md vendor: make vendor-update 2022-01-27 13:22:23 +02:00
release-please-config.json vendor: make vendor-update 2022-04-12 12:56:50 +03:00
storage.go vendor: make vendor-update 2022-07-21 21:11:58 +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 2022-07-21 21:11:58 +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)
}