distribution/vendor/cloud.google.com/go/storage
Flavian Missi 817dd286c1 vendor: update gcs driver dependencies files
Signed-off-by: Flavian Missi <fmissi@redhat.com>
2023-05-31 09:28:43 +02:00
..
internal vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +02:00
acl.go vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +02:00
bucket.go vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +02:00
CHANGES.md vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +02:00
client.go vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +02:00
copy.go vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +02:00
doc.go vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +02:00
emulator_test.sh vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +02:00
grpc_client.go vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +02:00
hmac.go vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +02:00
http_client.go vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +02:00
iam.go vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +02:00
invoke.go vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +02:00
LICENSE vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +02:00
notifications.go vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +02:00
option.go vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +02:00
post_policy_v4.go vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +02:00
reader.go vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +02:00
README.md vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +02:00
storage.go vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +02:00
storage.replay vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +02:00
writer.go vendor: update gcs driver dependencies files 2023-05-31 09:28:43 +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)
}