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

..18-Jun-2020-

internal/H18-Jun-2020-1,8101,599

CHANGES.mdH A D18-Jun-20202.6 KiB8459

README.mdH A D18-Jun-2020874 3227

acl.goH A D18-Jun-20208.7 KiB336268

acl_test.goH A D18-Jun-20201.6 KiB6646

bucket.goH A D18-Jun-202039.9 KiB1,266812

bucket_test.goH A D18-Jun-202019.5 KiB640576

conformance_test.goH A D18-Jun-20206.8 KiB249203

copy.goH A D18-Jun-20208.3 KiB239145

copy_test.goH A D18-Jun-20202.1 KiB7252

doc.goH A D18-Jun-20207.2 KiB2191

example_test.goH A D18-Jun-202023.6 KiB949669

go.modH A D18-Jun-2020622 1916

go.sumH A D18-Jun-202043.5 KiB451450

go110.goH A D18-Jun-20201.4 KiB4924

go110_test.goH A D18-Jun-20201.7 KiB6138

go_mod_tidy_hack.goH A D18-Jun-2020918 232

hmac.goH A D18-Jun-202012.5 KiB442269

hmac_test.goH A D18-Jun-202015.8 KiB551483

iam.goH A D18-Jun-20204.4 KiB163129

integration_test.goH A D18-Jun-2020105.8 KiB3,6192,982

invoke.goH A D18-Jun-20201.1 KiB3818

mock_test.goH A D18-Jun-20201.9 KiB8258

not_go110.goH A D18-Jun-20201.2 KiB4318

not_go110_test.goH A D18-Jun-20201.5 KiB5936

notifications.goH A D18-Jun-20205.8 KiB189116

notifications_test.goH A D18-Jun-20203 KiB9976

oc_test.goH A D18-Jun-20201,012 3918

post_policy_v4.goH A D18-Jun-202012.3 KiB378225

reader.goH A D18-Jun-202013.1 KiB436287

reader_go114_test.goH A D18-Jun-20204.8 KiB163124

reader_test.goH A D18-Jun-20207.8 KiB340310

retry_test.goH A D18-Jun-20206 KiB203143

storage.goH A D18-Jun-202052.4 KiB1,6071,023

storage.replayH A D18-Jun-20202.8 MiB30,06730,067

storage_test.goH A D18-Jun-202037 KiB1,2401,137

writer.goH A D18-Jun-20208 KiB269160

writer_test.goH A D18-Jun-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```