Commit Graph

12 Commits

Author SHA1 Message Date
ridhozhr e824008fe2 integrate flags with composer gcs object prefix 2019-05-22 20:57:32 +07:00
ridhozhr 600f4fc939 add object prefix in gcs store 2019-05-22 20:54:14 +07: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