peridot/vendor/cloud.google.com/go/storage
2024-10-16 12:56:53 +02:00
..
internal Upgrade deps and properly gitlabify target name 2024-10-16 12:56:53 +02:00
acl.go Upgrade deps and properly gitlabify target name 2024-10-16 12:56:53 +02:00
bucket.go Upgrade deps and properly gitlabify target name 2024-10-16 12:56:53 +02:00
BUILD.bazel Upgrade deps and properly gitlabify target name 2024-10-16 12:56:53 +02:00
CHANGES.md Upgrade deps and properly gitlabify target name 2024-10-16 12:56:53 +02:00
client.go Upgrade deps and properly gitlabify target name 2024-10-16 12:56:53 +02:00
copy.go Major upgrades 2024-03-17 08:06:08 +01:00
doc.go Upgrade deps and properly gitlabify target name 2024-10-16 12:56:53 +02:00
emulator_test.sh Major upgrades 2024-03-17 08:06:08 +01:00
grpc_client.go Upgrade deps and properly gitlabify target name 2024-10-16 12:56:53 +02:00
hmac.go Upgrade deps and properly gitlabify target name 2024-10-16 12:56:53 +02:00
http_client.go Upgrade deps and properly gitlabify target name 2024-10-16 12:56:53 +02:00
iam.go Major upgrades 2024-03-17 08:06:08 +01:00
invoke.go Upgrade deps and properly gitlabify target name 2024-10-16 12:56:53 +02:00
LICENSE Initial commit 2022-07-07 22:13:21 +02:00
notifications.go Upgrade deps and properly gitlabify target name 2024-10-16 12:56:53 +02:00
option.go Upgrade deps and properly gitlabify target name 2024-10-16 12:56:53 +02:00
post_policy_v4.go Major upgrades 2024-03-17 08:06:08 +01:00
reader.go Upgrade deps and properly gitlabify target name 2024-10-16 12:56:53 +02:00
README.md Major upgrades 2024-03-17 08:06:08 +01:00
storage.go Upgrade deps and properly gitlabify target name 2024-10-16 12:56:53 +02:00
storage.replay Initial commit 2022-07-07 22:13:21 +02:00
writer.go Upgrade deps and properly gitlabify target name 2024-10-16 12:56:53 +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)
}