ipfs-cluster/test
Hector Sanjuan 4922c95589 Support --local parameter for Status[Local] and Sync[Local] operations
This allows to call the Rest API's status and sync endpoints with a
"?local=true" parameter. This will trigger operations but only on the
local peer. Cluster *Local and RPC-*Local methods have been accordingly,
although they are aliases for the PinTracker methods (but otherwise they
would not be exposed in external APIs). ipfs-cluster-ctl has been updated to
support the new flag.

The rationaly behind this feature is that sometimes, a single cluster peer
(or the ipfs daemon in it) is misbehaving. The user then wants to Sync,
Recover, or see Status for that single peer. This is specially relevant
when working with big pinsets in larger clusters, as a Status() call will
be considerably more expensive when broadcasted everywhere.

Note that the Rest API keeps returning GlobalPinInfo objects even on local=true
calls. This ensures that the user always gets the same datatype from an endpoint.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-01 12:56:26 +01:00
..
cids.go go vet fixes 2017-02-15 15:46:51 +01:00
ipfs_mock.go Fix #224: Better handling of progress updates when proxy-adding file 2017-11-13 14:09:20 +01:00
rpc_api_mock.go Support --local parameter for Status[Local] and Sync[Local] operations 2017-12-01 12:56:26 +01:00
test_test.go Issue #41: Add Replication factor 2017-02-14 19:13:08 +01:00
test.go Move testing mocks to subpackage so they can be re-used 2017-02-09 17:51:19 +01:00