VictoriaMetrics/vendor/cloud.google.com/go/storage
2023-03-24 18:08:52 -07:00
..
internal vendor: run make vendor-update 2023-03-24 18:08:52 -07:00
acl.go vendor: make vendor-update 2022-08-15 00:54:50 +03:00
bucket.go vendor: make vendor-update 2023-01-23 18:43:43 -08:00
CHANGES.md vendor: run make vendor-update 2023-03-24 18:08:52 -07:00
client.go vendor: make vendor-update 2023-03-15 13:24:22 -07:00
copy.go vendor: make vendor-update 2022-11-10 13:47:30 +02:00
doc.go vendor: make vendor-update 2023-03-15 13:24:22 -07:00
emulator_test.sh vendor: make vendor-update 2022-04-12 12:56:50 +03:00
grpc_client.go vendor: make vendor-update 2023-03-15 13:24:22 -07:00
hmac.go vendor: make vendor-update 2022-11-10 13:47:30 +02:00
http_client.go vendor: make vendor-update 2023-03-15 13:24:22 -07:00
iam.go vendor: make vendor-update 2023-03-15 13:24:22 -07:00
invoke.go vendor: make vendor-update 2022-08-30 09:45:58 +03:00
LICENSE
notifications.go vendor: make vendor-update 2023-03-15 13:24:22 -07:00
option.go vendor: make vendor-update 2023-03-15 13:24:22 -07:00
post_policy_v4.go vendor: make vendor-update 2022-11-10 13:47:30 +02:00
reader.go vendor: make vendor-update 2023-03-15 13:24:22 -07:00
README.md vendor: make vendor-update 2022-11-10 13:47:30 +02:00
storage.go vendor: run make vendor-update 2023-03-24 18:08:52 -07:00
storage.replay
writer.go vendor: make vendor-update 2022-11-10 13:47:30 +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)
}