Łukasz Magiera
f20683eb53
Reprovider strategies
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-13 00:02:23 +02:00
Jeromy Johnson
50bb128bce
Merge pull request #4095 from ipfs/feat/object-pin
...
object put --pin option
2017-08-12 14:32:18 -07:00
Łukasz Magiera
0953295ce4
dag: add dag-pb support to put
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-12 21:49:07 +02:00
Łukasz Magiera
6bf019aeed
dag: cbor input-enc
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-12 21:49:07 +02:00
Łukasz Magiera
0f234d76ae
dag: add option to specify hash
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-12 21:49:07 +02:00
Sherod Taylor
bc75d3b88a
Removed tour command and fix test
...
License: MIT
Signed-off-by: Sherod Taylor <sherodtaylor@gmail.com>
2017-08-09 10:14:57 -04:00
Jeromy Johnson
3b60666d25
Merge pull request #4073 from icidasset/master
...
Expose Content-Range header
2017-08-05 12:24:55 -07:00
Steven Allen
38a9be5a0a
gx: update go-libp2p-swarm
...
fixes #4102 (fixed in go-libp2p-swarm)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-31 14:04:40 -07:00
Łukasz Magiera
778d6c635d
object put: wrap CID in Object
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-31 22:06:00 +02:00
Łukasz Magiera
c9446a7720
object: make objectPut return CID
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-31 19:38:05 +02:00
Łukasz Magiera
e1bc025e38
object put --pin option
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-31 19:38:05 +02:00
Lars Gierth
952f658ada
core: make announced swarm addresses configurable
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-07-31 13:03:09 +02:00
Steven Allen
5f3c01a7c1
gx: update deps
...
This should hopefully fix a lot of our CI problems.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-29 22:14:05 -07:00
Jeromy Johnson
02dc2604b3
Merge pull request #4082 from te0d/feat/commands/add-size
...
ipfs add: added size to response of `ipfs add` command
2017-07-29 14:49:20 -07:00
Steven Allen
28be1d4c58
gx: update deps
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-27 18:48:16 -07:00
Jeromy Johnson
181dd0061c
Merge pull request #4053 from Quantomicus/bugfix
...
Fixes #4003
2017-07-23 12:22:58 -07:00
Tom O'Donnell (te0d)
0a01ffb87f
ipfs add: added size to response of ipfs add command
...
The `ipfs add` command was modified to include the added
node's size as a string. The size is included in the
dagnode info sent over the output channel.
License: MIT
Signed-off-by: Tom O'Donnell <todonnel91@gmail.com>
2017-07-20 13:19:31 -04:00
Steven Vandevelde
20ad44af1c
core/http/gateway: Expose Content-Range header
...
The `Content-Range` header is necessary for extracting (only)
the metadata of audio files.
License: MIT
Signed-off-by: Steven Vandevelde <icid.asset@gmail.com>
2017-07-19 13:28:33 +02:00
Steven Allen
e8f6486a9c
gx: update ipldcbor
...
I previously optimized the IPLD cbor decoder to *not* encode and then re-decode
objects when constructing them with `WrapObject`. Unfortunately, we rely on this
to canonicalize the object before computing the tree/links.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-17 13:09:08 -07:00
Jeromy Johnson
4c3487017c
Merge pull request #4072 from ipfs/fix/dag-put-order
...
fix determination of 'root' node in dag put
2017-07-16 13:40:38 -07:00
Jeromy
7f89e09d1e
fix determination of 'root' node in dag put
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-16 03:14:33 -07:00
Jeromy
fe3a4c1772
remove some dead code
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-16 02:27:46 -07:00
Quantomic
049bca6d09
bandaid it instead
...
License: MIT
Signed-off-by: Mateja Milosevic <minima38123@gmail.com>
2017-07-14 20:09:55 +02:00
Jakub Sztandera
b0679728f0
make codeclimate more happy
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-13 08:49:11 +02:00
Jakub Sztandera
d6657edf59
make codeclimate a bit more happy
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-12 23:08:41 +02:00
Jeromy
7203c43b60
plugin: create plugin API and loader, add ipld-git plugin
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-12 21:53:59 +02:00
Jeromy
cccc6a94a3
update go-multihash and bubble up changes
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-11 19:27:43 -07:00
ivan386
0eafa5e25f
Merge branch 'master' of https://github.com/ipfs/go-ipfs into patch-3
2017-07-06 19:16:41 +03:00
Jeromy
579fd46488
track broadcasted wantlist entries
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-05 10:51:51 -07:00
Jeromy
e43d1317bb
rework how refcounted wantlists work
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-05 10:47:23 -07:00
Jeromy
bda8c3a687
implement bitswap sessions
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-05 10:47:22 -07:00
Herman Junge
f512a33998
ipfs block put: Add CID Codecs to "ipfs block put"
...
Adding codecs found in
Use the codec map implemented in https://github.com/ipfs/go-cid/pull/26
License: MIT
Signed-off-by: Herman Junge <chpdg42@gmail.com>
2017-07-05 00:34:07 -04:00
Łukasz Magiera
8ab93aaeb2
Update go-datastore to 1.2.2, go-cid to 0.7.16
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-04 20:18:57 +02:00
Łukasz Magiera
4b8a9a3f9f
Update go-datastore to 1.2.1
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-03 20:17:03 +02:00
Jeromy Johnson
7ad494887c
Merge pull request #4004 from ipfs/feat/dagpin
...
Add pin option for ipfs dag put
2017-07-03 10:54:39 -07:00
Łukasz Magiera
0419e3d14a
blocks: update go-ipld-cbor
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-01 02:56:22 +02:00
Steven Allen
520938a9ec
gx import/update libp2p/go-libp2p-routing
...
For some reason, this was referenced but wasn't listed in packages.json.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-06-29 22:12:14 +02:00
Steven Allen
13636bef50
blocks: gx import go-block-format
...
And updated related dependencies.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-06-29 22:12:14 +02:00
Steven Allen
bccd4d4e8f
blocks: move block format to it's own repo
...
We need to reference it from outside of this repo.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-06-29 22:12:14 +02:00
Łukasz Magiera
79e21bd96b
Add pin option for ipfs dag put
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-28 12:05:23 +02:00
Jeromy Johnson
628245fffb
Merge pull request #4005 from ipfs/fix/404msg
...
Show escaped url in gateway 404 message
2017-06-27 19:44:48 -07:00
Łukasz Magiera
5ebf897f6f
Show escaped url in gateway 404 message
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-26 19:04:18 +02:00
Ivan
8b88b7ffd2
check strong and weak ETag validator
...
CDN may change strong ETag validator to weak ETag validator.
License: MIT
Signed-off-by: Ivan <ivan386@users.noreply.github.com>
2017-06-22 19:06:48 +03:00
Łukasz Magiera
bb172789f7
Fix typo: ppp -> p2p
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-21 16:32:15 +02:00
Łukasz Magiera
bec54c2540
Rename PTP to P2P
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-19 21:30:58 +02:00
Steven Allen
e2cd36e88f
pinning + pathresolver: fix pinning/unpinning of sharded directories
...
* Change ResolveToCid to take a Resolver and a NameSystem instead of an ipfs
Node.
* Make the pin/unpin methods use a Unixfs path resolver.
Closes : #3974
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-06-12 18:12:29 -07:00
Jeromy Johnson
77c5f56178
Merge pull request #3966 from torresashjian/fix/cmds/dht-findprovs-num
...
Add 'ipfs dht findprovs --num-providers' to allow choosing number of providers to find
2017-06-10 10:24:24 -07:00
Jeromy Johnson
10f9e771f7
Merge pull request #3951 from ipfs/kevina/repub
...
Make sure non-self keys also get republished
2017-06-10 10:17:10 -07:00
Miguel Torres
bfc9eecb17
Use long name for option lookup
...
License: MIT
Signed-off-by: Miguel Torres <migueltorreslopez@gmail.com>
2017-06-09 21:56:25 -07:00
Jeromy Johnson
18d2a2d8f4
Merge pull request #3943 from magik6k/feat/corenet2
...
Implemented experimental ptp(corenet) interface
2017-06-09 19:56:02 -07:00
Miguel Torres
9e11a41758
Add option to choose a specific number of providers to search for
...
License: MIT
Signed-off-by: Miguel Torres <migueltorreslopez@gmail.com>
Apply fmt
License: MIT
Signed-off-by: Miguel Torres <migueltorreslopez@gmail.com>
Add format
License: MIT
Signed-off-by: Miguel Torres <migueltorreslopez@gmail.com>
2017-06-09 17:54:53 -07:00
Jeromy Johnson
67828a4b4f
Merge pull request #3963 from ipfs/feat/gateway-go-get
...
gateway: don't redirect to trailing slash if it's go get
2017-06-08 21:00:22 -07:00
Lars Gierth
4fe5b3eab7
gateway: don't redirect to trailing slash if it's go get
...
This enables `go get` to parse go-import meta tags from index.html
files stored in IPFS. One tiny step toward whyrusleeping/gx-go#2 .
For an import like `ipfs.io/ipfs/QmFoo/mypkg`, the gateway would
previously redirect to `/ipfs/QmFoo/mypkg/` (note the trailing slash),
which the `go get` tool can't deal with.
Thankfully, `go get` sets a URL query parameter (`?go-get=1`) which
we can use to switch off the redirect in this case.
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-06-08 03:23:48 +02:00
Kevin Atkinson
d674dd7e1f
repub: iterate through all keys in keystore
...
Iterate through all keys in the keystore so keys added with
"ipfs key gen" behave the same as the <self> key. Don't maintain a
separate repub list as it does not really serve a purpose at this
point in time. See #3808 .
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-06-07 14:35:44 -04:00
Łukasz Magiera
043aa5f308
PTP API: Address review comments
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-07 19:51:44 +02:00
Łukasz Magiera
104268f1b6
PTP API: Make code more object oriented, use less node
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-04 03:08:39 +02:00
Łukasz Magiera
ad9ae350bf
PTP API: Rename Corenet to PTP
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-03 21:46:16 +02:00
zramsay
6c064d1fc3
bugfix: copy the correct variable
...
License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
2017-06-02 23:59:54 -04:00
Łukasz Magiera
eac71847bd
Corenet API: Move more logic away from commands
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-02 21:44:38 +02:00
Łukasz Magiera
e66e8bbe96
Corenet API: Review fixes
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-01 20:11:46 +02:00
zramsay
096b3232d5
address PR comments; remove commented/dead code
...
License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
2017-06-01 12:13:04 -04:00
zramsay
c5df8f0796
apply the megacheck tool to improve code quality
...
License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
2017-05-31 16:56:11 -04:00
Łukasz Magiera
e0bd4a1188
Corenet API: Fix codeclimate issues
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 15:18:39 +02:00
Łukasz Magiera
a3889a7164
Corenet API: Update deps
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 12:35:31 +02:00
Łukasz Magiera
71bda3d988
Corenet API: Drop 'exp' namespace
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
Łukasz Magiera
8948519590
Corenet API: Store state in node
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
Łukasz Magiera
fc08d5331b
Corenet API: Apply suggestions, cleanups
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
Łukasz Magiera
9414e73c34
Corenet API: Split list subcmd into ls/streams
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
Łukasz Magiera
a55255fbca
Corenet API: Fixed tests
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
Tom Swindell
2f17a67c5a
Experimental corenet application support.
...
License: MIT
Signed-off-by: Tom Swindell <t.swindell@rubyx.co.uk>
2017-05-31 11:33:17 +02:00
Lars Gierth
64ced367ac
gx: update go-libp2p-peerstore, go-libp2p, go-libp2p-kbucket
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-05-30 02:26:05 +02:00
Kevin Atkinson
b4a008720d
"pin verify": fix API
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-05-25 13:52:04 -04:00
Kevin Atkinson
7a4031ddb7
"pin verify": add --verbose and --quiet options
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-05-25 13:40:06 -04:00
Kevin Atkinson
6e898ea678
"pin verify": don't use a pointer to a slice.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-05-25 13:40:06 -04:00
Kevin Atkinson
325e1c0839
"pin verify": basic implementation
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-05-25 13:40:06 -04:00
Jeromy Johnson
4cf046c4fb
Merge pull request #3928 from ipfs/feat/provide-ann-opt
...
update to dht code with provide announce option
2017-05-25 10:11:09 -07:00
Jeromy Johnson
1c9a419e22
Merge pull request #3882 from keremgocen/fix-cmd-key-peerid
...
WIP: add PeerID lookup
2017-05-25 10:10:47 -07:00
Jeromy Johnson
9a9df1f176
Merge pull request #3941 from jdanford/typo-neccessary
...
Change 'neccessary' to 'necessary'
2017-05-24 17:48:43 -07:00
Jeromy Johnson
a6bb83b8ad
Merge pull request #3940 from ipfs/fix/http-proc-panic
...
make odds of 'process added after close' panic less likely
2017-05-24 17:45:41 -07:00
Jordan Danford
c9e20dd907
Change 'neccessary' to 'necessary'
...
License: MIT
Signed-off-by: Jordan Danford <jordandanford@gmail.com>
2017-05-24 09:40:53 -07:00
Jeromy
53f1a9a50a
make odds of 'process added after close' panic less likely
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-05-24 09:12:27 -07:00
Kevin Atkinson
332a7967f9
filestore: add "--file-order" option to "filestore ls" and "verify"
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-05-23 17:40:20 -04:00
Jeromy
0418930ca8
update to dht code with provide announce option
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-05-23 13:59:36 -07:00
Jeromy Johnson
8e2aed3023
Merge pull request #3846 from ipfs/feat/pin-update
...
implement ipfs pin update
2017-05-17 22:44:31 -07:00
Jeromy Johnson
630f9ae29e
Merge pull request #3884 from ipfs/feat/shutdown-cmd
...
Implement ipfs shutdown command
2017-05-17 22:44:06 -07:00
Jeromy
315849639d
implement ipfs pin update
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-05-17 21:31:47 -07:00
Jeromy Johnson
0780a4fdb4
Merge pull request #3892 from MichaelMure/keystore_key_rm
...
Implement ipfs key {rm, rename}
2017-05-17 21:28:36 -07:00
Jeromy
adb555c3eb
Implement ipfs shutdown command
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-05-17 21:27:47 -07:00
Jeromy Johnson
5ef2f42d44
Merge pull request #3914 from jes/master
...
Add Suborigin header to gateway responses
2017-05-17 21:21:26 -07:00
Jeromy Johnson
d6983801de
Merge pull request #3909 from TUSF/doc/pubsub-end
...
Adding documentation that PubSub Sub can be encoded.
2017-05-15 13:07:21 -07:00
Jeromy Johnson
219b41bff8
Merge pull request #3915 from ipfs/kevina/repo-stat-storagemax
...
Add MaxStorage field to output of "repo stat".
2017-05-15 12:27:42 -07:00
Jeromy Johnson
a4ffefd2ad
Merge pull request #3919 from ipfs/kevina/add-hash-fun
...
adder: add support for specifying the hash function
2017-05-14 15:27:42 -07:00
Kevin Atkinson
4bbd00185c
adder: add support for specifying the hash function
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-05-14 17:38:32 -04:00
Michael Muré
2593495311
Document exported symbols
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-14 21:02:01 +09:00
James Stanley
cb2a38d89b
Add Suborigin header to gateway responses ( #3209 )
...
This existed before but was disabled in 912a972 because the Suborigin spec
changed and it became incompatible.
This commit updates the generated Suborigin header to be conformant with the
latest spec.
License: MIT
Signed-off-by: James Stanley <james@incoherency.co.uk>
2017-05-13 10:47:36 +01:00
Jeromy Johnson
864bf47a5a
Merge pull request #3895 from torresashjian/fix/cmds/add-msg-typo
...
Fix typo in message when file is not determined
2017-05-12 17:57:49 -07:00
Kevin Atkinson
cd8c4ee8e0
Use tabwritter for better formatted output.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-05-11 22:05:52 -04:00
Jeromy
1cddf67a35
remove 'ipfs diag net' from codebase
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-05-11 09:15:37 -07:00
Kevin Atkinson
0f46a34f59
Add MaxStorage field to output of "repo stat".
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-05-10 23:41:35 -04:00
TUSF
43b0b17d9a
Turns out, the Message will Marshal properly.
...
License: MIT
Signed-off-by: Jeremia Dominguez <ragef33@gmail.com>
2017-05-09 17:55:58 -05:00
Michael Muré
7e91da2067
Future-proof keystore.Has by returning an error as well
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-08 17:00:00 +09:00
Jeromy
5bb480b4da
improved gateway directory listing for sharded nodes
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-05-05 13:31:34 -07:00
Michael Muré
3aa6d78ee1
Implement ipfs key rename
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-04 17:30:10 +09:00
Miguel Torres
6a25b67e4d
Fix typo in message when file is not determined
...
License: MIT
Signed-off-by: Miguel Torres <migueltorreslopez@gmail.com>
2017-05-01 20:59:08 -07:00
Michael Muré
a813830657
Enable stdin for ipfs key rm's name argument
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-02 12:27:15 +09:00
Michael Muré
bd96f71d2c
Make ipfs key rm variadic
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-02 01:47:13 +09:00
Michael Muré
730ab6115c
fix fmt and exported var that shouldn't be
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-02 01:46:56 +09:00
Michael Muré
4d4d7b8e08
Implement ipfs key rm
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-01 15:23:17 +09:00
Jeromy Johnson
76cd541040
Merge pull request #3888 from ipfs/fix/add-mem-growth-hack
...
Flush cached directories every so often during an add
2017-04-30 21:56:49 -07:00
Jeromy
a22cae1bce
fix coreapi unixfs resolving
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-30 21:20:48 -07:00
Jeromy
0597a04924
Fix sharding memory growth, and fix resolver for unixfs paths
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-30 13:48:28 -07:00
Jeromy
e2b2d0996f
Flush cached directories every so often during an add
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-29 12:27:09 -07:00
Kerem
76e227d499
code review improvements
...
change core.IpfsNode as first arg
check keylookup err to propagate validation errors from lower levels
License: MIT
Signed-off-by: Kerem Gocen <keremgocen@gmail.com>
2017-04-27 21:00:48 +03:00
Kerem
39ece86484
add PeerID lookup
...
enhance key lookup logic and enable PeerID lookup in addition to the
key name
License: MIT
Signed-off-by: Kerem Gocen <keremgocen@gmail.com>
2017-04-27 19:45:18 +03:00
Jeromy Johnson
e5529cd57b
Merge pull request #3743 from ipfs/kevina/cidv1-add
...
Add support for using CidV1 in 'ipfs add'
2017-04-26 18:54:45 -07:00
Kevin Atkinson
076d0bd9b1
merkeldag: change SetPrefix param to a pointer and reset the prefix on nil
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:36:39 -04:00
Kevin Atkinson
518adec022
adder: add support for using CidV1
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:36:39 -04:00
Lars Gierth
126d249de5
deps: bubble up cbor update
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-04-26 05:21:01 +02:00
Kevin Atkinson
cf562403d2
adder: make chan size a constant
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:01:05 -04:00
Kevin Atkinson
b7eae36f90
adder: fix bug where errors from calls to NewAdder caused daemon to hang
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:01:05 -04:00
Jakub Sztandera
fe969d18be
mics: cleanup imports in touched files
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-04-24 15:01:55 +02:00
Jakub Sztandera
d1e3fc5c87
deps: Update go-is-domain to contain new gTLD
...
It should resolve issues with newer gTLDs being not selected
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-04-24 15:01:55 +02:00
Jeromy
b15470d548
bubble up updates from go-multihash changes
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-20 20:28:04 +02:00
Jakub Sztandera
584ab144f9
Merge branch 'master' into fix/gateway/3868-etag
2017-04-20 19:59:59 +02:00
Remco Bloemen
a90f4967e3
gateway: re-use resolved path
...
Instead of resolving a node, we resolve a path. This resolved path
is then re-used for Cat and Ls. This way, a resolve operation is
only done once.
The error messages for a failed resolve is changed from `ipfs cat …`
to `ipfs resolve …` to better reflect the API calls. The test is
updated accordingly.
License: MIT
Signed-off-by: Remco Bloemen <remco@2π.com>
2017-04-20 08:17:45 +01:00
Lars Gierth
2c4e6434ad
gateway: fix erroneous Cache-Control: immutable on dir listings
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-04-19 05:10:41 +02:00
Remco Bloemen
8db6f86de6
gateway: use CID as an ETag strong validator
...
* Always use the fully resolved CID from api.ResolveNode
as the ETag (also for IPNS).
* Format the result as a valid "Strong Validator"
(double quotes around the encoded CID).
Fixes #3868
License: MIT
Signed-off-by: Remco Bloemen <remco@2π.com>
2017-04-18 16:24:37 +01:00
Jakub Sztandera
43949eff29
test: skip the require all helptext test
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-24 18:21:40 +01:00
Jakub Sztandera
a11b806d93
Add ProcessHelp call to Helptext test.
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-24 18:18:28 +01:00
Jeromy
e7e22597ce
add test to enforce helptext on commands
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-03-24 18:18:28 +01:00
Hector Sanjuan
3b6216b239
Make Golint happy in the blocks submodule.
...
This has required changing the order of some parameters and
adding HashOnRead to the Blockstore interface (which I have in turn
added to all the wrapper implementations).
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-24 16:46:42 +01:00
Jeromy Johnson
ff997c1f7a
Merge pull request #3824 from ipfs/fix/govet/some-error
...
fix: multiple govet warnings
2017-03-23 20:56:10 -07:00
Jeromy Johnson
ac69697bd9
Merge pull request #3042 from ipfs/feat/hamt-sharding
...
Implement unixfs sharding
2017-03-23 20:51:52 -07:00
Jeromy
65b9716989
fix go vet issues in hamt sharding PR
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-23 18:01:57 -07:00
Jakub Sztandera
6546aeade7
fix: multiple govet warnings
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-24 01:02:50 +01:00
Jeromy
c4c665395a
add global config switch for sharding
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-23 16:42:31 -07:00
Kevin Atkinson
ffe9f3e566
filestore util: Use a Marshaler instead of PostRun...
...
and just output directly to Stderr and Stdout instead of returning
a reader.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-23 13:24:04 -04:00
Jeromy Johnson
2cc5ce45b8
Merge pull request #3777 from ipfs/fix/gateway-status-codes
...
Return 404 Not Found for failed path resolutions
2017-03-22 22:31:54 -07:00
Jeromy Johnson
2de21bc018
Merge pull request #3653 from ipfs/kevina/filestore-util
...
Basic Filestore Utilties
2017-03-22 21:41:48 -07:00
Kevin Atkinson
1eddb60f73
filestore util: doc improvement
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 20:56:35 -04:00
Jeromy Johnson
1cd1efd014
Merge pull request #3798 from ipfs/kevina/nat-discovery-config-v2
...
Add DisableNatPortMap option.
2017-03-22 13:48:02 -07:00
Kevin Atkinson
f7efb34e68
filestore util: Add 'filestore dups' command. Enhance tests.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 16:24:56 -04:00
Kevin Atkinson
064bb53884
filestore util: add documentation for 'filestore ls' and 'verify' commands.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 16:24:56 -04:00
Kevin Atkinson
13f617d139
filestore util: allow listing/verifying of individual blocks.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 16:24:56 -04:00
Kevin Atkinson
4bf43047d8
filestore util: basic filestore commands.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 16:24:56 -04:00
Jeromy
e8764345d6
fix handling of filestore nodes in mfs during add
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-21 20:19:22 -07:00
Jeromy
bb09ffd756
implement an HAMT for unixfs directory sharding
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-03-21 20:19:22 -07:00
Jeromy Johnson
7dee31b736
Merge pull request #3493 from ipfs/feat/coreapi-refinements
...
Core API refinements and efficiency improvements
2017-03-21 18:57:47 -07:00
Jeromy Johnson
21072a5f81
Merge pull request #3712 from ipfs/kevina/more-robust-gc
...
More Robust GC
2017-03-21 17:16:37 -07:00
Lars Gierth
0e68ffaaf0
commands: improve name and key helptexts
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-03-21 03:42:53 +01:00
Kevin Atkinson
d39d9ed60b
gc: address CR comments
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-20 14:46:02 -04:00
Kevin Atkinson
f66ca2ff24
gc: continue to use cmds.ChannelMarshaler
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-18 21:30:32 -04:00
Kevin Atkinson
da95e9f929
Add DisableNatPortMap option.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-18 18:50:10 -04:00
Lars Gierth
807ffb9141
commands/dns: return NotFound error for failed resolutions
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-03-17 04:16:36 +01:00
Lars Gierth
9e4800d40a
gateway: simplify error responses, switch to 404
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-03-17 04:10:28 +01:00
Lars Gierth
ee45b8d32f
coreapi: make the interfaces path centric
...
The new coreiface.Path maps a path to the cid.Cid
resulting from a full path resolution.
The path is internally represented as a go-ipfs/path.Path,
but that doesn't matter to the outside.
Apart from the path-to-CID mapping, it also aims to hold all
resolved segment CIDs of the path. Right now it only exposes
Root(), and only for flat paths a la /ipfs/Qmfoo. In other cases,
the root is nil.
In the future, resolution will internally use
go-ipfs/path.Resolver.ResolvePathComponents and thus always return
the proper resolved segments, via Root(), or a future Segments() func.
- Add coreiface.Path with Cid() and Root().
- Add CoreAPI.ResolvePath() for getting a coreiface.Path.
- All functions now expect and return coreiface.Path.
- Add ParsePath() and ParseCid() for constructing a coreiface.Path.
- Add coreiface.Node and Link which are simply go-ipld-node.Node and Link.
- Add CoreAPI.ResolveNode() for getting a Node from a Path.
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-03-17 03:47:59 +01:00
Lars Gierth
e260d2fd06
coreapi: smarter way of dealing with the different APIs
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-03-17 02:35:17 +01:00
Jakub Sztandera
38fc8131bf
feat: add quieter option to add
...
It disables all outputs apart from the last hash.
Useful for adding directories as you won't have to do `| tail -1`
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
DRY up
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-10 14:21:50 +01:00
Jakub Sztandera
66cc2f2e88
fix: ipfs get panic with empty API call
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-09 15:42:15 +01:00
Jeromy Johnson
74afd87986
Merge pull request #3760 from ipfs/fix/pin-add-api
...
fix pin add api break
2017-03-07 16:27:23 -08:00
Jeromy Johnson
eca0d1c734
Merge pull request #3757 from ipfs/fix/get-raw-leaves
...
make raw leaves work with 'ipfs get'
2017-03-07 15:40:18 -08:00
Jeromy
6a7750d5c2
fix pin add api break
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-07 01:10:46 -08:00
Kevin Atkinson
c83bbafbbc
gc: stream all errors including the last
...
and report "encountered errors during gc run" as the response error
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-07 03:02:28 -05:00
Jeromy
169f7899ba
fix progress bar on ipfs get
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-06 22:59:10 -08:00
Jeromy
b1588c7162
make raw leaves work with 'ipfs get'
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-06 20:12:05 -08:00
Kevin Atkinson
f338520aa8
gc: add option to stream errors
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-06 14:26:14 -05:00
Kevin Atkinson
401d156596
gc: refactor: CollectResult
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-06 14:26:14 -05:00
Kevin Atkinson
96f8c17b0f
gc: return Result instead of two channels
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-06 14:26:14 -05:00
Kevin Atkinson
d7fa05a707
gc: join multiple errors with "; " instead of a newline
...
otherwise the daemon will only display the first error
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-06 14:26:09 -05:00
Kevin Atkinson
f1938f3cbd
gc: output all errors to a channel
...
Errors from ColoredSet are now reported as encountered and errors
encountered when deleting blocks are no longer ignored.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
gc: report errors from ColoredSet as encountered
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-06 14:26:09 -05:00
Jeromy Johnson
cbf8a0cdb4
Merge pull request #3748 from ipfs/deps/update-dht
...
update go-libp2p-kad-dht with getclosestpeers fix
2017-03-06 11:21:38 -08:00
Jakub Sztandera
ffeef8c9cb
fix: filestore silently being skipped on add if it wasn't enabled
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-06 19:16:01 +01:00
Jeromy Johnson
7c707b062a
Merge pull request #3635 from ipfs/feat/bitswap-tx-stats
...
Add more info to bitswap stat
2017-03-06 00:54:03 -08:00
Jeromy
332d760f12
Add more info to bitswap stat
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-06 09:47:53 +01:00
Jeromy
9ec4c25e31
Address CR feedback
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-06 00:37:24 -08:00
Jeromy
2884c84343
Implement basic filestore 'no-copy' functionality
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-03-06 00:37:24 -08:00
Jeromy
4e168dc323
update go-libp2p-kad-dht with getclosestpeers fix
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-05 23:06:04 -08:00
Jeromy Johnson
5ff552cd12
Merge pull request #3700 from ipfs/kevina/enumerate-children-refactor
...
Refactor EnumerateChildren to avoid need for bestEffort paramater.
2017-03-02 09:22:59 -08:00
Jeromy Johnson
d2f41e22fe
Merge pull request #3725 from ipfs/feat/better-muxer
...
feat: remove broken spdy multiplexer and enable multiplex by default as second option
2017-03-02 09:15:16 -08:00
Kevin Atkinson
c3346ad9d5
Refactor EnumerateChildrenAsync to take in a function to get the links.
...
For now it is always called with the helper function GetLinksDirect to
avoid any change in behaviour.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-02 05:21:47 -05:00
Kevin Atkinson
6e4fd937fd
Refactor EnumerateChildren to avoid need for bestEffort parameter.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-02 05:19:41 -05:00
Friedel Ziegelmayer
8b2aa5617d
feat: remove broken spdy multiplexer and enable mplex by default
...
License: MIT
Signed-off-by: Friedel <dignifiedquire@gmail.com>
2017-03-01 23:28:05 -08:00
Jeromy Johnson
57e4e2103e
Merge pull request #3734 from ipfs/feat/keystore/list-self
...
keystore: add self key to the listing
2017-03-01 23:26:09 -08:00
Jeromy Johnson
dd9584ba28
Merge pull request #3697 from ipfs/feat/pnet2
...
PNet take 2
2017-03-01 16:43:48 -08:00
Jeromy Johnson
34a94c2812
Merge pull request #3671 from ipfs/kevina/pin-add-progress
...
Report progress during `pin add`
2017-03-01 16:39:10 -08:00
Jakub Sztandera
25c3e126b8
keystore: add self key to the listing
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-28 16:16:16 +01:00
Jakub Sztandera
4ce6358bd7
pnet: add warning when we are in PNet and have no peers
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-22 20:04:56 +01:00
Jakub Sztandera
faca4518b3
pnet: integrate PNet
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-22 20:04:56 +01:00
Jakub Sztandera
4eed546e06
deps: update dependencies for PNet
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-22 20:04:43 +01:00
Jeromy
dd0df71f26
update go multiplex dep with half closed streams support
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-20 13:25:25 -08:00
Kevin Atkinson
4115e2315d
block rm: use Marshalers instead of PostRun to process output
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-02-19 21:02:39 -05:00
Kevin Atkinson
cdd29c24a2
Report progress during 'pin add'.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-02-17 16:19:42 -05:00
Jeromy
cb611c8873
allow for sub-object resolution in dag get
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-13 19:15:17 -08:00
Jeromy
9d8a4afd75
add partial resolving to resolver code
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-02-13 16:25:59 -08:00
Jeromy
b4eeff2d84
update go-multihash and bubble up deps
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-12 12:25:41 -08:00
Jeromy Johnson
f330d5d417
Merge pull request #3669 from ipfs/feat/unbreak-webui
...
feat(webui): update to new version
2017-02-09 12:21:49 -08:00
Jeromy Johnson
dc689785a3
Merge pull request #3668 from ipfs/feat/yamux-debugging
...
Add in env var to enable yamux debug logging
2017-02-09 09:03:06 -08:00
Friedel Ziegelmayer
49c30f6efe
feat(webui): update to new version
...
Closes #3664
License: MIT
Signed-off-by: Friedel <dignifiedquire@gmail.com>
2017-02-09 12:44:30 +01:00
Jeromy
66e1826116
Add in env var to enable yamux debug logging
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-08 22:36:40 -08:00
Jeromy
85a06abacc
Fix marshaling of null cbor arrays
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
Fix non-canonical imports via dag put
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-08 16:24:31 -08:00
Jeromy
c00c142bf9
dag/get: fix link formatting in json output
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-06 10:36:57 -08:00
Jeromy Johnson
65e0704e1b
Merge pull request #3620 from mateon1/fix/stats-bw-link
...
Fix link in `ipfs stats bw` help message
2017-01-26 17:00:47 -08:00
mateon1
f846879910
Fix link in ipfs stats bw help message
...
License: MIT
Signed-off-by: Mateusz Naściszewski <matin1111@wp.pl>
2017-01-22 02:18:25 +01:00
Jeromy
29c530ac0e
update to the correct ipld cbor code
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-21 10:47:19 -08:00
Jeromy
28b086895b
update dht code to drop error log to warning
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-18 19:39:57 -08:00
Kevin Atkinson
6657b83da7
"ipfs name publish": use path.ParsePath instead of casting input
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-01-11 20:47:26 -05:00
Jeromy Johnson
3faf8974ec
Merge pull request #3581 from ipfs/kevina/keystore
...
"ipfs key list": include the hash of the key id in addition to the name
2017-01-11 08:44:53 -08:00
Jeromy
a3b38e8be8
Add a test for the keystore
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-11 04:23:58 -08:00
Jeromy Johnson
8f165f305d
Merge pull request #3582 from ipfs/deps/negotiate-lazy-fix
...
update go-libp2p with negotiate lazy fixes
2017-01-11 03:32:20 -08:00
Kevin Atkinson
4dbb084e8c
"ipfs key list": add option to also list the hash of the key
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-01-10 19:13:38 -05:00
Jeromy
30aacd1b0a
update go-libp2p with negotiate lazy fixes
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-10 14:52:00 -08:00
Kevin Atkinson
c6ce6d3b1d
"ipfs key gen": include newline when printing generated key
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-01-09 21:15:54 -05:00
Jeromy
a068220fc6
add a note about ipfs key in the main helptext
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-09 09:28:39 -08:00
Jeromy
7c0149d048
set the agent version based on version string
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-06 06:37:47 -08:00
Jeromy Johnson
87f8bfd31b
Merge pull request #3539 from ipfs/feat/update-identify
...
update libp2p for identify configuration updates
2017-01-05 08:19:59 -08:00
Kevin Atkinson
6cc0903d25
Fix "ipfs ls" so it works correctly with raw leaves.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-01-03 21:20:04 -05:00
mateon1
e1e57c8480
Fix inconsistent ipfs stat bw formatting
...
License: MIT
Signed-off-by: Mateusz Naściszewski <matin1111@wp.pl>
2017-01-01 18:56:34 +00:00
Jeromy
d8f257c264
update libp2p for identify configuration updates
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-27 02:13:59 -08:00
Jeromy Johnson
17699b2e5f
Merge pull request #3519 from ipfs/fix/gateways/suborigins-off
...
gateway: disable Suborigins as it conflicts the spec
2016-12-21 11:20:20 -08:00
Jeromy Johnson
8b6646310f
Merge pull request #3513 from ipfs/fix/coreunix-add-docs
...
coreunix: fix Add() docs regarding pinning
2016-12-20 14:09:56 -08:00
Jakub Sztandera
912a9720bd
gateway: remove Suborigins as it conflicts the spec
...
The Suborigins spec was changed and we have to adjust, the spec is still
unstable and it might change in future. Currently the only browser
supporting it (Chrome) errors out on it as it doesn't confront spec it
uses.
See https://github.com/ipfs/specs/issues/131
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-19 14:41:58 +01:00
Lars Gierth
71a03fe35d
coreunix: fix Add() docs regarding pinning
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-12-18 01:09:23 +01:00
Jeromy
839adbf48d
dag/get: accept paths and not just cids
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-17 12:38:51 -08:00
Jeromy Johnson
e2ba43c12d
Merge pull request #3494 from ipfs/fix/gc-timeout
...
Remove GC timeout, fix GC tests
2016-12-15 20:15:49 -08:00
jbenet
bb85dd9815
dag get should be a read only command
...
added CmdDagGet to the read only command set.
tried to add a test, but dag get needs tests in general
License: MIT
Signed-off-by: Juan Batiz-Benet
2016-12-14 10:45:54 -08:00
Lars Gierth
2836c64642
gc: remove unneccessary full repo scan
...
GetStorageUsage() is super expensive as it involves a full repo scan,
and it's already bad enough that we have do it once.
The call that's being removed here is purely for cosmetical purposes:
printing the number of bytes freed by the GC run. Let's drop it.
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-12-13 14:50:01 +01:00
Lars Gierth
a6ae8e72bf
gc: remove wonky timeout
...
This timeout was:
- unneccessary
- based on a metric that doesn't make sense
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-12-13 14:50:01 +01:00
Jeromy Johnson
e893fb90b7
Merge pull request #3484 from ipfs/fix/pubsub-peers-cmd
...
cmd/pubsub: fix peers command topic filtering
2016-12-09 12:08:45 -08:00
Jeromy Johnson
477787c7e3
Merge pull request #3491 from ipfs/fix/swarm-peers-0-lat
...
swarm/peers: print 'n/a' instead of zero latency
2016-12-09 12:06:32 -08:00
Jeromy
4f78f40537
swarm/peers: print 'n/a' instead of zero latency
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-08 21:56:47 -08:00
Jeromy
f104b8ae57
cmd/pubsub: fix peers command topic filtering
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-08 21:26:09 -08:00
Jeromy Johnson
2aded6785d
Merge pull request #3483 from ipfs/feat/block-put-hash
...
cmd/block: add selection of multihash parameters to block put command
2016-12-08 13:33:33 -08:00
Jeromy
cf6e3219b6
cmd/block: add selection of multihash parameters to block put command
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-07 16:36:00 -08:00
Jeromy
2e1467cfe0
update experimental go-multiplex to 0.2.6
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-06 15:39:22 -08:00
Jeromy
c307b5494a
add convenience method for getting keys including self
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-06 13:25:12 -08:00
Jeromy
805b504043
basic keystore implementation
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-05 23:18:48 -08:00
Jeromy Johnson
0c413de87f
Merge pull request #3432 from keks/feat/pubsub-sharness
...
add sharness test for pubsub
2016-12-04 21:29:45 -08:00
Jeromy Johnson
a1d2d47a9d
Merge pull request #3447 from ipfs/feat/multiplex-experiment
...
add option to enable go-multiplex experiment
2016-12-04 17:02:49 -08:00
Jeromy
10ddd40f7b
add option to enable go-multiplex experiment
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-04 16:29:03 -08:00
Kevin Atkinson
e92c4445f1
add cmd: clean up default logic of --progress option
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-12-04 00:11:32 -05:00
Kevin Atkinson
0b8e032785
add cmd: use .Default(true) for pin option.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-12-04 00:11:25 -05:00
Kevin Atkinson
aa97a09ba1
Revert "Merge pull request #2657 from ipfs/feature/add-defaults-to-add"
...
In addition to removing the .Default option in the "add" options this
also fixes the --progress option so --progress=false work again.
This reverts commit da4a4ac0bc , reversing
changes made to 518f7e06a1 .
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-12-04 00:10:50 -05:00
Jan Winkelmann
1b3158f860
add sharness test for pubsub
...
License: MIT
Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>
2016-12-04 03:22:49 +01:00
Jeromy Johnson
e855047ec8
Merge pull request #3418 from ipfs/kevina/rmblock-noblock
...
"block rm": make channel large enough to avoid blocking
2016-11-30 10:52:32 -08:00
Jeromy
53d47669da
bubble up go-datastore deps
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-28 22:29:38 -08:00
Jeromy
f0f88adea0
completely remove go-key dep
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-28 21:42:32 -08:00
Jeromy Johnson
0980bf6d8b
Merge pull request #3416 from keks/feat/instaflush
...
Send empty struct to pubsub cmd output to flush
2016-11-24 22:53:46 -08:00
Jeromy Johnson
af518f83a8
Merge pull request #3422 from slothbag/cmd_help
...
Add dag and stat to command help info
2016-11-24 22:50:36 -08:00
slothbag
decad63123
Add dag and stat
...
License: MIT
Signed-off-by: slothbag <slothbag>
2016-11-25 13:33:51 +11:00
Hector Sanjuan
5d20ddc957
Lowercase error messages
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-11-24 19:36:26 +01:00
Hector Sanjuan
ac054f3d8f
Issue #3419 : Do not recursively resolve DAG just to obtain a CID
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2016-11-24 17:10:52 +01:00
Kevin Atkinson
ba383eda00
"block rm": make channel large enough to avoid blocking
...
Make the channel for the output of RmBlocks large enough to hold any
result to avoid blocking while holding the GCLock.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-11-23 18:04:12 -05:00
Jan Winkelmann
7ad2f527a5
Send empty struct to pubsub cmd output to flush
...
So the HTTP headers get sent
License: MIT
Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>
2016-11-23 19:32:23 +01:00
Jan Winkelmann
05265f176b
use floodsub version 0.8.1
...
License: MIT
Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>
2016-11-23 12:43:59 +01:00
Jeromy Johnson
0fcb92f3a1
Merge pull request #3403 from ipfs/feat/dg-reader-cleanup
...
Fix panic in dagreader with raw nodes
2016-11-22 11:30:08 -08:00
Jakub Sztandera
1e170e8d6d
Update go-libp2p across codebase
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-11-22 01:22:50 +01:00
Jeromy Johnson
116aab77b6
Merge pull request #3393 from ipfs/feat/fix-typo
...
Fix typo
2016-11-21 10:08:28 -08:00
Jakub Sztandera
724515104e
Make unixio.DagReader an interface
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-11-21 18:10:21 +01:00
Jakub Sztandera
801b572960
Resport imports in core/core.go
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-11-18 00:12:21 +01:00
Richard Littauer
c28c2224c4
Fix typo
...
Brought up bt tmg on irc
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-11-17 04:55:47 -05:00
Jeromy Johnson
4cfd841859
Merge pull request #2971 from ipfs/feature/gateway-resolve-error
...
gateway: degrade error in gateway to log to reduce noise
2016-11-16 01:00:55 -08:00
Jeromy Johnson
afa1f1542f
Merge pull request #3381 from ipfs/feat/disable-bw-stats
...
add config option to disable bandwidth metrics
2016-11-16 00:58:48 -08:00
Jakub Sztandera
ce96b915e7
gateway: change status code of failed namesys resution to 500
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-11-16 05:37:38 +01:00
Jakub Sztandera
43320e1b7f
gateway: use switch for error handling
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-11-16 05:29:39 +01:00
Jakub Sztandera
82d46a5b5b
gateway: degrade error in gateway to log to reduce noise
...
It logs all errors including expired IPNS keys and other non important
errors.
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-11-16 05:25:18 +01:00
Jeromy
396c629301
update to newer ipld node interface with Copy and better Tree
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-15 18:00:49 -08:00
Jeromy Johnson
aae9eb7891
Merge pull request #3244 from ipfs/feat/gateway-post-coreapi
...
gateway: use core api for serving GET/HEAD/POST
2016-11-14 14:15:54 -08:00
Jeromy
43d668331c
add config option to disable bandwidth metrics
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-11 10:31:24 -08:00
Jeromy
7fbaae49be
update to go-libp2p 4.1.0
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-10 17:38:10 -08:00
Lars Gierth
f610e19d3e
coreapi: reuse go-ipld-node.Link
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-11-07 18:25:49 +01:00
Lars Gierth
0097b422de
gateway: use core api for serving POST requests
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-11-07 18:25:49 +01:00
Lars Gierth
c31e4f7226
gateway: move context/close-notify wiring
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-11-07 18:25:49 +01:00
Lars Gierth
036ca3a764
coreapi: add Add()
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-11-07 18:25:49 +01:00
Lars Gierth
029f971d9c
gateway: use core api for serving GET/HEAD requests
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-11-07 18:25:49 +01:00
Lars Gierth
46239e8215
coreapi: get going, add Cat() and Ls()
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-11-07 18:25:49 +01:00
David Brennan
8efdb4f1df
Put config keys in proper case
...
License: MIT
Signed-off-by: David Brennan <david.n.brennan@gmail.com>
2016-11-07 08:13:56 +01:00
Jeromy
25d9f8afd1
update to libp2p 4.0.4
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-05 21:44:36 -07:00
Jeromy
795b3cc4c7
add muxer type to json output
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-04 11:43:17 -07:00
Jeromy
4a029c7374
add stream listings as swarm peers flag
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-04 10:52:11 -07:00
Jeromy
ec21220907
update go-libp2p
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-03 20:06:32 -07:00
Kevin Atkinson
ffe9d7dae4
Separate out the G.C. Locking from the Blockstore interface.
...
Factored out of #3257 (Add support for multiple blockstores).
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-11-02 21:56:34 -04:00
Lars Gierth
02aa6b4714
gateway: bring back dir-index-html assets
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-11-03 00:38:32 +01:00
Jeromy Johnson
4b793f9194
Merge pull request #3259 from ipfs/kevina/local-mode
...
Distinguish between Offline and Local Mode.
2016-11-02 14:04:36 -07:00
Jeromy Johnson
437cc7fa78
Merge pull request #2911 from ipfs/feature/ifps-capitalize
...
docs: decapitalize IPFS where possible
2016-11-02 13:20:51 -07:00
Jeromy Johnson
c408878454
Merge pull request #2915 from ipfs/feature/2293-error-codes
...
Added note about error codes
2016-11-02 13:20:20 -07:00
Jeromy
d2f57c4cdf
dht: update to dht code with fixed GetClosestPeers
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-01 15:37:51 -07:00
Jeromy
afce683eae
update go-libp2p-swarm with deadlock fixes
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-30 19:16:28 -07:00
Jeromy Johnson
634005a1ab
Merge pull request #3324 from ipfs/feat/block-cid-codec
...
allow cid format selection in block put command
2016-10-29 21:59:19 -07:00
Jeromy Johnson
8d4fd80fc1
Merge pull request #3325 from ipfs/feat/cbor-ipld
...
Implement cbor ipld nodes and a first pass at the 'dag' command
2016-10-29 21:59:06 -07:00
Jeromy
c6a273fd05
add more helptext to dag commands
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-29 18:03:25 -07:00
Jeromy
f68e1843f4
allow cid format selection in block put command
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-28 19:03:14 -07:00
Jeromy
4c5a5c8a8f
more cleanup, update cboripld package
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-28 12:56:47 -07:00
Richard Littauer
9843e86258
Changed so only explicit ipfs cli commands are lowercased
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-10-27 22:55:13 -07:00
Richard Littauer
9aaa743a51
docs: decapitalize IPFS where possible
...
Tried to check all instances of IPFS and make sure they werent referring to the CLI tool. See #2910 .
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-10-27 22:54:36 -07:00
Jeromy
f7d3f61673
clean up some code, update cbor package, and add tests
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-27 15:49:41 -07:00
Jeromy
67c2a4ec14
make path resolver no longer require whole node for construction
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-25 15:04:44 -07:00
Jeromy
6b797f10a4
Implement cbor ipld nodes and a first pass at the 'dag' command
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-25 12:07:28 -07:00
Jeromy
eac13abaec
update to new cid and ipld node packages
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-25 09:54:04 -07:00
Kevin Atkinson
65ffff2418
Add tests that PosInfo() is getting set.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-24 16:37:57 -04:00
Kevin Atkinson
73f9a90cbf
Create a FilestoreNode object to carry PosInfo
...
When doing a filestore add, we wrap whatever nodes we create in a
FilestoreNode object and add the PosInfo to it so that the filestore
will be able to extract information as needed.
Edited by whyrusleeping
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-24 16:30:45 -04:00
Jeromy
8ce9963289
fix add/cat of small files
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-18 15:26:44 -07:00
Jeromy
ded60a7356
unixfs: allow use of raw merkledag nodes for unixfs files
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-17 16:51:39 -07:00
Jeromy
48f7e14277
extract node interface
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-14 07:53:48 -07:00
Jeromy
01aee44679
merkledag: change 'Node' to be an interface
...
Also change existing 'Node' type to 'ProtoNode' and use that most
everywhere for now. As we move forward with the integration we will try
and use the Node interface in more places that we're currently using
ProtoNode.
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-12 08:16:03 -07:00
Jeromy Johnson
015d476c4f
Merge pull request #3297 from ipfs/feat/bitswap-cid
...
bitswap: protocol extension to handle cids
2016-10-12 10:13:30 -04:00
Jeromy
affb06d558
run gofmt
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-12 07:00:38 -07:00
Kevin Atkinson
dfd5e9aa1e
Make BlockService an interface.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-11 14:50:06 -04:00
Jeromy
f4d7369c4a
bitswap: protocol extension to handle cids
...
This change adds the /ipfs/bitswap/1.1.0 protocol. The new protocol
adds a 'payload' field to the protobuf message and deprecates the
existing 'blocks' field. The 'payload' field is an array of pairs of cid
prefixes and block data. The cid prefixes are used to ensure the correct
codecs and hash functions are used to handle the block on the receiving
end.
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-10 08:19:31 -07:00
Jeromy
282bdc4816
cid: integrate cid into bitswap and blockstores
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-08 12:14:58 -07:00
Kevin Atkinson
772164cc7a
Fix EnumerateChildren & hasChild to take a *cid.Cid instead of []*mdag.Link
...
Author: Kevin Atkinson <k@kevina.org>
Fix EnumerateChildren & hasChild to take a *cid.Cid instead of []*mdag.Link
Author: Jeromy Johnson <why@ipfs.io>
make FetchGraph use a cid
pin: fix TestPinRecursiveFail
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-06 11:55:31 -04:00
Kevin Atkinson
721df367a2
Don't use a separate LinkService for DAGService.GetLinks()
...
Instead make LinkService a part of DAGService. The LinkService is now
simply an interface that DAGService implements. Also provide a
GetOfflineLinkService() method that the GC uses to get an offline
instance.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-06 11:52:39 -04:00
Kevin Atkinson
3899194cb0
Add DAGService.GetLinks() method and use it in the GC and elsewhere.
...
This method will use the (also new) LinkService if it is available to
retrieving just the links for a MerkleDAG without necessary having to
retrieve the underlying block.
For now the main benefit is that the pinner will not break when a block
becomes invalid due to a change in the backing file. This is possible
because the metadata for a block (that includes the Links) is stored
separately and thus always available even if the backing file changes.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-06 11:38:41 -04:00
Jeromy
1f9ec4e3ed
update to libp2p 4.0.1 and propogate other changes
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-05 22:12:43 -07:00
Jeromy Johnson
429decc906
Merge pull request #3269 from ipfs/feat/dht-client-mode
...
add experimental dht client mode flag
2016-10-01 11:38:08 -07:00
Jeromy
91db6f31c2
update floodsub version 0.6.2
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:33:00 -07:00
Jeromy
49ca3af3ff
update to floodsub 0.6.1
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:26:20 -07:00
Jeromy
360f29fade
send discovery off into its own goroutine
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:25:59 -07:00
Jeromy
44c9bb803f
add 'pubsub peers' to list topics
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:25:59 -07:00
Jeromy
c40b3540c4
add 'pubsub ls' to list topics
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:25:31 -07:00
Jeromy
009301bf7f
hide pubsub behind feature flag
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:25:10 -07:00
Jeromy
ff770fadc8
add discovery option, and update to floodsub 0.4.2
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:24:24 -07:00
Jeromy
7ccf96a72f
remove debug log
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:24:24 -07:00
Jeromy
e567b785a0
update floodsub dep
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:24:24 -07:00
Jeromy
4b096c4bba
floodsub: add api for pub/sub
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:23:45 -07:00
Jeromy
56a8c43aaf
add experimental dht client mode flag
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:10:20 -07:00
Jeromy
e43c770530
update libp2p and dht packages
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-25 23:42:14 -07:00
Kevin Atkinson
bf8021302c
Distinguish between Offline and Local Mode.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-09-24 22:03:45 -04:00
Jeromy
5457a85cef
Merge branch 'version/0.4.3-rc4'
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-20 19:10:10 -07:00
Jeromy Johnson
e10453b67b
Merge pull request #3220 from ipfs/deps/extract-dht
...
routing: use extracted dht and routing code
2016-09-19 19:38:37 -07:00
Jeromy Johnson
87ecb92fce
Merge pull request #3225 from ipfs/kevina/rm-block-refactor
...
"block rm": move core functionally into blockstore_util package
2016-09-19 19:30:46 -07:00
George Antoniadis
4e8485648f
Use routing/notifications
...
License: MIT
Signed-off-by: George Antoniadis <george@noodles.gr>
2016-09-19 18:28:00 -07:00
Jeromy
2e6e0f18e3
routing: use extracted dht and routing code
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-19 18:28:00 -07:00
Jeromy Johnson
f23cd5c84c
Merge pull request #3189 from ipfs/feat/metrics/interface
...
metrics: introduce go-metrics-interface
2016-09-19 18:02:14 -07:00
Kevin Atkinson
5901e57dfc
"block rm": move core functionally into blockstore_util package
...
Note: this code can not go in the "blockstore" package due to a
circular dependency with the "pin" package.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-09-15 04:15:44 -04:00
Kevin Atkinson
0a459f65ac
Pinner: Provide Pinned.String() method and use it in "block rm"
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-09-15 04:15:36 -04:00
Kevin Atkinson
7bf30c3111
Adder: Don't hold the PinLock when not pinning.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-09-14 16:55:39 -04:00
Jeromy Johnson
0aa136a98e
Merge pull request #3206 from ipfs/feat/writable-flag
...
gateway: fix --writable flag :|
2016-09-14 13:50:32 -04:00
Jakub Sztandera
a5899a4fb9
deps: update go-metrics-interface and -prometheus to 0.1.2
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-13 14:00:10 +02:00
Jakub Sztandera
7faa32459a
metrics: fix peer number metric in offline mode
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-13 14:00:10 +02:00
Jakub Sztandera
a2bb6e8edf
metrics: update prometheus
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-13 14:00:09 +02:00
Jeromy
1de17e2233
Update libp2p to 3.5.2
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-12 14:26:55 -07:00
Jeromy
1bb6a842c5
Update libp2p to have fixed spdystream dep
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-12 07:47:04 -07:00
Lars Gierth
fc8e6de6a9
gateway: fix --writable flag :|
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-09-11 21:09:09 +02:00
George Antoniadis
89d8ca5798
Extract peerset, update peer, peerset, secio, libp2p
...
License: MIT
Signed-off-by: George Antoniadis <george@noodles.gr>
2016-09-10 23:22:17 +01:00
George Antoniadis
5e72b94a5a
Extract thirdparty/loggables
...
License: MIT
Signed-off-by: George Antoniadis <george@noodles.gr>
2016-09-10 23:15:31 +01:00
George Antoniadis
6859b8ccd8
Extract key and datastore
...
License: MIT
Signed-off-by: George Antoniadis <george@noodles.gr>
2016-09-09 15:52:25 +01:00
Jeromy Johnson
3babf40e74
Merge pull request #3187 from ipfs/feat/cidv0
...
Rework go-ipfs to use content IDs version 0
2016-09-09 10:14:39 -04:00
Jeromy Johnson
531b89abc9
Merge pull request #3143 from ipfs/feat/bs/rename-hashonread
...
blockstore: rename RuntimeHashing to HashOnRead
2016-09-08 09:30:03 -04:00
Jeromy
c8fe495934
integrate CIDv0
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-07 13:32:32 -07:00
Jeromy Johnson
73f4b15ced
Merge pull request #3160 from JesseWeinstein/doc/cmds/log_notice_unused
...
Doc/cmds/log notice unused
2016-09-07 14:53:37 -04:00
Jeromy
91dd044d55
config: guard against privkey being overwritten in fsrepo setConfig
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-04 06:50:10 -07:00
Jakub Sztandera
671425ea33
cmd: harden config show with key
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-04 06:50:10 -07:00
Richard Littauer
1a6784e070
Add default True to files flush
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-09-01 11:47:15 -04:00
Richard Littauer
67a822c3b2
Added note about exit status codes
...
How does this look? See #2293
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-09-01 11:21:51 -04:00
Jesse Weinstein
fab7ad8dd9
Reduce vehemence of help text, per PR comments
...
License: MIT
Signed-off-by: Jesse Weinstein <jesse@wefu.org>
2016-08-31 21:59:43 -07:00
Jesse Weinstein
9304cf13db
Clarify distinction between event and other logging
...
License: MIT
Signed-off-by: Jesse Weinstein <jesse@wefu.org>
2016-08-30 18:39:04 -07:00
Jesse Weinstein
8663b4d48b
Remove notice from list of log levels.
...
This is because go-log does not support that level, although the underlying library, go-logging, does.
License: MIT
Signed-off-by: Jesse Weinstein <jesse@wefu.org>
2016-08-30 18:31:53 -07:00
Jakub Sztandera
dfc58c791d
blockstore: rename RuntimeHashing to HashOnRead
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-08-29 21:53:40 +02:00
Jeromy Johnson
594ae64f15
Merge pull request #3129 from ipfs/feat/default-rename
...
commands: replace <default> keyword with <<default>>
2016-08-26 09:41:14 -07:00
Jakub Sztandera
7e5393c4db
commands: replace <default> keyword with <<default>>
...
This way if we use <default> in description (we use thigns like <hash>
already), it won't conflict and modify the description in unwanted way.
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-08-26 18:20:17 +02:00
Jeromy
05b197df2d
update deps for libp2p 3.4.0
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-25 19:02:55 -07:00
Jeromy Johnson
a2bba212d0
Merge pull request #3106 from ipfs/feat/cmds/dht-provide
...
cmds: implement ipfs dht provide command
2016-08-24 10:59:23 -07:00
Jeromy
0a6ab30212
address CR feedback
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-24 10:32:40 -07:00
Jeromy
798569bb68
don't provide same block twice during call to dht provide
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-24 10:17:50 -07:00
Jeromy
8aac844641
add -r flag for dht provide
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-23 12:44:53 -07:00
Jeromy Johnson
8830aae9bc
Merge pull request #3091 from ipfs/feat/temp-err-retries
...
datastore: blockstore should retry when it encounters temp errors
2016-08-22 09:35:19 -07:00
Jeromy Johnson
8ffab98d55
Merge pull request #3102 from ipfs/feat/local-add
...
ipfs/add: make --local flag not write out providers
2016-08-20 18:46:58 -07:00
Jeromy Johnson
19779b3707
Merge pull request #3103 from ipfs/feat/pin/no-prov-internal
...
pin: use separate dagservice for storing pinsets
2016-08-20 18:46:40 -07:00
Jeromy
eaa433f27b
cmds: implement ipfs dht provide command
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-19 19:52:49 -07:00
Jeromy
db228e1054
pin: use separate dagservice for storing pinsets
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-19 17:45:49 -07:00
Jeromy
4b278856d2
ipfs/add: make --local flag not write out providers
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-19 17:01:15 -07:00
Jeromy
ad488c6525
reprovider: add config option to set reprovide interval
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-19 16:52:03 -07:00
Jeromy
115bee5d93
ipfs/cat: disable auto-gc check
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-19 13:36:04 -07:00
Jeromy Johnson
10048ceca9
Merge pull request #2962 from ipfs/kevina/block-rm
...
Add "ipfs block rm" command.
2016-08-18 13:27:26 -07:00
Kevin Atkinson
8679af7a02
"block rm": add "--force" and "--quiet" option
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-08-17 01:29:40 -04:00
Jeromy
8813008046
datastore: blockstore should retry when it encounters temp errors
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-16 11:51:06 -07:00
Jeromy Johnson
1891fd13bf
Merge pull request #3083 from dokterbob/lshelpdoc
...
Document listing commands better
2016-08-16 09:37:57 -07:00
Jeromy Johnson
2414c06221
Merge pull request #2852 from thomas-gardner/bitswap/ledger
...
bitswap: add `ledger` subcommand
2016-08-16 09:29:40 -07:00
Jeromy Johnson
dcfd842d83
Merge pull request #3041 from JesseWeinstein/docs/cli-use-imperative
...
Make all Taglines use imperative mood
2016-08-16 09:25:09 -07:00
Jeromy Johnson
3e8fcc5b28
Merge pull request #3077 from ipfs/feat/is-domain-to-gxx
...
deps: move go-is-domain to gx
2016-08-16 09:24:53 -07:00
Jeromy Johnson
f2127af019
Merge pull request #3088 from ipfs/feature/add-period
...
Add period to `ipfs pin rm`
2016-08-16 09:22:30 -07:00
Kevin Atkinson
c88b4b0941
"block rm": remove the option to ignore pins
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-08-15 13:17:43 -04:00
Kevin Atkinson
efeb789878
Check for multiple pinned blocks in a single pass.
...
Provide a new method, Pinner.CheckIfPinned(), which will check if
any of the arguments are pinned. Previously IsPinned would need to be
called once for each block. The new method will speed up the checking
of multiple pinned blocks from O(p*n) to O(p) (where p is the number
of pinned blocks and n is the number of blocks to be check)
Use the new method in "block rm".
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-08-15 13:17:43 -04:00
Kevin Atkinson
6ad497bcf0
"block rm": use channel instead of pipe / don't abort on non-fatal error
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-08-15 13:17:43 -04:00
Kevin Atkinson
453be22dfb
Add "ipfs block rm" command.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-08-15 13:17:43 -04:00
Richard Littauer
b76dcb8dd7
Add period to ipfs pin rm
...
Small doc fix.
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-08-15 10:46:15 -04:00
Kevin Simper
e3a42d983e
Update dns help with a correct domain name
...
Closes https://github.com/ipfs/faq/issues/161
License: MIT
Signed-off-by: Kevin Simper <kevin.simper@gmail.com>
2016-08-15 13:24:41 +02:00
Mathijs de Bruin
0aad342306
Improve command documentation for listing commands ( Fixes #3057 ).
...
* Document deprecation of 'ipfs file' in command help.
* Be explicit about 'ipfs ls' listing unixfs and suplying type in JSON.
* Amend description for 'ipfs files ls'.
License: MIT
Signed-off-by: Mathijs de Bruin <mathijs@mathijsfietst.nl>
2016-08-13 11:17:50 +02:00
Jakub Sztandera
cf23ab9ff4
deps: move go-is-domain to gx
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-08-12 16:41:18 +02:00
Thomas Gardner
1079acf695
bitswap: add ledger subcommand
...
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-08-05 19:35:34 +10:00
Jesse Weinstein
1d6a47bf93
Make all Taglines use imperative mood
...
License: MIT
Signed-off-by: Jesse Weinstein <jesse@wefu.org>
2016-08-04 16:45:59 -07:00
Jeromy Johnson
241bfceeb3
Merge pull request #3017 from JesseWeinstein/fix_doc
...
-enc is spelled with two dashes, not one
2016-08-03 11:21:35 -07:00
Jeromy
ac3f9aceb4
don't cache entire mfs tree on add finalize
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-01 16:53:45 -07:00
Jeromy
1b50fcefed
default add progress to false, unless using CLI
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-01 10:03:43 -07:00
Jesse Weinstein
9f4a842162
-enc is spelled with two dashes, not one
...
License: MIT
Signed-off-by: Jesse Weinstein <jesse@wefu.org>
2016-07-29 23:04:54 -07:00
Jakub Sztandera
66686e66be
commands: fix refs 'edges' option work
...
also change it to use format instead of separate variable
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-28 20:25:32 +01:00
Jeromy
e8addf5ee3
use batching datastore for providers storage
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-26 10:48:25 -07:00
Jeromy Johnson
83d9c1c106
Merge pull request #2939 from ipfs/feat/auto-migrate
...
Automatically download and run migrations if needed
2016-07-22 05:47:21 -07:00
kpcyrd
f84855d9ca
Use bitshifting for inputLimit
...
License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>
2016-07-20 03:29:17 +02:00
kpcyrd
871a500294
Increase 512kbytes object put limit to 2mbytes
...
License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>
2016-07-19 18:58:41 +02:00
Jeromy
660a4a9d98
mfs: fix copying into directory with no given filename
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-19 07:41:00 -07:00
Jeromy
a3bd3bc364
Automatically download and run migrations if needed
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-19 06:50:00 -07:00
Jeromy Johnson
8fbbd7f711
Merge pull request #2973 from ipfs/feature/blockstore-bloom-config
...
config: add config option for bloom filter
2016-07-16 06:17:17 -07:00
Jakub Sztandera
af06bd4198
config: add config option for bloom filter
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-16 12:24:01 +01:00
Jeromy Johnson
676b5ee7c8
Merge pull request #2952 from ipfs/fix/stdin-handling
...
rework stdin handling
2016-07-16 04:17:38 -07:00
Jeromy Johnson
0dd04fe149
Merge pull request #2957 from ipfs/patch-1
...
core/commands/config: do not show private key on local network
2016-07-16 04:15:09 -07:00
Jeromy
72705564e7
another type check fix and add back a missing test
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-15 10:49:57 -07:00
Jeromy
c5318e892e
type check to avoid panic
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-15 10:42:19 -07:00
Jakub Sztandera
921ae0e964
style: decapitalize error names
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-14 13:57:38 +01:00
Jeromy Johnson
6912f47a44
Merge pull request #2960 from ipfs/feat/mdag-caching
...
cache encoded data when reading dag nodes from disk
2016-07-14 05:23:13 -07:00
Jakub Sztandera
6b97588266
cmd: include case where PrivKey is stored in lower case
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-13 18:46:33 +01:00
Jakub Sztandera
2fded41ff5
core/commands: do not show PrivKey in config if it is null
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-13 18:45:51 +01:00
Jakub Sztandera
2b682f95d0
core/commands/config: error out if config replace contains privkey
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-13 18:45:51 +01:00
Jakub Sztandera
011a546b9c
core/cmds/config: do not show privkey on the network
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-13 18:45:51 +01:00
Vasily Kolobkov
9f14624026
Build on OpenBSD
...
License: MIT
Signed-off-by: Vasily Kolobkov <polezaivsani@openmailbox.org>
2016-07-12 13:11:57 +02:00
Jeromy
bf23516dc0
cache encoded data when reading dag nodes from disk
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-10 13:13:35 -07:00
Jeromy
1f6dd26cae
add bootstrap add-default and rm-all subcommands to deprecate flags
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-09 12:32:58 -07:00
Jeromy
b034a0d8e8
and special case that one thing because why not
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-09 11:33:02 -07:00
Jeromy
5d301cb8ec
re-enable the stdin
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-08 16:39:15 -07:00
Jeromy
1aeda7eb6e
ignore those last bits, this time its for real
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-08 14:35:18 -07:00
Jakub Sztandera
e85a39c610
core: do not run bloom filter if in a temoporary node mode
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-08 21:17:32 +02:00
Jakub Sztandera
016d3d97ef
blocks/blockstore: introduce context passing to blockstore
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-08 21:17:32 +02:00
Jeromy
a6af6c504b
clean up previous work a bit
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-08 11:09:12 -07:00
Jeromy
96433cc6e1
starting to rework stdin handling
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-07 16:58:43 -07:00
Jeromy
a98dff6275
make repo verify work with running daemon
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-06 22:12:31 -07:00
Jeromy Johnson
5d1b28e233
Merge pull request #2948 from ipfs/feat/get-progress
...
fix progress bar in ipfs get
2016-07-06 16:47:56 -07:00
Jeromy
43cd49dcb4
fix progress bar in ipfs get
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-06 15:42:08 -07:00
Jeromy Johnson
2df8dc5a88
Merge pull request #2924 from ipfs/feat/repo-verify
...
add repo verify command
2016-07-06 11:39:13 -07:00
Jeromy
d13befe9ef
add a test for repo verify, and make it return non-zero code on failure
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-05 14:58:48 -07:00
Jeromy
c53154cd2b
add repo verify command
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-05 14:58:48 -07:00
Jeromy
7968399712
clear dial backoff on explicit dial
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-04 12:27:41 -07:00
Jeromy
979edf3a96
update go-libp2p
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-04 12:27:26 -07:00
Jakub Sztandera
5d83d89f36
blocks/blockstore: Add bloom filter
...
Replace write_cache with bloom_cache
Improve ARC caching
Fix small issue in case of AllKeysChan fails
deps: Update go-datastore
blocks/blockstore: Invalidate ARC cache before deletin block
deps: Update go-datastore
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-03 22:16:28 +02:00
Jeromy
0aafa6db8c
update go-datastore changes 0.1.2
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-01 22:40:57 -07:00
Jeromy
0782c4dc03
encode keys to datastore with base32 standard encoding
...
Fixes #2601
Also bump version to 0.4.3-dev
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-01 14:15:06 -07:00
Jakub Sztandera
d72c9fcd3e
Add flag to ls to not resolve type of subnodes ( #2824 )
...
* Disable resolving of the typ by default in ls
Add option to resolve type using ls but
set it to false by default.
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Make ipfs ls show type if it is avaliable locally
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Make resolve-type default to true
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-28 12:06:01 -07:00
Jakub Sztandera
b17506a181
Make primary option the longer one
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-28 19:51:56 +02:00
Jakub Sztandera
adf405210d
Remove existing synopsis
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-28 19:51:56 +02:00
Jeromy Johnson
3b2993dd9a
Merge pull request #2902 from thomas-gardner/commands
...
commands: remove EnableStdin support for StringArg [v2]
2016-06-27 23:00:16 -07:00
Jeromy Johnson
68c87ed1b1
Merge pull request #2904 from ipfs/feature/repo-runtime-check
...
Add option for datastore read rehashing
2016-06-27 16:09:24 -07:00
Thomas Gardner
ddc8d0c60c
commands: remove EnableStdin support for StringArg
...
With verbose flag:
* remove EnableStdin() flags on all StringArg,
* remove all unneeded parsing code for StringArg, and print an
* informative message if `ipfs` begins reading from a CharDevice,
* remove broken go tests for EnableStdin cli parsing, and add some
* trivial test cases for reading FileArg from stdin,
* add a panic to prevent EnableStdin from being set on
* StringArg in the future.
Resolves : #2877 , #2870
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-06-26 12:28:55 +10:00
Yuval Langer
5089dafc9c
Fix typo
...
License: MIT
Signed-off-by: Yuval Langer <yuval.langer@gmail.com>
2016-06-25 19:12:17 +03:00
Jakub Sztandera
0f3dc1e84a
core: Add config option for datastore read rehashing
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-24 22:38:01 +02:00
Jakub Sztandera
ce8c8a7a71
Update go-log in whole dependency tree ( #2898 )
...
* Update golog in go-ipfs
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update go-libp2p for go-log
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update go-libp2p-secio for go-log
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update go-libp2p-crypto for go-log
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update go-libp2p-peer for go-log
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Import peersore, it wasn't imported
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update peerstore
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update peer
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update secio
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update go-libp2p
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-24 09:38:07 -07:00
Jeromy
f26d8c7b46
respect context cancellation in add
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-22 17:16:34 -07:00
Jeromy
8e505f291f
fix progress bar in add
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-22 17:09:35 -07:00
Jeromy Johnson
472deb0e96
Merge pull request #2872 from ipfs-filestore/best-effort-pins
...
Add Files API root as best-effort pin
2016-06-21 20:42:19 -07:00
Jeromy Johnson
7d18f74879
Merge pull request #2880 from yuvallanger/swarm-filters-save-config
...
Swarm filters save config (fix #2878 )
2016-06-21 10:42:19 -07:00
Yuval Langer
20b6499102
Move no arguments check to before opening fsrepo.
...
License: MIT
Signed-off-by: Yuval Langer <yuval.langer@gmail.com>
2016-06-21 00:41:08 +03:00
Yuval Langer
42468d0ebe
Add filtersRemove() and the swarmFiltersRmCmd.Run() parts that call it.
...
Also added types and marshalers to the swarmFiltersAddCmd and
swarmFiltersRmCmd structs.
License: MIT
Signed-off-by: Yuval Langer <yuval.langer@gmail.com>
2016-06-21 00:26:17 +03:00
Yuval Langer
bd9b312039
Add filtersAdd() and the code that uses it to swarmFiltersAddCmd.Run()
...
License: MIT
Signed-off-by: Yuval Langer <yuval.langer@gmail.com>
2016-06-21 00:26:14 +03:00
Kevin Atkinson
714f2debea
Add Files API root as best-effort pin.
...
Closes #2697 . Closes #2698 .
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-06-20 17:09:56 -04:00
Jeromy Johnson
c6443fd933
Merge pull request #2874 from ipfs/extract-gateway
...
gateway: clean up its surface, and remove BlockList
2016-06-20 12:34:29 -07:00
Lars Gierth
1afebc21f3
gateway: clean up its surface, and remove BlockList
...
This patch is in preparation for the gateway's extraction.
It's interesting to trace technical debt back to its
origin, understanding the circumstances in which it
was introduced and built up, and then cutting it back
at exactly the right places.
- Clean up the gateway's surface
The option builder GatewayOption() now takes only
arguments which are relevant for HTTP handler muxing,
i.e. the paths where the gateway should be mounted.
All other configuration happens through the
GatewayConfig object.
- Remove BlockList
I know why this was introduced in the first place,
but it never ended up fulfilling that purpose.
Somehow it was only ever used by the API server,
not the gateway, which really doesn't make sense.
It was also never wired up with CLI nor fs-repo.
Eventually @krl started punching holes into it
to make the Web UI accessible.
- Remove --unrestricted-api
This was holes being punched into BlockList too,
for accessing /ipfs and /ipn on the API server.
With BlockList removed and /ipfs and /ipns freely
accessible, putting this option out of action
is safe. With the next major release,
the option can be removed for good.
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-06-19 00:52:35 +02:00
Jakub Sztandera
e67a21ed6a
Add net.online to diag sys command
...
Currently there was no sure way to check if node is in online
or offline mode.
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-18 12:39:13 +02:00
Jeromy Johnson
0f3ae0736a
Merge pull request #2853 from ipfs/feature/decapitalize-Debug
...
Decapitalized log.Debug messages
2016-06-17 10:26:20 -07:00
Jeromy
de56a47bc0
update go-libp2p to 3.3.4
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-15 13:04:49 -07:00
Richard Littauer
b6a3435bb5
Decapitalized log.Debug messages
...
According to golang standards, these should not be capitalized nor having a trailing period, AFAIK.
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-06-15 08:56:34 +01:00
Jakub Sztandera
cafd81c8c6
Import go-datastore to gx
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-12 08:47:15 +02:00
Jakub Sztandera
6217e1f141
Remove go-datastore from Godeps
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-12 08:23:43 +02:00
Jeromy Johnson
ecbca7e0f4
Merge pull request #2813 from ipfs/feature/ping-api
...
Improve ping API a bit by returning failure in case of only failure
2016-06-11 18:40:22 -07:00
Jeromy
4c1201badb
update iptb and multinode tests
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-11 15:54:28 -07:00
Jeromy
7c8e641436
pull in libp2p updates with utp fixes
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-11 10:33:44 -07:00
Jeromy Johnson
444a8dc2f6
Merge pull request #2812 from ipfs/feature/refs-local-api
...
Fix refs local marshalling
2016-06-10 11:35:06 -07:00
Jakub Sztandera
eaccd07505
Update go-log
...
https://github.com/ipfs/go-log/pull/3
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-09 23:37:09 +02:00
Jakub Sztandera
c7d04e96b3
Move go-sysinfo to gx
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-09 11:32:02 +02:00
Jakub Sztandera
6d4975d82c
Move go-humanize to gx
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-09 11:32:02 +02:00
Jakub Sztandera
1c9b6078e3
Improve ping API a bit by returning failure in case of only failure
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-08 19:58:44 +02:00
Jakub Sztandera
8be37ea51b
Rremove unneeded print
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-07 10:22:27 +02:00
Jeromy Johnson
7a7a267e36
Merge pull request #2818 from ipfs/deps/libp2p/id-fix
...
update libp2p to version 3.2.2
2016-06-07 01:08:55 -07:00
Jeromy
afbc6be0a6
update libp2p to version 3.2.2
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-07 00:20:06 -07:00
Jeromy Johnson
e2c7a04400
Merge pull request #2795 from ipfs/fix/mfs-caching
...
rework add-mfs to not use caching
2016-06-07 00:01:44 -07:00
Jakub Sztandera
953448af82
Fix refs local marshalling
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-06 12:31:05 +02:00
Michael Pfister
eb156e05e3
removes files and object alias
...
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
2016-06-05 19:43:13 -07:00
Michael Pfister
9fa5e3824a
Adds aliases to stats command
...
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
2016-06-05 18:09:59 -07:00
Michael Pfister
7517bb393b
fixing bad rebase
...
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
2016-06-03 13:20:32 -07:00
Michael Pfister
74e701d852
Add period to helptext
...
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
2016-06-03 13:05:45 -07:00
Michael Pfister
cd0a33c7c2
Adds repo version subcommand
...
Fixes #2571
License: MIT
Signed-off-by: Mike Pfister <pfista@gmail.com>
2016-06-03 13:05:45 -07:00
Michael Pfister
234afc8888
Adds repo version info to repo stat command
...
addresses #2571
License: MIT
Signed-off-by: Mike Pfister <pfista@gmail.com>
2016-06-03 13:03:40 -07:00
Jeromy
22a5b79508
rework add-mfs to not use caching
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-02 12:54:53 -07:00
Jeromy Johnson
994109c731
Merge pull request #2790 from ipfs/feature/version-all
...
Add version --all option
2016-06-02 12:23:45 -07:00
Jeromy Johnson
082393dba4
Merge pull request #2792 from ipfs-filestore/kevina/filestore-bits
...
Stable bits from Pull Request #2634
2016-06-01 20:47:33 -07:00
Kevin Atkinson
9360f5ca6f
Store needed parts of IpfsNode in Adder.
...
This will make it easier to set up a specialized data pipeline.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-06-01 22:17:02 -04:00
Jeromy
7274c6be35
update libp2p to v3.3.1
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-01 16:45:46 -07:00
Jakub Sztandera
0bcfc493c6
Add version --all option
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-01 22:43:49 +02:00
Jeromy Johnson
393ae7b732
Merge pull request #2781 from ipfs/feature/fix-files-apostrophe
...
Fixed apostrope in files stat options
2016-06-01 12:31:49 -07:00
Jeromy Johnson
fd1eae87f7
Merge pull request #2782 from ipfs/feature/78-ruler
...
All commands: Align to under 78-ruler width
2016-06-01 09:45:55 -07:00
Jeromy Johnson
cd4bc54d90
Merge pull request #2780 from ipfs/feature/files-ruler
...
files: Adjust to fit ruler 78
2016-06-01 09:18:59 -07:00
Jeromy Johnson
711ed38d3f
Merge pull request #2779 from ipfs/feature/stats-ruler
...
stats: Aligned text to 78 ruler, fixed grammar error
2016-06-01 09:18:22 -07:00
Jeromy Johnson
5f6961028c
Merge pull request #2757 from ipfs/feature/Godeps-to-gx-2
...
Second wave of gx migrations
2016-06-01 09:17:26 -07:00
Richard Littauer
7f61030eb5
All commands: Align to under 78-ruler width
...
This is just for the description, for now.
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-06-01 16:44:29 +01:00
Richard Littauer
575547042c
Fixed apostrope in files stat options
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-06-01 15:42:23 +01:00
Richard Littauer
f2328af541
files: Adjust to fit ruler 78
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-06-01 15:38:00 +01:00
Richard Littauer
5593d776be
stats: Aligned text to 78 ruler, fixed grammar error
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-06-01 15:32:41 +01:00
Jeromy Johnson
c814478fb9
Merge pull request #2773 from ipfs/feature/commands-flags
...
Fix commands --flags not showing flags via HTTP API
2016-05-31 16:32:20 -07:00
Jakub Sztandera
afb2afc7bc
Move pb to gx
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-31 22:36:22 +02:00
Jeromy Johnson
6a894d6e76
Merge pull request #2696 from ipfs/feature/Offline-2393
...
Offline daemon mode
2016-05-31 09:12:13 -07:00
Jakub Sztandera
a6d0fd287b
Fix commands --flags not showing flags via HTTP API
...
It was caused by the cmds.Option struct being Interface not struct
The solution is to create struct and copy interesting data over.
Also removed the "ShowOptions" field from being sent via the HTTP API.
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-31 16:55:37 +02:00
Jeromy
aae6a2c379
update libp2p to v3.2.3
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-30 22:14:21 -07:00
Jeromy Johnson
6c3350369e
Merge pull request #2516 from Stebalien/protobuf-content-type
...
Correctly set the content type for `object get --encoding=protobuf`
2016-05-28 23:28:45 -07:00
Jakub Sztandera
e76a53717b
Prevent repetative initalisations in offline mode
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-24 15:59:56 +02:00
Jakub Sztandera
a77fa94fdf
Make errors more reasonable in case of node in offline mode
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-24 15:59:56 +02:00
Richard Littauer
03dd669430
Refactor progress and showProgressBar
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-21 14:27:10 +01:00
Richard Littauer
6f796dc272
Add Defaults to ipfs add
...
I didn't bother with Chunker, because I think that is a much wider PR. These should all be solid, though. Redid some of the logic to make it smoother.
Part of #2484 .
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-21 12:37:37 +01:00
Jeromy Johnson
518f7e06a1
Merge pull request #2744 from ipfs/feature/Options-Default-2702
...
Allow to specify where to put default options in option desciption
2016-05-20 20:28:39 -07:00
Jakub Sztandera
679c0ae3ee
Use one verbose flag description
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-19 21:38:50 +02:00
Jakub Sztandera
70342314ae
Allow to specify where to put default options in option desciption
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-19 18:54:37 +02:00
Jeromy Johnson
f01461033d
Merge pull request #2728 from ipfs/peers-total-by-transport
...
metrics: add transport label to p2p_peers_total
2016-05-18 14:57:48 -07:00
Jeromy Johnson
6f716463d2
Merge pull request #2706 from ipfs/feature/MFSStatsHashOnly
...
Add --format option to mfs stat command
2016-05-18 13:47:46 -07:00
Jeromy Johnson
2482dc8f84
Merge pull request #2713 from csasarak/swarm_verbose
...
Added a verbose option for swarm peers.
2016-05-18 13:44:38 -07:00
Lars Gierth
05cb7a1bc2
metrics: add transport label to p2p_peers_total
...
Gives us per-transport peers counts:
ipfs_p2p_peers_total{transport="/ip4/tcp"} 25
ipfs_p2p_peers_total{transport="/ip6/tcp"} 13
ipfs_p2p_peers_total{transport="/ip6/udp/utp"} 17
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-05-18 22:30:52 +02:00
Chris Sasarak
584d49694e
Updated verbose swarm to not ping peers.
...
License: MIT
Signed-off-by: Chris Sasarak <chris.sasarak@gmail.com>
2016-05-17 22:28:57 -04:00
Jeromy Johnson
414c0ccbc4
Merge pull request #2716 from ipfs/patch-add-link-paths
...
Fix #2715 and patch add-link paths
2016-05-17 11:43:11 -07:00
Jeromy
e22345ae65
update go-libp2p 3.2.2, nil maddr fixes
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-17 10:23:10 -07:00
Jakub Sztandera
130c08c3cd
Make format logic look much better
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-17 16:32:46 +02:00
jbenet
9f79dde058
ipfs object patch add-link supports paths
...
previously, paths were not supported as link values.
this would not work, and now can:
ipfs object patch $root add-link foo /ipfs/$hash/foo/bar
License: MIT
Signed-off-by: Juan Benet <juan@benet.ai>
2016-05-16 23:03:31 -07:00
Christopher Sasarak
762aded60e
Added a verbose option for swarm peers.
...
This is used like 'ipfs swarm peers -v'. It prints out the normal peers
information, but also the latency of each peer
License: MIT
Signed-off-by: Chris Sasarak <chris.sasarak@gmail.com>
2016-05-16 20:55:05 -04:00
Jakub Sztandera
94f1922dc2
Incorporate better moreThanOne function
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-16 22:51:08 +02:00
Jakub Sztandera
49936895ff
Add --format option to mfs stats command
...
also add --hash and --size of hash and size only formats
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-16 21:51:38 +02:00
Jeromy
23c8ed93fd
update libp2p to v3.2.1
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-16 11:22:36 -07:00
Jeromy Johnson
b0b1e0f1c1
Merge pull request #2681 from ipfs/feature/spruce-upstat
...
Add helptext, default logic to `ipfs stats`
2016-05-16 09:00:36 -07:00
Richard Littauer
8ee399fbeb
Add helptext, default logic to ipfs stats
...
I've added: Synopsis, shortDescription, and longDescription for stats and stats bw.
I also added default(false) for poll and default("1s") for interval, and modified the logic to make it fit.
Part of #2484 and #2647 .
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-16 10:59:30 -04:00
Jeromy Johnson
f40127d23b
Merge pull request #2669 from ipfs/feature/add-default-to-name
...
Added Default logic to `name` cmd, and local option
2016-05-15 18:37:50 -07:00
Christian Couder
39f23677f5
pin: use new constants instead of literal values
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-05-15 18:18:29 +02:00
Jeromy Johnson
0b701e832a
Merge pull request #2677 from ipfs/feature/add-default-to-publish
...
Added Default logic to publish
2016-05-14 15:29:03 -07:00
Jeromy Johnson
a7c5a6f6a7
Merge pull request #2656 from ipfs/feature/add-default-false-to-verbose-flags
...
Added Default(false) to verbose for `active` and `dht` cmds
2016-05-14 14:56:53 -07:00
Jakub Sztandera
7f61b3170f
Add logic for copying ShortDes to LongDesc if it is not present
...
This is the best place for inserting it that I found.
Test in #2648 should be modified to run `Root.ProcessHelp()`.
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-14 13:23:35 +02:00
Jeromy Johnson
28999f774c
Merge pull request #2661 from ipfs/feature/add-default-to-bootstrap
...
Added Default to `bootstrap` cmd
2016-05-13 18:32:03 -07:00
Richard Littauer
bffd648935
Added Default to bootstrap cmd
...
Part of #2484 .
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-13 20:49:26 -04:00
Richard Littauer
90421f556f
Added Default logic to refs
...
Not sure about the switch statement. There may be a more elegant solution.
Part of #2484
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-13 20:46:28 -04:00
Richard Littauer
fb03cb783b
Added Default logic to name cmd, and local option
...
Added Default logic per #2484 , and also added the local option back in, because it exists in the code and should be shown as helptext, at least.
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-13 20:38:49 -04:00
Richard Littauer
475d73088c
Added Default logic to publish
...
Part of #2484
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-13 20:26:16 -04:00
Jeromy Johnson
7732411475
Merge pull request #2672 from kpcyrd/feature/cache-control-immutable
...
Set Cache-Control immutable
2016-05-13 16:01:43 -07:00
Jeromy Johnson
704dcb8c4a
Merge pull request #2683 from ipfs/feature/update-file-helptext
...
Updated `file` helptext
2016-05-13 15:39:38 -07:00
Jeromy Johnson
b88c2c6cbc
Merge pull request #2664 from ipfs/feature/add-default-to-diag
...
Added Default to `diag` cmd
2016-05-13 15:38:05 -07:00
Jeromy Johnson
d3930e2028
Merge pull request #2665 from ipfs/feature/add-default-to-dns
...
Added Default to `dns` cmd
2016-05-13 15:37:49 -07:00
Jeromy Johnson
fb87d2faf0
Merge pull request #2643 from RichardLitt/docs/lint-diff-text
...
Linted object diff help text
2016-05-13 15:24:52 -07:00
Jeromy Johnson
e67fdd534e
Merge pull request #2674 from ipfs/feature/add-default-to-object-cmd
...
Added Default logic to object object and patch
2016-05-13 15:24:24 -07:00
Jeromy Johnson
df1ac97cfa
Merge pull request #2663 from ipfs/feature/add-default-to-config
...
Added Default to `config` cmd
2016-05-13 15:16:07 -07:00
Jeromy Johnson
dea67d2be6
Merge pull request #2662 from ipfs/feature/add-default-to-commands
...
Added Default to `commands` cmd
2016-05-13 15:08:02 -07:00
Jeromy Johnson
2297759ec4
Merge pull request #2668 from ipfs/feature/add-default-to-get
...
Added Default logic to `get` cmd
2016-05-13 14:58:38 -07:00
Richard Littauer
185619f689
Updated file helptext
...
Part of #2647
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-13 17:54:06 -04:00
Jeromy Johnson
8f24275a87
Merge pull request #2676 from ipfs/feature/add-default-to-ping
...
Added Default to ping, cleaned up logic
2016-05-13 14:53:57 -07:00
Jeromy Johnson
a55bd460e8
Merge pull request #2670 from ipfs/feature/add-default-to-ls-headers
...
Added Default logic to `ls` cmd
2016-05-13 14:50:50 -07:00
Jeromy Johnson
e9bb0b4813
Merge pull request #2671 from ipfs/feature/mount_unix_long_help
...
Added a note about the default values
2016-05-13 14:47:24 -07:00
Jeromy Johnson
7610bf47fd
Merge pull request #2666 from ipfs/feature/external-clean-up
...
Capitalize print statements, add period to `external`
2016-05-13 14:46:38 -07:00
Jeromy Johnson
927083e221
Merge pull request #2675 from ipfs/feature/change-pin-otions
...
pin ls: Remove count option, add Default to quiet
2016-05-13 14:46:12 -07:00
Jeromy Johnson
d4ce5f09e1
Merge pull request #2679 from ipfs/feature/add-default-false
...
Added Default false to all remaining options
2016-05-13 14:45:22 -07:00
Jeromy Johnson
efc6231241
Merge pull request #2682 from ipfs/feature/ping-go-syn
...
Updated synopsis for ping
2016-05-13 14:30:49 -07:00
Jeromy Johnson
d03bcd464a
Merge pull request #2688 from ipfs/feature/2617-update-resolve
...
Updated resolve hash to Mars, added reference
2016-05-13 14:28:21 -07:00
Jeromy
a657ccf6c0
update deps to introduce yamux hang fix
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-13 13:42:46 -07:00
Richard Littauer
b356089daa
Updated resolve hash to Mars, added reference
...
Closes #2617 .
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-13 14:53:12 -04:00
Richard Littauer
efc18a3e65
Updated synopsis for ping
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-12 13:48:19 -04:00
Richard Littauer
b01c3f5039
Also added to Root
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-12 12:08:40 -04:00
Richard Littauer
f52050de80
Added Default false to all remaining options
...
Specifically, to `repo`, `resolve`, `swarm`, and `version`. Part of #2484 .
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-12 12:02:47 -04:00
Richard Littauer
254620d3a2
Added Default to ping, cleaned up logic
...
Part of #2484
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-12 11:46:38 -04:00
Richard Littauer
f6a1be68ab
pin ls: Remove count option, add Default to quiet
...
'count' is never referenced in the code, and adds nothing when run with `ipfs pin ls` currently. I have removed it; add it again when there is actual logic to reflect. Also, added a Default(false) to quiet.
Part of #2484
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-12 11:41:19 -04:00
Richard Littauer
c68aa06c5d
Added Default logic to object object and patch
...
Part of #2484 .
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-12 11:35:18 -04:00
kpcyrd
c2a3e3169d
Set Cache-Control immutable
...
Given that /ipfs/ resources never change, we can easily benefit from this
new cache control extension.
Support for this is about to land in Firefox 49:
https://bugzilla.mozilla.org/show_bug.cgi?id=1267474
For more details, there is a good blogpost about this here:
https://bitsup.blogspot.de/2016/05/cache-control-immutable.html
This header is ignored by clients that don't support it.
License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>
2016-05-12 12:16:42 +02:00
Richard Littauer
fedf553be3
Added a note about the default values
...
The /ipfs and /ipns paths can be overridden by the options; this wasn't
in the help text for the options, but should be somewhere. Long help
seemed appropriate.
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-11 17:21:00 -04:00
Richard Littauer
ba36b860dd
Added Default logic to ls cmd
...
See #2484
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-11 17:13:16 -04:00
Richard Littauer
26375df590
Added Default logic to get cmd
...
Part of #2484
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-11 16:47:55 -04:00
Richard Littauer
158eddcd7f
Capitalize print statements, add period to external
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-11 16:20:15 -04:00
Richard Littauer
1fa63c437b
Added Default to dns cmd
...
Part of #2484
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-11 16:14:16 -04:00
Richard Littauer
8aa3e51e78
Added Default to diag cmd
...
Part of #2484 .
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-11 16:10:53 -04:00
Richard Littauer
e83d0b15a8
Added Default to config cmd
...
Part of #2484
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-11 16:05:44 -04:00
Richard Littauer
7fee408b6b
Added Default to commands cmd
...
Part of #2484
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-11 16:03:35 -04:00
Jeromy
6359dc9d5e
update libp2p with go-multiaddr and go-stream-muxer updates
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-10 16:06:28 -07:00
Richard Littauer
eaae8bf24c
Added Default(false) to verbose for active and dht cmds
...
This required no change of the code. I also changed the message from `debug` to `extra`, which I think is closer to the truth. Part of #2484 .
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-10 16:52:24 -04:00
Richard Littauer
f6e88d7404
Linted object diff help text
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-09 11:06:53 -04:00
Richard Littauer
23108aaa5d
Marshal log ls better
...
This uses a stringList to output each log command as an item in an array in an object called Strings, instead of using the MessageOutput func.
This closes #2636 .
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-06 19:31:57 -04:00
Kevin Atkinson
b84cbec2b6
Make blocks.Block an interface.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-05-05 18:02:11 -04:00
Hector Sanjuan
fba1448556
Add "ipfs log ls" command
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2016-05-04 23:33:43 +02:00
Hector Sanjuan
57b494a70c
Update go-log to 1.1.0 and fix calls to go-log.Uuid
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2016-05-04 23:17:21 +02:00
SH
f3b0860c79
Merge remote-tracking branch 'upstream/master'
2016-04-30 21:30:44 +02:00
Jeromy Johnson
de6c65ba07
Merge pull request #2628 from ipfs/feature/note
...
Capitalized `NOTE`, first letter of following word
2016-04-29 15:31:26 -07:00
Richard Littauer
f60ae0a1b9
Capitalized NOTE, first letter of following word
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-29 16:57:19 -04:00
SH
2af48e6804
add NetBSD support
...
License: MIT
Signed-off-by: Stefan Hertenberger <github@hertenberger.bayern>
2016-04-29 22:49:54 +02:00
Richard Littauer
e375c8cbf7
Capitalized a, lowercased not
...
A should be capitalised, as it is a new clause; `not` should not be capitalized, as there is no value judgement (it is a statement), and the emphasis is offputting without adding any technical backing. I just do not think it is necessaary.
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-29 13:34:17 -04:00
Jeromy Johnson
fed6212d51
Merge pull request #2622 from ipfs/feature/add-period
...
Added a period to repo fsck
2016-04-28 14:09:56 -07:00
Stephen Whitmore
0a45ada4ed
CLI: discoverability and consistency ( #2542 )
...
* reduces help indent from 4 to 2 spaces
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* reduces horz/vert space taken by "ipfs" cmd
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* show subcommands on shorthelp
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Drops colons at the end of cmd headings.
This makes command headings consistent with the output of 'ipfs', which
does not include colons.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* more consistent output between short-/long-help
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Puts DESCRIPTION before SUBCOMMANDS.
Users likely want to understand what a command does before worrying
about its subcommands.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Keeps ipfs cmd from outputting its subcmds twice.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes redundant synopsis from "file"
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes extra whitespace from longhelp
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Consistent spacing whether SUBCMDS or not.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes redundant SUBCMD output from ipfs object.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes redundant synopsis from "name"
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Newline after Description only if it exists.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes redundant synopsis from "bootstrap"
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes redundant synopsis from "swarm"
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes trailing newline in ping help.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Prints shorthelp on parse error.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* tiny comment fixes
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* updates README usage
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Don't include extra whitespace if no .MoreHelp
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* description improvements
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Hides the obscure 'file' subcommand.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Splits 'ipfs daemon' into Short and Long help.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes redundant synopsis from "config"
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Wraps lines to keep from going over 80.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* specify repo separately
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* s/structure/hierarchy
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* missing .
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes trailing colon from 'usage' test.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Updates sharness test error messages.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes trailing colon from 'usage' test.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Updates add-symlink to use /bin/sh.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes "hierarchy".
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Updates "ipfs ping" synopsis.
* Updates t0040 with latest wording.
* Removes unnecessary daemon setup.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-28 14:08:32 -07:00
Richard Littauer
ae235caaec
Added a period to repo fsck
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-28 17:07:46 -04:00
Jeromy
cffec77cea
update libp2p with utp dep
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-04-27 14:10:54 -07:00
michael
46bcdce15d
commands: repo fsck ( #2597 )
...
* Adds repo fsck subcommand
Fixes #2457
License: MIT
Signed-off-by: Mike Pfister <pfista@gmail.com>
* Checks for error on file deletion
License: MIT
Signed-off-by: Mike Pfister <pfista@gmail.com>
* Checks if node is online
License: MIT
Signed-off-by: Mike Pfister <pfista@gmail.com>
* Update error checking
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* Prevents command from running while daemon is running
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* Add newline to command output message
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* removing superfluous error
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* Adds sharness test for repo fsck command
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* Ignore warning if file doesn't exist
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* Updating message output
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* adding debug statements
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* update and add fsck sharness tests
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* updating comments
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* Use printf in test
Using printf prevents a newline from being printed to the api test file. When
the newline was present, multiaddr threw errors trying to parse the api address
to an integer since the newline character was present.
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* updating tests
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* removing commented code
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
2016-04-27 13:28:53 -07:00
Stephen Whitmore
5d25fc1f16
unix-friendly output for 'ipfs dht' commands ( #2560 )
...
* Cleans up 'ipfs dht findpeer' output
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Adds more docs for 'ipfs dht put'.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Write pretty peer ids for ipfs dht put.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Writes pretty peer ids for ipfs dht query.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Suppresses unrecognized event type for FinalPeer.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Improves helptext on dht commands.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Adds 'ipfs dht findpeer' sharness test.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Adds sharness tests for remaining DHT commands.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Uses bash tests rather than 'test' command.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes commented code.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes unneeded init_ipfs.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Tweaks iptb setup.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Tweaks wording on dht 'put' and 'get'.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes extraneous ).
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes apostrophe.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Tests the expected peer addresses.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Gets peer id using iptb.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Checks explicitly for common put/findprovs peers.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Sorts expected/actual findpeer results.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Fix disconnect argument description
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
* Fixes sort order in t0170-dht.sh.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-27 09:31:06 -07:00
Jeromy Johnson
8350a94544
Merge pull request #2519 from thomas-gardner/commands
...
commands/cli: fix parsing of incorrect permutations
2016-04-26 17:20:56 -07:00
Jeromy Johnson
7fe81dbef0
Merge pull request #2606 from ipfs/feature/diag-cmds-grammar
...
Fixed up comments for `diag cmds`
2016-04-26 17:20:49 -07:00
Jeromy Johnson
1676d0ca52
Merge pull request #2582 from ipfs/feature/refs-defaults
...
Added default values to refs
2016-04-26 17:11:11 -07:00
Richard Littauer
53c05ffd74
Added default values to refs
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-26 19:34:36 -04:00
Richard Littauer
4b4c81a37d
Fixed up comments for diag cmds
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-26 19:31:42 -04:00
Richard Littauer
f99f2ba583
Fix disconnect argument description
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-20 13:23:17 -04:00
Jeromy Johnson
c87b92c7b7
Merge pull request #2591 from ipfs/fix/null-object-links
...
add omitempty to Object struct tags
2016-04-19 16:39:10 -07:00
Jeromy Johnson
d4622c4404
Merge pull request #2592 from ipfs/fix/object-diff-resolve
...
fix resolve call in object diff
2016-04-19 16:39:03 -07:00
Jeromy Johnson
b3690ead2a
Merge pull request #2585 from ipfs/feature/repo-stat-comments
...
Small syntax changes to repo stat man
2016-04-19 16:14:06 -07:00
Jeromy Johnson
16b63e920a
Merge pull request #2586 from ipfs/feature/interval-note
...
Added note to ipfs stats bw interval option
2016-04-19 16:13:46 -07:00
Jeromy Johnson
3e536fbc23
Merge pull request #2588 from ipfs/feature/swarm-disconnect-note
...
Added a note about swarm disconnect
2016-04-19 16:13:27 -07:00
Jeromy Johnson
42062a721f
Merge pull request #2587 from ipfs/feature/alphabetize-swarm
...
Alphabetized swarm subcmds
2016-04-19 16:12:57 -07:00
Jeromy
6d90fe35ca
fix resolve call in object diff
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-04-19 16:08:06 -07:00
Jeromy
d8f8b0976f
add omitempty to Object struct tags
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-04-19 12:48:05 -07:00
Richard Littauer
3f3665e05d
Added a note about swarm disconnect
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-19 12:27:03 -04:00
Richard Littauer
34971a3e11
Also fixed syntax for comment
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-19 12:19:45 -04:00
Richard Littauer
ab4b280430
Alphabetized swarm subcmds
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-19 12:17:33 -04:00
Richard Littauer
0424d6ab64
Added note to ipfs stats bw interval option
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-19 12:05:07 -04:00
Richard Littauer
cd20618458
Small syntax changes to repo stat man
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-19 11:40:50 -04:00
wzhd
d528b9d58b
Fix a typo
...
License: MIT
Signed-off-by: Zihao Wang <dev@wzhd.org>
2016-04-19 18:14:36 +08:00
Jeromy Johnson
8ab1b8b2cb
Merge pull request #2576 from ipfs/update-libp2p
...
Update go-libp2p
2016-04-18 15:31:10 -07:00
Jeromy Johnson
2509631c29
Merge pull request #2531 from noffle/output-dirs-on-add
...
Outputs added directories as they are traversed.
2016-04-18 13:29:44 -07:00
Jeromy Johnson
a8b7c9adec
Merge pull request #2562 from ipfs/feat/object-diff
...
implement object diff command
2016-04-18 12:53:48 -07:00
Jeromy Johnson
8e368ba71b
Merge pull request #2572 from pfista/2551-log-level
...
commands: update log command help text
2016-04-18 09:43:10 -07:00
Jeromy
fa8de1bfd5
minor correction in help text
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-18 08:41:54 -07:00
Lars Gierth
00ec976e1d
Use extracted go-libp2p-crypto, -secio, -peer packages
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-16 21:48:06 -07:00
Lars Gierth
907f4fadbd
Update go-libp2p
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-16 21:23:47 -07:00
Jeromy
7e7fcb35ea
changes from CR feedback
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-04-16 12:23:34 -07:00
Jeromy
7ac1f5da5c
remove incfusever dead-code
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-04-16 00:02:45 -07:00
Michael Pfister
9c2feb2e04
commands: update log command help text
...
Fixes #2551
License: MIT
Signed-off-by: Mike Pfister <pfista@gmail.com>
2016-04-15 16:09:29 -07:00
Jeromy
73a2f80c76
Add some help text
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-14 13:13:54 -07:00
Jeromy
bf7da8522c
basic implementation of object diff
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-14 13:06:51 -07:00
Jeromy Johnson
44f126bf59
Merge pull request #2557 from ipfs/feat/i-am-why-deleter-of-code
...
remove a ton of unused godeps
2016-04-13 13:21:31 -07:00
Jeromy
e79e1d31e9
remove a ton of unused godeps
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-13 11:23:10 -07:00
Jakub Sztandera
e8a49d94a6
Make non recursive resolve print the result
...
Currently it prints out error message but should just print
the intermediate result as it is what we expect.
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@gmail.com>
2016-04-13 19:49:48 +02:00
Jeromy Johnson
c11118fb07
Merge pull request #2481 from ipfs/feature/add-wrap-long-desc
...
Added a long description to add
2016-04-12 18:10:43 -07:00
Jeromy Johnson
e99066a1a2
Merge pull request #2475 from ipfs/feature/object-patch-set-data-docs
...
Edited object patch set-data doc
2016-04-12 18:09:48 -07:00
Richard Littauer
a94f9dab6d
Added a long description to add
...
This explains mostly what the wrap option does, because it was not entirely clear
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-12 17:25:08 -07:00
Richard Littauer
568e5087e1
Edited object patch set-data doc
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-12 16:12:38 -07:00
Stephen Whitmore
e61e685833
redundency-be-gone
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:32:16 -07:00
Stephen Whitmore
7e88f83f74
Revert "mfs.Mkdir returns the final Directory it creates"
...
This reverts commit dfd98f27b2 .
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:30:09 -07:00
Stephen Whitmore
8fcb585cfb
Removes write flag from Finalize
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:03:11 -07:00
Stephen Whitmore
6588bbc988
More thorough error checking.
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:03:11 -07:00
Stephen Whitmore
6b0ff2bd78
Output dirs on ipfs add -rn
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:03:11 -07:00
Stephen Whitmore
dfd98f27b2
mfs.Mkdir returns the final Directory it creates
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:03:11 -07:00
Jeromy Johnson
8d7117f55a
Merge pull request #2549 from ipfs/datastore-config
...
repo: properly init Datastore config, and leave it be
2016-04-12 10:41:20 -07:00
Lars Gierth
caec086c28
metrics: add prometheus back
...
With a proper IpfsCollector object and tests, this time.
The collector object makes it easy to add further metrics,
like e.g. bitswap wants/provs.
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-11 19:33:16 -07:00
Lars Gierth
a79907b7c1
repo: properly init Datastore config, and leave it be
...
We didn't previously initialize the Datastore config section.
The respective function exists, but was dead code up until now.
This lead to weird decisions like the GC code deciding on defaults,
and writing these to the config file. Don't want GC to touch the config.
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-11 16:21:14 -07:00
Jeromy
bdc5456d52
update libp2p dep to fix hanging listeners problem
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-11 12:52:54 -07:00
Stephen Whitmore
c89723d316
Adds files api cmd to helptext
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-08 12:33:00 -07:00
Jeromy
00e4472dff
Remove debug log
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-08 11:23:21 -07:00
Jeromy
c5b2e09708
test for the dht key escaping
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-08 11:23:21 -07:00
Jeromy
65c66fd09b
fix dht command key escaping
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-08 11:23:21 -07:00
Jeromy
8f3a51ac42
switch to new libp2p with mss crypto
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-07 15:55:41 -07:00
Thomas Gardner
3e824412d9
commands/cli: fix parsing of incorrect permutations
...
parseOpts now does some preliminary path screening to prevent
command sequences like
`ipfs <hash> cat`
from succeeding. The tests affected by this have been slightly altered,
but should be restored once parseOpts is decoupled from path analysis.
Command suggestion printing has also been factored into a single
function.
Fixes : #2501
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-04-05 21:53:21 +10:00
Jeromy Johnson
ae3fed721f
Merge pull request #2520 from slothbag/sloth_b64_fix
...
Add option to decode 'Data' field as base64
2016-04-04 20:00:25 -07:00
Lars Gierth
09937f84b6
gateway: enforce allowlist for path prefixes
...
The gateway accepts an X-Ipfs-Path-Prefix header,
and assumes that it is mounted in a reverse proxy
like nginx, at this path. Links in directory listings,
as well as trailing-slash redirects need to be rewritten
with that prefix in mind.
We don't want a potential attacker to be able to
pass in arbitrary path prefixes, which would end up
in redirects and directory listings, which is why
every prefix has to be explicitly allowed in the config.
Previously, we'd accept *any* X-Ipfs-Path-Prefix header.
Example:
We mount blog.ipfs.io (a dnslink page) at ipfs.io/blog.
nginx_ipfs.conf:
location /blog/ {
rewrite "^/blog(/.*)$" $1 break;
proxy_set_header Host blog.ipfs.io;
proxy_set_header X-Ipfs-Gateway-Prefix /blog;
proxy_pass http://127.0.0.1:8080 ;
}
.ipfs/config:
"Gateway": {
"PathPrefixes": ["/blog"],
// ...
},
dnslink:
> dig TXT _dnslink.blog.ipfs.io
dnslink=/ipfs/QmWcBjXPAEdhXDATV4ghUpkAonNBbiyFx1VmmHcQe9HEGd
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-04 16:31:57 -04:00
slothbag
bd5e08ca9b
datafieldenc switch statement
...
License: MIT
Signed-off-by: slothbag <slothbag@gmail.com>
2016-04-04 13:21:39 +10:00
slothbag
edf0bb0544
Tidy up object put cmd defaults
...
License: MIT
Signed-off-by: slothbag <slothbag@gmail.com>
2016-04-04 13:09:22 +10:00
slothbag
903a4851b7
Add option to decode 'Data' field as base64
...
License: MIT
Signed-off-by: slothbag@gmail.com <slothbag@gmail.com>
2016-04-04 12:55:27 +10:00
Steven Allen
a72d26b875
api: correctly set the content type for object get --encoding=protobuf
...
It used to default to `application/json` but is now correctly set to
`application/protobuf`.
fixes #2469
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2016-03-31 17:14:41 -04:00
Steven Allen
f15abc223c
use the builtin option parser to set the default for ipfs pin ls --type
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2016-03-30 20:00:40 -04:00
Steven Allen
ef4e8837c6
change ipfs pin response field name from Pinned to Pins
...
This way, we don't claim to pin when unpinning.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2016-03-30 20:00:40 -04:00
Jeromy
9f75ac4d75
update utp and cleanup more godeps along the way
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-03-29 19:18:14 -07:00
Michael Muré
c88e46cb52
clean deprecated Key.Pretty()
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2016-03-25 12:05:45 +01:00
Jeromy Johnson
2b6da0c024
Merge pull request #2471 from ipfs/feature/alphabetize-object
...
Alphabetized object subcommands
2016-03-21 19:44:31 -07:00
Richard Littauer
5f0c997504
Edited the grammar for diag
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-03-18 17:12:45 -04:00
Richard Littauer
c692286b41
Alphabetized subcommands
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-03-15 13:23:22 -04:00
dignifiedquire
c0ec80215e
feat: Update the webui to work with the latest changes in 0.4
...
License: MIT
Signed-off-by: dignifiedquire <dignifiedquire@gmail.com>
2016-03-14 20:49:18 +01:00
Jeromy Johnson
286a5968c5
Merge pull request #2430 from diasdavid/feat/repo-stat
...
Feature: `ipfs repo stat`
2016-03-11 12:51:11 -08:00
Jeromy
97d583dd8f
update libp2p dep
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-03-09 09:53:19 -08:00
David Dias
c10e329b78
repo-stat
...
License: MIT
Signed-off-by: David Dias <daviddias.p@gmail.com>
2016-03-04 23:45:03 +00:00
Jeromy Johnson
91c6f0f3db
Merge pull request #2359 from mildred/ipld
...
Simplify merkledag package interface to ease IPLD inclusion
2016-03-04 12:02:37 -08:00
Jeromy
767ee13ea2
add default option value support to commands lib
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-03-04 10:58:27 -08:00
Mildred Ki'Lya
b3c9922c7b
merkledag: Remove unused AddRecursive and RemoveRecursive
...
License: MIT
Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
2016-03-04 07:48:34 +01:00
Lars Gierth
89b233e360
dns: update dns command docs
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-03-03 17:06:10 +01:00
Stephen Whitmore
1ee3645a49
adds tests for gateway url escaping
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-03-02 16:46:49 -08:00
Adrian Ulrich
ec7623bb81
Use net/url to escape paths in web-ui
...
License: MIT
Signed-off-by: Adrian Ulrich <adrian@blinkenlights.ch>
2016-03-02 15:46:58 -08:00
Richard Littauer
96204b5ef5
Fix spelling error
...
My bad. Introduced in #2366
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-03-02 18:03:24 -05:00
Thomas Gardner
288f7bc621
Humanize byte size
...
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-03-02 08:08:22 +00:00
Thomas Gardner
f988a54c1b
repo stat: add Type
...
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-03-02 08:07:56 +00:00
Thomas Gardner
bb9904bde1
repo: add ipfs repo stat command
...
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-03-02 08:07:56 +00:00
Jeromy Johnson
a551991122
Merge pull request #2424 from ipfs/docs/dns-resolve-default
...
Add default to dns resolve
2016-03-01 22:57:01 -08:00
Jeromy Johnson
d2b9ff4964
Merge pull request #2422 from ipfs/docs/config-add-as
...
Added an `as` to ensure good English
2016-03-01 16:35:31 -08:00
Jeromy Johnson
922dc201a3
Merge pull request #2423 from ipfs/docs/files-read-add-byte
...
Change language for files read slightly
2016-03-01 12:52:58 -08:00
Richard Littauer
8cce0aa1f7
Add default to dns resolve
...
See https://github.com/ipfs/http-api-spec/pull/41#discussion_r53164737
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-03-01 15:17:02 -05:00
Richard Littauer
0d89ae29eb
Change language for files read slightly
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-03-01 14:10:58 -05:00
Richard Littauer
512b25c0cd
Added an as to ensure good English
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-03-01 14:06:36 -05:00
Richard Littauer
7227386b8b
Remove period from dns text examples
...
It is not useful. See https://github.com/ipfs/http-api-spec/pull/41#discussion_r53482505
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-03-01 13:59:09 -05:00
Mildred Ki'Lya
67c59d871e
Rename Decoded into DecodeProtobuf
...
This function work only with protocol buffer encoding. To make this clear,
rename the function.
License: MIT
Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
2016-03-01 09:01:51 +01:00
Mildred Ki'Lya
5808fe2edd
Remove usage of merkledag.Link.Node pointer outside of merkledag
...
This prepares for inclusion of IPLD where the Node pointer won't be there.
License: MIT
Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
2016-03-01 08:59:44 +01:00
Jeromy Johnson
cdddf0ff51
Merge pull request #2403 from noffle/ipfs-files-truncate
...
makes 'ipfs files write' usage docs clearer
2016-02-29 16:27:55 -08:00
Stephen Whitmore
0afbd1857f
Prevents 'ipfs name publish' when /ipns is mounted.
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-02-29 16:05:48 -08:00
Jeromy Johnson
54ae9daf4b
Merge pull request #2412 from ipfs/docs/config-opts-defaults
...
Added defaults to config opts descriptions
2016-02-29 15:10:43 -08:00
Jeromy Johnson
54426adde8
Merge pull request #2410 from ipfs/docs/resolve-recursive-default
...
Added `default false` to `resolve --recursive` help text
2016-02-29 15:09:37 -08:00
Jeromy Johnson
1d6e0d88aa
Merge pull request #2409 from ipfs/docs/bitswap-unwant-arg
...
Noted ability to specify multiple keys in `bitswap unwant`
2016-02-29 15:09:08 -08:00
Jeromy Johnson
dede20eab4
Merge pull request #2384 from ipfs/feat/dag-refactor
...
refactor merkledag fetching methods
2016-02-29 10:04:34 -08:00
Richard Littauer
34e3ad16de
Added defaults to config opts descriptions
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-26 12:46:50 -05:00
Richard Littauer
2a79e0ddd4
Added default false
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-26 12:25:43 -05:00
Richard Littauer
8adf7a3f67
Noted ability to specify multiple keys in bitswap unwant
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-26 12:09:27 -05:00
Stephen Whitmore
4492b8c6ba
Makes 'ipfs files write' usage docs clearer.
...
A couple of notes on --truncate and --offset.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-02-24 13:32:26 -08:00
Jeromy
cba00b900b
fixes from review
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-24 10:06:07 -08:00
Jeromy Johnson
7471795793
Merge pull request #2391 from ipfs/files-ls-defaults-to-pathroot
...
files: make 'files ls' defaults to /
2016-02-23 10:18:50 -08:00
Christian Couder
73e76dca56
files: make 'files ls' defaults to /
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-22 19:15:49 +01:00
Jeromy
479761ec6a
change batch fetching methods of dagserv
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-20 10:27:07 -08:00
Jeromy
e664fc3a2d
add command to change keep time for reqlog objects
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-19 22:05:05 -08:00
Jeromy Johnson
2600a0290a
Merge pull request #2333 from palkeo/master
...
Add option to display headers for « ipfs object links ».
2016-02-19 22:04:05 -08:00
Jeromy Johnson
45fb4de23a
Merge pull request #2377 from ipfs/docs/files-copy-edit
...
Copy edited files command file
2016-02-19 18:59:40 -08:00
Jeromy Johnson
8e4cfed05a
Merge pull request #2372 from ipfs/docs/fix-tagline
...
Updated tagline for queryDhtCmd
2016-02-19 08:42:44 -08:00
Richard Littauer
10b7bfa0c0
Capitalize All
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-19 11:37:33 -05:00
Jeromy Johnson
41a6859262
Merge pull request #2366 from ipfs/docs/edit-ls-desc
...
Edit the ls.go description
2016-02-19 08:34:31 -08:00
Richard Littauer
08a7c45350
Change target to destination to match files cp
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-19 11:19:34 -05:00
Richard Littauer
62cd07813b
Copy edited files command file
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-19 10:09:23 -05:00
Richard Littauer
3da441932e
Updated tagline for queryDhtCmd
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-18 20:59:26 -05:00
Richard Littauer
63fbc7b62b
Added other entries
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-18 20:41:08 -05:00
Jeromy Johnson
27cbef1557
Merge pull request #2362 from ipfs/feature/add-level-arg-desc
...
Added a description to level argument
2016-02-18 17:30:51 -08:00
Jeromy Johnson
ff1509b077
Merge pull request #2363 from ipfs/docs/resolve
...
Removed double spaces, added `an`, siwitched carrot to dollar
2016-02-18 17:30:09 -08:00
Jeromy Johnson
7239b48caf
Merge pull request #2364 from ipfs/docs/poll-default-false
...
Added default false to stats bw poll
2016-02-18 17:27:07 -08:00
Jeromy Johnson
65cda02096
Merge pull request #2367 from ipfs/docs/capitalize-dht
...
Capitalized DHT
2016-02-18 17:25:38 -08:00
Richard Littauer
50a44f9962
Added ticks, the, and defaults to get
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-18 18:11:06 -05:00
Richard Littauer
ac42bb7932
Capitalized DHT
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-18 17:39:26 -05:00
Richard Littauer
600d4a64a5
Edit the ls.go description
...
This should make it a bit easier to read. Cf https://github.com/ipfs/http-api-spec/pull/42#discussion_r53164138
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-18 17:18:49 -05:00
Richard Littauer
9c53ad7423
Added default false to stats bw poll
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-18 15:58:42 -05:00
Richard Littauer
6ea9f60148
Removed double spaces, added an, siwitched carrot to dollar
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-18 15:51:20 -05:00
Richard Littauer
b14403a06f
Added a description to level argument
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-18 15:24:08 -05:00
palkeo
47222530f5
Fixed indentation.
...
License: MIT
Signed-off-by: palkeo <contact@palkeo.com>
2016-02-18 09:44:54 +01:00
Jeromy Johnson
f8eefba0a3
Merge pull request #2354 from ipfs/fix/stdin-arg-parse
...
fix panic in cli arg parsing
2016-02-17 20:58:17 -08:00
Jeromy
dbf0185a91
fix panic in cli arg parsing
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-17 13:05:51 -08:00
palkeo
c7bc83e3d6
Add option to display headers to "ipfs object links".
...
See #1086 .
License: MIT
Signed-off-by: palkeo <contact@palkeo.com>
2016-02-17 22:01:36 +01:00
Jeromy Johnson
ef7b37357a
Merge pull request #2353 from ipfs/docs/achieve
...
Fixed spelling error
2016-02-17 11:55:32 -08:00
Jeromy Johnson
7866a724ab
Merge pull request #2352 from ipfs/docs/file-ls
...
Removed double space, hyphen
2016-02-17 11:55:19 -08:00
Richard Littauer
84446f882d
Fixed spelling error
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-17 14:01:47 -05:00
Richard Littauer
f3f568ff9f
Removed double space, hyphen
...
See @dignifiedquire comments in https://github.com/ipfs/http-api-spec/pull/45
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-17 13:17:53 -05:00
Richard Littauer
b1b4ac4a0b
Capped IPFS, added period
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-17 13:12:28 -05:00
Jeromy Johnson
58a608567c
Merge pull request #2298 from ipfs/feature/example-name-change
...
Normalised Example heading, added dollar sign to examples
2016-02-16 08:17:24 -08:00
Jeromy Johnson
5ebfd712e3
Merge pull request #2299 from ipfs/feature/small-changes-rebase
...
Capitalized Merkle, added single quotes, periods
2016-02-16 08:13:27 -08:00
Richard Littauer
af148b3e05
Normalised Example heading, added dollar sign to examples
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-14 13:16:40 -05:00
Jeromy
d7dab3afea
Use gx vendored go-ipfs-utils where possible
...
For the rest of the packages in util, move them to thirdparty
and update the references. util is gone!
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-12 17:21:40 -08:00
Jeromy
3faedb5208
remove goprocess from godeps, use gx vendored one
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-12 17:21:40 -08:00
Jeromy Johnson
392c00696c
Merge pull request #2291 from Kubuxu/feat/#2287
...
Add dns and resolve commands to ROAPI
2016-02-12 14:08:49 -08:00
Jeromy Johnson
287eb7ba14
Merge pull request #2303 from ipfs/feature/capitalise-tokens
...
Capitalized `Tokens`
2016-02-12 14:08:07 -08:00
Richard Littauer
0c830df19a
Capitalized Tokens
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-10 21:09:47 -05:00
Robert Carlsen
5367ee76d0
fix another panic where CloseNotify was called from wrong goroutine
...
panic: net/http: CloseNotify called after ServeHTTP finished
goroutine 180 [running]:
net/http.(*response).CloseNotify(0xc8220684e0, 0x0)
/home/r/go/src/net/http/server.go:1535 +0x9d
github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/prometheus/client_golang/
/home/r/src/github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/prome
github.com/ipfs/go-ipfs/core/corehttp.(*gatewayHandler).getOrHeadHandler.func1(0x7
/home/r/src/github.com/ipfs/go-ipfs/core/corehttp/gateway_handler.go:119 +
created by github.com/ipfs/go-ipfs/core/corehttp.(*gatewayHandler).getOrHeadHandle
/home/r/src/github.com/ipfs/go-ipfs/core/corehttp/gateway_handler.go:123 +
License: MIT
Signed-off-by: Robert Carlsen <rwcarlsen@gmail.com>
2016-02-09 11:09:43 -06:00
Jeromy
c47e12ebb1
clear up comment about flush=false
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:47:54 -08:00
Jeromy
4b7e3282f1
introduce concept of filedescriptors to mfs, adjust fuse code to use them
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:45:44 -08:00
Jeromy
5474e15e93
blockstore locks return unlocker object now
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:42:07 -08:00
Jeromy
829606a9ed
add note about flush flag
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:42:07 -08:00
Jeromy
b078915fb4
add context to files reading
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:42:07 -08:00
Jeromy
5fcd9a1f8e
use correct context in pubfunc pinning
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:42:07 -08:00
Jeromy
d2e0d73bd5
flush pinning improvements
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:42:07 -08:00
Jeromy
1feea8bc5f
flushing and shallow list names
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:42:07 -08:00
Stephen Whitmore
e9cc395ef2
Merge pull request #2296 from noffle/clean_unmount
...
Mounts detect unmounts and track mount state.
2016-02-08 13:22:45 -08:00
Jeromy Johnson
1aeec4a710
Merge pull request #2314 from ipfs/docs/publish-lifetime
...
Added note about time formatting
2016-02-08 12:07:36 -08:00
Jeromy Johnson
471d4d10eb
Merge pull request #2311 from ipfs/feature/fix-up-ipfs-file-comments
...
Fixed spelling errors, added oxford comma
2016-02-08 12:07:20 -08:00
Jeromy Johnson
f3d754c8e0
Merge pull request #2307 from ipfs/feature/diag-net-comments
...
Formatted diag net comments
2016-02-08 09:15:43 -08:00
Richard Littauer
598ea5ed50
Added note about time formatting
...
This closes #2312
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-08 09:46:47 -05:00
Stephen Whitmore
40a49c8399
Mounts detect unmounts and track mount state.
...
This lets FUSE mounts to track whether they are active or not by
tracking when fs.Serve terminates.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-02-07 19:54:59 -08:00
Richard Littauer
93b6725220
Fixed spelling errors, added oxford comma
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-06 18:11:17 -05:00
Jeromy Johnson
5a0b8023be
Merge pull request #2256 from ipfs/feat/gx-libp2p
...
vendor libp2p with gx
2016-02-05 16:52:02 -08:00
Richard Littauer
d3b1bb4e10
Formatted diag net comments
...
Also added default notice aboue plain text
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-05 18:21:48 -05:00
Richard Littauer
062b3438a2
Added an example to ipfs id
...
I was super confused how to use the `-f` flag. This helped, but I had to go into
the test files to find it. Added it here.
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-05 11:05:51 -05:00
Jeromy Johnson
9300af5c58
Merge pull request #2285 from ipfs/docs/cleanup-id-mans
...
Cleaned up `ipfs id` mans
2016-02-04 15:12:28 -08:00
Richard Littauer
f92e407cd1
Capitalized Merkle, added single quotes, periods
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-04 17:24:48 -05:00
Jeromy Johnson
268ec7899c
Merge pull request #2292 from ipfs/docs/optional-template
...
Changed wording to make optional stand out
2016-02-04 10:47:36 -08:00
Jeromy
1e1c89c2a8
command to clear inactive requests from request log
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-04 10:04:04 -08:00
Richard Littauer
2c0846c8e9
Changed wording to make optional stand out
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-04 09:48:16 -05:00
Jakub Sztandera
ac37d23662
Add dns and resolve commands to ROApi
...
Resolves #2287
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@gmail.com>
2016-02-04 09:14:19 +01:00
Jeromy
15d827b912
reword error message to confuse whyrusleeping less
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-03 11:40:13 -08:00
Richard Littauer
e51b82149a
Cleaned up ipfs id mans
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-03 11:40:13 -08:00
Jeromy Johnson
e8c753d2e5
Merge pull request #2282 from ipfs/docs/remove-extra-space
...
Removed extra space
2016-02-03 09:24:46 -08:00
Jeromy Johnson
82cc61614e
Merge pull request #2288 from tomgg/tmg/trivial
...
trivial: various superficial fixes
2016-02-02 22:27:43 -08:00
Thomas Gardner
aaa6569f2c
trivial: various superficial fixes
...
misc/completion/ipfs-completion.bash: add `ipfs stats` to BASH completion
core/commands/mount_unix.go: ensure error is not nil before printing it
contribute.md: fix bibliography indexing in example
core/commands/swarm.go: change tabs to spaces in USAGE message
*: 80-column readability improvements
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-02-03 15:46:28 +10:00
Richard Littauer
dc5b45e377
Removed extra space
...
This was coming up as an extra space. For instance:
```curl -i http://localhost:5001/api/v0/config?arg=kitten
//"Message": "Failed to get config value: key has no attributes",
```
Removing it here.
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-02 15:26:01 -05:00
Richard Littauer
548ad107a2
Add quotes to ipfs config
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-02 11:32:30 -05:00
Jeromy
4753e6c292
sort options and add id to verbose output
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-01 22:05:29 -08:00
Jeromy
df0f87a8eb
verbose mode
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-01 17:21:31 -08:00
Jeromy
c7c1e72eaf
add sharness test
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-01 16:35:22 -08:00
Jeromy
366d7db3d3
add command to view active api requests
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-01 15:44:43 -08:00
Jeromy
2263539c1c
do that last thing again
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-31 15:37:39 -08:00
Jeromy
c0101c0c4b
update libp2p dep
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-31 10:19:50 -08:00
Jeromy
0e8a6700f9
correct go-log dep
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-30 09:34:10 -08:00
Jeromy
3d0aa592ec
go-keyspace dep from libp2p added
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-30 09:34:08 -08:00
Jeromy
0e312f5caf
initial vendoring of libp2p outside of the repo with gx
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-30 09:34:06 -08:00
Richard Littauer
ec0c3ac3b8
Added quotes to swarm and ping descriptions
...
Also fixes some grammar in pings.
See https://github.com/ipfs/go-ipfs/pull/2265#issuecomment-177062200
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-01-30 11:33:29 -05:00
Richard Littauer
7758ad3d3e
Added quotes around block put command
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-01-29 16:51:10 -05:00
Jeromy Johnson
06cb9b5813
Merge pull request #2253 from rht/typo-n
...
s/retreiving/retrieving/g
2016-01-27 21:49:28 -08:00
rht
d8b77eb7c7
s/retreiving/retrieving/g
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2016-01-27 14:47:21 +07:00
Jeromy Johnson
8207fa7d07
Merge pull request #2244 from ipfs/feature/capitalize-and-periods
...
Capitalized beginning of line messages, added periods
2016-01-26 22:31:02 -08:00
Jeromy Johnson
081c6d9228
Merge pull request #2242 from tomgg/issue1083
...
fix #1083 : Append a newline to `ipfs id` output.
2016-01-25 22:00:35 -08:00
Stephen Whitmore
81b9607c49
Merge pull request #2201 from noffle/unpin-2155
...
Resolve paths in 'pin rm' /wo network lookup
2016-01-25 17:17:47 -08:00
Thomas Gardner
7b716986f6
Append newlines to ipfs id and ipfs dns output.
...
This fixes #1083 , #2000 .
N.B. The JSON package developers see no trailing newline as a feature;
it allows marshalled JSON to be embedded inside more JSON.[0]
--
[0] https://golang.org/pkg/encoding/json/
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-01-26 02:14:30 +10:00
Stephen Whitmore
9745704f5f
Slightly optimizes core.ResolveToKey().
...
This is done by skipping the step of resolving the final segment in the
path to a DAG node; instead preferring to look at the second-to-last
segmenet's links.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-01-24 23:31:05 -08:00
Richard Littauer
28fe2e4f4c
Capitalized beginning of line messages, added periods
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-01-24 22:39:34 +00:00
Juan Benet
a5c4c5d17c
Merge pull request #2232 from lidel/cors-preflight-fix
...
Gateway: add support for HTTP OPTIONS request type
2016-01-23 19:56:24 -08:00
Thomas Gardner
dfeaaebf87
trivial: fix ipfs update error message
...
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-01-23 17:17:31 +10:00
rht
6cfc00e18b
Merge pull request #2231 from rht/docs/punc-caps
...
Fix punc-caps issues of cli Tagline
2016-01-23 12:52:08 +07:00
rht
fce3840a4e
Merge pull request #2228 from ipfs/docs/bitswap
...
Fixed up docs for bitswap
2016-01-23 11:22:20 +07:00
rht
bc94293b5f
Merge pull request #2223 from ipfs/feature/doc-add
...
Generic doc fixes to `ipfs add`
2016-01-23 11:16:37 +07:00
rht
07c7a4cd76
Capitalize the remaining tagline with /Tagline:.\*"[[:lower:]]/
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2016-01-22 11:11:37 +07:00
Marcin Rataj
8651143344
Gateway: add support for HTTP OPTIONS request type
...
OPTIONS is a noop request that is used by the browsers
to check if server will accept cross-site XMLHttpRequest
(indicated by the presence of CORS headers)
Before this fix user could enable CORS headers in the Gateway config,
but XHR failed due to the lack of support for OPTIONS request type
(as described in https://git.io/vzgGe )
License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2016-01-21 23:22:54 +01:00
rht
21e39240ab
Fix punc-caps issues of cli Tagline
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2016-01-22 02:36:17 +07:00
Richard Littauer
a998dbf285
Fixed up docs for bitswap
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-01-21 17:53:14 +01:00
Richard Littauer
7a7a21bbd4
Add final periods, capitalize Chunker
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-01-21 12:57:16 +01:00
Richard Littauer
719c3693e2
Remove unnecessary sentence
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-01-21 12:46:59 +01:00
Richard Littauer
2df514c4f2
Change object to file
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-01-21 12:45:47 +01:00
Christian Couder
29830da6a5
core/commands/pin: change the default for --type to 'all'
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-20 21:33:09 +01:00
Christian Couder
f5f923a7a8
core/commands/pin: update 'ipfs pin ls' documentation
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-18 21:37:44 +01:00
Christian Couder
d87ece14ce
core/commands/pin: refactor listing all pins
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-18 21:37:44 +01:00
Christian Couder
4244f71dcd
core/commands/pin: make 'ipfs pin ls' accept path args
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-18 21:37:44 +01:00
Christian Couder
c89e3c22eb
core/commands/pin: refactor 'pin ls'
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-18 21:37:44 +01:00
Jeromy Johnson
aeaae90128
Merge pull request #2210 from ipfs/fix/bootstrapping
...
fix bootstrapping bug and add real test for bootstrapping
2016-01-17 05:47:29 +01:00
Jeromy
39d0b33507
address CR feedback
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-16 17:51:08 -08:00
Juan Benet
75a63b74d8
Merge pull request #2209 from ipfs/feat/stat-type
...
make files stat print out node type
2016-01-16 19:38:50 -05:00
Jeromy
52da1e3293
fix bootstrapping bug and add real test for bootstrapping
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-16 16:05:46 -08:00
Jeromy
f485fa4b1e
add type to stat printed output
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-16 10:07:05 -08:00
Jeromy
1957094fe4
add type to stat cmd json output
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-16 08:04:17 -08:00
Stephen Whitmore
32ceaa61e8
Resolves paths in 'pin rm' without network lookup.
...
Fixes ipfs/go-ipfs#2155 by turning the hash path arguments into keys
and unpinning directly, rather than running a full core.Resolve on
them. This lets users fail fast when they try to remove pins that
they don't have locally.
Note that this will only work when the path is of the form <hash> or
/ipfs/<hash>. Given e.g. /ipfs/<hash>/foo, foo's key cannot be known
without first resolving <hash>, which may involve talking to the
network.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-01-16 03:11:36 +01:00
Jeromy Johnson
b182e539f0
Merge pull request #2202 from noffle/hidden_files-2145
...
Lets 'ipfs add' include top-level hidden files
2016-01-15 20:40:52 +01:00
Stephen Whitmore
0828d1eb64
Lets 'ipfs add' add hidden files when explicit.
...
Fixes ipfs/go-ipfs/#2145. The --hidden switch (still) only affects
recursive adding.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-01-15 11:19:40 -08:00
Jeromy
1649b44ae0
combine multiple bootstrap addrs into single peer info
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-14 07:18:14 -08:00
Jeromy
3c6a40a3a7
remove failed merge tag from pin ls help
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 12:32:21 -08:00
Jeromy
faec2a3280
cleanup dht cmd output and fix unrecognized events
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
a99ad8a411
add tests for and fix {set/append}-data
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
4dca1f240f
better doc strings
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
d4ffc9454f
refactor object patch command to work more betterer
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
871cc6f1b1
call flush after files rm
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
f548a404ae
just flush dir in mkdir flush, not whole tree
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
e3769dfb5a
add flush option to mkdir
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
3ff880b023
skip searching for child on -r flag
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
4d5af93f43
vendor in new go-datastore
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Etienne Laurin
a83c3a334f
use ServeContent for index.html
...
One advantage is that it sets the Content-Type header correctly.
License: MIT
Signed-off-by: Etienne Laurin <etienne@atnnn.com>
2016-01-12 08:22:55 -08:00
Jeromy
b5ef584f40
replace go-psutil with go-sysinfo
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
f3f776067a
remove old update code
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
b559c3e88a
PutNode creates intermediary nodes
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
d892661f3e
Flatten multipart file transfers
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
cc4a69df20
log failure to check file size
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
f08c88c8bb
feedback from CR
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
06c013bf67
cleanup and more testing
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
5dd32d6491
Add test for running gc during an add
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
c49dcffce2
Allow for gc during adds
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
be09205310
fixify tests
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
b2b415b57d
fix some tests
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
d64f1494a3
enfastify mfs
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
1efbc79223
use mfs for adds
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
4fdfbc7d32
compute add size in background to not stall add operation
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
dc2e343a99
add option to disable flushing files structure on writes
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
a961b1f7ac
ipfs files ls without -l is faster
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
rht
743f3edcbb
strings.Split -> path.SplitList
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2016-01-12 08:22:55 -08:00
rht
ffd859232d
Replace strings.Join(elms, "/") with path.Join(elms)
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
bf955f3560
add closenotify and large timeout to gateway
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
efac042e82
rework editor creation and finalization
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
d8ee7dffc3
improves memory usage of add
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Andrew Chin
b6f28dad1b
Add a --pin option to ipfs add (allowing --pin=false)
...
Implements a solution for #1908
This PR replaces #1909
License: MIT
Signed-off-by: Andrew Chin <achin@eminence32.net>
2016-01-12 08:22:55 -08:00
rht
86901aff3c
Move parts of ipfs add into core/coreunix
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
38fab91013
address comments from CR
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
6faa70ee59
implement ipfs files command
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
78a8088410
Refactor ipnsfs into a more generic and well tested mfs
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
c6ee2058d9
comments from CR
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
45d4b1a8bc
fixup datastore interfaces
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Tommi Virtanen
b76581d6c7
fsrepo: Refactor to extract datastore internals
...
License: MIT
Signed-off-by: Tommi Virtanen <tv@eagain.net>
2016-01-12 08:22:55 -08:00
Tommi Virtanen
4a33683443
core tests: Stop assuming internals of Config
...
License: MIT
Signed-off-by: Tommi Virtanen <tv@eagain.net>
2016-01-12 08:22:55 -08:00
Jeromy
b12ee40aba
implement mark and sweep GC
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
dont GC blocks used by pinner
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
comment GC algo
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
add lock to blockstore to prevent GC from eating wanted blocks
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
improve FetchGraph
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
separate interfaces for blockstore and GCBlockstore
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
reintroduce indirect pinning, add enumerateChildren dag method
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:21:13 -08:00
Juan Batiz-Benet
27f34b4311
renamed {R,}Lock -> {Pin,GC}Lock
...
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2016-01-12 08:21:13 -08:00
Jeromy
7b675e870c
lock blockstore for pin add
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:21:13 -08:00
Jeromy
1a03d5e37a
move locking out of GC branch
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:21:13 -08:00
Jeromy
b9e5cfaa15
merkledag FetchGraph and EnumerateChildren
...
This commit improves (fixes) the FetchGraph call for recursively
fetching every descendant node of a given merkledag node. This operation
should be the simplest way of ensuring that you have replicated a dag
locally.
This commit also implements a method in the merkledag package called
EnumerateChildren, this method is used to get a set of the keys of every
descendant node of the given node. All keys found are noted in the
passed in KeySet, which may in the future be implemented on disk to
avoid excessive memory consumption.
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:21:13 -08:00
Tommi Virtanen
96e45c7457
Use uint64 for indirect pin refcounts
...
Platform-dependent behavior is not nice, and negative refcounts are
not very useful.
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:17:17 -08:00
Tommi Virtanen
c9ce2e724a
Simplify Pinner interface by folding ManualPinner into Pinner
...
Pinner had method GetManual that returned a ManualPinner, so every
Pinner had to implement ManualPinner anyway.
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:17:17 -08:00
dignifiedquire
ab61ef2024
feat: Update to the latest version of the webui
...
License: MIT
Signed-off-by: Friedel Ziegelmayer <dignfiedquire@gmail.com>
2016-01-12 16:41:58 +01:00
Richard Littauer
fd69205eac
Added quotes around command in long desc
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-01-04 16:13:06 -05:00
Jeromy Johnson
8d48163ea0
Merge pull request #2032 from ipfs/fix/close-notify
...
fix close notify
2015-12-29 08:13:41 -08:00
Adam Gashlin
31788f634f
fix typo in AddrFilters error message
...
License: MIT
Signed-off-by: Adam Gashlin <agashlin@gmail.com>
2015-12-28 10:55:32 -05:00
Jeromy
8ad1141436
fixup panic catching in http handler funcs
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-12-28 04:18:56 -08:00
Dominic Della Valle
a6eb32b77c
Fix path parsing for add command
...
License: MIT
Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
2015-12-22 10:59:17 -05:00
Jeromy
bfff3fa390
Add patch too
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-12-13 15:12:29 -08:00
Jeromy
f3f3d5c91b
add 'get' to the allowed gateway commands
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-12-13 14:56:31 -08:00
Juan Benet
0f39687fb6
Merge pull request #2019 from ipfs/Dignifiedquire-fix/access-controll-headers
...
Dignifiedquire fix/access controll headers
2015-12-09 00:55:06 -08:00
Juan Benet
d58053b241
Merge pull request #1961 from ipfs/feat/external-bins
...
initial support for commands to use external binaries
2015-12-06 21:34:09 -08:00
Jeromy
96a0726759
address CR feedback
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-12-06 15:20:18 -08:00
Juan Benet
4fd28444ac
Merge pull request #1981 from sahib/master
...
--help: Add a note on using IPFS_PATH to the footer of the helptext.
2015-12-02 09:04:55 -08:00
Juan Benet
1c53aea2d2
Merge pull request #2000 from nham/object_put_newline
...
Add newline to end of `ipfs object put` text output.
2015-12-02 03:40:27 -08:00
Chris P
aa5532e5bf
--help: Add a note on using IPFS_PATH to the footer of the helptext.
...
License: MIT
Signed-off-by: Chris P. <sahib@online.de>
2015-12-02 11:46:09 +01:00
Juan Benet
7d0d1afb42
Merge pull request #2001 from ipfs/version-commit
...
gateway: /version tests, add CurrentCommit
2015-12-01 07:30:23 -08:00
Juan Benet
34efa3b8ea
Merge pull request #2010 from ipfs/hotfix/auto-gc
...
Fix maybeGC trigger condition
2015-12-01 07:26:24 -08:00
Jeromy
bdc1b27c51
hard code things
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-11-30 14:43:37 -08:00
Nick Hamann
d49a15f566
Add newline to end of the output for a few commands.
...
Commands affected:
- ipfs object put
- ipfs tar add
- ipfs resolve
- ipfs name resolve
License: MIT
Signed-off-by: Nick Hamann <nick@wabbo.org>
2015-11-29 11:50:48 -06:00
rht
4a1043b207
Remove the err brake from PeriodicGC
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-11-28 07:52:23 +07:00
rht
7e46762342
Fix maybeGC trigger condition
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-11-27 11:31:11 +07:00
Lars Gierth
9d0c3f5cb0
diag: make commit consistent with version command
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-11-26 02:46:51 +01:00
Lars Gierth
9beebc9779
commands: enable version for API
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-11-26 02:46:41 +01:00
Lars Gierth
3e03ae8f77
gateway: add CurrentCommit to /version
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-11-25 02:51:05 +01:00
Lars Gierth
8ab0ddfe44
gateway: add tests for /version
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-11-25 02:51:05 +01:00
Lars Gierth
ebf9511d63
commands: fix description of --api
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-11-23 20:35:02 +01:00
Jeromy
7681b66fee
initial support for commands to use external binaries
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-11-16 09:17:11 -08:00
Lars Gierth
021ef43418
gateway: add path prefix for directory listings
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-11-16 07:00:57 +01:00
rht
48a33ffb67
Add fixed period repo GC + test
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-11-10 14:03:29 +07:00
Juan Benet
0b3e0373d5
Merge pull request #1914 from ipfs/fix/log-hang
...
fix webui log hanging bug
2015-11-08 23:50:31 +00:00
Jeromy
2f5563b3c0
fix log hanging issue, and implement close-notify for commands
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-11-05 15:57:28 -08:00
Jeromy
94bdce63a7
vendor logging lib update
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-11-05 15:57:21 -08:00
Jeromy
7811983901
add option to version command to print repo version
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-11-03 12:19:12 -08:00
Jeromy
c7fb7ce17d
cache ipns entries to speed things up a little
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-11-02 12:53:08 -08:00
rht
31115f51a0
Allow ipfs cat on ipns path
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-10-31 15:55:47 +07:00
Juan Batiz-Benet
b675bfc595
webui updated to disable logs
...
to: /ipfs/QmR9MzChjp1MdFWik7NjEjqKQMzVmBkdK3dz14A6B5Cupm
https://github.com/ipfs/webui/pull/91
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-10-31 01:22:42 -04:00
Juan Benet
f703b2c375
Merge pull request #1886 from ipfs/fix/ThatPut
...
fixing putHandler
2015-10-31 01:03:33 -04:00
Henry
c1847e9f69
putHandler: addressed CR from @jbenet
...
License: MIT
Signed-off-by: Henry <cryptix@riseup.net>
2015-10-31 01:37:37 +01:00
Juan Benet
bf415b0dff
Merge pull request #1889 from ipfs/fix/log-writer
...
fix bug in mirrorwriter removal
2015-10-28 16:57:52 -04:00
Henry
b8b4e45665
fixing putHandler for --writable http gateway
...
I disabled this a long time ago and never refactored it. About time.
License: MIT
Signed-off-by: Henry <cryptix@riseup.net>
2015-10-28 08:11:56 +01:00
Juan Benet
62cb6ebf8a
Merge pull request #1900 from ipfs/fix/swarm-con-err
...
make swarm connect return an error when it fails
2015-10-27 20:04:48 -04:00
Jeromy
c023d187b5
update code to use new logging changes
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-27 11:04:56 -07:00
Juan Benet
49684ea4aa
Merge pull request #1890 from ipfs/fix/bitswapLogging
...
bitswap: clean log printf and humanize dup data count
2015-10-27 05:56:49 -04:00
Juan Benet
fff95d6fff
Merge pull request #1856 from ipfs/fix/id-self
...
allow ipfs id to work on self
2015-10-27 04:52:07 -04:00
Jeromy
9094345875
make swarm connect return an error when it fails
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-25 13:15:14 -07:00
Henry
aeeed0c72b
bitswap: clean log printf and humanize dup data count
...
License: MIT
Signed-off-by: Henry <cryptix@riseup.net>
2015-10-23 08:33:50 +02:00
Juan Benet
27eece3e81
Merge pull request #1835 from miolini/master
...
fix races in http cors
2015-10-20 12:47:06 -07:00
rht
916ae8d8df
Add short flag for ipfs ls --headers (v for verbose)
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-10-19 16:43:50 +07:00
rht
c091cf5abe
Fix cli flag orders (long, short)
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-10-19 12:53:23 +07:00
Jeromy
1cef170243
add small sharness test to make sure output happens
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-18 19:50:15 -07:00
Jeromy
11104d401e
system diagnostics command
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-18 19:50:15 -07:00
Jeromy
cac6b376c3
allow ipfs id to work on self
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-18 10:14:34 -07:00
Juan Benet
9ca0be36e1
Merge pull request #1852 from ipfs/rht-commands-flags
...
Make `ipfs commands --flags` option
2015-10-18 05:09:35 -07:00
Juan Benet
4fad0f7286
Merge pull request #1827 from rht/metalint
...
Add err check to coremock node init
2015-10-18 04:33:17 -07:00
Caio Alonso
e05f2d3724
adds the option to see the current git commit with ipfs version --commit
...
License: MIT
Signed-off-by: Caio Alonso <caio@caioalonso.com>
2015-10-17 19:48:39 -03:00
rht
1bb6a63b11
ipfs commands --flags: display short & long flag
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-10-17 16:45:13 +07:00
Christian Couder
3e2016d987
commands: add --flags to show all flags
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-17 09:11:22 +02:00
rht
4da824c954
Show flags in ipfs commands
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-10-17 08:57:02 +07:00
Juan Benet
d6297c7498
Merge pull request #1823 from ForrestWeston/recurPin
...
Pin commands default to recursive
2015-10-16 08:43:25 -07:00
ForrestWeston
9916f8663b
Updated Pin Remove Tagline and Description
...
License: MIT
Signed-off-by: ForrestWeston <Forrest.Weston@gmail.com>
2015-10-14 09:42:19 -07:00
Juan Benet
1ef79801ca
Merge pull request #1834 from ipfs/feat/local-resolve
...
allow ipfs name resolve to respect --local
2015-10-14 16:28:26 +08:00
ForrestWeston
01239147b7
changed pinning to be recursive by default
...
pin add, pin rm, and pin ls will be recursive unless
specified with '=false' eg. 'ipfs pin add -r=false <file>'
tests for pinning have been updated/added
License: MIT
Signed-off-by: ForrestWeston <Forrest.Weston@gmail.com>
2015-10-13 17:11:05 -07:00
rht
740447eecd
Fix typo
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-10-13 16:51:47 +07:00
rht
2e0c072dac
Use core path resolver for 'resolve command' [1]
...
[1] 172eeb87fa
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-10-13 16:51:47 +07:00
Matt Bell
3a2b83d904
resolve cmd: Fully resolve IPFS paths after resolving IPNS names
...
License: MIT
Signed-off-by: Matt Bell <mappum@gmail.com>
2015-10-13 13:11:40 +07:00
Matt Bell
8d370a3946
Added help text to 'resolve' command to show DAG path resolution.
...
License: MIT
Signed-off-by: Matt Bell <mappum@gmail.com>
2015-10-13 13:11:40 +07:00
Matt Bell
eddd64119e
Resolve '/ipfs/root/some/path' paths in 'ipfs resolve' command
...
License: MIT
Signed-off-by: Matt Bell <mappum@gmail.com>
2015-10-13 13:11:40 +07:00
rht
53bb0b6343
(ineffassign) add err check to NewNode init
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-10-13 10:06:07 +07:00
Artem Andreenko
4555085844
fix races in http cors
...
License: MIT
Signed-off-by: Artem Andreenko <mio@volmy.com>
2015-10-13 01:09:55 +03:00
Jeromy
73cd3f6563
allow ipfs name resolve to respect --local flag for local name resolution
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-12 11:36:16 -07:00
Juan Benet
bc0f0c2b36
Merge pull request #1779 from rht/latest-progressbar
...
Use common progressbar function for cat and get
2015-10-11 23:40:00 +08:00
Caio Alonso
dc85abb77b
adds -H as short option for 'ipfs add --hidden'
...
License: MIT
Signed-off-by: Caio Alonso <caio@caioalonso.com>
2015-10-10 12:47:12 -03:00
Forrest Weston
6e2435211f
Added an xml decoder, Fixes #1612
...
License: MIT
Signed-off-by: Forrest Weston <forrest.weston@gmail.com>
2015-10-09 12:05:48 -07:00
Juan Benet
b415e0618b
Merge pull request #1797 from rht/fix/cat
...
Add context to coreunix.Cat argument
2015-10-08 02:59:52 -07:00
Lars Gierth
dd20f48454
daemon: instrument the gateway and api HTTP handlers
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-10-05 03:53:49 +02:00
rht
6ae0973e1f
Add context to coreunix.Cat argument
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-10-04 23:10:43 +07:00
rht
7caba7e46a
Use common progressbar function for cat and get
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-10-04 22:43:47 +07:00
Jeromy
8f0623255d
replace imports with absolute path instead of using symlink
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-03 14:30:50 -07:00
Jeromy
b34d41e01e
fix publish fail on prexisting bad record
...
dont error out if prexisting record is bad, just grab its sequence number
and continue on with the publish.
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-02 14:59:31 -07:00
Jeromy
e5512b4115
make publish more configurable and add test for repub
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-30 11:03:44 -07:00
Jeromy
815a031f59
Implement ipns republisher
...
This commit adds a very basic process that will periodically go through
a list of given ids and republish the values for their ipns entries.
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-29 09:47:47 -07:00
Jeromy
cfcc3d6a1b
ipns record selection via sequence numbers
...
This commit adds a sequence number to the IpnsEntry protobuf
that is used to determine which among a set of entries for the same key
is the 'most correct'.
GetValues has been added to the routing interface to retrieve a set of
records from the dht, for the caller to select from.
GetValue (singular) will call GetValues, select the 'best' record, and
then update that record to peers we received outdated records from.
This will help keep the dht consistent.
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-29 09:47:41 -07:00
Michael Muré
f9af496ae8
Add a new line in the output of ipfs log level
...
License: MIT
Signed-off-by: Michael Muré <mure.michael@gmail.com>
2015-09-27 19:08:23 +02:00
rht
a7f43de5f2
Cleanup coreunix cat
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-09-27 17:13:34 +07:00
Juan Benet
7244c0443a
Merge pull request #1743 from ipfs/dht-key-escape
...
allow for dht keys to be escaped
2015-09-25 19:54:05 -04:00
Jeromy
0c7421643d
allow bitswap stat to output wasted bytes
...
bitswap stat can now track bytes that are wasted by receiving duplicate
blocks.
ps, gitcop smells
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-25 14:40:46 -07:00
Juan Benet
ce11ed5e23
Merge pull request #1745 from ipfs/doc/patch-data
...
document the set-data and append-data commands in patch
2015-09-24 17:39:51 -04:00
Jeromy
2492f0cb38
document the set-data and append-data commands in patch
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-24 12:43:37 -07:00
Jeromy
d01ee1111f
better parsing logic for dht keys containing prefixes
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-24 09:27:00 -07:00
Juan Benet
9c6ec296e3
Merge pull request #1704 from klauspost/use-compression-level
...
Fix gzip compression level not being set.
2015-09-23 04:19:54 -07:00
Juan Benet
46e888bdfc
Merge pull request #1701 from ipfs/feat/extract-logging
...
extract logging
2015-09-15 13:05:31 -04:00
klauspost
4b81d9e85e
Fix gzip compression level not being set.
...
If "compression-level" is set, the compression is set to gzip.Nocompression.
License: MIT
Signed-off-by: Klaus Post <klauspost@gmail.com>
2015-09-15 12:12:11 +02:00
Juan Benet
df861afccc
Merge pull request #1672 from ipfs/feat/unwant
...
implement unwant command to remove blocks from wantlist
2015-09-15 00:57:57 -04:00
Jeromy
e5a2896c0e
extract logging
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-14 17:35:50 -07:00
Jeromy
5464020c58
first pass at a tar importer
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-10 10:30:10 -07:00
Jeromy
c38ca0038d
implement unwant command to remove blocks from wantlist
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-09 10:50:56 -07:00
Jeromy
c3280ce885
use new methods from goprocess/context, remove thirdparty/waitable
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-08 21:37:40 -07:00
Jeromy
308ab9a2ea
remove error log i forgot to remove from another PR
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-05 16:05:00 -07:00
Jeromy
b3aee2872f
move mem-dag construction to its own function, and actually call WriteOutputTo
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-05 04:56:55 +02:00
Jeromy
30d10ce4f4
add-only-hash no longer stores entirety of everything in memory
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-05 04:56:55 +02:00
Juan Benet
ebbf569ca6
Merge pull request #1650 from rht/directory-listing-css
...
Bump version of dir-index-html
2015-09-05 03:08:53 +02:00
Jeromy
206739d10c
allow channel marshaler to return errors from cmds.Response
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-04 14:12:19 -07:00
rht
8ec121239e
Bump version of dir-index-html
...
Based on https://github.com/ipfs/go-ipfs/pull/1615
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-09-05 01:06:35 +07:00
Juan Benet
93e9f8418b
Merge pull request #1643 from ipfs/fix/repo-panic
...
fix panic caused by accessing config after repo closed
2015-09-04 04:01:36 +02:00
Jeromy
ab0c668ab8
fix panic caused by accessing config after repo closed
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-03 09:28:36 -07:00
rht
00a56a14ec
serialfile: localize os.Open into NewSerialFile
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-09-03 20:30:41 +07:00
Juan Benet
9c40bf1e97
Merge pull request #1618 from rht/dir-index-humanize
...
Humanize bytes in dir index listing
2015-09-03 12:42:44 +02:00
Jeromy
5ba7d616e2
symlink handling in files ls
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-02 12:57:11 -07:00
Jeromy
56f01e4981
rm panic
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-02 11:03:07 -07:00
Jeromy
9bbd9b061d
give ipfs get symlink support
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-08-30 23:34:02 -07:00
Jeromy
d993bc04d6
implement symlinks in unixfs, first draft
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-08-30 13:33:42 -07:00
Juan Benet
8c652907de
Merge pull request #1598 from ipfs/check-for-api
...
check for API -- WIP
2015-08-29 06:20:59 +02:00
rht
4b3a21eceb
Humanize bytes in dir index listing
...
Fixes https://github.com/ipfs/dir-index-html/issues/3
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-29 09:58:21 +07:00
rht
4681db6f4c
Move dir-index-html + assets to a separate repo
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-28 19:39:15 +07:00
Jeromy
94000e6490
replace nodebuilder with a nicer interface
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
use NewNode instead of NewIPFSNode in most of the codebase
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
make mocknet work with node constructor better
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
finish cleanup of old construction method
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
blockservice.New doesnt return an error anymore
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
break up node construction into separate function
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
add error case to default filling on node constructor
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-08-27 08:43:10 -07:00
Juan Batiz-Benet
5040fee906
implement support for --api option
...
This commit adds support for the --api option, which allows users
to specify an API endpoint to run the cli command against. It enables
much easier control of remote daemons.
It also
- ensures the API server version matches the API client
- implements support for the $IPFS_PATH/api file
Still TODO:
- tests!
- multiaddr to support /dns/
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-08-27 08:03:56 +02:00
Jeromy
a97639a78a
dont create ipnsfs filesystem until its needed
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-08-26 14:55:36 -07:00
rht
de5c0ceff0
Localize the scope of context.WithCancel for every DAG.Get
...
Instead put it inside of DAG.Get.
The fix is applied only in the case when the context.WithCancel
before a DAG.Get is also used later on in the scope.
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-23 22:38:04 +07:00
rht
30e03b2da6
Replace context.TODO in test files with context.Background
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-23 19:55:45 +07:00
rht
fcf915fc47
Define discoveryConnTimeout and set it to 30s
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-23 19:37:23 +07:00
rht
a7202fa94c
Fix 'ctx, _' to have explicit cancel
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-23 19:35:03 +07:00
rht
5d8e15042f
Replace WithTimeout with WithCancel whenever possible
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-23 19:35:03 +07:00
rht
d32177cda0
Make sure ctx in commands are derived from req.Context
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-23 19:35:03 +07:00
rht
9f0c8134cb
Decompose DagArchive from unixfs tar
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-20 14:56:07 +07:00
rht
dfa0351df9
Refactor ipfs get
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-20 14:56:07 +07:00
Lars Gierth
09d7501724
gateway: make IPNSHostname complete
...
IPNSHostnameOption() touches the URL path only on the way in,
but not on the way out. This commit makes it complete by
touching the following URLs in responses:
- Heading, file links, back links in directory listings
- Redirecting /foo to /foo/ if there's an index.html link
- Omit Suborigin header
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-08-17 15:39:19 +02:00
Lars Gierth
a3a10a4bc1
gateway: bring back TestGatewayGet test
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-08-17 15:27:13 +02:00
Juan Benet
e10e711a19
Merge pull request #1583 from rht/feat/read-only-api-gateway
...
Readonly gateway API fix
2015-08-17 04:36:54 +02:00
Karthik Bala
d140b8aae1
Add router that does nothing for bitswap_wo_routing test
...
License: MIT
Signed-off-by: Karthik Bala <karthikbala444@gmail.com>
2015-08-16 16:42:08 -07:00
rht
916f987de2
Sanitize readonly refs
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-16 07:21:10 +07:00
rht
e4dbec59cf
Show readonly commands in gateway readonly API
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-16 07:03:25 +07:00
Juan Benet
fbac82046d
Merge pull request #1581 from rht/feat/read-only-api-gateway
...
Add readonly api to gateway
2015-08-15 12:25:34 +02:00
rht
dd99a70a7d
Add readonly api to gateway
...
Based on https://github.com/ipfs/go-ipfs/pull/1389
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-15 17:08:59 +07:00
Jeromy
f209763357
blockservice.New doesnt need to return an error
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-08-14 16:25:51 -07:00
Jeromy
8d6fa2ede7
dont put newlines in refs json output
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-08-13 11:08:10 -07:00
Juan Batiz-Benet
978c9fa16f
cmds/add: use dagutils.Editor, like patch
...
This changes the pin behavior. It uses the filenames given through
the api, and allows files to be streamed faltly (not a hierarchy),
which is easier for other things (like vinyl in node-ipfs-api land).
Files can also be entirely out of order, and the garbage intermediate
directories will not be pinned (gc-ed later).
The changes also mean the output of add has changed slightly-- it
no longer shows the local path added, but rather the dag path
relative to the added roots. This is a small difference, but changes
tests.
The dagutils.Editor creates a lot of chaff (intermediate objects)
along the way. Wonder how we might minimize the writes to the
datastore...
This commit also removes the "NilRepo()" part of the --only-hash
mode. We need to store at least in an in-mem repo/datastore because
otherwise the dagutils.Editor breaks.
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-08-12 08:24:06 +02:00
Jeromy
39a23392c1
use rabin fingerprinting for a chunker
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
implement rabin fingerprinting as a chunker for ipfs
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
vendor correctly
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
refactor chunking interface a little
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
work chunking interface changes up into importer
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
move chunker type parsing into its own file in chunk
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-08-08 15:33:10 -07:00
Juan Batiz-Benet
f105ce439f
get: fix bug + improvements
...
up until now there has been a very annoying bug with get, we would
get halting behavior. I'm not 100% sure this commit fixes it,
but it should. It certainly fixes others found in the process of
digging into the get / tar extractor code. (wish we could repro
the bug reliably enough to make a test case).
This is a much cleaner tar writer. the ad-hoc, error-prone synch
for the tar reader is gone (with i believe was incorrect). it is
replaced with a simple pipe and bufio. The tar logic is now in
tar.Writer, which writes unixfs dag nodes into a tar archive (no
need for synch here). And get's reader is constructed with DagArchive
which sets up the pipe + bufio.
NOTE: this commit also changes this behavior of `get`:
When retrieving a single file, if the file exists, get would fail.
this emulated the behavior of wget by default, which (without opts)
does not overwrite if the file is there. This change makes get
fail if the file is available locally. This seems more intuitive to
me as expected from a unix tool-- though perhaps it should be
discussed more before adopting.
Everything seems to work fine, and i have not been able to reproduce
the get halt bug.
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-08-05 09:50:33 +02:00
Juan Batiz-Benet
3ee83a7c5e
fix cors: defaults should take the port of the listener
...
need to do it this way to avoid VERY confusing situations where
the user would change the API port (to another port, or maybe even
to :0). this way things dont break on the user, and by default,
users only need to change the API address and things should still
"just work"
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-08-02 08:16:51 +02:00
Juan Batiz-Benet
3f1cbe2f43
corehttp: add net.Listener to ServeOption
...
ServeOptions take the node and muxer, they should get the listener
too as sometimes they need to operate on the listener address.
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-08-02 08:16:51 +02:00
Jeromy
4bbd9b2da2
fix log tail command
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-29 11:01:44 -07:00
Juan Batiz-Benet
4a7c1cf802
add -w improvement: wrap multiple files in one dir
...
> ipfs add a b c
added Qmbvkmk9LFsGneteXk3G7YLqtLVME566ho6ibaQZZVHaC9 a
added QmR9pC5uCF3UExca8RSrCVL8eKv7nHMpATzbEQkAHpXmVM b
added QmetGxZTgo8tYAKQH1KLsY13MxqeVHbxYVmvzBzJAKU6Z7 c
added QmXg3WHLcjnz4ejeYF6FKVBkb4m1oKjQmF5fEWL9M1uQF3
> ipfs ls QmXg3WHLcjnz4ejeYF6FKVBkb4m1oKjQmF5fEWL9M1uQF3
Qmbvkmk9LFsGneteXk3G7YLqtLVME566ho6ibaQZZVHaC9 10 a
QmR9pC5uCF3UExca8RSrCVL8eKv7nHMpATzbEQkAHpXmVM 10 b
QmetGxZTgo8tYAKQH1KLsY13MxqeVHbxYVmvzBzJAKU6Z7 10 c
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-29 03:07:39 -07:00
Juan Batiz-Benet
6e6badf105
add -w: fix to work correctly with dirs.
...
this commit changes the behavior of ipfs add -w:
- it makes it able to work with ipfs add -r <dir>
- instead of hacking around the add, we simply just add a wrapper
directory around the whole result of the add. this means that
ipfs add -w calls will output _two_ lines, but this is actually
more correct than outputting one line, as two objects were added.
this _may_ break scripts out there which expect the output to
look a certain way. we should consider whether the old output is
more _useful_ (even if less in-line with the model.)
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-29 02:30:08 -07:00
Juan Batiz-Benet
578fd02ce3
fuse unmount fixes
...
unmounting wasn't happening, mostly because of a recent bug in
goprocess.SetTeardown. This commit bumps up some messages to
log.Warnings, as users may want to see them, and makes sure to
Unmount when a node shuts down.
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-29 01:36:50 -07:00
Juan Batiz-Benet
5513aabf78
core/mock: make sure node has a ctx and proc
...
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-28 23:35:50 -07:00
Jeromy
3f6cca8a2f
set identity on core mock to fix ipns tests
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-28 23:35:50 -07:00
Juan Batiz-Benet
8f35c3bcd9
more serious CORS tests.
...
this commit introduces more serious CORS tests that check
status response codes, and run real HTTP requests.
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-28 23:08:11 -07:00
Juan Batiz-Benet
d5f94be474
fix API handler to respect referer + exit on CORS
...
this commit makes the API handler short circuit the request if the
CORS headers say its not allowed. (the CORS handler only sets the
headers, but does not short-circuit)
It also makes the handler respect the referer again. See security
discussion at https://github.com/ipfs/go-ipfs/issues/1532
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-28 23:08:11 -07:00
Juan Batiz-Benet
4a571b099b
implement arbitrary HTTP header support
...
this commit adds the ability to specify arbitrary HTTP headers
for either the Gateway or the API. simply set the desired headers
on the config:
ipfs config --json API.HTTPHeaders.X-MyHdr '["meow :)"]'
ipfs config --json Gateway.HTTPHeaders.X-MyHdr '["meow :)"]'
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-28 23:08:10 -07:00
Juan Batiz-Benet
7cf5e87cfe
Added API + Gateway support for arbitrary HTTP headers
...
This commit fixes + improves CORS support
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-28 23:08:09 -07:00
Jeromy
b32d0ef153
implement 'editor' abstraction
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-28 15:00:07 -07:00
Jeromy
7c510662ae
break merkledag utils into its own package
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-28 15:00:07 -07:00
Jeromy
194eb7c0dc
more tests and better path handling in object
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-28 15:00:07 -07:00
Jeromy
bfe4e4be4f
let rm understand paths
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-28 15:00:07 -07:00
Jeromy
870df2431a
allow patch to optionally create intermediate dirs
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-28 15:00:07 -07:00
Jeromy
f2b44e3338
rmeove duplicate timeout option from diag
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-28 08:17:42 -07:00
gatesvp
8fe7d2f571
Fix refs -r -u for #1211
...
License: MIT
Signed-off-by: Gaetan Voyer-Perrault <gatesvp@gmail.com>
2015-07-28 06:14:20 -07:00
Juan Benet
f417cb5ceb
Merge pull request #1510 from ipfs/pinfail-debug
...
print output on test failure for t0081
2015-07-27 18:41:31 -07:00
Juan Benet
870d85080a
Merge pull request #1516 from rht/progressbar
...
Clear progress bar on `ipfs cat` exit
2015-07-27 18:39:37 -07:00
Jeromy
138198e786
print output on test failure for t0081
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-27 18:34:37 -07:00
Juan Batiz-Benet
e3c35d8b76
cmds/get: fix context timeout problem
...
Get had a random timeout of 60s. This commit fixes that, wiring
up our contexts correctly.
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-24 14:43:17 -07:00
rht
818d3af827
Clear progress bar on ipfs cat exit
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-07-24 23:04:57 +07:00
Jeromy
bb3a75aa08
remove context from context
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-20 20:53:06 -07:00
Jeromy
f9f3c6a527
make offline commands respect timeout
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-20 14:34:16 -07:00
Jeromy
6083007987
add a global timeout flag for to be setting timeouts
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-20 12:53:37 -07:00
Michael Muré
78e9794be0
Add the missing long argument for ipfs mount
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2015-07-18 15:00:26 +02:00
Jeromy
a19ad97ea5
make ping its own protocol
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-13 19:19:25 -07:00
Juan Batiz-Benet
7077d71740
Merge pull request #1464 from ipfs/fix/filters-offline
...
error out swarm filter when no daemon is online
2015-07-10 18:12:25 -07:00
Jeromy
e8d825de25
error out swarm filter when no daemon is online
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-10 13:10:22 -07:00
Juan Batiz-Benet
6e9c72ab37
expose internal/pb packages.
...
we shouldn't use internal packages.
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-10 11:08:49 -07:00
Juan Batiz-Benet
73d3fa5c1d
Merge pull request #1460 from ipfs/hidden-split
...
Add hidden file support to add
2015-07-09 05:16:26 -07:00
gatesvp
e55a130b49
Add hidden file support to add
...
License: MIT
Signed-off-by: Gaetan Voyer-Perrault <gatesvp@gmail.com>
2015-07-09 04:07:34 -07:00
Juan Batiz-Benet
f6f9cae4e4
Merge pull request #1449 from ipfs/tk/file-ls-help-fixup
...
core/commands/unixfs/ls: Drop multi-column example from --help
2015-07-06 20:32:20 -07:00
Juan Batiz-Benet
6c092eb821
Merge pull request #1440 from rht/fix-cli
...
Assert and convert config value into predefined struct
2015-07-06 20:03:59 -07:00
W. Trevor King
b304eef2d3
core/commands/unixfs/ls: Drop multi-column example from --help
...
The old text belonged to an earlier iteration that didn't land in the
rebased 434871ba (core/commands/unixfs: Add 'ipfs unixfs ls ...',
2015-06-09).
2015-07-06 09:15:13 -07:00
rht
0ceac5ded9
Use WithContextAndTeardown whenever possible
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-07-05 09:19:06 +07:00
rht
007a12e7ef
Change Process interface into object variable
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-07-04 22:50:23 +07:00
rht
330b213777
Replace ctxgroup.ContextGroup -> goprocess.Process
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-07-04 22:50:23 +07:00
rht
541836c4a3
Auto-assert setconfig value to predefined struct
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-07-04 22:29:10 +07:00
Henry
053e531dac
http/index: fix indention and remove unused field
...
License: MIT
Signed-off-by: Henry <cryptix@riseup.net>
2015-07-04 00:51:42 +02:00
Henry
0ed49dbbfb
http/gateway:
...
- First tab at integrating @krl's new index page
File icons are embedded in side icons.css (QmXB7PLRWH6bCiwrGh2MrBBjNkLv3mY3JdYXCikYZSwLED contains both the icons and bootstrap)
- Fix back links (..) (fixes #1365 )
Thanks @JasonWoof for the insight. The back links now stop a t the root hash and work for links that do and dont end with a slash.
License: MIT
Signed-off-by: Henry <cryptix@riseup.net>
2015-07-04 00:51:42 +02:00
Juan Batiz-Benet
8143d381c1
Merge pull request #1441 from rht/path-validate
...
Remove redundant path validation
2015-07-03 15:23:17 -07:00
rht
44245fe015
Add test to detect invalid path
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-07-04 02:50:15 +07:00
rht
dfde18e124
Add path validation in Resolver.ResolvePath
...
Add ErrNoComponents in ParsePath validation & remove redundant path
validation.
Any lines using core.Resolve & Resolver.ResolvePath will have their path
validated.
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-07-04 02:41:28 +07:00
Juan Batiz-Benet
0d42a6a7bc
Merge pull request #1433 from ipfs/fix/addr-filter
...
add filters from config to addr filter in swarm
2015-07-02 17:00:36 -07:00
Juan Batiz-Benet
c595cf8ae0
config: DialBlocklist -> Swarm.AddrFilters
...
This commit changes the DialBlocklist key to be under the key
Swarm.AddrFilters instead.
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-02 16:11:46 -07:00
rht
3798178705
Don't use tar reader for '-C' only flag
...
Currently `ipfs get -C <hash>` returns error even if <hash> is a file.
This PR is for the case when the compress flag is enabled, use the
dagreader directly and pipe to a gzip processor.
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-07-01 09:36:25 +07:00
Jeromy
7cc73f7b86
add command to manipulate address filters and a sharness test for them
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-06-30 18:25:34 -07:00
Jeromy
e7fd57f69a
add filters from config to addr filter in swarm
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-06-30 15:03:56 -07:00
Lars Gierth
ed8d3ae388
api: add /metrics endpoint for prometheus
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-06-29 23:15:15 +02:00
Juan Batiz-Benet
500f51300d
ipfs swarm addrs local - show local addrs
...
Add a command to return local addresses.
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-06-26 23:36:42 -07:00
Juan Batiz-Benet
c5caccba14
ipfs id -f=<addrs> and \n \t
...
- added <addrs> field to `ipfs id -f`
- added \n and \t conversion in `ipfs id -f`
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-06-26 23:36:42 -07:00
Juan Batiz-Benet
c9edbf359d
Merge pull request #1403 from dylanPowers/object-new-templates
...
Object new templates
2015-06-26 04:23:26 -07:00
Jeromy Johnson
0332f3dbaa
Merge pull request #1348 from ipfs/tk/unixfs-ls
...
Add 'ipfs file ls …'
2015-06-25 10:03:52 -07:00
Juan Batiz-Benet
aefdb4e0e1
Merge pull request #1417 from ipfs/feat/only-hash
...
add option to only hash input
2015-06-24 16:24:17 -07:00
Jeromy
e01f8e4f22
add in basic address dial filtering
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-06-23 01:29:29 -07:00
Jeromy
e42c967297
add option to only hash input
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-06-22 15:21:53 -07:00
W. Trevor King
4acab79d66
core/commands/unixfs/ls: Explicitily record stat in LsObject
...
Instead of abusing a LsLink for non-directory objects [1].
[1]: https://github.com/ipfs/go-ipfs/pull/1348#discussion_r32680669
License: MIT
Signed-off-by: W. Trevor King <wking@tremily.us>
2015-06-20 13:34:47 -07:00
W. Trevor King
5fd4812b20
core/commands/unixfs/ls.go: Fix (and test) single-directory listing
...
We don't want to prefix these results with the argument. If there was
only one argument, the unprefixed results are still explicit.
License: MIT
Signed-off-by: W. Trevor King <wking@tremily.us>
2015-06-20 13:34:47 -07:00
W. Trevor King
7fc2410d95
core/commands/unixfs/ls: Hash-map for Objects
...
Discussion with Juan on IRC ([1] through [2]) lead to this adjusted
JSON output. Benefits over the old output include:
* deduplication (we only check the children of a given Merkle node
once, even if multiple arguments resolve to that hash)
* alphabetized output (like POSIX's ls). As a side-effect of this
change, I'm also matching GNU Coreutils' ls output (maybe in POSIX?)
by printing an alphabetized list of non-directories (one per line)
first, with alphabetized directory lists afterwards.
[1]: https://botbot.me/freenode/ipfs/2015-06-12/?msg=41725570&page=5
[2]: https://botbot.me/freenode/ipfs/2015-06-12/?msg=41726547&page=5
License: MIT
Signed-off-by: W. Trevor King <wking@tremily.us>
2015-06-20 13:34:47 -07:00
W. Trevor King
ce0bf80368
core/commands/unixfs/ls: Replace TODO context with command context
...
Discussing this on IRC ([1] through [2]), Jeromy and I decided that
we'd really like a way to configure per-command [3] and per-action
timeouts, but until we have that we want to leave the minute limit
here. We also decided that the use of TODO here instead of the
per-command req.Context().Context was a bug, which I'm fixing with
this commit.
[1]: https://botbot.me/freenode/ipfs/2015-06-12/?msg=41714126&page=4
[2]: https://botbot.me/freenode/ipfs/2015-06-12/?msg=41715618&page=4
[3]: https://github.com/ipfs/go-ipfs/issues/1325
License: MIT
Signed-off-by: W. Trevor King <wking@tremily.us>
2015-06-20 13:34:47 -07:00
W. Trevor King
f0a0ac1b83
core/commands/unixfs/ls: Use a stringified type name
...
This doesn't affect the text output, which was already using a
stringified name. The earlier stringification does change the JSON
output from an enumeration integer (e.g. 2) to the string form
(e.g. "File"). If/when we transition to Merkle-object types named by
their hash, we will probably want to revisit this and pass both the
type hash and human-readable-but-collision-prone name on to clients.
License: MIT
Signed-off-by: W. Trevor King <wking@tremily.us>
2015-06-20 13:34:47 -07:00
W. Trevor King
c9733c5da7
core/commands/unixfs/ls: Set Argument in JSON output
...
Change the approach to the directory-header control so we can set the
Argument value in the JSON response.
Stripping the trailing newline from the JSON output is annoying, but
looking over [1] I saw no easy way to add a newline to the JSON
output. And with the general framework that commands/ attempts to be,
it feels a bit funny to customize the JSON output for a command-line
program. Perhaps a workable solution is to have the command-line
client append newlines to any output that otherwise lacks them? But
that seems like a change best left to a separate series.
[1]: http://golang.org/pkg/encoding/json/
License: MIT
Signed-off-by: W. Trevor King <wking@tremily.us>
2015-06-20 13:34:44 -07:00
Juan Batiz-Benet
3a1c8d7a53
Merge pull request #1400 from dylanPowers/object-help
...
"object" added to the descriptions of object patch and object data
2015-06-19 23:47:21 -07:00
Jeromy Johnson
7d254aef20
Merge pull request #1404 from ipfs/feat/patch-path
...
allow patch add-link to add at a path
2015-06-19 22:01:57 -07:00
Jeromy
d585e20ebc
allow patch add-link to add at a path
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-06-19 20:45:20 -07:00
Juan Batiz-Benet
09f16003d8
Merge pull request #1402 from dylanPowers/object-put-example
...
Object put examples in help text
2015-06-19 20:34:38 -07:00
Juan Batiz-Benet
9b89a3dd43
Merge pull request #1398 from ipfs/tk/publish-local-peer-id
...
core/commands/publish: Allow explicit local node ID
2015-06-19 20:18:01 -07:00
Juan Batiz-Benet
ed5374dad4
Merge pull request #1397 from ipfs/tk/public-name-commands
...
core/commands: Make IpnsCmd and PublishCmd public
2015-06-19 20:17:21 -07:00
Dylan Powers
1b283a733a
Templates list in help text of object new
...
License: MIT
Signed-off-by: Dylan Powers <dylan.kyle.powers@gmail.com>
2015-06-19 17:18:48 -07:00
Dylan Powers
2f6f0f91c8
Examples for object put
...
License: MIT
Signed-off-by: Dylan Powers <dylan.kyle.powers@gmail.com>
2015-06-19 17:12:20 -07:00
Dylan Powers
3f22954f7c
"object" added to the descriptions of object patch and object data
...
License: MIT
Signed-off-by: Dylan Powers <dylan.kyle.powers@gmail.com>
2015-06-19 14:14:53 -07:00
W. Trevor King
e700c02cbd
core/commands/publish: Allow explicit local node ID
...
Instead of raising "keychains not yet implemented" whenever we have an
explicit node ID, only raise the error when the given node ID isn't
the local node. This allows folks to use the more-general
explicit-node-ID form in scripts and such now, as long as they use the
local node name when calling those scripts.
Also add a test for this case, and update the comment for the
one-argument case to match the current syntax for extracting a
multihash name string.
License: MIT
Signed-off-by: W. Trevor King <wking@tremily.us>
2015-06-19 04:08:43 -07:00
W. Trevor King
40c6ffd4fe
core/commands: Make IpnsCmd and PublishCmd public
...
ipfs-shell [1] accesses the Command objects directly to construct
requests for an external IPFS daemon API. This isn't a terribly
robust approach, because it doesn't handle version differences between
the version of go-ipfs used to build the daemon and the version used
to build the ipfs-shell-consuming application. But for cases where
you can get those APIs to match it works well. Making these two
commands public allows us to write ipfs-shell wrappers for them.
Until we figure out how to get ipfs-shell working without access to
core/commands, I think the best approach is to make future command
objects and their returned structures public, and to go back and
expose existing commands/structures on an as-needed basis.
In this case, I need the public PublishCmd for the Docker-registry
storage driver, and I made the IpnsCmd public at the same time to stay
consistent for both 'ipfs name ...' sub-commands.
[1]: https://github.com/whyrusleeping/ipfs-shell
License: MIT
Signed-off-by: W. Trevor King <wking@tremily.us>
2015-06-19 02:44:03 -07:00
Jeromy
96e98a8e13
add sharness test for log endpoint
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-06-18 12:44:02 -07:00
Jeromy
90896f283f
clean up unused log options
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-06-18 12:44:01 -07:00
Jeromy
a676b5a8ac
move eventlogs to an http endpoint
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-06-18 12:44:01 -07:00
Juan Batiz-Benet
152247dff2
Merge pull request #1359 from rht/cleanup-logging
...
Cleanup logging 1
2015-06-18 04:47:34 -07:00
Juan Batiz-Benet
41b7f6d327
Merge pull request #1391 from ipfs/fix-fuse-err
...
fix fuse mount error in linux
2015-06-18 02:05:15 -07:00
Juan Batiz-Benet
bc85a6384b
fix fuse mount error in linux
...
There has been a regression such that ./t0030-mount.sh fails on
'ipfs mount' fails when there is no mount dir
The issue was a change in how fuse errors are reported to the client
process. We have introduced an optimistic categorization that hides
the obscure fusermount error and replaces it with something a bit
more helpful.
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-06-18 01:52:57 -07:00
rht
84f974ef8b
Add panic as loglevel in log config
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-06-18 10:03:57 +07:00
rht
4b086eff5a
Remove Notice{,f} logging interface
...
And substitute the lines using Notice{,f} with Info{,f}
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-06-18 10:03:57 +07:00
rht
78b6cc5f2d
Replace Critical{,f} with Error{,f}
...
Except when there is an explicit os.Exit(1) after the Critical line,
then replace with Fatal{,f}.
golang's log and logrus already call os.Exit(1) by default with Fatal.
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-06-18 10:03:57 +07:00
Jeromy Johnson
b46712bdcb
Merge pull request #1379 from dylanPowers/use-trickle-dag
...
Wired up the trickle dag flag for the add command
2015-06-17 10:36:24 -07:00
Dylan Powers
600e1523e4
Wired up the trickle dag flag for the add command
...
License: MIT
Signed-off-by: Dylan Powers <dylan.kyle.powers@gmail.com>
2015-06-16 15:40:26 -07:00
W. Trevor King
3e6905e8ba
core/commands/unixfs: Rename 'ipfs unixfs' to 'ipfs file'
...
To be less confusing to newcomers (the IPFS filesystem isn't
Unix-specific anyway, and it isn't even very POSIX-specific [1,2,3]).
I'm a bit uncertain about having one name for users and another for
devs, but the consensus seems to be that mainaining two names is worth
the trouble [4]. We also kicked around:
* 'files' (plural),
* 'filesystem' (too long), and
* 'fs' (redundant after 'ipfs', even though IPFS isn't just about
filesystems)
on IRC [5 through 6]. I wish there was a more evocative term. I'm
never sure where "file" lands on the scale between "filesysytem",
"everything is a file", "a single chunk of data with an associated
inode". But we can't think of anything better.
[1]: https://github.com/ipfs/go-ipfs/pull/1348#issuecomment-110529070
[2]: https://github.com/ipfs/go-ipfs/pull/1348#issuecomment-110529921
[3]: https://github.com/ipfs/go-ipfs/pull/1136/files#r29377283
In my response to this (no longer visibile on GitHub):
On Wed, Apr 29, 2015 at 01:30:04PM -0700, Juan Batiz-Benet wrote:
> > +package fsnode
>
> i think this package should be called `unixfs` as that's the
> abstraction that this is calling to.
Will do, although I don't see what's especially Unix-y about these
file nodes.
[4]: https://github.com/ipfs/go-ipfs/pull/1348#issuecomment-110529811
[5]: https://botbot.me/freenode/ipfs/2015-06-09/?msg=41428456&page=5
[6]: https://botbot.me/freenode/ipfs/2015-06-09/?msg=41430703&page=5
License: MIT
Signed-off-by: W. Trevor King <wking@tremily.us>
2015-06-13 13:07:13 -07:00
W. Trevor King
663f37cb99
core/commands/unixfs/ls: Don't recurse into chunked files
...
Folks operating at the Unix-filesystem level shouldn't care about that
level of Merkle-DAG detail. Before this commit we had:
$ ipfs unixfs ls /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox
/ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox:
... several lines of empty-string names ...
And with this commit we have:
$ ipfs unixfs ls /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox
/ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox
I also reworked the argument-prefixing (object.Argument) in the output
marshaller to avoid redundancies like:
$ ipfs unixfs ls /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox
/ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox:
/ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox
As a side-effect of this rework, we no longer have the trailing blank
line that we used to have after the final directory listing.
The new ErrImplementation is like Python's NotImplementedError, and is
mostly a way to guard against external changes that would need
associated updates in this code. For example, once we see something
that's neither a file nor a directory, we'll have to update the switch
statement to handle those objects.
License: MIT
Signed-off-by: W. Trevor King <wking@tremily.us>
2015-06-13 13:06:34 -07:00
W. Trevor King
434871ba18
core/commands/unixfs: Add 'ipfs unixfs ls ...'
...
This is similar to 'ipfs ls ...', but it:
* Lists file sizes that match the content size:
$ ipfs --encoding=json unixfs ls /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4
{
"Objects": [
{
"Argument": "/ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4",
"Links": [
{
"Name": "busybox",
"Hash": "QmPbjmmci73roXf9VijpyQGgRJZthiQfnEetaMRGoGYV5a",
"Size": 1947624,
"Type": 2
}
]
}
]
}
$ ipfs cat /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox | wc -c
1947624
'ipfs ls ...', on the other hand, is using the Merkle-descendant
size, which also includes fanout links and the typing information
unixfs objects store in their Data:
$ ipfs --encoding=json ls /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4
{
"Objects": [
{
"Hash": "/ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4",
"Links": [
{
"Name": "busybox",
"Hash": "QmPbjmmci73roXf9VijpyQGgRJZthiQfnEetaMRGoGYV5a",
"Size": 1948128,
"Type": 2
}
]
}
]
}
* Has a simpler text output corresponding to POSIX ls [1]:
$ ipfs unixfs ls /ipfs/QmV2FrBtvue5ve7vxbAzKz3mTdWq8wfMNPwYd8d9KHksCF/gentoo/stage3/amd64/2015-04-02
bin
dev
etc
proc
run
sys
$ ipfs ls /ipfs/QmV2FrBtvue5ve7vxbAzKz3mTdWq8wfMNPwYd8d9KHksCF/gentoo/stage3/amd64/2015-04-02
QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4 1948183 bin/
QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn 4 dev/
QmUz1Z5jnQEjwr78fiMk5babwjJBDmhN5sx5HvPiTGGGjM 1207 etc/
QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn 4 proc/
QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn 4 run/
QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn 4 sys/
The minimal output allows us to start off with POSIX compliance and
then add options (which may or may not be POSIX compatible) to
adjust the output format as we get a better feel for what we need
([2] through [3]).
[1]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ls.html
[2]: https://botbot.me/freenode/ipfs/2015-06-12/?msg=41724727&page=5
[3]: https://botbot.me/freenode/ipfs/2015-06-12/?msg=41725146&page=5
License: MIT
Signed-off-by: W. Trevor King <wking@tremily.us>
2015-06-13 12:44:26 -07:00
W. Trevor King
15135e10df
core/commands/ls: Remove trailing tabs
...
Since 607468a9 (beautify 'ipfs ls' and 'ipfs object links', #833 )
we've had these. That pull request was about text/tabwriter [1] and
elastic tabstops [2], but we don't need a column separator at the end
of each line.
[1]: https://golang.org/pkg/text/tabwriter/
[2]: http://nickgravgaard.com/elastic-tabstops/index.html
Licence: MIT
Signed-off-by: W. Trevor King <wking@tremily.us>
2015-06-09 06:23:44 -07:00
Jeromy
b4f55d337a
'key' objects dont marshal to json well
2015-06-08 10:19:26 -07:00
Henry
07b3415cdb
http endpoints: dont print before listen
...
also splits api, gw and fuse bring up into helper functions
2015-06-08 10:56:05 +02:00
Juan Batiz-Benet
13cd226bff
Merge pull request #1317 from ipfs/builder-default
...
make the default repo for corebuilder work
2015-06-03 16:30:02 -07:00
Jeromy
6b16981979
make the default repo for corebuilder work
2015-06-03 16:06:15 -07:00
Jeromy
40e423d6dc
implement an ipfs patch command for modifying merkledag objects
...
WIP: object creator command
better docs
move patch command into object namespace
dont ignore cancel funcs
addressing comment from CR
add two new subcommands to object patch and clean up main Run func
cancel contexts in early returns
switch to util.Key
2015-06-03 15:24:07 -07:00
rht
f239a38fbb
golint on core/commands
2015-06-03 18:44:28 +07:00
rht
c14ab9bd51
go vet on core/commands
2015-06-03 17:20:40 +07:00
Travis Person
11780198b6
Text under ipfs name --help incorrect
...
Change help text to display proper results from an `ipfs name resolve`.
2015-06-02 00:08:33 -07:00
Jeromy
ef294431d4
move util.Key into its own package under blocks
2015-06-01 16:10:08 -07:00
Juan Batiz-Benet
e9fec3d5ee
updated webui to 0.2.0
2015-06-01 00:37:02 -07:00
Juan Batiz-Benet
0ecf7babd4
Merge pull request #1269 from ipfs/rm-testing
...
move core mock into its own package
2015-05-31 15:59:47 -07:00
Jeromy
4a78a9729d
remove testing imports from non testing code
...
rename bserv mock to mock_test
swap out testing.T for an interface
2015-05-31 15:41:59 -07:00
David
2f3ee86e2b
Update option help for ipfs stats bw --poll
...
Help text from --proto was copy pasted.
2015-05-31 18:26:51 -04:00
Juan Batiz-Benet
5d43ebb916
Merge pull request #1274 from ipfs/refactor/importer
...
change pinning to happen in a callback
2015-05-29 17:06:11 -07:00
Juan Batiz-Benet
ecdf14962c
Merge pull request #1294 from rht/cleanup-tour
...
Cleanup tour
2015-05-29 16:59:17 -07:00
Jeromy
b660f937bd
make callback take a node instead of a key
2015-05-28 08:52:20 -07:00
Jeromy
dd928a2b1d
change pinning to happen in a callback
2015-05-28 08:52:20 -07:00
rht
3547f7ae33
Replace 'var * bytes.Buffer' with '\1 := new(bytes.Buffer)'
2015-05-26 23:18:04 +07:00
rht
8cad2d2c89
Move 'tour' to core/commands
...
Side effect: this makes 'tour' accessible through the HTTP API
2015-05-26 21:04:03 +07:00
David Dias
b2e45da0cc
Change one of the "ipfs" to "ipns"
2015-05-26 13:07:54 +01:00
Juan Batiz-Benet
4e71ce3cc7
Merge pull request #1272 from Luzifer/fix/dnslink
...
Fix: dnslink domain resolving was broken; Add: no caching for those
2015-05-24 18:47:54 +02:00
Juan Batiz-Benet
c8cb8d9c39
Merge pull request #1278 from ipfs/fix/bs-cmd-offline
...
make bitswap commands error out properly offline
2015-05-22 22:54:51 +02:00
Travis Person
2c71c54823
Named error for no components
...
Update the previous `invalid path` error to match the error returned
from `SplitAbsPath`.
2015-05-22 09:18:49 -07:00
Travis Person
d96246c622
Fixed tests to actually test for the error we are seeking
...
Cleaned the tests, and actually test for the error.
2015-05-22 08:56:33 -07:00
Travis Person
dcc4da0b37
Replaced old logic to check for valid path
...
Added the original logic to check for a invalid path and a simple test.
2015-05-22 08:56:33 -07:00
Travis Person
42289d4f21
Daemon panics if no path is given
...
If no path after `/ipfs/` or `/ipns/` is given, then the daemon will
panic with a slice bounds out of range error. This checks to see if we
have anything after `ipfs` or `ipns`.
2015-05-22 08:56:33 -07:00
Jeromy
648526d8f0
make bitswap commands error out properly offline
2015-05-21 22:41:44 -07:00
Jeromy
60ac59139c
fix offline full path resolution bug
2015-05-21 14:45:30 -07:00
Knut Ahlers
8df8737f6a
removed requirement of path package
2015-05-21 08:51:18 +02:00
Knut Ahlers
373260d373
Fix: dnslink domain resolving was broken; Add: no caching for those
...
fixes #1234
fixes #1267
2015-05-21 08:44:17 +02:00
Jeromy
f6fadc4c91
do http server properly so daemon can shut down
2015-05-20 22:42:54 -07:00
Juan Batiz-Benet
9b4b2c6879
Merge pull request #1235 from Luzifer/fix/dnslink-issues
...
Fix: Using the `dnslink` feature led to infinite redirects
2015-05-20 23:59:01 -04:00
Knut Ahlers
1b3797474f
Fix: Using the dnslink feature led to infinite redirects
...
fixes #1233
2015-05-20 19:42:28 +02:00
Jeromy
002cf5128e
fix silent refs failure
2015-05-20 09:46:22 -07:00
W. Trevor King
1e6594d087
namesys/dns: Pluggable lookupTXT field
...
So we can attach a mock lookup function for testing.
2015-05-20 08:40:44 -07:00
W. Trevor King
e4447b3c96
core/commands/publish: Fix published message
...
Previously we had a confusing situation, with:
* single-arg doc: published name <name> to <value>
* double-arg doc: published name <value> to <name>
* implementation: Published name <name> to <value>
Now we have the uniform:
Published to <name>: <value>
With the following goals:
1. It's clear that we're writing <value> to <name>'s IPNS slot in the
DHT.
2. We preserve the order of arguments from the command-line
invocation:
$ ipfs name publish <name> <value>
Published to <name>: <value>
2015-05-20 08:40:44 -07:00
W. Trevor King
416d454b42
core/commands: Make 'ipfs name resolve' IPNS-only
...
And add a generic 'ipfs resolve' to handle cross-protocol name
resolution.
2015-05-20 08:40:44 -07:00
W. Trevor King
e643f72c86
core/commands/dns: Add 'ipfs dns ...' for resolving DNS references
...
This lets users resolve (recursively or not) DNS links without pulling
in the other protocols. That makes an easier, more isolated target
for alternative implemenations, since they don't need to understand
IPNS, proquint, etc. to handle these resolutions.
2015-05-20 08:40:44 -07:00
W. Trevor King
c2ff02850b
core/commands/resolve: Add a -r / --recursive option
...
For explicitly enabling recursive behaviour (it was previously always
enabled). That allows folks who are interested in understanding
layered indirection to step through the chain one link at a time.
2015-05-20 08:40:42 -07:00
W. Trevor King
3ead2443e5
namesys: Add recursive resolution
...
This allows direct access to the earlier protocol-specific Resolve
implementations. The guts of each protocol-specific resolver are in
the internal resolveOnce method, and we've added a new:
ResolveN(ctx, name, depth)
method to the public interface. There's also:
Resolve(ctx, name)
which wraps ResolveN using DefaultDepthLimit. The extra API endpoint
is intended to reduce the likelyhood of clients accidentally calling
the more dangerous ResolveN with a nonsensically high or infinite
depth. On IRC on 2015-05-17, Juan said:
15:34 <jbenet> If 90% of uses is the reduced API with no chance to
screw it up, that's a huge win.
15:34 <wking> Why would those 90% not just set depth=0 or depth=1,
depending on which they need?
15:34 <jbenet> Because people will start writing `r.Resolve(ctx, name,
d)` where d is a variable.
15:35 <wking> And then accidentally set that variable to some huge
number?
15:35 <jbenet> Grom experience, i've seen this happen _dozens_ of
times. people screw trivial things up.
15:35 <wking> Why won't those same people be using ResolveN?
15:36 <jbenet> Because almost every example they see will tell them to
use Resolve(), and they will mostly stay away from ResolveN.
The per-prodocol versions also resolve recursively within their
protocol. For example:
DNSResolver.Resolve(ctx, "ipfs.io", 0)
will recursively resolve DNS links until the referenced value is no
longer a DNS link.
I also renamed the multi-protocol ipfs NameSystem (defined in
namesys/namesys.go) to 'mpns' (for Multi-Protocol Name System),
because I wasn't clear on whether IPNS applied to the whole system or
just to to the DHT-based system. The new name is unambiguously
multi-protocol, which is good. It would be nice to have a distinct
name for the DHT-based link system.
Now that resolver output is always prefixed with a namespace and
unprefixed mpns resolver input is interpreted as /ipfs/,
core/corehttp/ipns_hostname.go can dispense with it's old manual
/ipfs/ injection.
Now that the Resolver interface handles recursion, we don't need the
resolveRecurse helper in core/pathresolver.go. The pathresolver
cleanup also called for an adjustment to FromSegments to more easily
get slash-prefixed paths.
Now that recursive resolution with the namesys/namesys.go composite
resolver always gets you to an /ipfs/... path, there's no need for the
/ipns/ special case in fuse/ipns/ipns_unix.go.
Now that DNS links can be things other than /ipfs/ or DHT-link
references (e.g. they could be /ipns/<domain-name> references) I've
also loosened the ParsePath logic to only attempt multihash validation
on IPFS paths. It checks to ensure that other paths have a
known-protocol prefix, but otherwise leaves them alone.
I also changed some key-stringification from .Pretty() to .String()
following the potential deprecation mentioned in util/key.go.
2015-05-20 08:40:05 -07:00
Juan Batiz-Benet
c561c0980b
Merge pull request #1239 from rht/master
...
Add gofmt check
2015-05-19 04:03:23 -04:00
rht
ac7edddb94
Run 'gofmt -s -w' on these files
2015-05-19 06:11:15 +07:00
Juan Batiz-Benet
eea6921fcd
Merge pull request #1242 from ipfs/perf/add
...
remove unnecessary flush, and buffer output channel
2015-05-18 18:39:19 -04:00
Juan Batiz-Benet
9c4135fe08
Merge pull request #1240 from vijayee/master
...
removed braintree/manners
2015-05-18 18:33:16 -04:00
Jeromy
a67af7d9c1
remove unnecessary flush, and buffer output channel
2015-05-18 14:55:58 -07:00
Vijayee Kulkaa
fcb8be5607
removed braintree/manners
2015-05-18 15:28:55 -04:00
Juan Batiz-Benet
88be96bc8c
Merge pull request #1229 from timgws/tiny-doc-update
...
Fix documentation on swarm connect.
2015-05-14 21:52:20 -04:00
Juan Batiz-Benet
cb7c82845e
Merge pull request #1220 from ipfs/travis-test-all-commits
...
Get travis to test all commits
2015-05-14 15:14:30 -04:00
Tim Groeneveld
26ba3e1f74
Issue #873 . Thought I might do a small change first to get my feet wet.
2015-05-13 08:15:00 +10:00
Henry
4537311f59
http gw: disable PUT and writable tests - again... :(
2015-05-10 15:30:12 +02:00
Juan Batiz-Benet
6dd8aeb00a
config set: allow arbitrary json input
...
This commit allows arbitrary json input to set.
It also tests this with sharness.
2015-05-10 08:28:35 -04:00
Henry
87ce7abe47
unixfs/io: added NewEmptyDirectory()
...
some golinting along the way
2015-05-10 07:36:28 -04:00
Henry
31b83abfe4
http gw: remove newDagEmptyDir helper
2015-05-09 12:19:57 +02:00
Henry
96846358cc
http gw: some golinting and unexport unused symbols
...
- NewDagReader() used the wrong context
- Ip?sPathPrefix isn't used anywhere
- a little bit of error handling cleanup
2015-05-09 12:19:57 +02:00
Henry
1502f6bc71
http gw: removed ResolvePath() in favour of core.Resolve()
2015-05-09 12:19:57 +02:00
Henry
e633250c38
http gw: remove unused interface
2015-05-09 12:19:57 +02:00
Henry
f640ba0089
core: add context.Context param to core.Resolve()
...
commands/object: remove objectData() and objectLinks() helpers
resolver: added context parameters
sharness: $HASH carried the \r from the http protocol with
sharness: write curl output to individual files
http gw: break PUT handler until PR#1191
2015-05-08 03:14:32 +02:00
Juan Batiz-Benet
99596435a7
Merge pull request #1166 from ipfs/fix/bitswap-multisend
...
try harder to not send duplicate blocks
2015-05-05 00:07:53 -04:00
Jeromy
6f04302a48
remove logging of dup blocks, move to counters for bitswap stat
2015-05-04 03:12:17 -07:00
Jeromy Johnson
45b54c787f
Merge pull request #1183 from wking/remove-core-commands-internal-slice_util
...
core/commands/internal/slice_util: Remove this unused package
2015-05-03 23:17:32 -07:00
W. Trevor King
efa4907565
core/corerepo/pinning: Add a package comment
...
Currently garbage collection is triggered manually and there are no
age-restrictions on the removal. I expect we'll eventually follow Git
and auto-launch garbage collection when we hit some threshold of disk
consumption (gc.auto). I expect we'll also follow Git and keep
unpinned or unreachable objects (gc.pruneexpire, etc.). But we don't
seem to do either of those yet.
2015-05-02 08:55:43 -07:00
W. Trevor King
e02fc1ec6b
core/corehttp/corehttp: Add a package comment
...
I'm not entirely clear on the role that this package is filling, but
this description seems like a reasonable guess based on a quick skim
through it's exported API.
2015-05-02 08:35:34 -07:00
W. Trevor King
6892eba511
core/commands/internal/slice_util: Remove this unused package
...
The last references to CastToReaders were commented out in 6faeee83
(cmds2/add: temp fix for -r. horrible hack, 2014-11-11) and then
removed completely in 032e9c29 (core/commands2: Updated 'add' command
for new file API, 2014-11-16).
The last references to CastToStrings was removed in a0bd29d5
(core/commands2: Fixed swarm command for new arguments API,
2014-11-18).
2015-05-02 08:30:32 -07:00
W. Trevor King
95ccdca9ec
core/commands/commands: Add a package comment
2015-05-02 08:21:47 -07:00
W. Trevor King
81572ec236
core/core: Refer back to the main go-ipfs docs
...
So folks looking in core can figure out how it fits into the
repository as a whole.
2015-05-02 08:18:08 -07:00
W. Trevor King
d2a28300a2
core/core: Explain that subpackages are our low-level API
...
Discussion in [1].
[1]: https://github.com/ipfs/go-ipfs/issues/1158
2015-04-30 21:57:46 -07:00
Jeromy
9e6866f52f
hotfix: dont use nodes context because it might not be set yet
2015-04-30 14:16:49 -07:00
Vitor Baptista
5d1a25bbb9
core/commands: pin ls: display types by default
...
If you want to get only the hashes (i.e. the previous behaviour), you can use
the `--quiet` flag.
2015-04-28 19:15:15 +01:00
Jeromy
ea2375e8b4
let wantlist command show other peers wantlists
2015-04-28 01:51:30 -07:00
Juan Batiz-Benet
196c6aa4a6
Merge pull request #1127 from wking/add-single-reader
...
core/commands/add: Change add() to only accept a single reader
2015-04-27 02:38:59 -07:00
Jeromy
6da12b5398
address comments from CR
2015-04-26 22:32:12 -07:00
Jeromy
c1560befcd
fix up core.Resolve a bit
2015-04-26 22:32:12 -07:00
Jeromy
e3255f46e1
address comments from CR
2015-04-26 22:32:12 -07:00
Jeromy
3d80b9d27d
refactored ipns records to point to paths
...
Also changed the ipns dns resolution to use the "dnslink" format
2015-04-26 22:32:12 -07:00
W. Trevor King
641c20b9dd
core/coreunixs/add: Change add() to only accept a single reader
...
Catch up with core/commands/add.go.
2015-04-23 13:01:45 -07:00
W. Trevor King
c322a4eb0f
core/commands/add: Change add() to only accept a single reader
...
The change to an array of readers comes from e096060b
(refactor(core/commands2/add) split loop, 2014-11-06), where it's used
to setup readers for each path in the argument list. However, since
6faeee83 (cmds2/add: temp fix for -r. horrible hack, 2014-11-11) the
argument looping moved outside of add() and into Run(), so we can drop
the multiple-reader support from add().
Adding a file can create multiple nodes (e.g. the splitter can chunk
the file into several blocks), but:
1. we were only appending a single node per reader to our returned
list, and
2. we are only using the final node in that returned list,
so this commit also adjusts add() to return a single node reference
instead on an array of nodes.
2015-04-23 09:41:59 -07:00
Jeromy
cf478af971
cleanup changes from PR
2015-04-22 01:25:22 -07:00
Jeromy
001b7ab714
implement a config option for mdns
2015-04-22 00:55:31 -07:00
Jeromy
0917c1cb82
implement basic peer discovery using mdns
2015-04-21 21:34:54 -07:00
Juan Batiz-Benet
db56c0f16a
Merge pull request #1037 from torarnv/harden-shutdown-logic
...
Harden shutdown logic
2015-04-21 00:58:49 -07:00
Jeromy
861f30cc12
don't readd entire directories recursively
2015-04-20 16:21:00 -07:00
Juan Batiz-Benet
ce7914063f
core: bugfix: bootstrap random permutation
...
the random permutaton for bootstrap peers was not working as
intended, returning the first four bootstrap peers always.
this commit fixes it to be a random subset.
2015-04-20 06:00:42 -07:00
Tor Arne Vestbø
6fe85496f5
corehttp: disable HTTP keep-alive when shutting down server
...
Once the server is asked to shut down, we stop accepting new
connections, but the 'manners' graceful shutdown will wait for
all existing connections closed to close before finishing.
For keep-alive connections this will never happen unless the
client detects that the server is shutting down through the
ipfs API itself, and closes the connection in response.
This is a problem e.g. with the webui's connections visualization,
which polls the swarm/peers endpoint once a second, and never
detects that the API server was shut down.
We can mitigate this by telling the server to disable keep-alive,
which will add a 'Connection: close' header to the next HTTP
response on the connection. A well behaving client should then
treat that correspondingly by closing the connection.
Unfortunately this doesn't happen immediately in all cases,
presumably depending on the keep-alive timeout of the browser
that set up the connection, but it's at least a step in the
right direction.
2015-04-20 14:55:42 +02:00
Tor Arne Vestbø
c9d3084910
corehttp: ensure node closing/teardown waits for server termination
...
When closing a node, the node itself only takes care of tearing down
its own children. As corehttp sets up a server based on a node, it
needs to also ensure that the server is accounted for when determining
if the node has been fully closed.
2015-04-20 14:55:42 +02:00
Tor Arne Vestbø
cc830ff2ee
corehttp: log when server takes a long time to shut down
...
The server may stay alive for quite a while due to waiting on
open connections to close before shutting down. We should
find ways to terminate these connections in a more controlled
manner, but in the meantime it's helpful to be able to see
why a shutdown of the ipfs daemon is taking so long.
2015-04-20 14:55:42 +02:00
Christian Couder
96a22c5bb1
config: change default config dir name to .ipfs
...
This changes .go-ipfs to .ipfs everywhere.
And by the way this defines a DefaultPathName const
for this name.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-04-20 02:25:41 -07:00
Juan Batiz-Benet
c79dddd3d3
core: resolve error + bounds check
...
- handle error on "/ipns/"
- bounds-check, otherwise might cause a panic
2015-04-20 01:49:22 -07:00
Juan Batiz-Benet
928581c9e7
Merge pull request #1071 from ipfs/add-err-fix
...
cmds/add: silent error fix
2015-04-20 01:48:54 -07:00
Juan Batiz-Benet
218aeeb77e
cmds/add: silent error fix
2015-04-20 01:18:42 -07:00
gatesvp
31ff954539
Move IPNS resolutions into the core library
...
Move IPNS resolutions into the core library via the pathresolver.go
file. Fix the CLI commands to leverage this core component.
2015-04-20 01:04:30 -07:00
Juan Batiz-Benet
140cd1fd1b
remove debugerrors
...
We now consider debugerrors harmful: we've run into cases where
debugerror.Wrap() hid valuable error information (err == io.EOF?).
I've removed them from the main code, but left them in some tests.
Go errors are lacking, but unfortunately, this isn't the solution.
It is possible that debugerros.New or debugerrors.Errorf should
remain still (i.e. only remove debugerrors.Wrap) but we don't use
these errors often enough to keep.
2015-04-20 00:35:35 -07:00
Jeromy
0a6b880bee
fix for #1008 and other pinning fixes
...
This commit adds a new set of sharness tests for pinning, and addresses
bugs that were pointed out by said tests.
test/sharness: added more pinning tests
Pinning is currently broken. See issue #1051 . This commit introduces
a few more pinning tests. These are by no means exhaustive, but
definitely surface the present problems going on. I believe these
tests are correct, but not sure. Pushing them as failing so that
pinning is fixed in this PR.
make pinning and merkledag.Get take contexts
improve 'add' commands usage of pinning
FIXUP: fix 'pin lists look good'
ipfs-pin-stat simple script to help check pinning
This is a simple shell script to help check pinning.
We ought to strive towards making adding commands this easy.
The http api is great and powerful, but our setup right now
gets in the way. Perhaps we can clean up that area.
updated t0081-repo-pinning
- fixed a couple bugs with the tests
- made it a bit clearer (still a lot going on)
- the remaining tests are correct and highlight a problem with
pinning. Namely, that recursive pinning is buggy. At least:
towards the end of the test, $HASH_DIR4 and $HASH_FILE4 should
be pinned indirectly, but they're not. And thus get gc-ed out.
There may be other problems too.
cc @whyrusleeping
fix grep params for context deadline check
fix bugs in pin and pin tests
check for block local before checking recursive pin
2015-04-19 23:40:25 -07:00
Etienne Laurin
233c39ff62
publish by path
2015-04-12 21:51:58 +00:00
Juan Batiz-Benet
69db1b4ec5
bugfix: add was not setting error
2015-04-12 07:53:04 -07:00
Juan Batiz-Benet
3c1d78c672
corehttp: added support for HEAD requests
...
This commit adds HEAD support to the IPFS Gateway.
Related: #840
2015-04-12 02:35:16 -07:00
Jeromy
f10c8282c7
handle error from GetClosestPeers
2015-04-06 00:08:28 -07:00
Jeromy
2c8cb9fc75
bandwidth metering on streams
...
humanize bandwidth output
instrument conn.Conn for bandwidth metrics
add poll command for continuous bandwidth reporting
move bandwidth tracking onto multiaddr net connections
another mild refactor of recording locations
address concerns from PR
lower mock nodes in race test due to increased goroutines per connection
2015-03-31 19:58:08 -07:00
Ho-Sheng Hsiao
bf22aeec0a
Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs
...
- Modified Godeps/Godeps.json by hand
- [TEST] Updated welcome docs hash to sharness
- [TEST] Updated contact doc
- [TEST] disabled breaking test (t0080-repo refs local)
2015-03-31 12:52:25 -07:00
Jeromy
13c489eca1
fix context respect through fuse reading
2015-03-24 12:23:01 -07:00
Henry
07008042f1
ipfs ls: added --headers option
...
- added tests for 'ipfs ls --headers'
- comments from CR (opts)
- sharness: fix ls test whitespace
2015-03-20 15:34:56 -07:00
Juan Batiz-Benet
8a3db7cbc4
testing: nofuse testing (for osx travis)
2015-03-18 01:44:36 -07:00
Jeromy
7ad8dd8523
ignore bootstrap failures in namesys initialization
2015-03-17 21:57:57 -07:00
Jeromy
f679127d83
comments! and cleanup
2015-03-17 20:57:21 -07:00
Jeromy
eb228eb615
remove addCloser
2015-03-17 20:57:21 -07:00
Jeromy
9ab59e44ad
implement in memory model for ipns filesystem, to be used as backing for ipns fuse interface
2015-03-17 20:57:20 -07:00
Andy Leap
512171aa98
Fixing test failure(issue with looking for exact text)
2015-03-16 16:27:34 -04:00
Andy Leap
89ca37d1d1
Fixes issue #924
2015-03-16 16:08:45 -04:00
Tommi Virtanen
fdd1cd8dc0
Remove fsrepo.At, make Open a constructor function
...
Nobody calls At without immediately calling Open.
First step, a mechanical transformation. Cleanups will follow.
2015-03-13 20:19:03 -07:00
Henry
b688e72de0
ipfs object put: return error if object is empty ( fixes #883 )
2015-03-10 22:58:50 +01:00
Henry
759437e054
ls: introduce specific output types (removes IsDir from object plumbing commands)
2015-03-10 13:56:57 +01:00
Henry
d88ba19357
disabled 'ipfs update' command for now
2015-03-09 10:22:11 +01:00
Henry
e8403b1f11
removed dead code
...
- old http server (superseeded by core/corehttp)
- unused makeDatastore() helpers
2015-03-09 10:21:35 +01:00
anarcat
451222cf1d
gc is actually repo gc, reflect in docs
...
not exactly elegant, but fixes #871 in the short term. in the mid term, unless more `repo` commands show up, i suggest just replacing `repo gc` simply by `gc`.
2015-03-08 18:05:42 -04:00
Juan Batiz-Benet
bff7f73068
Merge pull request #878 from jbenet/dontIgnoreCancelFuncs
...
context: Always call returned cancel funcs
2015-03-07 09:49:19 -08:00
Juan Batiz-Benet
1d5b903611
added cancel func calls previously ignored
2015-03-07 09:31:46 -08:00
Juan Batiz-Benet
dfe2b16763
cmds/id: use req context -- dont timeout unnecessarily
...
commands should last as long as the user keeps the cmd going
2015-03-07 09:24:15 -08:00
Henry
bc84ffafe3
enable stdin input for ipfs object put
2015-03-07 16:50:00 +01:00
anarcat
6a3578be84
explain what direct/indirect/recursive means
...
i couldn't understand what those meant. it was explain (at least partly) in #590 so let's share the goods!
2015-03-07 08:32:48 -05:00
Tonis Tiigi
0f69823077
Add nofuse build tag to darwin mounter
2015-03-05 18:00:45 +02:00
Tonis Tiigi
91ab1401ab
Fix nofuse build tags syntax
2015-03-05 18:00:36 +02:00
Henry
e55aaf3f83
nofuse: better help description for 'ipfs mount'
2015-03-05 01:24:17 +01:00
Henry
66f1035d93
simple nofuse build tag to allow freebsd compilation and maybe pave the way towards windows as well
2015-03-05 01:24:17 +01:00
Juan Batiz-Benet
51a8bcbf64
Merge pull request #847 from jbenet/publish-webui
...
published new webui
2015-03-02 23:38:30 -08:00
Juan Batiz-Benet
7bc1de4ec5
published new webui
...
/ipfs/QmXX7YRpU7nNBKfw75VG7Y1c3GwpSAGHRev67XVPgZFv9R
ee74f75d0b
2015-03-02 23:33:10 -08:00
Juan Batiz-Benet
9f27556090
Merge pull request #823 from BrendanBenshoof/master
...
fixing bug 812
2015-03-02 17:02:24 -08:00
bbenshoof
ac5cfc5664
fixing bug 812
2015-03-02 17:07:21 -05:00
Henry
607468a96d
beautify 'ipfs ls' and 'ipfs object links' (updates #799 )
2015-03-01 14:03:51 +01:00
Jeromy
3c8a391fe4
dont put wantlist getter in exchange interface
2015-02-27 00:12:21 -08:00
Jeromy
98a183d53e
fix output formatting on stat
2015-02-27 00:12:21 -08:00
Jeromy
b514478f32
rename wantlist to bitswap, add stat command
2015-02-27 00:12:21 -08:00
Jeromy
559a241566
implement a simple wantlist command to allow the user to view their wantlist
2015-02-27 00:12:21 -08:00
Jeromy
7fb63d7e43
move signing options into a validation checker struct
2015-02-26 22:05:03 -08:00
Jeromy
049b5ad945
make signing dht put records optional
2015-02-26 22:05:03 -08:00
Jeromy
36a21561f7
stress test for ipfs fuse
2015-02-26 19:12:05 -08:00
Juan Batiz-Benet
88dea5771d
Merge pull request #819 from jbenet/x_net_context_leeroy
...
update context imports to golang.org/x/net
2015-02-25 03:17:28 -08:00
Henry
92d08db7a5
rewrote import paths of go.net/context to use golang.org/x/context
...
- updated go-ctxgroup and goprocess
ctxgroup: AddChildGroup was changed to AddChild. Used in two files:
- p2p/net/mock/mock_net.go
- routing/dht/dht.go
- updated context from hg repo to git
prev. commit in hg was ad01a6fcc8a19d3a4478c836895ffe883bd2ceab. (context: make parentCancelCtx iterative)
represents commit 84f8955a887232b6308d79c68b8db44f64df455c in git repo
- updated context to master (b6fdb7d8a4ccefede406f8fe0f017fb58265054c)
Aaron Jacobs (2):
net/context: Don't accept a context in the DoSomethingSlow example.
context: Be clear that users must cancel the result of WithCancel.
Andrew Gerrand (1):
go.net: use golang.org/x/... import paths
Bryan C. Mills (1):
net/context: Don't leak goroutines in Done example.
Damien Neil (1):
context: fix removal of cancelled timer contexts from parent
David Symonds (2):
context: Fix WithValue example code.
net: add import comments.
Sameer Ajmani (1):
context: fix TestAllocs to account for ints in interfaces
2015-02-25 11:58:19 +01:00
Juan Batiz-Benet
f51e464a55
Merge pull request #801 from jbenet/feat/get-put-cmds
...
Implement dht put and get CLI commands
2015-02-25 01:35:38 -08:00
Jeromy
ff30558195
make it easier to create custom dag objects via the CLI
2015-02-23 21:33:38 -08:00
Jeromy
29fe7f03f8
remove unused case
2015-02-23 21:09:16 -08:00
Jeromy
7c0c3c4511
add put and get dht commands to cli
2015-02-23 21:09:16 -08:00
Jeromy
69e09d40c5
add version info endpoint to gateway
2015-02-20 11:49:48 -08:00
Jeromy
15b181ffe2
return early from add PostRun if error is set
2015-02-19 13:52:30 -08:00
Jeromy
a29c0fc751
move blocking calls out of single threaded loops, cancel contexts ASAP
2015-02-19 06:04:39 +00:00
Jeromy
3cda8ca685
teach ipfs refs -r how to use GetBlocks
2015-02-19 03:21:55 +00:00
Jeromy
5253b6ab13
pass routed host into bitswap construction
2015-02-18 19:11:38 +00:00
Jeromy
03c0b2d3e0
keep routing logic out of NewStream on routedHost
2015-02-18 19:11:37 +00:00
Jeromy
6241c25984
make contructor code a little less magical
2015-02-18 19:11:33 +00:00
Jeromy
e40e5699f9
use a routedHost in the core node constructor
2015-02-18 18:56:57 +00:00
Jeromy
d8d933c862
move core/net.go to 'corenet' and change interface a tad
2015-02-18 18:56:56 +00:00
Jeromy
8b8a600a81
add dial and listen methods to the core for super awesomeness
2015-02-18 18:56:56 +00:00
Juan Batiz-Benet
34e4d8c3a6
updated webui
2015-02-16 13:53:21 -08:00
Juan Batiz-Benet
01feeac1bb
new webui hash
2015-02-16 04:34:36 -08:00
Juan Batiz-Benet
cc8ed14e7a
bootstrap: update bootstrapping process.
...
Note: the dht-specific part of the bootstrap function
was only there to make sure to call `dht.Update(ctx, npeer)`.
This already happens on all new connections made by the
network, as the dht is signed up for notifications.
2015-02-15 04:41:16 -08:00
Brian Tiger Chow
9dd12922b3
refactor(routing) expose Bootstrap() error on routing interface
2015-02-15 04:41:16 -08:00
Brian Tiger Chow
1dfcce9f5a
fix(grc) move Bootstrap method onto routing interface
2015-02-15 04:41:16 -08:00
Brian Tiger Chow
19eb35137b
refactor(routing) rename grandcentral to supernode
...
thanks @mappum
remove .go-ipfs
2015-02-15 04:41:10 -08:00
Brian Tiger Chow
770489ab2c
fix(corerouting) remove TODO. no longer applies now that routing servers are specified manually
2015-02-14 14:13:56 -08:00
Brian Tiger Chow
a6710e9f53
feat(gcr/s) comment
2015-02-14 14:13:56 -08:00
Brian Tiger Chow
9e5b3b7773
refactor(gcr/c) pass host.Host into GCR client
2015-02-14 14:13:54 -08:00
Brian Tiger Chow
46bbd11e6b
fix(gcr/s,c) register stream handlers
2015-02-14 14:13:54 -08:00
Brian Tiger Chow
d80e9aba7a
feat(gcr/c) add support for multiple servers
2015-02-14 14:13:54 -08:00
Brian Tiger Chow
73b544c932
feat(corerouting) add package for custom routing options
...
fix(corerouting): connect to routing servers when setting up GCR client
doc(corerouting) add TODO to move stuff to routing bootstrap
2015-02-14 14:13:54 -08:00
Juan Batiz-Benet
247649969e
Merge pull request #726 from kevinwallace/gateway_hostname
...
gateway: attempt to resolve hostname to ipfs path
2015-02-12 18:52:16 -08:00
Jeromy Johnson
6eb5d8ea77
Merge pull request #774 from jbenet/block-put-fix
...
Fixed 'ipfs block put' panic
2015-02-11 20:21:11 -08:00
Matt Bell
bbca9a1c37
Fixed 'ipfs block put' panic
2015-02-11 14:56:36 -08:00
Jeromy
7a2545a14b
implement nodebuilder
2015-02-11 21:47:07 +00:00
Jeromy
140c70d772
document some packages
2015-02-10 22:59:10 +00:00
Kevin Wallace
e5abf0764c
corehttp: add test for gateway with mocked namesys
...
License: MIT
Signed-off-by: Kevin Wallace <kevin@pentabarf.net>
2015-02-08 12:54:43 -08:00
Kevin Wallace
794b7b7b3e
corehttp: tear off makeHandler, for tests
...
License: MIT
Signed-off-by: Kevin Wallace <kevin@pentabarf.net>
2015-02-08 12:50:47 -08:00
Kevin Wallace
084cdc3ed8
gateway: attempt to resolve hostname to ipfs path
...
This allows someone to host a static site by pointing a TXT record at their
content in IPFS, and a CNAME record at an IPFS gateway.
Note that such a setup technically violates RFC1912 (section 2.4; "A CNAME
record is not allowed to coexist with any other data."), but tends to work in
practice.
We may want to consider changing the DNS->IPFS resolution scheme to allow this
scenario to be RFC-compliant (e.g. store the mapping on a well-known subdomain
to allow CNAME records on the domain itself).
License: MIT
Signed-off-by: Kevin Wallace <kevin@pentabarf.net>
2015-02-08 11:27:06 -08:00
Kevin Wallace
fbd76ebb5b
corehttp: ServeOption supports chaining muxes
...
Each option now additionally returns the mux to be used by future options. If
every options returns the mux it was passed, the current behavior is unchanged.
However, if the option returns an a new mux, it can mediate requests to handlers
provided by future options:
return func(n *core.IpfsNode, mux *http.ServeMux) (*http.ServeMux, error) {
childMux := http.NewServeMux()
mux.Handle("/", handlerThatDelegatesToChildMux)
return childMux, nil
}
License: MIT
Signed-off-by: Kevin Wallace <kevin@pentabarf.net>
2015-02-08 11:27:06 -08:00
Juan Batiz-Benet
872c64dd79
gateway: dont cache ipns paths
...
ipns paths are mutable and should not be cached. this error is
a byproduct of the currently messy gateway route. We should split
the /ipfs and /ipns routes up.
2015-02-07 10:10:05 -08:00
Brian Tiger Chow
8558838d00
fix(core) check nil for _all_ owned resources
...
since construction can fail, and construction is non-trivial, it's
probably safer to never assume resource exists.
cc @jbenet @whyrusleeping
2015-02-06 11:22:43 -07:00
Brian Tiger Chow
db644fe1b7
allow access to the field for convenience
...
decalarative configuration is superior. the thread-safety because
important during normal operation
2015-02-06 08:13:15 -08:00
Juan Batiz-Benet
64a4c27913
corehttp: allow all webui paths we published.
...
Otherwise we break users links! cc @mappum
2015-02-06 07:30:42 -08:00
Matt Bell
0195c03664
core/corehttp: Updated WebUI hash
2015-02-04 23:51:06 -08:00
Matt Bell
2d173c3a25
core/corehttp: Return 403 for blocked requests instead of 404
2015-02-04 18:46:59 -08:00
Matt Bell
b1ca07d6c5
core/corehttp: Added gateway path whitelisting
2015-02-04 18:46:54 -08:00
Matt Bell
262e78122a
core/corehttp: Added Suborigin header to gateway responses
2015-02-04 16:53:24 -08:00
Brian Tiger Chow
d50a7ff003
feat(corehttp) add a Gateway blocklist
...
use pointer
use func
comment on decider to clarify whether it allows or denies
fix set conf
gstw
2015-02-04 16:17:39 -08:00
Jeromy
2501a7c7b7
update UI from PR comments
2015-02-04 23:07:13 +00:00
Jeromy
4770c5e142
only expose IpfsNode as param
2015-02-04 23:07:13 +00:00
Jeromy
b79fffc965
implement metadata node for unixfs and other
2015-02-04 23:07:12 +00:00
Juan Batiz-Benet
e384aec2a9
cmds/root: ipfs root text arrangement
2015-02-03 12:17:59 -08:00
Juan Batiz-Benet
10cd499a8b
cmds/swarm connect had broken
2015-02-03 05:51:31 -08:00
Juan Batiz-Benet
581c4e558e
cmds/id: show self addrs
2015-02-03 05:51:31 -08:00
Juan Batiz-Benet
58f39687cf
logs: removed all log.Errors unhelpful to users
...
Let's save log.Error for things the user can take action on.
Moved all our diagnostics to log.Debug. We can ideally reduce them
even further.
2015-02-03 01:06:07 -08:00
Juan Batiz-Benet
d13876ffe9
commands/id: version was flipped
2015-02-02 21:05:32 -08:00
Juan Batiz-Benet
b0a1cf0371
ipfs swarm addrs: print out known addresses
...
this will help us introspect what's going on.
2015-02-02 21:05:32 -08:00
Juan Batiz-Benet
e908effb4b
AddrManager: use addr manager with smarter TTLs
...
This addr manager should seriously help with the addrsplosion
problem.
2015-02-02 21:04:14 -08:00
Matt Bell
e5f3ac99c3
core/coreunix: Documented return values
2015-02-02 10:13:33 -08:00
Matt Bell
1ad5b345b8
core/commands: add: Added -w/--wrap-with-directory option
2015-02-02 10:07:35 -08:00
Matt Bell
62333521c6
core/coreunix: Created 'AddWrapped' function to add files with a wrapped directory (to preserve filename in path)
2015-02-02 10:07:35 -08:00
Jeromy
061a866306
ensure dagreaders are cleaned up after 'cat' command finishes
2015-02-02 08:33:54 +00:00
Brian Tiger Chow
88fa7388de
feat(core) add shutdown message
2015-02-01 21:54:20 -08:00
Brian Tiger Chow
d0f9be56e7
refac(core) privatize method
2015-02-01 21:54:20 -08:00
Brian Tiger Chow
1beef957da
refac(core): expose core.OnlineWithRouting constructor option
...
fix FIXUP maybeRouter in core
2015-02-01 21:54:19 -08:00
Brian Tiger Chow
c114b04ae1
feat(bitswap): synchronous close
2015-02-01 21:54:19 -08:00
Juan Batiz-Benet
c43f539f3d
cmds/cat: fix length to use reader.Size()
...
unixfs file size != merkledag cumulative size
2015-02-01 19:24:36 -08:00
Juan Batiz-Benet
aff1d8bdcf
ipfs swarm disconnect (opposite of connect)
2015-02-01 06:37:14 -08:00
Juan Batiz-Benet
3cd3424900
cmds/swarm: now speaks ipfsaddr (.../ipfs...)
2015-02-01 06:36:51 -08:00
Juan Batiz-Benet
bebc3ca0fd
cmd/bootstrap: bugfix on add (dedup)
2015-02-01 06:07:21 -08:00
Juan Batiz-Benet
188d336204
cmds/bootstrap: fix marshalling + listing errors
2015-02-01 05:36:07 -08:00
Juan Batiz-Benet
29bf59dded
bootstrap: use ipfsaddr for boostrap peers ⚠️
...
⚠️ this commit makes your current configs unusable, as the
default bootstrap peers. You may need to edit your config.
Go from:
```js
Bootstrap: [
{
"Address": "/ip4/104.131.131.82/tcp/4001",
"PeerID": "QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ"
}
]
```
To:
```js
Bootstrap: [
"/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ"
]
```
2015-02-01 05:16:52 -08:00
Juan Batiz-Benet
f1d34a2a85
test/sharness: fix errors
...
- core: daemon stdout print to cmd + daemon init checks
- core: fixed bug where the gateway was printed as "API"
- sharness/test-lib: daemon init checks
- sharness/test-lib: portable TCP port check
- sharness/init: fix test bits output
- sharness: use common hashes in one place.
- move t0100-http-gateway -> t0111-gateway-writable
- sharness: test-lib funcs for gateway config
- sharness/t0111-gateway-writable: use sh funcs
- sharness/t0111-gateway-writable: fixes
- escape all vars (always `cmd "$VAR"` never `cmd $VAR`)
- use $FILEPATH, not $path
- last test seems to fail
2015-01-31 22:54:34 -08:00
Juan Batiz-Benet
4016d35a81
Merge pull request #617 from mildred/http-rest
...
HTTP: add handlers to allow object creation and modification
2015-01-31 18:07:56 -08:00
Juan Batiz-Benet
f43cf2d917
Merge pull request #703 from jbenet/net-set-listener
...
online services started before network listens
2015-01-31 17:25:18 -08:00
Juan Batiz-Benet
7b85579d7a
core: move online service init block into own func
...
addresses CR comments
2015-01-31 17:20:34 -08:00
Jeromy
b57ba192e6
fix cast panic in ipfs name resolve when daemon is running
...
Addresses bug #689
2015-01-31 23:55:07 +00:00
Mildred Ki'Lya
c9ff778bd6
Added -bool option to ipfs config command
2015-01-31 23:36:46 +01:00
Mildred Ki'Lya
295cc443da
HTTP Gateway: add /ipns/ GET requests
2015-01-31 23:36:46 +01:00
Mildred Ki'Lya
7d09da3c8b
Make gateway read-only by default and add option to make it writable
2015-01-31 23:36:45 +01:00
Mildred Ki'Lya
d221d55d85
HTTP: add handlers to allow object creation and modification
2015-01-31 20:47:34 +01:00
Juan Batiz-Benet
1a3752b81f
core: setup peerhost + listen separate steps
...
We had a problem: we were starting all the services with the network
live, and so would miss early messages. We were noticing bitswap
messages not handled (not in muxer). Many of the subsystems expect
the network to _exist_ when they start up, so we split construction
and starting to listen into two separate steps.
2015-01-30 20:37:53 -08:00
Jeromy
9ddfafb40a
address concerns about user interface with new Path type
2015-01-30 19:55:38 +00:00
Jeromy
abb3c9c9c4
implement path type
2015-01-29 17:51:08 +00:00
Juan Batiz-Benet
14eceee35e
epictest: fix three-legged-cat
...
http://gateway.ipfs.io/ipfs/QmfUFkQuqjfQzLNhMLwiibiAxnAaZEJAbYkey9orXJ4aQe/3lcat.jpg
2015-01-29 01:10:01 -08:00
Juan Batiz-Benet
17e542a559
Merge pull request #675 from jbenet/diag-helptext
...
add more help text for ipfs diag net
2015-01-28 17:14:35 -08:00
Juan Batiz-Benet
c36e8dd04c
gateway: reordered headers to avoid error
...
cc @mappum
2015-01-28 16:55:00 -08:00
Matt Bell
cea68afa2e
core/corehttp: Handle Etag for caching
2015-01-28 16:50:16 -08:00
Matt Bell
fb986fd822
core/corehttp: Added cache headers to gatewayy requests
2015-01-28 16:48:07 -08:00
Matt Bell
e4eb964f69
core/corehttp: Use consts for path prefixes
2015-01-28 16:43:45 -08:00
Matt Bell
2759d1c126
core/corehttp: Added handling of /ipns/<hash>/x paths
2015-01-28 16:38:36 -08:00
Matt Bell
950e492fc4
core/corehttp: Close DAGReaders when done
2015-01-28 16:01:42 -08:00
Matt Bell
58d401c3b0
core/corehttp: gateway_handler: Redirect to path with trailing slash when showing a directory's index.html
2015-01-28 16:01:42 -08:00
Matt Bell
e2be5c2039
core/corehttp: Added RedirectOption
2015-01-28 16:01:41 -08:00
Matt Bell
b8fcece0e5
core/corehttp: Handle IPNS paths in gateway
2015-01-28 16:01:41 -08:00
Matt Bell
d338a81eca
core/corehttp: Support Range requests in gateway handler
2015-01-28 15:49:55 -08:00
Juan Batiz-Benet
9959775ff7
Merge pull request #684 from jbenet/fuse-emancipation
...
fuse: no longer require fuse to compile ipfs
2015-01-28 13:25:23 -08:00
Jeromy
72a5902e12
address concerns from PR
2015-01-28 19:36:30 +00:00
Jeromy
f1267d0624
change ipns resolve/publish to store raw keys, not b58 encoded
2015-01-28 19:36:30 +00:00
Juan Batiz-Benet
7ae3706b6d
fuse: no longer require fuse to compile ipfs
...
This commit removes the dependency on go-fuse-version, and thus the
fuse headers. It also introduces an elaborate troubleshooting process
that diagnoses whether fuse installed -- and which version -- with as
little requirements as possible (attept to use sysctl, fall-back on
the go-fuse-version binary, etc). It then nicely instructs the user
what to do next.
2015-01-28 05:18:41 -08:00
Brian Tiger Chow
bbce860bd0
remove debug log output
2015-01-27 17:15:56 -08:00
Brian Tiger Chow
961e3ced43
feat(coreunix): AddR for recursive Adds
2015-01-27 16:24:36 -08:00
Brian Tiger Chow
1ea9481a63
move config.Init into config package
2015-01-27 16:23:58 -08:00
Jeromy
b456d476a3
updates from CR
2015-01-27 17:28:02 +00:00
Jeromy
c50d763727
add more help text for ipfs diag net
2015-01-27 09:05:06 +00:00
Jeromy Johnson
4940c3e0ae
Merge pull request #655 from jbenet/feat/dagseek
...
Implement io.Seeker on unixio.DAGReader
2015-01-26 19:33:41 -08:00
Juan Batiz-Benet
1eb0bfe834
Merge pull request #668 from jbenet/hack
...
misc user-friendliness fixes
2015-01-26 19:00:09 -08:00
Juan Batiz-Benet
2b0c89a5c7
commands/diag: switch clarity
2015-01-26 18:50:16 -08:00
Jeromy
26826bd55e
implement seeking in the dagreader
2015-01-27 01:33:09 +00:00
Juan Batiz-Benet
36d03306d7
Merge pull request #652 from jbenet/cli-changes
...
CLI changes
2015-01-26 17:24:54 -08:00
Matt Bell
d666155a0a
core/commands: get: Clean output path
2015-01-26 17:07:30 -08:00
Juan Batiz-Benet
76d9d89aff
user friendliness in logs + output
2015-01-26 17:01:00 -08:00
Matt Bell
2c019b542e
core/commands: Fixed net diag command not outputting in chosen format
2015-01-26 17:01:00 -08:00
Juan Batiz-Benet
ae5e244354
Merge pull request #648 from jbenet/nat-lite
...
NAT-Lite
2015-01-26 16:59:33 -08:00
Matt Bell
3799ad9023
core/commands: log tail: Return from goroutine when request context closes, resolves #659
2015-01-26 14:24:33 -08:00
Juan Batiz-Benet
ca757c66ff
p2p/nat: managed by host now.
...
Exposing the NAT to the core is unnecessary. The Host can take
care of it. If a need emerges, we can address it then.
2015-01-26 14:00:00 -08:00
Juan Batiz-Benet
332d350196
p2p/nat: re-factors nat object
...
- allow retrieving addresses
- allow notifications on mapping changes
- allow lifecycle mgmt (future commit will manage it)
2015-01-26 13:45:02 -08:00
Matt Bell
41d5c822d7
core/commands: get: Place files at root of TAR when using a multi-element ipfs path
2015-01-24 21:40:19 -08:00
Matt Bell
e6d6e9fed6
core/commands: Added 'get' to root command helptext
2015-01-24 21:40:18 -08:00
Jeromy
403940af42
print out correct object for dht findproviders command
2015-01-25 01:21:23 +00:00
Juan Batiz-Benet
069cff3d25
p2p/nat: upnp + pmp
2015-01-24 12:42:22 -08:00
Brian Tiger Chow
f9395b7667
fix: flush the pinner
2015-01-24 12:22:22 -08:00
Brian Tiger Chow
7f6bd2807d
feat(coreunix): AddR for recursive Adds
2015-01-24 12:22:22 -08:00
Matt Bell
27c7ebdf48
core/commands: get: Changed option description
2015-01-24 07:28:43 -08:00
Matt Bell
3909905313
core/commands: get: Cleaned up option handling
2015-01-24 05:35:27 -08:00
Matt Bell
fe48ae2dd6
Extracted TAR archive building/reading code out of 'ipfs get'
2015-01-24 03:06:25 -08:00
Matt Bell
5efd99c1fe
core/commands: get: Error if specified compression level is invalid
2015-01-24 03:06:25 -08:00
Matt Bell
816a047a12
core/commands: 'get' arguments shouldn't be variadic
2015-01-24 03:06:25 -08:00
Matt Bell
f034f3e13a
core/commands: Show download progress in 'get'
2015-01-24 03:06:25 -08:00
Matt Bell
f3c4f87ec2
core/commands: Added GZIP compression to 'get'
2015-01-24 03:06:25 -08:00
Matt Bell
f433a95201
core/commands: Save 'get' output to disk
...
squash! core/commands: Save 'get' output to disk
core/commands: get: Fixed PostRun signature
2015-01-24 03:06:25 -08:00
Matt Bell
276a8d062c
core/commands: Made 'get' copying thread-safe
2015-01-24 03:06:24 -08:00
Matt Bell
36249b9292
core/commands: Added 'get' command
2015-01-24 03:06:24 -08:00
Brian Tiger Chow
af20d67ac0
add synchronous garbage collect function
2015-01-24 01:32:28 -08:00
Brian Tiger Chow
d738a02428
rename GarbageCollectAsync method
...
corerepo package name provides sufficient context (even if renamed by
caller)
2015-01-24 01:32:28 -08:00
Brian Tiger Chow
be41444a9e
provide simple wrapper methods for AllKeysRange
...
@jbenet @whyrusleeping
was the 1<<16 intentional? replaced the raw methods with wrappers.
2015-01-24 01:32:28 -08:00
Brian Tiger Chow
d5e4c6a0bf
move core/repo to core/corerepo
2015-01-24 01:32:27 -08:00
Brian Tiger Chow
e9d3c9828c
perform multiaddr conversion in the function
2015-01-24 01:32:27 -08:00
Jeromy
b287422ebd
fix type in findProviders command
2015-01-24 08:59:34 +00:00
Brian Tiger Chow
6fedf259eb
remove prefix logger
2015-01-24 00:30:56 -08:00
Jeromy
20c40c3f10
fix commands interface
2015-01-24 08:06:57 +00:00
Juan Batiz-Benet
4334f6fda3
Merge pull request #613 from jbenet/progress-bars
...
Progress Bars
2015-01-23 22:20:34 -08:00
Juan Batiz-Benet
b279da2918
Merge pull request #626 from jbenet/query-cmd
...
dht query command
2015-01-23 22:01:48 -08:00
Jeromy
d68efad06c
respect verbose option a bit, and show query events for other commands
2015-01-24 05:32:50 +00:00
Jeromy
4607f54254
add findpeer command
2015-01-24 03:56:46 +00:00
Jeromy
56a5e72760
implement dht findprovs and add error output to dht query
2015-01-24 03:56:46 +00:00
Jeromy
528eb5a55a
use a notification type strategy for the query events
2015-01-24 03:56:45 +00:00
Jeromy
ec5276c29c
really ugly impl of 'ipfs dht query' command
2015-01-24 03:56:45 +00:00
Matt Bell
ccaabbc06d
core/commands: Rearranged command list sections
2015-01-23 19:17:09 -08:00
Matt Bell
452f54a48e
core/commands: Enabled stdin arguments for 'bootstrap {add, rm}
2015-01-23 19:11:56 -08:00
Matt Bell
71301d2c63
core/commands: Updated root command helptext
2015-01-23 19:11:56 -08:00
Matt Bell
5706471897
commands: Made PostRun signature match Run
2015-01-23 18:29:31 -08:00
Matt Bell
79741438d9
core/commands: config: Simplified some syntax
2015-01-23 18:29:31 -08:00
Matt Bell
3fc9bedb0b
commands: Made Std{in|out|err} accessible in Request/Response
2015-01-23 18:29:31 -08:00
Matt Bell
b77d1c21b6
core/commands: add: Don't show progress bar when using --quiet option
2015-01-23 18:29:31 -08:00
Matt Bell
121dfb10b4
core/commands: Fixed progress bar line clear race condition in 'add'
2015-01-23 18:29:31 -08:00
Matt Bell
2363cb63e6
core/commands: Fixed 'add' progress bar sometimes not clearing progress bar output line
2015-01-23 18:29:31 -08:00
Matt Bell
c3ea164f64
core/commands: Added progress bars for 'add'
...
squash! core/commands: Added progress bars for 'add'
Use vendored progress bar lib in 'add'
2015-01-23 18:29:30 -08:00
Matt Bell
487ef33e67
core/commands: Added progress bar to 'cat'
...
squash! core/commands: Added progress bar to 'cat'
Vendored progress bar lib
2015-01-23 18:29:30 -08:00
Matt Bell
7b4de230eb
commands: Refactored Command#Run function signature to (req Request, res Response)
2015-01-23 18:29:29 -08:00
Juan Batiz-Benet
c4f9a92e55
Merge pull request #628 from jbenet/feat/more-bootstraps
...
Add Bootstrap Peers: Mercury, Earth, Venus, Jupiter
2015-01-23 17:08:56 -08:00
Juan Batiz-Benet
bb2d81ace2
Merge pull request #622 from jbenet/webui-commands
...
Webui Commands
2015-01-23 16:51:11 -08:00
Brian Tiger Chow
bbc282bfab
more bootstrap nodes
2015-01-23 16:19:50 -08:00
Matt Bell
68b2a3f15c
core/commands: Renamed 'log read' to 'log tail'
2015-01-23 15:08:20 -08:00
Juan Batiz-Benet
95d58b2a4a
core: cleaned up bootstrap process
2015-01-23 05:25:31 -08:00
Juan Batiz-Benet
dd9c1b6243
core/bootstrap: CR comments
2015-01-23 02:08:30 -08:00
Juan Batiz-Benet
d6ce837d72
core/bootstrap: cleaned up bootstrapping
...
Moved it to its own package to isolate scope.
2015-01-23 02:08:29 -08:00
Juan Batiz-Benet
010cedf0a9
ipfs swarm peers: sort output
2015-01-23 02:08:29 -08:00
Juan Batiz-Benet
ec848c486b
core: call dht bootstrap
2015-01-23 02:08:28 -08:00
Juan Batiz-Benet
898b9696ca
diag/net: add timeout param to cmd
2015-01-23 02:08:28 -08:00
Juan Batiz-Benet
82d38a2692
routing/dht: periodic bootstrapping #572
2015-01-23 02:08:28 -08:00
Jeromy
eb6afd3edc
fix interface for coreunix.Cat, now takes a path
2015-01-23 06:39:20 +00:00
Matt Bell
81d17e0843
cmd/ipfs: gatewayHandler: Fixed directory listing getting appended to index.html pages
2015-01-22 16:29:00 -08:00
Matt Bell
926b96463d
core/commands: Added 'log read' command
...
squash! core/commands: Added 'log read' command
core/commands: Use a unidirectional channel for 'log read' output
2015-01-22 16:28:59 -08:00
Matt Bell
8d412e48cf
core/commands: Added an 'ipfs config replace' command
2015-01-22 16:28:59 -08:00
Brian Tiger Chow
fadede6cb2
separate concerns
2015-01-22 01:28:40 -08:00
Brian Tiger Chow
fadedf9e68
refactor(core) extract corehttp package
...
PACKAGE DOCUMENTATION
package corehttp
FUNCTIONS
func GatewayOption(n *core.IpfsNode, mux *http.ServeMux) error
func ListenAndServe(n *core.IpfsNode, addr ma.Multiaddr, options
...ServeOption) error
func WebUIOption(n *core.IpfsNode, mux *http.ServeMux) error
TYPES
type ServeOption func(*core.IpfsNode, *http.ServeMux) error
func DaemonOption(cctx commands.Context) ServeOption
2015-01-22 01:08:59 -08:00
Juan Batiz-Benet
f6111d82fe
Merge pull request #558 from jbenet/feat/gc
...
initial implementation of repo-gc command
2015-01-21 16:48:28 -08:00
Jeromy
8e7d984751
updates from PR, tests tests tests!
2015-01-21 08:55:50 +00:00
Brian Tiger Chow
721ff57263
fix(blockservice) fully async exchange.HasBlock
2015-01-20 23:43:21 -08:00
Jeromy
4de881a185
move GC code into core/repo, and add sharness test
2015-01-21 04:28:02 +00:00
Matt Bell
31ae178078
commands: Support outputting <-chan interface{}
2015-01-21 04:28:02 +00:00
Jeromy
9adcfe7bc2
address concerns from PR
2015-01-21 04:28:02 +00:00
Jeromy
ccb36277dd
fix pinning UX, and add tests to match
2015-01-21 04:28:01 +00:00
Jeromy
b91db68056
update pinning to new semantics, and fix a couple bugs
2015-01-21 04:28:01 +00:00
Jeromy
3601a93d17
fix pin command output
2015-01-21 04:28:01 +00:00
Jeromy
f0781d8119
initial implementation of repo-gc command
2015-01-21 04:28:01 +00:00