Łukasz Magiera
a49c07a176
Drop some coreunix code
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-24 04:16:55 -08:00
Steven Allen
7c6ec8185a
commands: fix verbose flag for the active commands command
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-23 11:25:13 -08:00
Steven Allen
6240f57ed4
commands: fix verbose flag
...
Options are recorded using their *first* name.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-23 11:23:38 -08:00
Łukasz Magiera
53e55e3314
gx: update go-unixfs to 1.2.14 and go-bitswap to 1.1.21
...
(and everything else...)
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-23 11:01:38 -08:00
Łukasz Magiera
b2a5168468
Unixfs: enforce refs on files when using nocopy
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-23 05:17:46 -08:00
Łukasz Magiera
19ca1a819f
Unixfs.Add nocopy test
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-23 05:17:46 -08:00
Łukasz Magiera
85eb8812fa
Port dag commansds to CoreAPI
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-22 21:01:19 +01:00
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