Commit Graph

18 Commits

Author SHA1 Message Date
Luca Berton 0b2312020f
Fix typos 2018-11-21 21:43:55 +01:00
Anders Chen 9af87d50ce Add etcd3 locker (#202)
* First pass at etcd3 locker

* Add etcd packages to vendor ignore attribute

* Properly exclude etcd3locker from earlier versions of golang

* Etcd test to only run on go1.9 and go1.10

* Do not export internal etcd3locker methods

* context.TODO -> context.Background

* Return errors instead of logging

* Enforce a 1.5s timeout on acquiring a lease from etcd

* Allow etcd3 concurreny.NewSession manage KeepAlive connection

- Introduce LockerOptions to allow a custom session TTL (default: 60s); etcd3Locker can be initialized with NewWithLockerOptions if one wants granular control over TTL and prefix used for etcd3 keys
- Keep NewWithPrefix backwards compatible by calling NewWithLockerOptions

* Add comment on locker_test.go regarding testing the session KeepAlive

* Re-export main type

* Try to address missing github.com/gogo/protobuf/gogoproto package

* Update etcd package import to use go.etcd.io/etcd/clientv3

* Use forked go-etcd-harness for testing

* Add more extensive package overview / docs

* go fmt

* Fix test script

* Add downloaded etcd binary to path
2018-11-10 20:05:44 +00:00
Marius e8b1cb18d4 Update dependencies 2017-11-20 22:35:32 +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
Peixian Wang a7950fdadb Add HTTP hooks
Closes https://github.com/tus/tusd/pull/120
2017-04-14 16:29:18 +02:00
Marius 377aee0562 Update testing dependencies 2017-04-12 12:10:24 +02:00
Marius 7f26757a40 Update lockfile dependency 2017-03-03 11:16:56 +01:00
Marius 168942bfb6 Remove Prometheus client from vendors dependencies
Closes https://github.com/tus/tusd/issues/114
2017-02-28 17:17:13 +01:00
Marius 9753aae065 Use personal fork of nightlyone/filelock 2016-09-30 12:03:49 +02:00
Marius 56e9147bbc add vendor 2016-09-20 23:47:49 +02:00
Marius 48d0e92fe6 remove vendor 2016-09-20 23:06:27 +02:00
Marius beef245bd3 Remove aws-go-sdk and consul package from vendor directory
This prevented using the s3store and consullocker packages since
Go required the user to provide types from the vendored packages
but the user cannot access these.

Fixes #59
2016-08-26 16:20:10 +02:00
Marius d1dd811301 Update vendored dependencies 2016-05-24 15:58:19 +02:00
Marius 075cc584e3 Update dependencies 2016-02-11 16:15:25 +01:00
Marius e64e99eec3 Update dependencies 2016-01-10 13:28:23 +01:00
Marius a1141b836f Squashed commit of the following:
commit 0203e5c57f397865fd5a95b7f91f5f27fd306431
Author: Marius <maerious@gmail.com>
Date:   Sat Jan 9 20:39:46 2016 +0100

    Update dependencies

commit be5b2b8f62b4644fd9c52a838fe68d98b4eae8e4
Author: Marius <maerious@gmail.com>
Date:   Sat Jan 9 19:17:32 2016 +0100

    Pull dependencies from vendor/ in /home/marius/workspace/go for Go < 1.5

commit e631bbcc59e4c9e5e928b172b4c6aab6eb71274d
Author: Marius <maerious@gmail.com>
Date:   Sat Jan 9 19:15:20 2016 +0100

    Vendor dependencies
2016-01-09 20:44:06 +01:00
Marius 83f71dcd92 Add dependencies using vendoring technique 2016-01-05 19:10:21 +01:00
Marius 4ee2a09510 Use Go's vendoring for dependencies 2015-12-26 22:28:36 +01:00