VictoriaMetrics/vendor/cloud.google.com/go/storage
2023-08-12 12:43:34 -07:00
..
internal vendor: run make vendor-update 2023-08-12 12:43:34 -07:00
acl.go vendor: run make vendor-update 2023-08-12 12:43:34 -07:00
bucket.go vendor: run make vendor-update 2023-08-12 12:43:34 -07:00
CHANGES.md vendor: run make vendor-update 2023-08-12 12:43:34 -07:00
client.go vendor: run make vendor-update 2023-03-24 22:29:03 -07:00
copy.go
doc.go vendor: run make vendor-update 2023-03-24 22:29:03 -07:00
emulator_test.sh
grpc_client.go vendor: run make vendor-update 2023-08-12 12:43:34 -07:00
hmac.go vendor: run make vendor-update 2023-08-12 12:43:34 -07:00
http_client.go vendor: run make vendor-update 2023-08-12 12:43:34 -07:00
iam.go vendor: run make vendor-update 2023-03-24 22:29:03 -07:00
invoke.go vendor: run make vendor-update 2023-08-12 12:43:34 -07:00
LICENSE
notifications.go vendor: run make vendor-update 2023-08-12 12:43:34 -07:00
option.go vendor: run make vendor-update 2023-08-12 12:43:34 -07:00
post_policy_v4.go vendor: run make vendor-update 2023-08-12 12:43:34 -07:00
reader.go vendor: run make vendor-update 2023-03-24 22:29:03 -07:00
README.md
storage.go vendor: run make vendor-update 2023-08-12 12:43:34 -07:00
storage.replay
writer.go vendor: run make vendor-update 2023-08-12 12:43:34 -07: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)
}