SandpointsGitHook/vendor/cloud.google.com/go/storage
Marcell Mars ef5ae67e6f latest hugo, added hugo version to logs... 2021-04-18 12:25:49 +02:00
..
CHANGES.md latest hugo, added hugo version to logs... 2021-04-18 12:25:49 +02:00
LICENSE new vendor... 2021-03-20 23:21:23 +01:00
README.md latest hugo, added hugo version to logs... 2021-04-18 12:25:49 +02:00
acl.go new vendor... 2021-03-20 23:21:23 +01:00
bucket.go latest hugo, added hugo version to logs... 2021-04-18 12:25:49 +02:00
copy.go new vendor... 2021-03-20 23:21:23 +01:00
doc.go latest hugo, added hugo version to logs... 2021-04-18 12:25:49 +02:00
go.mod latest hugo, added hugo version to logs... 2021-04-18 12:25:49 +02:00
go.sum latest hugo, added hugo version to logs... 2021-04-18 12:25:49 +02:00
go110.go new vendor... 2021-03-20 23:21:23 +01:00
go_mod_tidy_hack.go new vendor... 2021-03-20 23:21:23 +01:00
hmac.go new vendor... 2021-03-20 23:21:23 +01:00
iam.go new vendor... 2021-03-20 23:21:23 +01:00
invoke.go new vendor... 2021-03-20 23:21:23 +01:00
not_go110.go new vendor... 2021-03-20 23:21:23 +01:00
notifications.go new vendor... 2021-03-20 23:21:23 +01:00
post_policy_v4.go latest hugo, added hugo version to logs... 2021-04-18 12:25:49 +02:00
reader.go new vendor... 2021-03-20 23:21:23 +01:00
storage.go latest hugo, added hugo version to logs... 2021-04-18 12:25:49 +02:00
storage.replay new vendor... 2021-03-20 23:21:23 +01:00
writer.go new vendor... 2021-03-20 23:21:23 +01:00

README.md

## Cloud Storage [![Go Reference](https://pkg.go.dev/badge/cloud.google.com/go/storage.svg)](https://pkg.go.dev/cloud.google.com/go/storage)

- [About Cloud Storage](https://cloud.google.com/storage/)
- [API documentation](https://cloud.google.com/storage/docs)
- [Go client documentation](https://pkg.go.dev/cloud.google.com/go/storage)
- [Complete sample programs](https://github.com/GoogleCloudPlatform/golang-samples/tree/master/storage)

### Example Usage

First create a `storage.Client` to use throughout your application:

[snip]:# (storage-1)
```go
client, err := storage.NewClient(ctx)
if err != nil {
	log.Fatal(err)
}
```

[snip]:# (storage-2)
```go
// 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)
}
```