SandpointsGitHook/vendor/cloud.google.com/go/storage
2020-12-02 17:02:11 +01:00
..
.repo-metadata.json initial commit with go vendor and compiled binary 2020-12-02 17:02:11 +01:00
acl.go initial commit with go vendor and compiled binary 2020-12-02 17:02:11 +01:00
bucket.go initial commit with go vendor and compiled binary 2020-12-02 17:02:11 +01:00
CHANGES.md initial commit with go vendor and compiled binary 2020-12-02 17:02:11 +01:00
copy.go initial commit with go vendor and compiled binary 2020-12-02 17:02:11 +01:00
doc.go initial commit with go vendor and compiled binary 2020-12-02 17:02:11 +01:00
go.mod initial commit with go vendor and compiled binary 2020-12-02 17:02:11 +01:00
go.sum initial commit with go vendor and compiled binary 2020-12-02 17:02:11 +01:00
go110.go initial commit with go vendor and compiled binary 2020-12-02 17:02:11 +01:00
go_mod_tidy_hack.go initial commit with go vendor and compiled binary 2020-12-02 17:02:11 +01:00
hmac.go initial commit with go vendor and compiled binary 2020-12-02 17:02:11 +01:00
iam.go initial commit with go vendor and compiled binary 2020-12-02 17:02:11 +01:00
invoke.go initial commit with go vendor and compiled binary 2020-12-02 17:02:11 +01:00
LICENSE initial commit with go vendor and compiled binary 2020-12-02 17:02:11 +01:00
not_go110.go initial commit with go vendor and compiled binary 2020-12-02 17:02:11 +01:00
notifications.go initial commit with go vendor and compiled binary 2020-12-02 17:02:11 +01:00
reader.go initial commit with go vendor and compiled binary 2020-12-02 17:02:11 +01:00
README.md initial commit with go vendor and compiled binary 2020-12-02 17:02:11 +01:00
storage.go initial commit with go vendor and compiled binary 2020-12-02 17:02:11 +01:00
storage.replay initial commit with go vendor and compiled binary 2020-12-02 17:02:11 +01:00
writer.go initial commit with go vendor and compiled binary 2020-12-02 17:02:11 +01:00

## Cloud Storage [![GoDoc](https://godoc.org/cloud.google.com/go/storage?status.svg)](https://godoc.org/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://godoc.org/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)
}
```