Commit Graph

928 Commits

Author SHA1 Message Date
Hector Sanjuan
6e056c0781
Merge branch 'master' into 0.3.5/changelog 2018-03-29 13:43:01 +02:00
Hector Sanjuan
9c5ca7cfe5
Merge pull request #363 from ipfs/fix/wait
Fix: --wait flag in ipfs-cluster-ctl and WaitFor function
2018-03-29 12:00:08 +02:00
Hector Sanjuan
41433298f5 Fix: --wait flag. Address comments
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-29 11:25:15 +02:00
Hector Sanjuan
851e78ad02 Add test for WaitFor
Actually test that WaitFor waits

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-29 11:23:40 +02:00
Hector Sanjuan
4da2458db9 Fix: WaitFor never returning
Since no-one is reading sf.Out, sending blocks and everything hangs.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-29 11:23:40 +02:00
Hector Sanjuan
018e5dbaea Fix: --wait flag in ipfs-cluster-ctl
The --wait flag was being completely ignored unless --no-status was passed
too, which makes no sense because then it would print the wait status.

This waits when --wait and prints the status when --no-status is not passed.

If we have been waiting, the status comes from that. Otherwise we request it.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-29 11:23:40 +02:00
Adrian Lanzafame
31bce165ae cmd/svc: force quit ipfs-cluster-service on 2nd ctrl-c
Refactor daemon() to reduce code complexity.

Refactor configuration in ipfs-cluster-service.

License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-03-29 12:01:31 +10:00
Hector Sanjuan
53b0b86e52
Merge pull request #365 from ipfs/fix/type-errors
api/types: do not print some errors
2018-03-28 20:06:32 +02:00
Hector Sanjuan
a8d15876a0
Merge pull request #364 from ipfs/fix/downcase_api_config_id
Fix: downcase json keys for api config
2018-03-28 20:06:23 +02:00
Hector Sanjuan
403a4cf6e0 api/types: do not print some errors
The rest/client does things like "return id.ToID(), err" which is nice.
But when there's an error the ID has Cid set to nil etc. This is now
causing error messages on the console which are very misleading because
they do not correspond to the actual error of the request.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-28 19:16:49 +02:00
Hector Sanjuan
9c40d971f6 api/rest: PrivateKey -> private_key for the json config
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-28 18:23:12 +02:00
Hector Sanjuan
3da9776408 api/rest: ID -> id. All keys in the json config should be downcase
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-28 18:20:21 +02:00
Hector Sanjuan
fac3b94b92 captains log
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-28 17:42:37 +02:00
Hector Sanjuan
1d4f4f0dc8 Changelog for 0.3.5
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-28 17:42:37 +02:00
Hector Sanjuan
f8acd4f1af
Merge pull request #361 from ipfs/fix/recover-pin
Fix: Recover does not pin recursively
2018-03-28 01:53:42 +02:00
Hector Sanjuan
9a67be60cd
Merge pull request #348 from ipfs/feat/rest/client/wait
rest/client: Add WaitFor utility function
2018-03-27 14:36:19 +02:00
Hector Sanjuan
4de7cb0ed6 Fix: Recover does not pin recursively
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-27 14:11:21 +02:00
Adrian Lanzafame
4d48504779 rest/client: Add WaitFor utility function
address feedback and add WaitForPinnedStatus

address feedback and rework WaitFor

implement StatusFilter

address feedback and rework StatusFilter

License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-03-27 14:56:49 +10:00
Hector Sanjuan
da1ef2a7d1 gx publish 0.3.5-rc1
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-26 21:57:39 +02:00
Hector Sanjuan
72876465d6
Release 0.3.5-rc1
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-26 21:50:18 +02:00
Hector Sanjuan
a888e1dfb3
Merge pull request #356 from ipfs/feat/269-shell-client
Fix #269: Add IPFS() method to api/rest/client
2018-03-26 19:48:23 +02:00
Hector Sanjuan
0854c1f1fe
Merge pull request #360 from ipfs/feat/fs-lock
Use go-fs-lock pkg
2018-03-26 18:10:35 +02:00
Hector Sanjuan
8d3937a637
Merge branch 'master' into feat/fs-lock 2018-03-26 15:40:10 +02:00
Hector Sanjuan
7ca3dc292a Fix #269: Add IPFS() method to api/rest/client
The IPFS() methods returns an ipfs Shell pointing to the ipfs-cluster
proxy endpoint. The location can be customized (via ProxyAddr configuration
option) or it is assumed to be the same as the PeerAddr/APIAddr, with
a different port (the default).

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-26 15:23:14 +02:00
Hector Sanjuan
a4adce6592
Merge pull request #349 from ipfs/feat/restapi-libp2p
Feat #305: Libp2p support for REST API
2018-03-26 14:22:39 +02:00
Adrian Lanzafame
364a134eb5 Use go-fs-lock pkg
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-03-26 19:28:47 +10:00
Hector Sanjuan
2cea3d2b07
Merge pull request #357 from racin/master
Documentation: Can't get peers to connect without /ipfs/ before <id>.
2018-03-22 01:28:26 +01:00
Racin Nygaard
3a3abfc31e Documentation: Can't get peers to connect without /ipfs/ before <id>.
This is also reflected in the other documentations.

License: MIT
Signed-off-by: racin <mail@racin.no>
2018-03-22 01:08:04 +01:00
Hector Sanjuan
8e7ca5a682 rest/config: remove dup https options
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-21 16:16:24 +01:00
Hector Sanjuan
8d8bcf6ce5
Merge pull request #355 from ipfs/doc/readme-go-version
Readme: specify that we want Go1.9+
2018-03-21 15:46:32 +01:00
Hector Sanjuan
75c82ab0c9
Merge pull request #353 from ipfs/feat/error-msgs-bootstrap
Improve errors for bootstraps
2018-03-21 11:58:27 +01:00
Hector Sanjuan
4ea873c297 api/rest/client: run endpoint tests in parallel
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-21 09:51:20 +01:00
Hector Sanjuan
72ee994b8f
Readme: specify that we want Go1.9+ 2018-03-21 09:33:12 +01:00
Hector Sanjuan
62bdbaa9f3 Use iff iff it is necessary
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-21 00:34:57 +01:00
Hector Sanjuan
6777122abf rest/libp2p-http: address @zenground0 comments
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-20 19:51:57 +01:00
Hector Sanjuan
09f4c9fce3 rest/libp2p-http: address lanzafame's review
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-20 19:35:42 +01:00
Hector Sanjuan
a6acb72a2c Improve errors for bootstraps
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-20 14:27:49 +01:00
Hector Sanjuan
23d2db15e7 ipfs-cluster-ctl: fix sharness
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-16 19:37:52 +01:00
Hector Sanjuan
02bde2650e api/rest: refactorings in config.go (codeclimate)
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-16 14:55:36 +01:00
Hector Sanjuan
a9a58a50a0 Config: provide utility to parse duration arguments. Use it.
Should reduce complexity (codeclimate).

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-16 14:22:11 +01:00
Hector Sanjuan
b989e1726d api/rest: refactor run() (codeclimate)
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-16 13:53:07 +01:00
Hector Sanjuan
e5ac535c44 api/rest: refactor LoadJSON (codeclimate)
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-16 13:48:46 +01:00
Hector Sanjuan
5cd048a65d api: move some util functions to util.go (codeclimate file lines)
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-16 13:43:14 +01:00
Hector Sanjuan
a73d7e6f7e Relocate multiaddrJoin and multiaddrSplit to api/types.h
So they can serve as multi-module helpers without having circular deps.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-16 13:37:32 +01:00
Hector Sanjuan
2227e5e25f rest/client: refactor transport setup (codeclimate)
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-16 13:23:38 +01:00
Hector Sanjuan
f74c7b2c6e Feat #305: Golinting
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-16 13:08:11 +01:00
Hector Sanjuan
de07a9dd70
Merge pull request #344 from ipfs/feat/wrong-secrets
Fix #167: Useful messages when consensus doesn't start
2018-03-16 11:41:05 +01:00
Hector Sanjuan
73581b0471 ipfs-cluster-ctl: Allow libp2p multiaddress as --host. Use libp2p in that case.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-15 17:15:23 +01:00
Hector Sanjuan
3eee5d0ddb cluster-service: re-use cluster libp2p host for rest API by default
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-15 17:14:22 +01:00
Hector Sanjuan
4bed9d0076 api/rest/client: add private networks support.
Also, re-use some convinient functions provided by pnet.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-15 17:14:22 +01:00