Commit Graph

13 Commits

Author SHA1 Message Date
Marius 8ad39ff466 gcsstore: Cancel context in tests to please 'go vet' 2019-06-11 16:52:36 +02:00
Marius 02c5942843 core: Use context package from Go stdlib 2019-06-11 16:16:02 +02:00
ridhozhr 53b86abc35 gcsstore: Add ability to set custom object prefix (#275)
Squashed commit of the following:

commit e48ca3f3fe086504aa1a97d26e2f4fe263880664
Author: Marius <maerious@gmail.com>
Date:   Sun Jun 2 15:54:39 2019 +0200

    Format Go source code

commit 477ef689d3
Merge: 82c50f9 b89c337
Author: Ridho Azhar <azharridho42@gmail.com>
Date:   Mon May 27 15:56:20 2019 +0700

    Merge branch 'master' into master

commit 82c50f9364
Author: ridhozhr <ridho@nodeflux.io>
Date:   Mon May 27 13:30:57 2019 +0700

    add test file with prefix

commit aa8a29866f
Author: ridhozhr <ridho@nodeflux.io>
Date:   Mon May 27 13:18:08 2019 +0700

    remove object prefix gcs from parameter

commit e25b36c5e9
Author: ridhozhr <ridho@nodeflux.io>
Date:   Wed May 22 22:19:01 2019 +0700

    add flags gcs object prefix validation

commit 53762be170
Author: ridhozhr <ridho@nodeflux.io>
Date:   Wed May 22 22:04:17 2019 +0700

    integrate prefix with store method

commit fe62533f1e
Author: ridhozhr <ridho@nodeflux.io>
Date:   Wed May 22 21:03:25 2019 +0700

    add prefix in test file gcs store

commit e824008fe2
Author: ridhozhr <ridho@nodeflux.io>
Date:   Wed May 22 20:57:32 2019 +0700

    integrate flags with composer gcs object prefix

commit bb2ee4cf41
Author: ridhozhr <ridho@nodeflux.io>
Date:   Wed May 22 20:54:38 2019 +0700

    add gcs-object-prefix flag

commit 600f4fc939
Author: ridhozhr <ridho@nodeflux.io>
Date:   Wed May 22 20:54:14 2019 +0700

    add object prefix in gcs store
2019-06-02 15:58:33 +02:00
Acconut c0651e77fc gcsstore: Do not ignore errors when writing an object
Previously, any error returned from w.Close() would be ignored. This is
a problem since this function is responsible for returning any error
that occurred during the actual GCS transaction.

This fix also uncovered an issue in the corresponding test routine.

Furthermore, a "404 Not Found" error when writing an object is now
interpreted as if the bucket does not exist to ease debugging
(see https://github.com/tus/tusd/issues/241).

/cc @tab1293
2019-03-10 17:01:29 +01:00
Jonas Thelemann df77e34fed Correct "around" Spelling (#242) 2019-02-12 22:11:11 +01:00
Tom Berger 9406b5e516 Update tests to pass context and expect GetObjectSize in any order 2018-07-25 12:51:38 -04:00
Tom Berger 82e140d317 Pass GCS object params directly to goroutine 2018-07-25 12:51:07 -04:00
Tom Berger a1273df6cd Pass contexts to GCSService. Add support for concurrent GetObjectSize requests in GetInfo 2018-07-25 10:25:59 -04:00
Valentin Hăloiu 368a3672f9
Handle GCS object-not-found error 2018-05-25 12:14:16 +02:00
Valentin Hăloiu b1b51b8688
Fix typo in GCS ReadObject comment 2018-05-25 12:11:58 +02:00
Peixian Wang bbb0fd5ec7
GetInfo now properly retrieves the object size 2017-11-28 10:24:30 -05:00
Marius 6f9b66f3ad Fix nil pointer derefernce in gcsstore tests 2017-11-21 14:29:28 +01:00
Tom Berger 4c0f4cc9d9 Add support for Google Cloud storage as a DataStore (#106)
* Add support for Google cloud storage as a DataStore

* Use memorylocker in GCS composer

* Add documentation and recursive compose

* Offset being calculated in getInfo. Tests not working

* Fix tests. Attach metadata to composed object.

* Add dependencies using govendor. Add new package to README. Add test instructions for AppVeyor

* Add google cloud internal and transport packages with govendor

* Adding more dependencies to pass travis integration

* Update w/ internal packages

* Skip tests on go1.5/1.6

* Gcsstore tests (#2)

* Refactor as a struct of clojures for testing

* Refactor to support tests

* Add docs

* Struct members cannot fufill the interface, adding wrapper functions

* update tests

* Update documentation

* add more tests

* Add gock and redo some tests

* Add gock

* remove unneeded clojures
2017-09-16 20:49:09 +02:00