-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into regen_gocloud
- Loading branch information
Showing
10 changed files
with
122 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
## 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) | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
### YamlMime:TableOfContent | ||
- uid: cloud.google.com/go/storage | ||
name: cloud.google.com/go/storage | ||
items: | ||
- name: README | ||
href: README.md |