peridot/vendor/cloud.google.com/go/storage
Mustafa Gezen ad0f7a5305
Major upgrades
Upgrade to Go 1.20.5, Hydra v2 SDK, rules-go v0.44.2 (with proper resolves), protobuf v25.3 and mass upgrade of Go dependencies.
2024-03-17 08:06:08 +01:00
..
internal Major upgrades 2024-03-17 08:06:08 +01:00
acl.go Major upgrades 2024-03-17 08:06:08 +01:00
bucket.go Major upgrades 2024-03-17 08:06:08 +01:00
BUILD.bazel Major upgrades 2024-03-17 08:06:08 +01:00
CHANGES.md Major upgrades 2024-03-17 08:06:08 +01:00
client.go Major upgrades 2024-03-17 08:06:08 +01:00
copy.go Major upgrades 2024-03-17 08:06:08 +01:00
doc.go Major upgrades 2024-03-17 08:06:08 +01:00
emulator_test.sh Major upgrades 2024-03-17 08:06:08 +01:00
grpc_client.go Major upgrades 2024-03-17 08:06:08 +01:00
hmac.go Major upgrades 2024-03-17 08:06:08 +01:00
http_client.go Major upgrades 2024-03-17 08:06:08 +01:00
iam.go Major upgrades 2024-03-17 08:06:08 +01:00
invoke.go Major upgrades 2024-03-17 08:06:08 +01:00
LICENSE Initial commit 2022-07-07 22:13:21 +02:00
notifications.go Major upgrades 2024-03-17 08:06:08 +01:00
option.go Major upgrades 2024-03-17 08:06:08 +01:00
post_policy_v4.go Major upgrades 2024-03-17 08:06:08 +01:00
reader.go Major upgrades 2024-03-17 08:06:08 +01:00
README.md Major upgrades 2024-03-17 08:06:08 +01:00
storage.go Major upgrades 2024-03-17 08:06:08 +01:00
storage.replay Initial commit 2022-07-07 22:13:21 +02:00
writer.go Major upgrades 2024-03-17 08:06:08 +01: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)
}