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

..17-Aug-2021-

internal/H17-Aug-2021-2,4392,011

CHANGES.mdH A D17-Aug-20215.4 KiB13888

README.mdH A D17-Aug-2021884 3327

acl.goH A D17-Aug-20218.7 KiB336268

acl_test.goH A D17-Aug-20211.6 KiB6646

bucket.goH A D17-Aug-202145.6 KiB1,404887

bucket_test.goH A D17-Aug-202121.8 KiB707635

conformance_test.goH A D17-Aug-20216.8 KiB249203

copy.goH A D17-Aug-20218.3 KiB239145

copy_test.goH A D17-Aug-20212.1 KiB7252

doc.goH A D17-Aug-20217.7 KiB2321

example_test.goH A D17-Aug-202123.6 KiB949669

go.modH A D17-Aug-2021433 1613

go.sumH A D17-Aug-202152.4 KiB537536

go_mod_tidy_hack.goH A D17-Aug-2021918 232

hmac.goH A D17-Aug-202112.5 KiB442269

hmac_test.goH A D17-Aug-202115.8 KiB551483

iam.goH A D17-Aug-20214.4 KiB163129

integration_test.goH A D17-Aug-2021117.8 KiB3,9993,295

invoke.goH A D17-Aug-20212 KiB7346

invoke_test.goH A D17-Aug-20212 KiB6543

mock_test.goH A D17-Aug-20211.9 KiB8258

notifications.goH A D17-Aug-20215.8 KiB189116

notifications_test.goH A D17-Aug-20213 KiB9976

oc_test.goH A D17-Aug-20211,012 3918

post_policy_v4.goH A D17-Aug-202112.9 KiB388232

reader.goH A D17-Aug-202113.9 KiB459303

reader_go114_test.goH A D17-Aug-20214.8 KiB163124

reader_test.goH A D17-Aug-20218.2 KiB350320

retry_test.goH A D17-Aug-20216 KiB203143

storage.goH A D17-Aug-202155.1 KiB1,6521,028

storage.replayH A D17-Aug-20212.8 MiB30,06730,067

storage_test.goH A D17-Aug-202140.8 KiB1,3471,241

writer.goH A D17-Aug-20217.9 KiB266157

writer_test.goH A D17-Aug-20215.6 KiB178121

README.md

1## Cloud Storage [![Go Reference](https://pkg.go.dev/badge/cloud.google.com/go/storage.svg)](https://pkg.go.dev/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://pkg.go.dev/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```
33