• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ipfs / ipfs-cluster / 1196
73%
master: 65%

Build:
Build:
LAST BUILD BRANCH: feat/expvar
DEFAULT BRANCH: master
Ran 01 Dec 2017 12:39PM UTC
Jobs 1
Files 32
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1196

push

travis-ci

hsanjuan
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>

214 of 214 new or added lines in 4 files covered. (100.0%)

3855 of 5315 relevant lines covered (72.53%)

150.34 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
api/rest/restapi.go
6
100.0
cluster.go
17
100.0
rpc_api.go
72
100.0
test/rpc_api_mock.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
test/rpc_api_mock.go
3
100.0
rpc_api.go
Jobs
ID Job ID Ran Files Coverage
1 1196.1 01 Dec 2017 12:39PM UTC 0
72.53
Travis Job 1196.1
Source Files on build 1196
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1196
  • 4922c955 on github
  • Prev Build on pin-bot (#1192)
  • Next Build on pin-bot (#1201)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc