Steven Allen
e9953972ed
mfs: make sure to flush after mv and chcid
...
We need to call `FlushPath` as `Flush` doesn't call `WaitPub` internally. The
correct fix is to rework MFS such that Flush actually flushes but that's a
larger project.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-21 20:01:40 -08:00
Łukasz Magiera
480a3a3de1
coreapi: few more error check fixes
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-21 21:36:11 +01:00
Steven Allen
5b6f41a0cf
Merge pull request #5923 from da2x/patch-1
...
Clarify that chunker sizes are in bytes
2019-01-21 17:57:31 +00:00
Steven Allen
38a3938960
Merge pull request #5931 from chenminjian/refact/cmd/patch
...
refact(cmd/patch): change string to const
2019-01-21 17:57:11 +00:00
Steven Allen
21ac6c7429
Merge pull request #5932 from chenminjian/refact/cmd/object
...
refact(cmd/object): change option string to const
2019-01-21 17:56:53 +00:00
Steven Allen
2e83a0a15a
Merge pull request #5922 from ipfs/feat/coreapi/dag-ipld
...
coreapi: replace coreiface.DagAPI with ipld.DAGService
2019-01-21 17:56:36 +00:00
Steven Allen
19d8f624ed
base32: make GetEncoderFromPath more robust
...
Primarily, get rid of extractCidString and cidVer. Neither of these functions
did sane things when a path when a path didn't actually include a CID. For
example, "boo" would yield a base32 encoder.
Also:
* Avoid "optional" errors.
* Make it a pure function of the input path.
* Extract the multibase from *any* type of path of the form
/namespace/cid-like-thing/... This is a DWIM function.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-21 09:46:24 -08:00
chenminjian
d89410d17e
refact(cmd/object): change option string to const
...
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2019-01-19 17:05:02 +08:00
chenminjian
7f80793722
refact(cmd/patch): change string to const
...
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2019-01-19 16:52:47 +08:00
Kevin Atkinson
f31e6b6191
Change --force-cid-base to --upgrade-cidv0-in-output.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2019-01-17 15:54:43 -05:00
Kevin Atkinson
57457af7d2
Change --output-cidv1 to --force-cid-base.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2019-01-17 15:54:43 -05:00
Kevin Atkinson
8209ba6156
Don't use ParsePath in extractCidString.
...
ParsePath does not preserve the multibase.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2019-01-17 15:54:43 -05:00
Kevin Atkinson
b22275fb66
Add global --cid-base option and enable it for most commands.
...
This does it on ther server side for most commands.
This also adds a global --output-cidv1 option.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2019-01-17 15:54:32 -05:00
Kevin Atkinson
5512ad53c4
Gx update go-cidutil.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2019-01-17 14:49:47 -05:00
Steven Allen
de0bbb00e2
Merge pull request #5926 from ipfs/fix/coreapi-test-checks
...
coreapi: Adjust some tests for go-ipfs-http-api
2019-01-17 18:36:08 +00:00
Steven Allen
8cadfc465a
Merge pull request #5928 from fsdiogo/chore/update-to-webui-v2.3.3
...
chore: update to Web UI v2.3.3
2019-01-17 18:34:28 +00:00
Łukasz Magiera
3b5c0712f9
ls: dummy value in place of size for dirs
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-17 18:04:16 +00:00
Łukasz Magiera
39c2e0126d
ls: skip size for directories
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-17 18:04:16 +00:00
Łukasz Magiera
e63c06c89d
ls: report real size by default
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-17 18:04:16 +00:00
Łukasz Magiera
6bb02a59c0
ls: option to report real file size
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-17 18:04:16 +00:00
Diogo Silva
e935daa382
chore: update to Web UI v2.3.3
...
License: MIT
Signed-off-by: Diogo Silva <fsdiogo@gmail.com>
2019-01-16 13:14:32 +00:00
Łukasz Magiera
b819e3e94b
coreapi: adjust some tests for go-ipfs-http-api
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-15 19:13:01 +01:00
Daniel Aleksandersen
745f82e0f9
Clarify that chunker sizes are in bytes
...
Clarify that the Rabin fingerprint chunker is in bytes, and recommend
using larger chunk sizes than shown in the provided examples.
People are getting confused over chunker sizes and incorrectly assuming
they're in kiB and not bytes.
License: MIT
Signed-off-by: Daniel Aleksandersen <code@daniel.priv.no>
2019-01-13 06:13:54 +01:00
Łukasz Magiera
eb23c90031
coreapi: replace coreiface.DagAPI with ipld.DAGService
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-12 16:05:02 +01:00
Hector Sanjuan
ab270fbaa7
Bubble go-ipfs-cmds 2.0.10
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2019-01-10 21:31:11 +01:00
Steven Allen
1e9a638af0
Merge pull request #5907 from ipfs/gx/update
...
gx: update deps
2019-01-09 17:37:10 -08:00
Steven Allen
1b5c71f5a0
Merge pull request #5899 from fsdiogo/chore/update-to-webui-v2.3.2
...
feat: update to Web UI v2.3.2
2019-01-08 19:53:17 -08:00
Steven Allen
489786a53f
files: update for MFS changes
...
1. Update to use the new `Open` function.
2. Use `Flush()` instead of `Sync()` as sync was removed as useless (this should
have been calling `Flush()` all along).
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-08 19:46:37 -08:00
Steven Allen
08cc5da55f
gx: update deps
...
Importantly:
* fixes a bunch of MFS bugs
* pulls in some bitswap improvements
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-08 19:19:34 -08:00
Łukasz Magiera
81a2ffc407
CoreAPI: Don't panic when testing incomplete implementions
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-08 13:38:23 -08:00
Steven Allen
42a15ba7e4
Merge pull request #5893 from ipfs/fix/gateway-headers
...
gateway: fix CORs headers
2019-01-08 13:25:08 -08:00
Steven Allen
a142aecf9b
Merge pull request #5649 from ipfs/feat/gateway-nofetch
...
Local Gateway option
2019-01-07 10:06:08 -08:00
Diogo Silva
94de5d551f
feat: update to Web UI v2.3.2
...
License: MIT
Signed-off-by: Diogo Silva <fsdiogo@gmail.com>
2019-01-07 14:24:23 +00:00
Łukasz Magiera
818e0e40c7
gateway: cleanup err switch
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-05 22:29:46 +01:00
Steven Allen
65fc4b45e9
gateway index: fix check for displaying CID.
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-05 11:16:17 -08:00
Jack Loughran
9ef1486307
show hash if not in original url
...
Change the template handler to pass the hash to the directory listing template if the original url doesn't contain the hash. The directory listing template will display the hash in grey under the original url if the hash is passed to it.
License: MIT
Signed-off-by: Jack Loughran <j@ckloughran.com>
2019-01-05 11:16:17 -08:00
Steven Allen
4bbf4cc9a0
gateway, api: canonicalize headers from user config
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-04 13:18:16 -08:00
Steven Allen
82629c00ec
gateway: fix CORs headers
...
fixes #5138 -- always add user-agent to access-control-allow-headers.
fixes #5888 -- same with content-type.
fixes #5892 -- extend user-provided headers instead of overriding them.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-04 13:18:03 -08:00
Steven Allen
543be29796
api: let the CORs library handle CORs headers
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-04 11:18:24 -08:00
Łukasz Magiera
c9168ecf05
gateway: use Api.FetchBlocks for NoFetch
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-04 15:56:08 +01:00
Łukasz Magiera
2c28ef19ae
coreapi: FetchBlocks option
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-04 15:40:15 +01:00
Łukasz Magiera
6cee21d39a
Fix offline gateway directory logic
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-04 02:39:17 +01:00
Łukasz Magiera
aa5daed3cb
NoFetch gateway option
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-04 02:37:06 +01:00
Łukasz Magiera
7b4ab36817
gx: update go-ipfs-config
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-04 02:37:06 +01:00
Steven Allen
821c36c0b1
Merge pull request #5865 from ipfs/feat/coreapi-tests
...
Move coreapi tests to the interface
2019-01-03 16:55:35 -08:00
Łukasz Magiera
1f479aa54c
Move checkHelptextRecursive forward a bit
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-03 22:48:53 +01:00
Łukasz Magiera
44fc750c7e
coreapi: don't panic as much in tests
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-03 22:18:58 +01:00
Łukasz Magiera
cf043b900b
coreapi: make sure to cancel context in tests
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-03 22:17:14 +01:00
Łukasz Magiera
94724fdaf8
coreapi: Interface for external test providers
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-03 22:17:14 +01:00
Łukasz Magiera
5a019ba713
coreapi: run tests from interface
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-03 22:17:14 +01:00
Łukasz Magiera
e0e2c707e0
coreapi: move tests to interface subpackage
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-03 22:17:14 +01:00
Łukasz Magiera
ac529e75ce
coreapi: don't touch IpfsNode in tests
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-03 22:17:14 +01:00
Steven Allen
d06cf14f8e
Merge pull request #5854 from ipfs/fix/coreapi/addeventpath
...
coreapi/unixfs: Use path instead of raw hash in AddEvent
2019-01-02 16:00:36 -08:00
Łukasz Magiera
85772fcd54
Fix name resolve --offline
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-02 11:58:31 -08:00
Łukasz Magiera
24e317603a
coreapi/unixfs: Use path instead of raw hash in AddEvent
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-30 03:11:40 +01:00
Łukasz Magiera
b977f83f1c
gx: update progress bar
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-23 17:26:44 +01:00
Steven Allen
56b6277d26
fix config data race
...
This fixes a data-race in the config.
This does not fix https://github.com/ipfs/go-ipfs/issues/4942 as there's still a
logical race: parallel config updates clobber each other.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-20 10:07:37 -08:00
Steven Allen
5894291139
gx: update go-ipfs-config
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-20 10:07:32 -08:00
Łukasz Magiera
3f0945a1bd
coreapi: move DefaultIpnsCacheSize to a const
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 17:02:11 +01:00
Łukasz Magiera
6044d2ae89
coreapi offline: Address review
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 16:41:16 +01:00
Łukasz Magiera
190728f04a
coreapi: update for always loaded privkey
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 16:41:16 +01:00
Łukasz Magiera
a39c29933a
commands: don't use -O as global offline
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 16:41:16 +01:00
Łukasz Magiera
2dceb09258
commands: deprecate --local for --offline
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 16:41:16 +01:00
Łukasz Magiera
47a46393cf
coreapi WithOptions: apply on top of parent options
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 16:40:51 +01:00
Łukasz Magiera
2c2f9f2bed
coreapi: implement --local with Offline option
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 16:40:51 +01:00
Łukasz Magiera
6e18a6b857
coreapi: drop nameopt.Local in favour of api.Offline
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 16:40:09 +01:00
Łukasz Magiera
50aea07257
coreapi.WithOptions
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 16:40:09 +01:00
Łukasz Magiera
c832a32a4c
coreapi: global offline option
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 16:40:09 +01:00
Łukasz Magiera
3183b1cb8e
coreapi: Untangle from core.IpfsNode
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 16:40:09 +01:00
Łukasz Magiera
6e90367696
coreapi: Global options for api constructor
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 16:40:09 +01:00
Łukasz Magiera
a2f15faa4c
files2.0: address review
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 13:52:20 +01:00
Łukasz Magiera
1fe28bc658
files2.0: split adder.addFile into subtyped functions
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 13:52:20 +01:00
Łukasz Magiera
a92a174526
files2.0: return errors from ufsIterator properly
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 13:52:20 +01:00
Łukasz Magiera
351ed26bd8
files2.0: common single-file helper
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 13:52:20 +01:00
Łukasz Magiera
eed806a58b
files2.0: refactored helpers
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 13:52:20 +01:00
Łukasz Magiera
ff42aa50d0
files2.0: Call close in adder
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 13:52:20 +01:00
Łukasz Magiera
b85ecb848a
files2.0: Use new type helpers
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 13:52:20 +01:00
Łukasz Magiera
5ff5e48fbe
files2.0: return the right error in dag put
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 13:52:20 +01:00
Łukasz Magiera
b10e718ab4
files2.0: no error from Entries
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 13:52:20 +01:00
Łukasz Magiera
adc7490755
files2.0: updates for file type split
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 13:52:20 +01:00
Łukasz Magiera
a43f2f85b8
files2.0: fix AddPosInfo test
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 13:52:20 +01:00
Łukasz Magiera
b8a773da0a
files2.0: Rebase gx fixes
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 13:52:20 +01:00
Łukasz Magiera
a96b370ee2
files2.0: Fix coreapi.unixfs.Add tests
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 13:52:20 +01:00
Łukasz Magiera
ce952a5641
files2.0: fix build errors
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 13:52:20 +01:00
Łukasz Magiera
0618fd77be
gx: update go-ipfs-files to 2.0
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 13:52:20 +01:00
Steven Allen
0c14f866f1
gx: update pubsub, connmgr, and flatfs
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-18 21:44:28 -08:00
vyzo
67a6b1454f
remove host parameter from StartOnlineServicesWithHost
...
PeerHost is now initialized before calling it.
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2018-12-18 11:30:59 -08:00
vyzo
30e4cc9d91
explicitly enable autorelay
...
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2018-12-18 11:30:59 -08:00
vyzo
38da46e4a4
gx update go-libp2p-autonat-svc
...
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2018-12-18 11:30:59 -08:00
vyzo
2969c8877d
add support for QUIC in autonat service
...
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2018-12-18 11:30:59 -08:00
vyzo
19ab1248eb
instantiate autonat service
...
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2018-12-18 11:30:59 -08:00
vyzo
b514820f21
gate autorelay with config option
...
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2018-12-18 11:30:59 -08:00
vyzo
b14907b794
use libp2p.Routing in constructor for routing host construction and autorelay
...
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2018-12-18 11:30:59 -08:00
Steven Allen
55c232fc72
commands: return a helpful error when the daemon is offline
...
fixes #3415
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-18 11:28:29 -08:00
Diogo Silva
58694cb67e
feat: update Web UI to v2.3.0
...
License: MIT
Signed-off-by: Diogo Silva <fsdiogo@gmail.com>
2018-12-18 18:26:27 +00:00
Steven Allen
d0c27272ad
Merge pull request #5844 from ipfs/feat/always-load-key
...
startup: always load the private key
2018-12-13 15:48:50 -08:00
Steven Allen
58292f75ff
assert private key available in online mode
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-13 12:01:45 -08:00
Steven Allen
2eafa3f3ca
startup: always load the private key
...
Loading this at the last minute means we need a bunch of special cases
in *every* command that needs routing, namesys, or even the public key.
If we ever have a case where we don't want to do this, we can add an option to
the (eventual) IPFS constructor. Handling this up-front is going to be
significantly less error prone.
Motivation: https://github.com/ipfs/go-ipfs/pull/5825/files#diff-fe35ea64d478c4f3fb767a3f618e5d01R863
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-13 11:48:55 -08:00
Dominic Della Valle
5a02b98702
add --dereference-args parameter
...
License: MIT
Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
2018-12-12 16:35:42 -08:00
Steven Allen
90926ca5c7
gx: update go-ipfs-cmds
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-12 16:35:42 -08:00
Steven Allen
cb57105dfa
Merge pull request #5834 from ipfs/feat/urlstore-pin
...
add pinning support to the urlstore
2018-12-12 10:39:17 -08:00
Steven Allen
e18328b5fe
Merge pull request #5836 from chenminjian/refact/cmd/cat
...
refact(cmd/cat): remove useless code
2018-12-11 09:38:51 -08:00
Steven Allen
25a0db4f69
add pinning support to the urlstore
...
fixes #5833
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-10 18:30:14 -08:00
Steven Allen
508f307c35
Merge pull request #5827 from ipfs/gx/update-peer-id
...
gx: update go-libp2p-peer
2018-12-10 11:57:16 -08:00
chenminjian
1c94a62c48
refact(cmd/cat): remove useless code
...
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-12-10 19:12:22 +08:00
Overbool
740110e72a
block: rm extra output
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-12-07 15:58:03 -08:00
Steven Allen
6cec0b1611
fix ed25519 test(s)
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-07 15:51:28 -08:00
Steven Allen
9dcec2b3e2
gx: update go-libp2p-peer
...
Reverts the changes that allowed small keys (ed25519 keys) to be inlined.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-07 15:37:23 -08:00
Łukasz Magiera
c0a1e80f36
p2p: report-peer-id option for listen
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-11-29 20:49:17 -08:00
Steven Allen
2d94a3ffc8
Merge pull request #5526 from cboddy/feat/http_proxy_over_p2p
...
[http_proxy_over_p2p]
2018-11-29 20:15:32 -08:00
Kevin Atkinson
b1ecb82172
coreapi/pin: Use CID's directly in maps instead of converting to strings.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-11-29 17:13:26 -05:00
Dr Ian Preston
8694984992
Add another test case for invalid p2p http proxy path
...
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
9956630e0c
add more p2p http proxy tests
...
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Hector Sanjuan
3b2ce4a85d
Apply suggestions from code review
...
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
Co-Authored-By: ianopolous <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Steven Allen
b720d1f0b5
uses the global PeerHost and don't expose the P2P one
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
47d45c7af8
fix tests
...
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
fd43f473b4
switch to new path format in p2p http proxy
...
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
13b0483df0
Don't url decode protocol name. It won't work.
...
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Chris Boddy
3f6b866edc
[http_proxy_over_p2p] url-decode the proxy name and fix test
...
License: MIT
Signed-off-by: Chris Boddy <chris@boddy.im>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
654105a210
fix test
...
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Hector Sanjuan
42a843d66b
Fix request path. Wasn't using proxy correctly
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-11-28 23:17:27 -08:00
Hector Sanjuan
91c919a47e
Fix test
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-11-28 23:17:27 -08:00
Hector Sanjuan
2cc1a99566
Let URL's host take precedence
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-11-28 23:17:27 -08:00
Hector Sanjuan
f03efbd200
Use go-libp2p-http
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
d30c41a5e0
Improve p2p stream closing in http proxy
...
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
6e24fc609a
Use request context in p2p stream http proxy
...
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
c67d2b4186
Remove unnecessary pointer usage.
...
Make sure the p2p stream is closed eventually
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
f052d18471
fix non empty paths in p2p http proxy
...
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:26 -08:00
Chris Boddy
90f5bad718
[http_proxy_over_p2p] proxy async.
...
Simultaneously send request-body while reading response-body when
proxying requests.
License: MIT
Signed-off-by: Chris Boddy <chris@boddy.im>
2018-11-28 23:17:26 -08:00
Chris Boddy
5f246e3211
[http_proxy_over_p2p] httputil.ReverseProxy
...
Reimplement http-request proxying ala httputil.ReverseProxy.
NB: this is proxies the request synchronously (sends all request-body
before reading any response).
License: MIT
Signed-off-by: Chris Boddy <chris@boddy.im>
2018-11-28 23:17:26 -08:00
Chris Boddy
335bca2bb7
[http_proxy_over_p2p] remove now superfluous test
...
License: MIT
Signed-off-by: Chris Boddy <chris@boddy.im>
2018-11-28 23:17:26 -08:00
Dr Ian Preston
22f3b11621
change handler mount point to /proxy/http/
...
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:26 -08:00
Chris Boddy
1945e44f7f
[http_proxy_over_p2p] Add sharness tests for http-proxy-over-p2p
...
License: MIT
Signed-off-by: Chris Boddy <chris@boddy.im>
2018-11-28 23:17:26 -08:00
Chris Boddy
c862ac1fb4
[http_proxy_over_p2p] more tests, fix build
...
License: MIT
Signed-off-by: Chris Boddy <chris@boddy.im>
2018-11-28 23:17:26 -08:00
Kevin Atkinson
feb4808975
Gx update go-merkledag and related deps.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-11-28 17:21:36 -05:00
Overbool
a7485994d7
cmds: rm old lib
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-27 20:43:41 -08:00
Steven Allen
cef645936d
gx: update go-ipfs-config
...
* AutoRelay options for #5785 .
* Badger truncate-by-default option for #5275 , #5625 .
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-26 17:42:13 -08:00
Steven Allen
b7a48531b7
Merge pull request #5611 from ipfs/features/streaming-ls-5600
...
Add --stream option to `ls` command
2018-11-20 23:42:22 -08:00
hannahhoward
f5ab6a3f5e
refactor(commands): cleanup makeDagNodeLinkResults
...
License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
2018-11-19 16:46:10 -08:00
Jeromy
da4674f0b9
Switch to using request.Context()
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-11-18 16:11:43 -08:00
hannahhoward
b0dc73c45f
fix(commands): Use post-run to remove flag
...
License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
2018-11-16 15:06:54 -08:00
hannahhoward
be4c4abcc2
chore(commands): Mark feature as experimental
...
License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
2018-11-16 14:55:08 -08:00
Łukasz Magiera
7391cfd421
fix(commands): reduce complexity w/ typed encoder
...
uses single flag to support state needed by PostRun
supports encoding=text
License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
2018-11-16 14:53:08 -08:00
hannahhoward
20b928094c
fix(commands): Add sharness tests for streaming
...
Also fixes issues discovered with sharness tests
License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
2018-11-16 14:52:29 -08:00
hannahhoward
5672ae6bbb
fix(commands): Refactor to use a PostRun
...
Removes flags on LSOutput
License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
2018-11-16 14:51:29 -08:00
hannahhoward
ef6e9cf283
feat(commands): --stream option for ls
...
Convert LS Command to use current cmds lib
Update LS Command to support streaming
Rebase fixes
License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
2018-11-16 14:30:42 -08:00
hannahhoward
0963c9cdcb
Update go-ipfs-delay and assoc deps
...
License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
2018-11-15 18:53:45 -08:00
Daniel Mack
45b34e2bcb
bootstrap: check for presence of bootstrap nodes earlier
...
Rather than checking for the presence of bootstrap nodes on each iteration
of the deferred function, do the check at initialization time and report an
error immediately.
License: MIT
Signed-off-by: Daniel Mack <daniel@zonque.org>
2018-11-12 22:45:47 +01:00
Steven Allen
a88cd82a70
Merge pull request #5760 from overbool/refactor/cmds/encoder
...
cmds: use MakeTypedEncoder
2018-11-10 10:11:26 -08:00
Overbool
f4976e6b4e
cmds/bitswap: sort wantlist
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-10 12:19:15 +08:00
Overbool
51fa833fda
cmds: use MakeTypedEncoder
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-10 12:11:45 +08:00
Overbool
5002d59d8c
cmds/update: use new cmds lib
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-09 11:14:48 -08:00
Overbool
cd108a0f88
cmds/file: use new cmds lib
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-09 09:26:52 +08:00
Overbool
57b0c0f792
cmds: remove reduntant func
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-08 15:21:50 +08:00
Steven Allen
98f6b2f684
Merge pull request #5679 from overbool/refactor/commands/refs
...
commands/refs: use new cmds
2018-11-07 13:57:56 -08:00
Steven Allen
5c15857e33
pin: handle progress in post-run, everything else in the encoder
...
Otherwise, we break the HTTP API (slightly).
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-07 13:19:15 -08:00
Overbool
62ce03ed14
cmds/pin: use PostRun in pin add
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-07 13:19:15 -08:00
Overbool
52cd246c04
cmds/pin: use EmitOnce for single value
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-07 13:19:15 -08:00
Overbool
1e7149cd00
commands/pin: fix gofmt and block
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-07 13:19:15 -08:00
Overbool
6fc049b59f
commands/pin: use new cmds lib
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-07 13:19:15 -08:00
Steven Allen
901e9fb955
Merge pull request #5678 from overbool/refactor/commands/bootstrap
...
commands/boostrap: use new cmds
2018-11-07 11:56:09 -08:00
chenminjian
fcea632b3d
fix(cmd/add): progressbar output error when input is read from stdin
...
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-11-07 07:52:15 -08:00
Overbool
bc4a9ef7c2
cmds/bootstrap: use EmitOnce directly
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-07 17:14:56 +08:00
Overbool
bde95077c7
commands/boostrap: use new cmds
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-07 17:03:34 +08:00
Overbool
bb236cf5ad
cmds/refs: use emit directly
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-07 16:58:36 +08:00
Overbool
30c6dd9bc1
cmds/refs: remove redundant func
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-07 16:49:16 +08:00
Overbool
bd5be7efc8
commands/refs: drop goroutine
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-07 15:22:49 +08:00
Overbool
204a53247c
commands/refs: use new cmds
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-07 15:22:49 +08:00
Overbool
0afbafdeaf
cmds: use w.Write directly
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-06 13:06:11 -08:00
Overbool
2c48466630
commands: use EmitOnce for single object
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-06 13:06:11 -08:00
Overbool
46902e98e2
commands: use io.Writer in tabwriter
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-06 13:06:11 -08:00
Overbool
d26f97a902
fix(cmd/diag): inorder output
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-06 13:06:11 -08:00
Overbool
35959d623b
refactor(cmds): use new cmds lib in log
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-06 13:06:11 -08:00
Overbool
27bc0ecc2e
refactor(cmds): use new cmds lib in mount
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-06 13:06:11 -08:00
Overbool
b1efb997bf
refactor(cmds): use new cmds lib in config
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-06 13:06:11 -08:00
Overbool
b2badfbb06
refactor(cmds): use new cmds lib in diag
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-06 13:06:11 -08:00
Overbool
b4b6fc6906
cmds/filestore: use PostRun in verify
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-06 12:56:15 -08:00
Overbool
c43658621d
commands/filestore: print StatusOtherError error
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-06 12:56:15 -08:00
Overbool
2462bf913a
commands/filestore: use res.Emit directly
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-06 12:56:15 -08:00
Overbool
013de54d98
commands/filestore: fix gofmt
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-06 12:56:15 -08:00
Overbool
dfde39151f
commands/filestore: use new cmds lib
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-06 12:56:15 -08:00
Overbool
73fef489f5
commands/bitswap: use cmds.EmitOnce in single value
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-05 15:55:04 -08:00
Overbool
c5b44ded40
commands/bitswap: use new cmds lib
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-05 15:55:04 -08:00
Steven Allen
254dda2823
Merge pull request #5677 from chenminjian/refact/cmd/repo
...
refact(cmd/repo): repo's sub cmds uses new cmd lib
2018-11-05 08:42:49 -08:00
chenminjian
ff27f9f112
refact(cmd/repo): normalize fsck cmd name
...
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-11-03 17:12:49 +08:00
chenminjian
5afa7ebfdc
refact(cmd/repo): repo verify uses new cmd lib
...
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-11-03 17:12:32 +08:00
chenminjian
f7b6ee3c87
refact(cmd/repo): repo fsck and repo version uses new cmd lib
...
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-11-03 17:04:44 +08:00
Steven Allen
5c5b03ea31
Revert "Merge pull request #5708 from ipfs/fix/log-ndjson"
...
This reverts commit f0bf99361e , reversing
changes made to d5c8fa50c8 .
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-02 21:17:22 -07:00
Steven Allen
0d80fc54c3
gx: update go-log and sha256
...
fixes #5709
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-02 21:17:20 -07:00
chenminjian
17e7892036
enhance(cmd/verify): add goroutine count to improve verify speed
...
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-11-02 13:30:12 -07:00
Steven Allen
ec9fac7379
gx: update go-ipld-cbor
...
(might as well do this at the same time)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-02 13:17:44 -07:00
hannahhoward
943a5de974
Update go-mfs and go-unixfs
...
So we can get go-unixfs v1.2.0
License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
2018-11-02 13:16:56 -07:00
Steven Allen
f659eec3d9
Merge pull request #5719 from chenminjian/fix/cmd/version
...
fix(flag/version): flag `all` should have a higher priority
2018-11-02 13:13:02 -07:00
Overbool
488db7d2f2
commands/p2p: use cmds.EmitOnce in single value
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 12:06:26 -07:00
Overbool
7292c1da23
commands/p2p: use new cmds lib
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 12:06:26 -07:00
Overbool
4a2c3cb3cf
commands/dht: use res.Emit directly
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 11:14:14 -07:00
Overbool
7e7a04e21f
commands/dht: use new cmds lib
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 11:14:14 -07:00
Overbool
e1d1f68f08
commands/object: use cmds.EmitOnce in single value
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 11:06:32 -07:00
Overbool
0fe7bdfce9
commands/object: add comment
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 11:06:32 -07:00
Overbool
df58a2d617
commands/object: fix object diff option error
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 11:06:32 -07:00
Overbool
677c953dc4
commands/object: use new cmds
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 11:06:32 -07:00
Overbool
f37553f065
commands/files: use cmds.EmitOnce in single value
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 09:46:14 -07:00
Overbool
546d3bed5a
commands/files: can't get flush option
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 09:46:14 -07:00
Overbool
efa280c531
commands/files: use MakeTypedEncoder
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 09:46:14 -07:00
Overbool
b80589f98e
commands/files: use new cmds
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 09:46:14 -07:00
chenminjian
6f219e0d8f
fix(flag/version): flag all should have a higher priority
...
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-11-02 19:30:09 +08:00
Overbool
bf15999c02
cmds/env: add a config path helper
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 10:10:28 +08:00
Steven Allen
0d56a486c0
Merge pull request #5706 from ipfs/fix/4132
...
fix prometheus concurrent map write bug
2018-10-31 08:00:57 -07:00
Steven Allen
bf69017e25
metrics: we're now recording latency seconds, not microseconds
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-31 05:12:35 -07:00
Steven Allen
16d70eac32
add a todo to remember to remove log reformatting
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-31 04:53:57 -07:00
Steven Allen
68ac5170f1
re-format log output as ndjson
...
Apparently, js-ipfs-api expects this. Really, I'm not sure why js-ipfs-api even
cares about this endpoint but that's a different issue.
The real fix is to change back to ndjson in go-log but that would force us to
update every package (not good when we're trying to push out a release like
this).
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 17:26:49 -07:00
Steven Allen
4674f19913
fix prometheus concurrent map write bug
...
fixes #4132
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 15:38:49 -07:00
Steven Allen
d5c8fa50c8
Merge pull request #5705 from ipfs/fix/resolve-non-terminal
...
error on resolving non-terminal paths
2018-10-30 13:13:34 -07:00
Steven Allen
126d996f60
resolve: restore error message
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 13:02:55 -07:00
Steven Allen
37f33812ae
error on resolving non-terminal paths
...
This isn't the *correct* fix but it (mostly) restores the previous behavior.
Note 1: It *also* fixes resolution of `/ipld` paths by avoiding `path.FromCid`.
Note 2: This does not preserve the error. That was a DagCBOR specific error that
has nothing to do with the issue.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 12:34:32 -07:00
Steven Allen
d98351720a
fix expected error message in gateway test
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 10:36:16 -07:00
Steven Allen
af53380e8c
gx: update go-path
...
fixes the changed path cat error causing the js-ipfs-api tests to fail
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 09:27:41 -07:00
Steven Allen
018265940c
Merge pull request #5626 from ipfs/feat/impoter-batching
...
Explicitally use BufferedDAG after removing Batch from importers
2018-10-30 09:24:57 -07:00
Steven Allen
e37b252c0c
coreapi: fix errisdir
...
JavaScript expects this to be "this dag node is a directory". I'm almost of a
mind to say "don't parse errors" but, well, we don't give any better
alternatives.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 08:48:49 -07:00
Steven Allen
8543e27e0d
Merge pull request #5699 from ipfs/fix/pin-ls-output
...
Fix pin ls output when hash is specified
2018-10-30 07:52:19 -07:00
Łukasz Magiera
08d6e7844a
fix pin ls output when hash is specified
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-30 15:26:18 +01:00
Steven Allen
3d28165c94
Merge pull request #5698 from ipfs/fix/libp2p-ping
...
ping: switch to the ping service enabled in the libp2p constructor
2018-10-30 07:22:59 -07:00
Steven Allen
cc0d6d7338
ping: switch to the ping service enabled in the libp2p constructor
...
We now configure the ping service in go-libp2p by default. Instead of creating a
new (duplicate) ping service, we can now just (a) rely on this to handle
incoming pings and (b) use the "Ping" function to ping peers.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 06:57:41 -07:00
Steven Allen
e332af8ed5
commands: fix a bunch of tiny commands-lib issues
...
* Always check errors returned by emit. Otherwise, we may not notice when the
client goes away.
* Make sure to use EmitOnce instead of Emit when appropriate. Otherwise, we
break javascript.
(thanks Magik6k for finding this before we cut the release...)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 06:49:08 -07:00
Steven Allen
f8375ec79c
Merge pull request #5680 from ipfs/fix/cleanup-ping
...
cleanup the ping command
2018-10-30 06:42:52 -07:00
Hector Sanjuan
8709e55b85
Add batching when Adding.
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-10-29 18:49:37 +01:00
Hector Sanjuan
ef7234d269
Bubble deps
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-10-29 18:49:37 +01:00
Steven Allen
5fef0286e0
Merge pull request #5688 from ipfs/gx/update-pubsub
...
gx: update pubsub
2018-10-29 08:01:48 -07:00
Steven Allen
4227214239
gx: update pubsub
...
fixes a critical performance issue in the gossipsub pubsub router
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-29 06:34:39 -07:00
chenminjian
78d878e253
fix(cmd/gc): Run func does not return error when Emit func returns error
...
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-10-29 15:49:14 +08:00
Steven Allen
b8f535567f
simplify ping.ParsePeerParam
...
We now *have* p2p multiaddrs.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-28 05:38:24 -07:00
Steven Allen
b870e8c6d1
cleanup and improve ping
...
1. Use emit directly.
2. Abort immediately when the context is canceled (no need to wait a second for
the sleep to elapse).
3. Ping once a second instead of once a second +TTL (to be more like ping)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-28 05:38:22 -07:00
Steven Allen
b25c14f2e9
Merge pull request #5675 from overbool/refactor/commands/ping
...
commands/ping: use new cmds lib
2018-10-27 05:38:25 -07:00
Steven Allen
a0c0355dd5
fix pin-lock in dag put
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-27 05:29:39 -07:00
Steven Allen
b8d7d25569
remove dead code
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-27 05:28:51 -07:00
Steven Allen
64a517afed
simplify dag add
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-27 05:28:51 -07:00
Overbool
cec3af28ca
commands/ping: use new cmds lib
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-27 12:37:10 +08:00
Dominic Della Valle
38cae95f30
gx: update go-ipfs-cmds to 2.0.5
...
License: MIT
Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
2018-10-26 19:50:32 -04:00
Steven Allen
96334bb073
Merge pull request #5660 from ipfs/fix/resolve-paths
...
namesys: properly attach path in name.Resolve
2018-10-26 16:34:54 -07:00
Łukasz Magiera
f4e5625b2f
namesys: properly attach path in name.Resolve
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-27 00:10:36 +02:00
Steven Allen
223a0606c1
Merge pull request #5662 from overbool/refactor/commands/dag
...
cmds/dag: use new cmds lib
2018-10-26 12:53:55 -07:00
Steven Allen
3accb7bebd
Merge pull request #5650 from overbool/refactor/new-cmds-lib
...
refactor(cmds): use new cmds lib in version, tar and dns
2018-10-26 11:21:22 -07:00
Steven Allen
90d8cff390
Merge pull request #5638 from rcarver/fix/cmds/rm-link
...
object patch rm-link: change arg from 'link' to 'name'
2018-10-26 11:16:39 -07:00
Overbool
4160eaa637
refactor(cmds): use new cmds lib in tar, dns
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-27 01:48:40 +08:00
Overbool
9611d5f310
refactor(cmds): replace MakeEncoder with MakeTypedEncoder
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-27 01:47:37 +08:00
Overbool
40a1c75759
refactor(cmds): use new cmds lib in version
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-27 01:47:37 +08:00
Overbool
d31e92b446
cmds/dag: use new cmds lib
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-27 01:40:28 +08:00
Steven Allen
37f0fd92c7
gx: update go-ipfs-cmds
...
(no code changes)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-26 09:26:53 -07:00
Steven Allen
5b26444052
gx: update pubsub (again)
...
Small patch to mark gossipsub peers as wanted so we don't prune them.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-26 05:57:43 -07:00
Steven Allen
bf1aeaceb9
Merge pull request #5647 from ipfs/feat/pubsub-signing
...
configurable pubsub signing
2018-10-26 04:13:31 -07:00
Steven Allen
2b0bc7e084
configurable pubsub singing
...
I'd like to sneak this into the release so we can turn on strict verification
ASAP.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-26 04:00:44 -07:00
Overbool
74e1aaf17c
fix(core): ipns config RecordLifetime panic
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-26 07:58:46 +08:00
Steven Allen
00a4b38f61
Merge pull request #5646 from overbool/refactor/commands/id
...
refactor(commands/id): use new command
2018-10-25 11:26:30 -07:00
Overbool
2fe969a26a
refactor(commands/id): use new command
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-26 01:11:11 +08:00
Steven Allen
a561eca7ec
remove p2p-circuit addr hack in ipfs swarm peers
...
We used to have to do this as these addresses had `/ipfs/QmId` appended at
the *transport* layer. However, we were able to remove this with the transport
refactor so we can now remove this check.
fixes https://github.com/libp2p/specs/issues/72
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-25 09:15:52 -07:00
Steven Allen
7ecd6756b4
Merge pull request #5642 from chenminjian/refact/command/root
...
refact(command): replace option name with const string
2018-10-25 03:45:02 -07:00
chenminjian
2f008d47cd
refact(command): replace option name with const string
...
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-10-25 15:13:18 +08:00
Steven Allen
e35d4ea58b
gx: update yamux
...
(fixes a panic due to a race)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-24 15:01:31 -07:00
Steven Allen
636bbc7e2b
gx update go-libp2p
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-24 13:39:48 -07:00
Steven Allen
4d956d2ba9
update for changed relay defaults
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-24 13:39:39 -07:00
Ryan Carver
6aa8525f6e
object patch rm-link: change arg from 'link' to 'name'
...
This improves the semantics of rm-link to be consistent with add-link,
clarifying that you should specify the link name as the thing to remove.
License: MIT
Signed-off-by: Ryan Carver <ryan@ryancarver.com>
2018-10-24 10:09:19 -07:00
Steven Allen
e41ac96207
switch to new raceless routing event interface
...
fixes #5616
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-24 10:00:22 -07:00
Steven Allen
c97c3459be
gx update
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-24 09:59:43 -07:00
Steven Allen
efa282d46e
update for pubsub rename
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-24 09:42:43 -07:00
chenminjian
64cdabc88f
feat: stop apply command exposing private key over HTTP API
...
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-10-24 05:46:00 -07:00
chenminjian
2e3cbe3e27
feat: add dry-run flag for config profile apply command
...
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-10-24 05:46:00 -07:00
Overbool
4e260775b2
docs: add a note for dns command
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-23 13:09:28 +08:00
Steven Allen
caffa59183
Merge pull request #5627 from ipfs/feat/update-webui-2.1.0
...
update webui to 2.1.0
2018-10-23 00:57:09 +01:00
Łukasz Magiera
519c67a00c
coreapi unixfs: gw handler cleanup
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-23 01:14:51 +02:00
Łukasz Magiera
838aeb9b89
coreapi unixfs: docs for getSession, use api.dag
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-23 01:13:35 +02:00
Łukasz Magiera
a4cb06027a
coreapi unixfs: use session for resolving too
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-22 23:39:26 +02:00
Łukasz Magiera
faf5230e69
coreapi unixfs: Return seeker from get
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-22 23:38:47 +02:00
Łukasz Magiera
7915d26090
coreapi unixfs: fix Get seeking in gateway
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-22 23:37:45 +02:00
Łukasz Magiera
34b1313d82
coreapi unixfs: remove Cat, use sessions
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-22 23:37:45 +02:00
Steven Allen
c430e53a17
update webui to 2.1.0
...
This brings us on-par with js-ipfs.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-22 09:22:21 -07:00
Steven Allen
dd4d8bb25e
Merge pull request #5529 from overbool/fix/issue-#5523
...
fix(p2p): issue #5523
2018-10-18 19:33:44 +01:00
Steven Allen
f6c6327c63
Merge pull request #5612 from overbool/refactor/use-int64
...
refactor(command): modify int to int64
2018-10-18 19:26:38 +01:00
Steven Allen
def2147c48
update the webui
...
Because the current one is *so* broken it's not worth waiting for an actual
release.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-18 19:05:11 +01:00
Overbool
ff6f16c939
refactor(command): modify int to int64
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-18 23:44:14 +08:00
Steven Allen
7de79280bb
Merge pull request #5404 from ipfs/feat/namestream
...
ipfs name resolve --stream
2018-10-18 15:55:16 +01:00
Steven Allen
084c7d1646
Merge pull request #5605 from overbool/feat/add-slash-in-files-ls
...
fix(files): add slash for dir
2018-10-18 15:53:17 +01:00
Łukasz Magiera
16e6343abe
Merge remote-tracking branch 'origin/master' into feat/namestream
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-18 12:26:20 +02:00
Łukasz Magiera
59e5a9c652
gx: update to use extracted go-ipfs-files
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-18 10:16:31 +02:00
Łukasz Magiera
e335fd32f2
namesys: drop prefix args
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-16 16:35:31 +02:00
Overbool
e9d6c060ef
fix(files): add slash for dir
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-16 22:15:04 +08:00
Łukasz Magiera
7dbeb27e5b
namesys: review fixes
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-16 16:09:55 +02:00
Łukasz Magiera
94bbeffaa9
Merge remote-tracking branch 'origin/master' into feat/namestream
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-15 12:05:03 +02:00
Steven Allen
bf2d7cb2bd
fix infinite loop in stats bw
...
"break" just breaks from the select, this loops infinitely (fast).
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-13 21:22:48 +01:00
Steven Allen
4f53736430
gx: update yamux and refmt
...
* yamux: fix memory leak.
* refmt: obey the "empty" tag.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-12 16:15:40 +01:00
Steven Allen
8117a2bcee
gx: update go-buffer-pool
...
Turns out that `pool.Put(buf)` had to *allocate* because we needed to turn
`[]byte` into `interface{}`. Apparently, we've never done this correctly we just
never noticed because we never really used buffer pools extensively.
However, since migrating yamux to a buffer-pool backed buffer, this started
showing up in allocation profiles.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-10 14:11:31 +01:00
Łukasz Magiera
0bef4603e8
Merge branch 'master' into feat/namestream
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-10 12:10:12 +02:00
Steven Allen
098933ade4
gx: update stuff
...
* go-datastore and friends: GetSize
* badger: new release, fewer allocations
* go-mplex: send fewer packets
* go-bitswap: pack multiple blocks in a single message, fewer allocations
* go-buffer-pool: replace the buffer pool from go-msgio
* yamux: fixed data race and uses go-buffer-pool for stream read-buffers to
reduce memory and allocations.
* go-libp2p-secio: get rid of a hot-spot allocation
* go-libp2p-peerstore: reduced allocations (at the cost of some memory)
More?
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-05 14:48:44 -07:00
Łukasz Magiera
5618fed0d2
coreapi pubsub: better ctx for connectToPubSubPeers
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-05 11:51:36 -07:00
Łukasz Magiera
18d5999ebc
coreapi pubsub: fix review nits
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-05 11:51:36 -07:00
Łukasz Magiera
d6aa9527f2
pubsub cmd: switch to coreapi
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-05 11:51:36 -07:00
Łukasz Magiera
d3f3afa5de
coreapi pubsub: add tests
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-05 11:49:36 -07:00
Łukasz Magiera
51bb9d6843
coreapi: implement pubsub api
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-05 11:49:36 -07:00
Łukasz Magiera
3d3bedcf41
coreapi: pubsub interface
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-05 11:49:36 -07:00
Steven Allen
0fb2020574
Merge pull request #5564 from ipfs/fix/5369
...
don't use the domain name as a filename in /ipns/a.com
2018-10-05 11:24:51 -07:00
Steven Allen
f498459ad2
gateway_test: comment on platform dependence
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-05 11:24:36 -07:00
Steven Allen
6ff0fe0976
Merge pull request #5562 from kjzz/zkj/offline-test
...
add offline id test #4978 and refactor command code
2018-10-05 11:20:29 -07:00
Łukasz Magiera
676403be19
Merge remote-tracking branch 'origin/master' into feat/coreapi/unixfs
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-05 11:45:37 +02:00
Overbool
717c0c83a1
fix(p2p): add test for issue #5523
...
;wq
Signed-off-by: Overbool <overbool.xu@gmail.com>
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-05 13:30:31 +08:00
Overbool
03ad3b87ff
fix(p2p): issue #5523
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-05 13:30:31 +08:00
Steven Allen
afd81fd5dd
gateway test: document why .man
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-04 21:42:07 -07:00
Steven Allen
35e8d6fba1
update unixfs inline option comment to give us room to change things
...
(addressing CR)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-04 21:12:53 -07:00
Kejie Zhang
371bf9310e
uodate json option name
...
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-10-05 11:23:32 +08:00
Kejie Zhang
3dc0ce7fa1
refactor all command code
...
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-10-05 11:21:54 +08:00
Kejie Zhang
51fa159e4a
add dns support in p2p forward connect
...
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-10-04 18:14:55 -07:00
Kejie Zhang
43d93cb01b
refactor p2p command code
...
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-10-04 18:13:24 -07:00
Steven Allen
05b3b81743
Merge pull request #5555 from overbool/feat/add-force-flag-for-files-rm
...
feat(command): add force flag for files rm
2018-10-04 17:52:01 -07:00
Steven Allen
47e7f693eb
don't use the domain name as a filename in /ipns/a.com
...
fixes #5369
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-04 17:12:08 -07:00
Kevin Atkinson
d127f1be98
gx update libp2p/go-buffer-pool
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-04 20:05:26 -04:00
Kevin Atkinson
2e975add22
gx update go-libp2p-peerstore
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-04 20:04:22 -04:00
Lars Gierth
fc2575740e
gx: update go-ipfs-config, iptb
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2018-10-04 20:02:42 -04:00
Kevin Atkinson
686dcdd9a4
Build fixes.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-04 20:02:29 -04:00
Lars Gierth
2c3ed7efb0
gx: update go-datastore, go-libp2p-swarm
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2018-10-04 19:52:42 -04:00
Łukasz Magiera
58c9de9e63
coreapi name: switch publish/resolve to coreapi
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-04 22:13:51 +02:00
Łukasz Magiera
e8b137f885
coreapi name: add some missing options
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-04 22:11:17 +02:00
Łukasz Magiera
7807f575f1
coreapi key: error on self if ident not loaded
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-04 22:10:09 +02:00
Łukasz Magiera
4b1f733864
coreapi unixfs: fix inline doc
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-04 20:39:43 +02:00
Overbool
bd23e7d2ed
feat(command): add force flag for files rm
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-04 22:41:07 +08:00
Łukasz Magiera
051c33087b
coreapi unixfile: simplify RawNode case
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-04 04:07:22 +02:00
Łukasz Magiera
69eb015b9f
ipfs add uses CoreAPI
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-04 01:57:25 +02:00
Łukasz Magiera
d51ce96f55
coreapi unixfs: filestore opts
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-04 01:24:57 +02:00
Łukasz Magiera
a81ec29baa
coreapi unixfs: progress events
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-04 01:00:26 +02:00
Łukasz Magiera
f9cf84965d
coreapi unixfs: stdin-name option
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-03 23:17:18 +02:00
Łukasz Magiera
3e754d64fb
coreapi unixfs: hidden opiton
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-03 22:49:42 +02:00
Łukasz Magiera
18fec6eb5f
coreapi unixfs: wrap option
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-03 22:30:45 +02:00
Łukasz Magiera
c6f8e7e2a6
coreapi unixfs: test recursive adding
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-03 22:06:35 +02:00
Łukasz Magiera
8dda69575a
coreapi unixfs: unixfs.Get
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-03 17:24:15 +02:00
Łukasz Magiera
e6bc923425
coreapi unixfs: multi file support in unixfs coreapi
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-03 15:15:28 +02:00
Łukasz Magiera
675106d759
coreapi unixfs: rebase fixes for fileAdder.AddAllAndPin
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-03 14:08:15 +02:00
Łukasz Magiera
374fb00cc3
coreapi unixfs: separate option to enable inlining
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-03 14:08:15 +02:00
Łukasz Magiera
9887a05e43
coreapi unixfs: docs on options
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-03 14:08:15 +02:00
Łukasz Magiera
679d60993d
coreapi unixfs: cleanup options
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-03 14:08:15 +02:00
Łukasz Magiera
49946c69c4
coreapi unixfs: pin/local/hash-only options
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-03 14:08:15 +02:00
Łukasz Magiera
c056e5a8de
coreapi unixfs: Simpler output handling
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-03 14:08:15 +02:00
Łukasz Magiera
6337e69ff7
coreapi unixfs: layout/chunker options
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-03 14:08:15 +02:00
Łukasz Magiera
041e55d706
coreapi unixfs: options for RawLeaves / Inline
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-03 14:08:15 +02:00
Łukasz Magiera
06a4218a03
coreapi unixfs: better add tests
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-03 14:08:15 +02:00
Łukasz Magiera
c68ab5620a
coreapi unixfs: cid prefix options
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-03 14:08:15 +02:00
Łukasz Magiera
795d1ea540
coreapi unixfs: use fileAdder directly
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-03 14:08:15 +02:00
Łukasz Magiera
7b478209b9
coreapi swarm: unify type with other apis
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-03 01:49:55 +02:00
Steven Allen
4f9bde807b
Merge pull request #4803 from ipfs/feat/coreapi/swarm
...
coreapi: Swarm API
2018-10-02 16:25:45 -07:00
Steven Allen
080b0e1754
Merge pull request #5509 from ipfs/chores/add-sessions-to-ls-command-4908
...
Add sessions when fetching MerkleDAG in LS
2018-10-02 16:06:41 -07:00
Steven Allen
d8ed9aba7d
Merge pull request #5550 from ipfs/fix/coreapi-pin-lock
...
take the pinlock when updating pins
2018-10-02 16:05:45 -07:00
Steven Allen
021fc9fb97
Merge pull request #5385 from ipfs/kevina/cid-cmd
...
Provide new "cid" sub-command.
2018-10-02 15:54:55 -07:00
Steven Allen
bf654ea4f8
defer the pinlock till we actually need it
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-02 15:39:32 -07:00
Steven Allen
ab69f0fb4d
take the pinlock when updating pins
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-02 14:36:12 -07:00
Kejie Zhang
dde11416f6
delete useless hash param in adder
...
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-10-02 11:33:12 -07:00
Kejie Zhang
1379ee76f3
add pin lock in AddallPin function
...
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-10-02 11:33:12 -07:00
Łukasz Magiera
1ed555b87f
Cleanup instances of manual resolver construction
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-02 18:35:14 +02:00
Łukasz Magiera
b2f6c3e3ed
coreapi swarm: missing docs, review
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-02 12:31:50 +02:00
Kevin Atkinson
54904a7691
Rename streamResults to streamResult.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:07:32 -04:00
Kevin Atkinson
7edc7de288
Eliminate emit closure, so something with errors on call to emit.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:07:16 -04:00
Kevin Atkinson
c0a873c27f
Address code review.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:07:01 -04:00
Kevin Atkinson
f3ea21c821
Reenable Stdin argument reading.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:06:36 -04:00
Kevin Atkinson
599bb7302e
Right align numbers in "ipfs cid bases|codecs|hashes" output.
...
This also avoid using TabWriter as it doesn't support right aligning a
single column and also because its an overkill for this case.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:06:20 -04:00
Kevin Atkinson
e5622f628a
Stream results for "ipfs cid format".
...
Note reading input from Stdin is broken. Only the first result is accepted.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:06:02 -04:00
Kevin Atkinson
98e5999761
Factor out boiler plate code for PostRun in "ipfs filestore ls".
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:05:47 -04:00
Kevin Atkinson
30b861bc5a
Remove "prefix" format string. Use WithDefault("%s') for `-f- option.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:05:29 -04:00
Kevin Atkinson
57f96019f7
Provide new "cid" sub-command.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:05:27 -04:00
Łukasz Magiera
ea352f62d0
update routing-helpers
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-29 12:43:30 +02:00
Łukasz Magiera
8e4ce426a4
namesys: use routing.SearchValue
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-27 21:31:42 +02:00
Łukasz Magiera
f69cf07444
ipfs name resolve --stream
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-27 21:31:42 +02:00
Łukasz Magiera
6adb15f4fb
namesys: async: go vet fixes
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-27 21:31:42 +02:00
Łukasz Magiera
7ff9f09b07
namesys: Implement async methods
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-27 21:31:42 +02:00
Steven Allen
86559e9e04
Merge pull request #5527 from ipfs/feat/pprof-lock
...
pprof: create HTTP endpoint for setting MutexProfileFraction
2018-09-27 18:49:46 +00:00
Łukasz Magiera
6fa2ab0d41
coreapi swarm: rewire address listing cmds
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-26 22:17:23 +02:00
Łukasz Magiera
df9f101892
coreapi swarm: rewire connect/disconnect
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-26 22:13:17 +02:00
Łukasz Magiera
30d42f4550
swarm cmd: port to new cmd lib
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-26 22:09:14 +02:00
Łukasz Magiera
44bab585a5
coreapi swarm: swarm refactor fixes
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-26 22:01:28 +02:00
Łukasz Magiera
e7f493b569
fix infinite loop in connInfo.ID
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-26 22:01:28 +02:00
Łukasz Magiera
8358c8d041
coreapi: implement swarm api
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-26 22:01:28 +02:00
Łukasz Magiera
1373218519
coreapi: swarm interface
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-26 22:01:28 +02:00
Jakub Sztandera
50fffa2973
pprof: create HTTP endpoint for setting MutexProfileFraction
...
Allows to dynamically change the MutexProfileFraction to enable and
disable mutex profiling. It should be very useful for detecting
deadlocks, lock contention and general concurrency problems.
How to use:
To enable run: curl -X POST -v 'localhost:5001/debug/pprof-mutex/?fraction=10
To disable: curl -X POST -v 'localhost:5001/debug/pprof-mutex/?fraction=0'
Fraction defines which fraction of events will be profiled. Higher it is
the lower performance impact but less reliable the result.
To fetch the result use:
go tool pprof $PATH_TO_IPFS_BIN http://localhost:5001/debug/pprof/mutex
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-09-26 21:24:49 +02:00
Overbool
5d173bf365
fix(unixfs): issue #5055
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-09-26 18:51:00 +08:00
Steven Allen
dac058f8be
gx: update go-log go-ipld-cbor
...
(and friends)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-24 05:36:29 -07:00
Steven Allen
074a1ab48e
update for interface changes
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-24 05:24:30 -07:00
Łukasz Magiera
91833e288f
gx: update go-libp2p-routing
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-24 14:03:57 +02:00
Steven Allen
ac53d3aaa4
Merge pull request #5494 from rob-deutsch/feat/publishquieter
...
add quieter option to name publish
2018-09-24 10:11:18 +00:00
rob-deutsch
286d935036
add quieter option to name publish
...
Added a quieter/Q option to 'name publish' that, consistent with 'add', only outputs the value that was published.
License: MIT
Signed-off-by: Rob Deutsch <rdeutschob@gmail.com>
2018-09-22 09:49:40 +10:00
hannahhoward
47f3c4048d
Add sessions to LS command
...
Uses sessions when fetching MerkleDAG
License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
2018-09-21 16:12:40 -07:00
Overbool
48c3effac8
fix(unixfs): issue #5217
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-09-21 15:44:38 +08:00
Steven Allen
d556ee23ef
fix resolve command for the new cmds refactor
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-19 14:43:15 -07:00
Steven Allen
b7484c1bca
gx: update go-ipfs-cmds to the final release
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-19 14:36:08 -07:00
keks
aa7494b0b7
repo gc: use cmds2
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-09-19 14:35:54 -07:00
keks
caf855b4ec
fixes
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-09-19 14:35:54 -07:00
keks
74ec1a9aef
address stebalien's comments
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-09-19 14:35:54 -07:00
keks
f4b32e36f4
update cmds to 2.0.0-rc1
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-09-19 14:35:54 -07:00
keks
d14021da98
remove debug output
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-09-19 14:35:54 -07:00
keks
ef21c3bfab
update go-ipfs-cmds to 2.0.0-beta2
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-09-19 14:35:54 -07:00
keks
908ffddc1b
big squash commit
...
excerpt of commit messages:
- update postrun functions in core/commands
- sharness: allow setting -i with TEST_IMMEDIATE=1
- cmds Run func returns error now
- gx update cmdkit to 1.1.2 and cmds to 2.0.0-beta1
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-09-19 14:35:54 -07:00
Steven Allen
370bd22372
Merge pull request #5484 from ipfs/fix/resolve-hamt
...
resolve: use unixfs ResolveOnce
2018-09-19 18:41:44 +00:00
Steven Allen
23b44ba3c7
Merge pull request #5485 from schomatis/fix/commands/files-cp-wrap-flush-error
...
files cp: wrap flush error
2018-09-19 18:39:19 +00:00
Steven Allen
ce8eb134b5
Merge pull request #5466 from ipfs/fix/less-noisy-boostrap-warning
...
make warnings on no bootstrap peers less noisy
2018-09-19 18:37:41 +00:00
Łukasz Magiera
0fd87de1a4
coreapi name: accept namesys options
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-19 11:51:42 +02:00
Steven Allen
b5bba2ce80
Merge pull request #5486 from kjzz/fix/id
...
fix offline id bug
2018-09-19 03:01:02 +00:00
Steven Allen
e633eccee4
Merge pull request #5477 from kjzz/fix/publish
...
error when publishing ipns records without a running daemon
2018-09-19 02:19:31 +00:00