1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 03:19:47 +08:00

4701 Commits

Author SHA1 Message Date
rht
0c95ed6b03 Add symlink support to BuildDagFromFile
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-09-03 20:30:41 +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
9c40bf1e97 Merge pull request #1618 from rht/dir-index-humanize
Humanize bytes in dir index listing
2015-09-03 12:42:44 +02:00
3fc1854d24 Merge pull request #1638 from thelinuxkid/master
Fix docker image link
2015-09-02 14:48:58 -07:00
f4989c30e7 Fix docker image link
License: MIT
Signed-off-by: Andres Buritica <andres@thelinuxkid.com>
2015-09-02 14:25:34 -07:00
dfa27c0c5a Merge pull request #1623 from rht/fix-check-api-test
Fix and refactor daemon api test
2015-09-02 22:42:09 +02:00
a3f0a6eb73 Merge pull request #1625 from ipfs/check-peerid
t0020: simplify peerid check
2015-09-02 22:41:13 +02:00
5ff766bea9 Merge pull request #1626 from ipfs/t0062-cleanup
t0062 cleanup
2015-09-02 22:40:10 +02:00
006cd5fe25 Merge pull request #1627 from ipfs/feat/symlinks
implement symlinks in unixfs, first draft
2015-09-02 22:36:50 +02:00
a4e72871fa add tests for symlinks
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-02 12:59:09 -07:00
5ba7d616e2 symlink handling in files ls
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-02 12:57:11 -07:00
a47d6fef65 Merge pull request #1636 from ipfs/fix/panic-ignore
recover and print panics that happen in API server
2015-09-02 20:50:50 +02:00
d85d61c968 recover and print panics that happen in API server
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-02 11:12:13 -07:00
56f01e4981 rm panic
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-02 11:03:07 -07:00
167532c2b6 fix direct symlink adding
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-02 10:51:03 -07:00
4bcacc5936 address most of CR comments
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-02 10:12:04 -07:00
9bbd9b061d give ipfs get symlink support
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-08-30 23:34:02 -07:00
d993bc04d6 implement symlinks in unixfs, first draft
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-08-30 13:33:42 -07:00
dc68ae76e3 t0020: simplify peerid check
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-08-30 18:23:03 +02:00
3562e72d8e t0062: add missing && in test_client*()
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-08-29 22:30:37 +02:00
cbeff099a2 t0062: check that 'ipfs config' works
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-08-29 22:28:58 +02:00
fe742050ac t0062: use "$@" directly
This avoids potential quoting problems.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-08-29 22:23:55 +02:00
rht
1198564ca3 Fix and refactor daemon api test
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-29 22:10:58 +07:00
8c652907de Merge pull request #1598 from ipfs/check-for-api
check for API -- WIP
2015-08-29 06:20:59 +02:00
8c547ff7b8 t0062-daemon-api.sh tabs
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-08-29 06:13:50 +02:00
b883381b63 improved t0062-daemon-api.sh tests
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-08-29 06:12:12 +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
1dac829062 Merge pull request #1487 from rht/gw-assets
Move dir-index-html + assets to a separate repo
2015-08-28 14:45:56 +02: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
9f253dfa7a Merge pull request #1592 from prusnak/empty-repo
Add --empty-repo option for init (#1559)
2015-08-28 14:13:09 +02:00
61cde12364 Merge pull request #1617 from rht/rm-full-mesh-linked
Refactor FullMeshLinked and ConnectAll()
2015-08-28 13:00:56 +02:00
rht
63c7741fb9 Refactor FullMeshLinked and ConnectAll()
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-28 17:39:05 +07:00
rht
be96d8d7d5 Fix test cases for ipfs api check
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-28 13:20:13 +07:00
e1d8200ffb test-lib: use all the test_launch_ipfs_daemon() arguments
It is simpler and less error prone to just pass to `ipfs daemon`
all the arguments that are passed to test_launch_ipfs_daemon().

Maybe the arguments should be shell quoted too, but that's
another issue.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-08-28 05:17:27 +02:00
b55cf12ba5 Merge pull request #1572 from ipfs/node-construct-v2
replace nodebuilder with a nicer interface
2015-08-27 18:01:49 +02:00
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
rht
dd265b7f03 Add test cases for ipfs api check
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-27 18:30:28 +07:00
ff26c31200 Merge pull request #1613 from ipfs/api-client-doc
small doc on implementing api bindings
2015-08-27 08:16:17 +02:00
70cccad311 small doc on implementing api bindings
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-08-27 08:11:48 +02:00
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
7abebb1653 Merge pull request #1611 from ipfs/quick-fix/ipns-err
dont create ipnsfs filesystem until its needed
2015-08-27 02:51:36 +02:00
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
872daf8357 t0020: add test for --empty-repo
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-08-25 21:26:06 +02:00
0f9065963f Merge pull request #1599 from ipfs/binary-data-and-json
Binary data and json test
2015-08-25 16:18:31 +02:00
5301b33e3d Merge pull request #1609 from drathir/patch-1
Update README.md
2015-08-25 16:16:44 +02:00
a283db2328 Update README.md
Update the usage output to present one.
2015-08-25 15:38:03 +02:00
5cced6f21a t0051: check json i/o
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-08-24 23:13:55 +02:00
e4a0a3bfcb t0051: add UTF-8 test file
This new file comes from:

https://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt

It is licensed under CC BY 4.0.

After discussing that with its author, I think it is ok to
add it as is to our repository. The only restriction might
be that we should indicate in the file any change we make
to it.

License: CC BY 4.0
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-08-24 23:05:48 +02:00
a965316f0e Merge pull request #1585 from rht/cleanup-context
Make sure ctx in commands are derived from req.Context
2015-08-24 10:33:38 +02: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