• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

internal/H22-Sep-2020-

CHANGES.mdH A D22-Sep-20202.9 KiB

README.mdH A D22-Sep-2020874

acl.goH A D22-Sep-20208.7 KiB

acl_test.goH A D22-Sep-20201.6 KiB

bucket.goH A D22-Sep-202042.3 KiB

bucket_test.goH A D22-Sep-202020.3 KiB

conformance_test.goH A D22-Sep-20206.8 KiB

copy.goH A D22-Sep-20208.3 KiB

copy_test.goH A D22-Sep-20202.1 KiB

doc.goH A D22-Sep-20207.7 KiB

example_test.goH A D22-Sep-202023.6 KiB

go.modH A D22-Sep-2020443

go.sumH A D22-Sep-202049.8 KiB

go110.goH A D22-Sep-20201.4 KiB

go110_test.goH A D22-Sep-20201.7 KiB

go_mod_tidy_hack.goH A D22-Sep-2020918

hmac.goH A D22-Sep-202012.5 KiB

hmac_test.goH A D22-Sep-202015.8 KiB

iam.goH A D22-Sep-20204.4 KiB

integration_test.goH A D22-Sep-2020110 KiB

invoke.goH A D22-Sep-20201.1 KiB

mock_test.goH A D22-Sep-20201.9 KiB

not_go110.goH A D22-Sep-20201.2 KiB

not_go110_test.goH A D22-Sep-20201.5 KiB

notifications.goH A D22-Sep-20205.8 KiB

notifications_test.goH A D22-Sep-20203 KiB

oc_test.goH A D22-Sep-20201,012

post_policy_v4.goH A D22-Sep-202012.9 KiB

reader.goH A D22-Sep-202013.1 KiB

reader_go114_test.goH A D22-Sep-20204.8 KiB

reader_test.goH A D22-Sep-20207.8 KiB

retry_test.goH A D22-Sep-20206 KiB

storage.goH A D22-Sep-202054 KiB

storage.replayH A D22-Sep-20202.8 MiB

storage_test.goH A D22-Sep-202037.1 KiB

writer.goH A D22-Sep-20208 KiB

writer_test.goH A D22-Sep-20205.6 KiB

README.md

1## Cloud Storage [![GoDoc](https://godoc.org/cloud.google.com/go/storage?status.svg)](https://godoc.org/cloud.google.com/go/storage)
2
3- [About Cloud Storage](https://cloud.google.com/storage/)
4- [API documentation](https://cloud.google.com/storage/docs)
5- [Go client documentation](https://godoc.org/cloud.google.com/go/storage)
6- [Complete sample programs](https://github.com/GoogleCloudPlatform/golang-samples/tree/master/storage)
7
8### Example Usage
9
10First create a `storage.Client` to use throughout your application:
11
12[snip]:# (storage-1)
13```go
14client, err := storage.NewClient(ctx)
15if err != nil {
16	log.Fatal(err)
17}
18```
19
20[snip]:# (storage-2)
21```go
22// Read the object1 from bucket.
23rc, err := client.Bucket("bucket").Object("object1").NewReader(ctx)
24if err != nil {
25	log.Fatal(err)
26}
27defer rc.Close()
28body, err := ioutil.ReadAll(rc)
29if err != nil {
30	log.Fatal(err)
31}
32```