1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-10-24 15:12:55 +08:00

160 Commits

Author SHA1 Message Date
8f0623255d replace imports with absolute path instead of using symlink
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-03 14:30:50 -07:00
e5512b4115 make publish more configurable and add test for repub
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-30 11:03:44 -07:00
815a031f59 Implement ipns republisher
This commit adds a very basic process that will periodically go through
a list of given ids and republish the values for their ipns entries.

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-29 09:47:47 -07:00
35a5ca0ef5 update go-datastore to latest
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-15 17:15:29 -07:00
e5a2896c0e extract logging
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-14 17:35:50 -07:00
ab0c668ab8 fix panic caused by accessing config after repo closed
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-03 09:28:36 -07:00
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
e9bedb1aef bump development version
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-08-18 15:45:14 -07:00
7789077dbd Merge pull request #1076 from zorun/fix-listen-ipv6
Default config: listen on IPv6 for the swarm address
2015-08-15 06:41:26 +02:00
rht
c0a0cde986 Config: allow to set maps on null value
Also, now, if ipfs config foo.bar has value of anything that is not map (0, "0", 0.1),
then ipfs config foo.bar.baz now returns an error instead of a panic

License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-13 19:42:32 +07:00
ec51450d07 go-ipfs version 0.3.7 release
This patch update fixes a problem we introduced in 0.3.6 and did not
catch: the webui failed to work with out-of-the-box CORS configs.

License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-08-02 16:00:34 +02:00
d50def3f5c go-ipfs version 0.3.6 (config version bump)
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-30 10:57:04 -07:00
7cf5e87cfe Added API + Gateway support for arbitrary HTTP headers
This commit fixes + improves CORS support

License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-28 23:08:09 -07:00
rht
541836c4a3 Auto-assert setconfig value to predefined struct
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-07-04 22:29:10 +07:00
c595cf8ae0 config: DialBlocklist -> Swarm.AddrFilters
This commit changes the DialBlocklist key to be under the key
Swarm.AddrFilters instead.

License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-02 16:11:46 -07:00
e01f8e4f22 add in basic address dial filtering
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-06-23 01:29:29 -07:00
a676b5a8ac move eventlogs to an http endpoint
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-06-18 12:44:01 -07:00
fa23022bcd version bump to 0.3.5 2015-06-15 15:35:04 -07:00
1dd76fd162 Merge pull request #1295 from ipfs/fix/lock-check
catch other error that means the file is locked
2015-05-30 13:38:50 -07:00
rht
f5d5095b1b Add newline to 'ipfs init' error message 2015-05-30 13:40:38 +07:00
rht
17d71c49ce Add test for no repo error message 2015-05-30 13:13:27 +07:00
270b47702e catch other error that means the file is locked 2015-05-26 17:19:53 -07:00
rht
3547f7ae33 Replace 'var * bytes.Buffer' with '\1 := new(bytes.Buffer)' 2015-05-26 23:18:04 +07:00
cc905539ae trying to debug permissions failure 2015-05-21 17:24:38 -07:00
8ea502f1b3 clean up and fix init permissions handling 2015-05-20 09:46:09 -07:00
e67c2a7b14 version bump to 0.3.4
(I'll add the changelog later today)
2015-05-10 09:23:47 -04:00
96a86cac98 Record Datastore metrics for flatfs and leveldb 2015-05-01 10:58:29 -07:00
a0af9f5e8d If ErrNoRepo is not an error value anymore, then make it an error type 2015-04-28 16:18:09 -07:00
931a2db8cf 0.3.3 version
This patch update fixes various issues, in particular:
- windows support (0.3.0 had broken it)
- commandline parses spaces correctly.

* much improved commandline parsing by @AtnNn
* improved dockerfile by @luzifer
* add cmd cleanup by @wking
* fix flatfs windows support by @tv42 and @gatesvp
* test case improvements by @chriscool
* ipns resolution timeout bug fix by @whyrusleeping
* new cluster tests with iptb by @whyrusleeping
* fix log callstack printing bug by @whyrusleeping
* document bash completiong by @dylanPowers
2015-04-28 02:13:36 -07:00
f168539030 Improve command line parsing 2015-04-27 17:19:38 +00:00
94df8f07f9 version bump to 0.3.2 after mdns 2015-04-22 02:14:48 -07:00
001b7ab714 implement a config option for mdns 2015-04-22 00:55:31 -07:00
b1adeef85c version bump to 0.3.1
This patch update fixes a few bugs:

* harden shutdown logic by @torarnv
* daemon locking fixes by @travisperson
* don't re-add entire dirs by @whyrusleeping
* tests now wait for graceful shutdown by @jbenet
* default key size is now 2048 by @jbenet

(experimenting with using semver)
2015-04-21 01:43:10 -07:00
b948bd65f9 version bump to 0.3.0
This commit includes a poor attempt at a changelog.
2015-04-20 05:10:45 -07:00
dd25a75225 repo: move daemon.lock -> repo.lock
The "daemon.lock" was really a repo.lock, as the cli also took it
and the purpose was any process mutex. This is part of the 1-to-2
migration, and has already been handled in
https://github.com/ipfs/fs-repo-migrations/tree/master/ipfs-1-to-2
2015-04-20 02:26:34 -07:00
c1b8d292fb repo: clean up migration errors
Improved the repo migration errors to provide instructions
to the user.
2015-04-20 02:26:34 -07:00
bb7bf81873 put mfsr package back 2015-04-20 02:26:33 -07:00
591cca9507 remove migrations code from go-ipfs, in favor of fs-repo-migrations repo 2015-04-20 02:26:33 -07:00
c419a489e1 make ipfs understand the new migration 2015-04-20 02:26:33 -07:00
96a22c5bb1 config: change default config dir name to .ipfs
This changes .go-ipfs to .ipfs everywhere.
And by the way this defines a DefaultPathName const
for this name.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-04-20 02:25:41 -07:00
f3fbedf312 no longer worry about moving key out of config file 2015-04-20 02:25:41 -07:00
2c79e5ddb5 add 1-to-2 migration program 2015-04-20 02:24:24 -07:00
24daeec70c Use flatfs to store objects under /blocks outside of LevelDB
WARNING: No migration performed! That needs to come in a separate
commit, perhaps amended into this one.

Migration must move keyspace "/b" from leveldb to the flatfs subdir,
while removing the "b" prefix (keys should start with just "/").
2015-04-20 02:24:23 -07:00
59aa209164 Let FSRepo Close know explicitly about LevelDB
This allows replacing the datastore without needing to write Close
through to every wrapped datastore.
2015-04-20 02:22:46 -07:00
26cebac6d8 Remove comment referring to old code
FSRepo.Open is dead since fdd1cd8dc045db90b06497a15df7f6f232f76bda
2015-04-20 02:21:49 -07:00
5cb8d80bb6 LevelDB is no longer "the" datastore, adjust identifiers 2015-04-20 02:21:49 -07:00
7eb4a92aba 0-to-1 fsrepo migration 2015-04-20 02:20:31 -07:00
140cd1fd1b remove debugerrors
We now consider debugerrors harmful: we've run into cases where
debugerror.Wrap() hid valuable error information (err == io.EOF?).
I've removed them from the main code, but left them in some tests.
Go errors are lacking, but unfortunately, this isn't the solution.

It is possible that debugerros.New or debugerrors.Errorf should
remain still (i.e. only remove debugerrors.Wrap) but we don't use
these errors often enough to keep.
2015-04-20 00:35:35 -07:00
0f174ca0fb Default config: listen on IPv6 for the swarm address 2015-04-14 14:26:51 +02:00
d90ada9b4e Added fuse allow_other option
ipfs config Mounts.FuseAllowOther --bool true
    ipfs daemon --mount
2015-04-02 15:11:27 -07:00