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

..31-Mar-2020-

internal/H31-Mar-2020-1,5101,300

CHANGES.mdH A D31-Mar-20201.5 KiB5635

README.mdH A D31-Mar-2020874 3227

acl.goH A D31-Mar-20208.7 KiB336268

acl_test.goH A D31-Mar-20201.6 KiB6646

bucket.goH A D31-Mar-202039.8 KiB1,265811

bucket_test.goH A D31-Mar-202019.2 KiB625563

conformance_test.goH A D31-Mar-20202.8 KiB11787

copy.goH A D31-Mar-20207.9 KiB229141

copy_test.goH A D31-Mar-20202.1 KiB7252

doc.goH A D31-Mar-20206.7 KiB2041

example_test.goH A D31-Mar-202020.6 KiB827589

go.modH A D31-Mar-2020620 1916

go.sumH A D31-Mar-202037 KiB382381

go110.goH A D31-Mar-20201,003 3312

go_mod_tidy_hack.goH A D31-Mar-2020918 232

hmac.goH A D31-Mar-202012.5 KiB442269

hmac_test.goH A D31-Mar-202015.8 KiB551483

iam.goH A D31-Mar-20204.4 KiB163129

integration_test.goH A D31-Mar-202099.6 KiB3,4072,819

invoke.goH A D31-Mar-20201.1 KiB3818

invoke_test.goH A D31-Mar-20201.5 KiB5736

mock_test.goH A D31-Mar-20201.9 KiB8258

not_go110.goH A D31-Mar-20201.2 KiB4318

notifications.goH A D31-Mar-20205.8 KiB189116

notifications_test.goH A D31-Mar-20203 KiB9976

oc_test.goH A D31-Mar-20201,012 3918

reader.goH A D31-Mar-202011.7 KiB404276

reader_test.goH A D31-Mar-20207.8 KiB340310

retry_test.goH A D31-Mar-20206 KiB203143

storage.goH A D31-Mar-202049.4 KiB1,509974

storage.replayH A D31-Mar-20202.8 MiB30,06730,067

storage_test.goH A D31-Mar-202036.1 KiB1,2071,104

writer.goH A D31-Mar-20207.6 KiB261159

writer_test.goH A D31-Mar-20205.7 KiB180122

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```