Łukasz Magiera
4d5a96b0d6
coreapi: path rebase
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 09:00:50 +02:00
Łukasz Magiera
7adf1cb40d
coreapi: move path utils to interface
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:44:54 +02:00
Łukasz Magiera
082498de6d
coreapi: more docs for ResolvedPath
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:43:48 +02:00
Łukasz Magiera
0adb69a773
coreapi: fix TestGatewayGet after rebase
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:43:48 +02:00
Łukasz Magiera
0f6bd2d173
coreapi: fix resolved path root for some paths
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:43:48 +02:00
Łukasz Magiera
e227fc3865
coreapi: fix ipns path resolving
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:43:48 +02:00
Łukasz Magiera
d5b5e0d7ac
coreapi: add more docs for path
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:43:48 +02:00
Łukasz Magiera
1d23bbeb0f
coreapi: path review
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:43:48 +02:00
Łukasz Magiera
9b288560a4
coreapi: path remainders
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:43:48 +02:00
Łukasz Magiera
7ee6194352
coreapi: path.Mutable
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:43:48 +02:00
Łukasz Magiera
f5f44ab246
coreapi: remove ctx from ParsePath, split ParseCid
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:43:48 +02:00
Łukasz Magiera
15f8fc60c0
coreapi: separate path into two types
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:43:48 +02:00
Łukasz Magiera
4f6c0666ea
coreapi: move path impl to path.go
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:42:06 +02:00
Łukasz Magiera
338e90e9c8
coreapi: expand public path api
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-17 08:40:48 +02:00
Steven Allen
9a9979b193
update go-cid
...
alternative to #5243 that updates go-cid and all packages that depend on it
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-16 15:16:49 -07:00
Whyrusleeping
bda81cd2d4
Merge pull request #5045 from schomatis/fix/cmd/files-ls-file-long
...
cmd: fix `files ls` to report hash and size for files
2018-07-16 16:52:13 +02:00
Whyrusleeping
07feeec9c4
Merge pull request #5010 from ipfs/feat/diskusage2
...
Efficient "repo stat" (DiskUsage) and "--size-only" flag
2018-07-16 16:50:41 +02:00
Whyrusleeping
4f1391f477
Merge pull request #5139 from achingbrain/feat/specify-object-data-encoding
...
feat: Allow specifing how object data is encoded
2018-07-16 16:49:31 +02:00
Whyrusleeping
51607243c2
Merge pull request #5170 from schomatis/feat/mfs/root-val-as-dir
...
mfs: make `Root` value a `Directory`
2018-07-16 16:48:06 +02:00
Kevin Atkinson
1f29699d90
Address c.r. and additional tweaks.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-07-13 09:07:52 -04:00
Kevin Atkinson
8dd970b73a
filestore: Return consistent err msg. when file/urlstore is not enabled.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-07-13 09:07:52 -04:00
Kevin Atkinson
6a4b1262a5
Make sure you can't add URL's unless the url store is enabled.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-07-13 09:07:52 -04:00
Kevin Atkinson
ed2bb81b8d
Code cleanups to make code climate happy.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-07-13 09:07:52 -04:00
Kevin Atkinson
0e24444280
Add some documentation to ipfs urlstore add command.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-07-13 09:07:52 -04:00
Kevin Atkinson
b53a1b3022
Add config option to enable urlstore.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-07-13 09:07:51 -04:00
Kevin Atkinson
696a0f039e
Simplify code: use prefix instead of flag to determine if a url
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-07-13 09:07:51 -04:00
Kevin Atkinson
d59a6e99a6
Fix "ipfs urlstore add" output.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-07-13 09:04:22 -04:00
Jakub Sztandera
1a835202b2
filestore: add URLStore
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-07-13 09:04:22 -04:00
Steven Allen
8a9aa41542
Merge pull request #5202 from ipfs/fix/dnslink-recursion-alt
...
correctly handle multi-hop dnslink resolution
2018-07-09 09:01:32 +00:00
Steven Allen
7df7d11199
fix dht commands when pubsub routing is enabled
...
Instead of checking if Routing is a DHT (because it can now be a tiered
router and still contain a DHT), stash the DHT in a separate field in the IPFS
node (same as we do with the PSRouter).
fixes #5197
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-09 09:58:44 +02:00
Hector Sanjuan
9c8d994c76
remove debug print statement
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-07-08 13:01:54 +02:00
Hector Sanjuan
9d88d2cde8
RepoStat: address review comments
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-07-08 13:01:54 +02:00
Hector Sanjuan
79b388c690
Feat: use datastore.DiskUsage() and add --size-only to "repo stat"
...
This makes use of the PersistentDatastore DiskUsage method to
obtain the Repo's storage usage (GetStorageUsage()).
Additionally, the --size-only flag has been added to the
"ipfs repo stat" command. This avoids counting the number of objects
in the repository and returns faster.
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-07-08 13:01:46 +02:00
Steven Allen
6a81c72cfb
correctly handle multi-hop dnslink resolution
...
Namesys returns `ErrResolveRecursion` when it stops recursing due to a depth
limit. It doesn't return success.
Alternative to #5199 .
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-07 00:18:30 -07:00
Steven Allen
efa4e332e9
update routing helpers to fix an issue in the parallel find providers
...
See: https://github.com/libp2p/go-libp2p-routing-helpers/pull/3
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-06 23:32:28 -07:00
Steven Allen
b6081be32a
only construct a node in online mode when running external commands.
...
This breaks commands like `ipfs update` that expect IPFS to *not* be running.
fixes #5191
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-05 14:32:44 -07:00
Lucas Molas
dfe64980ce
cmd: fix files ls to report hash and size for files
...
License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-07-02 17:17:43 -03:00
Lucas Molas
08922d239d
mfs: make Root value a Directory
...
Make `Root` value explicitly a `Directory` structure instead of the `FSNode`
interface (which also allowed the `File` type). This helps to make the code
easier to reason about: the root of an MFS layout is always a directory, not a
(single) file.
Rename `GetValue()` to `GetDirectory()` to also make it more explicit, the
renamed function now returns a `Directory` so there is no need for type
assertions that were previously done on the `FSNode` interface to check that it
was actually a `Directory`.
`NewRoot()` now doesn't allow to create `Root` structures from DAG nodes that
contain UnixFS files.
License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-06-29 11:30:53 -03:00
camelmasa
6da92a1f0a
Fix wrong added filename
...
License: MIT
Signed-off-by: Masahiro Saito <camelmasa@gmail.com>
2018-06-28 09:07:23 -04:00
Steven Allen
3eba14aa24
gx update
...
Updates:
* go-kad-dht: Query performance improvements, DHT client fixes, validates
records on *local* put.
* go-libp2p-swarm/go-libp2p-transport: Timeout improvements.
* go-multiaddr-net: Exposes useful Conn methods (CloseWrite, CloseRead, etc.)
* go-log: fixes possible panic when enabling/disabling events.
* go-multiaddr: fixes possible panic when stringifying malformed multiaddrs,
adds support for consuming /p2p/ multiaddrs.
fixes #5113
unblocks #4895
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-26 17:11:33 -07:00
Steven Allen
352ec3561c
add record validation to offline routing
...
fixes #5115
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-25 18:14:25 -07:00
achingbrain
3cdaea663c
feat: Allow specifing how object data is encoded
...
Adds a --data-encoding flag to `ipfs object get` to let the user
specify base64 encoding for object data.
License: MIT
Signed-off-by: Alex Potsides <alex@achingbrain.net>
2018-06-19 16:37:45 +01:00
Whyrusleeping
b516aa1c31
Merge pull request #5122 from ipfs/kevina/filestore-hookup-fix
...
Fix how filestore is hooked up.
2018-06-18 01:56:52 +08:00
Steven Allen
dafe495376
extract ipns record logic to go-ipns
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-15 20:10:26 -07:00
Kevin Atkinson
a598a374e6
Fix how filestore is hooked up.
...
Closes #5121 .
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-06-15 02:33:01 -04:00
Whyrusleeping
cdc349790c
Merge pull request #5072 from Bren2010/review/core
...
Fix panic. Don't handle errors with fallthrough.
2018-06-13 15:30:58 +08:00
Whyrusleeping
aedc3217b5
Merge pull request #5107 from ipfs/fix/5102
...
improve swarm connect/disconnect commands
2018-06-13 15:29:02 +08:00
Rob Brackett
319f006386
Add package overview comments to coreapi
...
License: MIT
Signed-off-by: Rob Brackett <rob@robbrackett.com>
2018-06-12 15:56:15 -07:00
Steven Allen
78f82e8e79
allow disconnecting from a peer by ID
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-12 14:50:16 -07:00
Steven Allen
39febb1910
make ipfs swarm connect /ipfs/QmId work
...
fixes #5102
Also, allow specifying multiple addresses for a single peer.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-12 14:37:29 -07:00