distribution/vendor/cloud.google.com/go/storage
Jason Montleon 9204ceecd5
Update GCS dependencies and fix GCS driver
Signed-off-by: Jason Montleon <jmontleo@redhat.com>
2023-05-19 19:33:56 +01:00
..
internal Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +01:00
acl.go Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +01:00
bucket.go Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +01:00
CHANGES.md Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +01:00
client.go Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +01:00
copy.go Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +01:00
doc.go Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +01:00
emulator_test.sh Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +01:00
grpc_client.go Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +01:00
hmac.go Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +01:00
http_client.go Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +01:00
iam.go Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +01:00
invoke.go Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +01:00
LICENSE Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +01:00
notifications.go Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +01:00
option.go Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +01:00
post_policy_v4.go Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +01:00
reader.go Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +01:00
README.md Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +01:00
storage.go Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +01:00
storage.replay Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +01:00
writer.go Update GCS dependencies and fix GCS driver 2023-05-19 19:33:56 +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)
}