debian-forge-composer/vendor/cloud.google.com/go/storage
Ondřej Budai 0359647a82 go.mod: update to Go 1.18
Fedora 35 support was dropped, so we can update to a newer Go.

Stable RHEL 8 and 9 and Fedora 36 ships Go 1.18, so let's switch to it.

"//go:build" directives are now apparently enforced by go fmt, so that's why
there were added.

Also, all the github actions were adjusted to use Go 1.18.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2023-01-09 14:03:18 +01:00
..
internal build(deps): bump cloud.google.com/go/storage from 1.26.0 to 1.27.0 2022-09-23 15:51:14 +02:00
.release-please-manifest.json build(deps): bump cloud.google.com/go/storage from 1.26.0 to 1.27.0 2022-09-23 15:51:14 +02:00
acl.go build(deps): bump cloud.google.com/go/storage from 1.22.1 to 1.26.0 2022-08-30 15:36:14 +02:00
bucket.go build(deps): bump cloud.google.com/go/storage from 1.26.0 to 1.27.0 2022-09-23 15:51:14 +02:00
CHANGES.md build(deps): bump cloud.google.com/go/storage from 1.26.0 to 1.27.0 2022-09-23 15:51:14 +02:00
client.go build(deps): bump cloud.google.com/go/storage from 1.22.1 to 1.26.0 2022-08-30 15:36:14 +02:00
copy.go build(deps): bump cloud.google.com/go/storage from 1.22.1 to 1.26.0 2022-08-30 15:36:14 +02:00
doc.go build(deps): bump cloud.google.com/go/storage from 1.26.0 to 1.27.0 2022-09-23 15:51:14 +02:00
emulator_test.sh build(deps): bump cloud.google.com/go/storage from 1.18.2 to 1.22.0 2022-04-20 14:27:18 +02:00
grpc_client.go build(deps): bump cloud.google.com/go/storage from 1.26.0 to 1.27.0 2022-09-23 15:51:14 +02:00
hmac.go build(deps): bump cloud.google.com/go/storage from 1.22.1 to 1.26.0 2022-08-30 15:36:14 +02:00
http_client.go build(deps): bump cloud.google.com/go/storage from 1.22.1 to 1.26.0 2022-08-30 15:36:14 +02:00
iam.go build(deps): bump cloud.google.com/go/storage from 1.22.1 to 1.26.0 2022-08-30 15:36:14 +02:00
invoke.go build(deps): bump cloud.google.com/go/storage from 1.22.1 to 1.26.0 2022-08-30 15:36:14 +02:00
LICENSE internal/upload: Add support for upload to GCP and CLI tool using it 2021-02-25 18:44:21 +00:00
notifications.go build(deps): bump cloud.google.com/go/storage from 1.22.1 to 1.26.0 2022-08-30 15:36:14 +02:00
post_policy_v4.go build(deps): bump cloud.google.com/go/storage from 1.18.2 to 1.22.0 2022-04-20 14:27:18 +02:00
reader.go build(deps): bump cloud.google.com/go/storage from 1.22.1 to 1.26.0 2022-08-30 15:36:14 +02:00
README.md build(deps): bump cloud.google.com/go/storage from 1.26.0 to 1.27.0 2022-09-23 15:51:14 +02:00
release-please-config.json build(deps): bump cloud.google.com/go/storage from 1.26.0 to 1.27.0 2022-09-23 15:51:14 +02:00
storage.go build(deps): bump cloud.google.com/go/storage from 1.26.0 to 1.27.0 2022-09-23 15:51:14 +02:00
storage.replay internal/upload: Add support for upload to GCP and CLI tool using it 2021-02-25 18:44:21 +00:00
writer.go build(deps): bump cloud.google.com/go/storage from 1.22.1 to 1.26.0 2022-08-30 15:36:14 +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 := ioutil.ReadAll(rc)
if err != nil {
	log.Fatal(err)
}