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

ipfs / ipfs-cluster / 730
75%
master: 65%

Build:
Build:
LAST BUILD BRANCH: feat/expvar
DEFAULT BRANCH: master
Ran 13 Oct 2017 09:42PM UTC
Jobs 1
Files 30
Run time 3s
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
730

push

travis-ci

hsanjuan
<a href="https://github.com/ipfs/ipfs-cluster/commit/<a class=hub.com/ipfs/ipfs-cluster/commit/d06c185fd1178ad5009fbbeef5239fe5c6e072de">d06c185fd<a href="https://github.com/ipfs/ipfs-cluster/commit/d06c185fd1178ad5009fbbeef5239fe5c6e072de">&quot;&gt;Issue #162: Rework configuration format

The following commit reimplements ipfs-cluster configuration under
the following premises:

  * Each component is initialized with a configuration object
  defined by its module
  * Each component decides how the JSON representation of its
  configuration looks like
  * Each component parses and validates its own configuration
  * Each component exposes its own defaults
  * Component configurations are make the sections of a
  central JSON configuration file (which replaces the current
  JSON format)
  * Component configurations implement a common interface
  (config.ComponentConfig) with a set of common operations
  * The central configuration file is managed by a
  config.ConfigManager which:
    * Registers ComponentConfigs
    * Assigns the correspondent sections from the JSON file to each
    component and delegates the parsing
    * Delegates the JSON generation for each section
    * Can be notified when the configuration is updated and must be
    saved to disk

The new service.json would then look as follows:

```json
{
  &amp;quot;cluster&amp;quot;: {
    &amp;quot;id&amp;quot;: &amp;quot;QmTVW8NoRxC5wBhV7WtAYtRn7itipEESfozWN5KmXUQnk2&amp;quot;,
    &amp;quot;private_key&amp;quot;: &amp;quot;&lt;...&gt;&quot;,
    &quot;cluster_secret&quot;: &quot;</a><a class="double-link" href="https://github.com/ipfs/ipfs-cluster/commit/<a class="double-link" href="https://github.com/ipfs/ipfs-cluster/commit/00224102ae6aaf94f2606abf69a0e278251ecc1d">00224102a</a>">00224102a</a><a href="https://github.com/ipfs/ipfs-cluster/commit/d06c185fd1178ad5009fbbeef5239fe5c6e072de">64815b617ff19d6d2841f786&quot;,
    &quot;cluster_peers&quot;: [],
    &quot;bootstrap&quot;: [],
    &quot;leave_on_shutdown&quot;: false,
    &quot;listen_multiaddress&quot;: &quot;/ip4/0.0.0.0/tcp/9096&quot;,
    &quot;state_sync_interval&quot;: &quot;1m0s&quot;,
    &quot;ipfs_sync_interval&quot;: &quot;2m10s",
    "replication_factor": -1,
    "monitor_... (continued)

754 of 754 new or added lines in 18 files covered. (100.0%)

3113 of 4541 relevant lines covered (68.55%)

182.5 hits per line

Uncovered Changes

Lines Coverage ∆ File
113
100.0
api/rest/config.go
80
100.0
ipfsconn/ipfshttp/config.go
70
100.0
consensus/raft/config.go
42
100.0
cluster_config.go
39
100.0
informer/disk/config.go
26
100.0
monitor/basic/config.go
25
100.0
informer/numpin/config.go
4
100.0
cluster.go
2
100.0
consensus/raft/logging.go
2
100.0
consensus/raft/raft.go
1
100.0
api/rest/restapi.go
Jobs
ID Job ID Ran Files Coverage
1 730.1 13 Oct 2017 09:42PM UTC 0
68.55
Travis Job 730.1
Source Files on build 730
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #730
  • d06c185f on github
  • Next Build on 162-new-configs (#747)
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