VictoriaMetrics/vendor/cloud.google.com/go/storage
Nikolay 14ac8a09ea
make vendor-update (#6627)
make vendor-update
2024-07-10 17:14:51 +02:00
..
internal make vendor-update (#6627) 2024-07-10 17:14:51 +02:00
acl.go vendor: run make vendor-update 2024-06-24 23:08:47 +02:00
bucket.go make vendor-update (#6627) 2024-07-10 17:14:51 +02:00
CHANGES.md make vendor-update (#6627) 2024-07-10 17:14:51 +02:00
client.go vendor: run make vendor-update 2024-05-22 21:58:38 +02:00
copy.go
doc.go vendor: run make vendor-update 2024-05-22 21:58:38 +02:00
emulator_test.sh
grpc_client.go vendor: run make vendor-update 2024-05-22 21:58:38 +02:00
hmac.go vendor: run make vendor-update 2024-06-24 23:08:47 +02:00
http_client.go vendor: run make vendor-update 2024-06-24 23:08:47 +02:00
iam.go
invoke.go make vendor-update (#6627) 2024-07-10 17:14:51 +02:00
LICENSE
notifications.go vendor: run make vendor-update 2024-05-22 21:58:38 +02:00
option.go vendor: run make vendor-update 2024-06-24 23:08:47 +02: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-06-24 23:08:47 +02:00
README.md
storage.go vendor: run make vendor-update 2024-06-24 23:08:47 +02:00
storage.replay
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)
}