VictoriaMetrics/vendor/cloud.google.com/go/storage
2024-04-04 01:34:44 +03:00
..
internal vendor: run make vendor-update 2024-04-04 01:34:44 +03:00
acl.go vendor: run make vendor-update 2023-07-07 00:04:32 -07:00
bucket.go vendor: run make vendor-update 2024-02-14 15:44:03 +02:00
CHANGES.md vendor: run make vendor-update 2024-04-04 01:34:44 +03:00
client.go vendor: run make vendor-update 2024-03-01 00:55:47 +02:00
copy.go vendor: make vendor-update 2022-11-10 13:46:33 +02:00
doc.go vendor: run make vendor-update 2024-03-18 00:51:41 +02:00
emulator_test.sh vendor: make vendor-update 2022-04-12 12:51:54 +03:00
grpc_client.go vendor: run make vendor-update 2024-04-04 01:34:44 +03:00
hmac.go vendor: run make vendor-update 2023-10-31 20:19:51 +01:00
http_client.go vendor: run make vendor-update 2024-04-04 01:34:44 +03:00
iam.go vendor: make vendor-update 2023-03-15 13:24:12 -07:00
invoke.go vendor: run make vendor-update 2024-01-26 22:56:37 +01:00
LICENSE app/{vmbackup,vmrestore}: add vmbackup and vmrestore tools for creating backups on s3 or gcs from instant snapshots 2019-11-08 21:21:07 +02:00
notifications.go vendor: run make vendor-update 2023-07-07 00:04:32 -07:00
option.go vendor: run make vendor-update 2023-07-07 00:04:32 -07:00
post_policy_v4.go vendor: run make vendor-update 2023-08-29 13:15:22 +02:00
reader.go vendor: run make vendor-update 2024-04-04 01:34:44 +03:00
README.md vendor: make vendor-update 2022-11-10 13:46:33 +02:00
storage.go vendor: run make vendor-update 2024-03-18 00:51:41 +02:00
storage.replay app/{vmbackup,vmrestore}: add vmbackup and vmrestore tools for creating backups on s3 or gcs from instant snapshots 2019-11-08 21:21:07 +02:00
writer.go vendor: run make vendor-update 2024-03-01 00:55:47 +02: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 := io.ReadAll(rc)
if err != nil {
	log.Fatal(err)
}