Steven Allen
255fefb2aa
feat(peerlog): log protocols/versions
2020-03-10 09:33:11 -07:00
Oli Evans
aa3ca14197
feat: pass IPFS_PLUGINS to docker build
...
- allow IPFS_PLUGINS build-arg to be passed to docker build command
- remove annoying logging from peerlog plugin that appears multiple times in docker logs
usage:
docker build --build-arg IPFS_PLUGINS="foo bar baz"
License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2020-02-13 14:39:58 +00:00
Steven Allen
15085fd1a3
fix(plugin): check log error
2020-02-10 13:09:00 -08:00
Steven Allen
58e52f351d
feat: make it possible to enable plugins with a build env variable
2020-02-10 13:05:32 -08:00
Steven Allen
0ab1fa18da
fix: disable preloading the logger plugin by default
2020-02-10 12:54:55 -08:00
Oli Evans
edfe9c5efd
feat: add peerlog plugin
...
adds a plugin to log just peerIDs for nodes we connect to, to allow us to see how many unique peers a node connects to over time.
It's set up a preloaded plugin, so it would be enabled by default. We may want to extract it to a seperate repo so we can make it an optional add on.
**Usage**
```console
$ GOLOG_FILE=~/peer.log IPFS_LOGGING_FMT=json ipfs daemon
```
**output**
```json
{"level":"info","ts":"2020-02-10T13:54:26.639Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:51","msg":"connected","peer":"QmS2H72gdrekXJggGdE9SunXPntBqdkJdkXQJjuxcH8Cbt"}
{"level":"info","ts":"2020-02-10T13:54:59.095Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:56","msg":"disconnected","peer":"QmS2H72gdrekXJggGdE9SunXPntBqdkJdkXQJjuxcH8Cbt"}
```
License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2020-02-10 14:05:16 +00:00
Oli Evans
d83e07ea90
wip: minimal plugin works
...
License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2020-02-10 11:29:51 +00:00
Steven Allen
a53d48059b
fix: migrate from deprecated warning function
2020-01-28 21:20:21 -08:00
Steven Allen
4e4d5aa742
fix(badgerds): turn off sync writes by default
...
We already do this in the datastore _profile_, but we should do this in the
plugin as well. I'm pretty sure this makes absolutely no difference.
2020-01-09 09:55:39 +01:00
Michael Muré
2a9e5005da
plugins: introduce PluginDaemonInternal to directly interact with IpfsNode
2019-11-22 13:18:44 +01:00
Michael Muré
72026b896f
plugins: support Close() for Tracer plugins as well
...
Most of the tracers available need to properly close to send
the remaining traces before the process exit.
2019-09-24 17:43:07 +09:00
Steven Allen
150b6dd1bd
plugins: add support for plugin configs
...
For now, configs specified in `daemon --init-config` and `init CONFIG` are not
available. We should fix this eventually but isn't necessary for now (and
supporting this will be annoying).
2019-08-29 17:17:23 -07:00
Steven Allen
09d517746d
feat: improve plugin preload logic
...
* Allow '*' meaning "load all plugins".
* Expose a Preload function that users can call.
2019-08-15 12:24:51 -07:00
Steven Allen
a9f7490149
feat(plugins): add a bit of documentation
2019-06-28 11:15:02 +02:00
Steven Allen
4badef2a14
feat: make it easier to load custom plugins
...
1. Allow loading from arbitrary and multiple directories.
2. Make it possible to directly load built-in plugins that _aren't_ in the
preload list.
2019-06-28 08:42:29 +02:00
Steven Allen
2a22eb6b90
Merge pull request #6438 from fd/fix/dameon/close-started-plugins
...
Close started plugins when one of them fails to start.
2019-06-12 09:39:05 -07:00
Simon Menke
42dc64d0bf
Load plugins on darwin/macOS
2019-06-12 12:05:31 +02:00
Simon Menke
c444b1b945
Close started plugins when one of them fails to start.
2019-06-12 11:55:03 +02:00
Steven Allen
2b84b2ba13
chore: fix linter nits and tests that don't compile
2019-05-21 11:09:57 -07:00
Steven Allen
1f293eff1b
chore: fix a bunch of issues caught by golangci-lint
...
Most of these are probably harmless but a few looked like they might actually be
bugs. Most of them are just faulty tests.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-03-29 11:57:45 +00:00
Jakub Sztandera
42e191c017
gx: unrewrite
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-03-05 18:33:56 +01:00
Steven Allen
3fa1bfe1bc
gx: update cmds and flatfs
...
fixes #6028 , fixes crash when writing after closing on flatfs.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-03-01 12:17:49 -08:00
Steven Allen
f227862e88
gx: update go-ipfs-cmds, go-bitswap, go-libp2p-kad-dht, and go-mplex
...
Fixes the latest batch of bugs found in RC testing.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-02-27 12:39:24 -08:00
Hector Sanjuan
6972a9aa4d
Gx Bubble. libp2p-6.0.38
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2019-02-27 01:10:59 +00:00
Steven Allen
fea7ae727f
gx: update go-cid
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-02-20 20:29:06 -08:00
Steven Allen
f924f57c61
gx: update go-bitswap and go-libp2p-kad-dht
...
* go-bitswap: fix some race conditions.
* go-libp2p-kad-dht: fix a goroutine leak.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-02-20 17:19:54 -08:00
Steven Allen
2f17b951c2
gx: update deps
...
* Updates go-ipfs-cmds to try to get the tests to pass on travis.
* While we're at it, fix duplicate gx deps.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-02-19 13:12:21 -08:00
Steven Allen
91ca5911be
coreapi: return coreiface.ErrNotSupported when "catting" symlinks.
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-02-19 03:48:04 -08:00
Jakub Sztandera
28cf3de0f9
Update protobuf
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-02-18 20:46:22 +01:00
Steven Allen
cf0d4706e2
gx: update libp2p stuff
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-02-14 14:58:35 -08:00
Steven Allen
e97a60b073
gx: update go-ipfs-files
...
fix compatibility issue with js-ipfs
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-02-11 10:48:58 -08:00
Łukasz Magiera
648cc40ec3
coreapi: fix import grouping after extracting iface
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-02-09 01:57:26 +01:00
Łukasz Magiera
7ed6b518b6
coreapi: update imports to updated interface
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-02-09 01:42:32 +01:00
Steven Allen
a9f2aee3fc
plugin: add plugin type for daemon plugins
...
This allows users to run multiple go-ipfs "clients" in-process.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-30 12:54:04 -08:00
Steven Allen
01514d5179
plugin: allow plugins to implement multiple (or no) plugin interfaces
...
There's no reason for these to be exclusive.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-30 12:53:28 -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
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
Kacper Łukawski
a1e654cd38
plugin: wire in plugin loader for node creation
...
License: MIT
Signed-off-by: Kacper Łukawski <kacluk98@gmail.com>
2018-12-17 19:41:45 -08:00
Steven Allen
fffa3ec9d7
Merge pull request #5625 from schomatis/feat/badger/add-truncate-option
...
badger: add truncate flag
2018-11-27 20:40:22 -08:00
Lucas Molas
200df850cc
badger: add truncate flag
...
License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-11-27 22:08:02 -03: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
Łukasz Magiera
5bfb8867f7
Load static plugins in init
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-11-05 15:45:49 +01:00
Łukasz Magiera
c154f7f01e
Move datastores to plugins
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-11-05 15:40:23 +01: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
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
ab9e211bc3
Merge pull request #5187 from ipfs/feat/datastore-plugins
...
Add support for datastore plugins
2018-10-04 21:01:42 -07: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
Jeromy
7b9cfda084
add support for datastore plugins
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-09-23 16:52:57 +02:00
Kevin Atkinson
d3174f4bd9
gx update and fix code to use new Cid type
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-09-11 22:21:04 -04:00
Steven Allen
656d7cc1a6
gx: update go-cid, go-libp2p-peer, go-ipfs-cmds, go-ipfs-cmdkit
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-21 17:39:56 -07:00
Steven Allen
2450ddde81
gx: update go-cid
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-15 08:30:22 -07:00
Kevin Atkinson
075ecb09d0
Gx updates and fixes to use new cid.Builder interface.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-08-12 19:15:07 -04:00
Steven Allen
594d95af5d
update gogo-protobuf
...
fixes #3214
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-08 18:56:13 -07:00
Łukasz Magiera
c85824448d
build tag to disable dynamic plugins
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-22 21:23:30 +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
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
Whyrusleeping
1f3a5fe481
Merge pull request #4991 from ipfs/feat/git-plugin-default
...
plugin: preload git plugin by default
2018-06-13 15:26:27 +08:00
Steven Allen
85acad9a01
gx update go-log, sys, go-crypto
...
* go-log
* sys
* go-crypto
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-08 22:36:24 -07:00
Steven Allen
1e9e2f453c
update deps
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-05-31 17:59:17 -07:00
Łukasz Magiera
47bf883644
plugin: preload git plugin by default
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-05-01 13:23:43 +02:00
Łukasz Magiera
115f63a657
gx: update go-ipld-git to fix mergetag resolving
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-04-30 02:31:41 +02:00
Łukasz Magiera
b290286dd7
misc: Fix a few typos
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-30 09:47:22 +02:00
ForrestWeston
46722af958
Add tracer plugin support
...
define interface for creating tracers for use with opentracing-api
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
2018-03-25 12:57:03 -07:00
Steven Allen
b2cbfd299c
gx: update go-log
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-31 21:54:22 -08:00
Steven Allen
f9d935b984
rename import of go-ipld-format from node/format to ipld
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-29 11:55:34 -08:00
Steven Allen
fe8846fcd7
gx: mass update
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-24 15:58:44 -08:00
Steven Allen
dfe7ef4fcf
gx: update go-multihash
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-14 13:09:51 -08:00
Jeromy
c956ff2492
small typo in git plugin
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-11-05 06:50:46 -08:00
Łukasz Magiera
e8f05e7334
Fix freebsd build issues
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-03 23:46:44 +02:00
Jakub Sztandera
fa9d071b8a
Update preload.go to be the same one as generated by preload.sh
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-09-21 13:22:45 +02:00
Steven Allen
70d6629940
gx: update go-cid, go-multibase, base32
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-09-01 17:46:49 -07:00
Łukasz Magiera
00590fd293
mk: option to pass custom go executable
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-22 20:04:08 +02:00
Łukasz Magiera
7f208ce043
dag: fix git plugin
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-12 21:49:07 +02:00
Jakub Sztandera
c59fdccd9f
plugins: generate dummy main function for plugins to fix go#20312
...
https://github.com/golang/go/issues/20312
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-26 17:09:27 +02:00
Jakub Sztandera
1cc387976b
make: add generated plugin-main shims to CLEAN
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-26 17:07:54 +02:00
Jakub Sztandera
f07056f146
plugin: add small comment warning
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-16 11:30:15 +02:00
Jakub Sztandera
3f00b589d7
plugin: include empty version of preload.go
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-16 11:28:02 +02:00
Jakub Sztandera
3aa370afe1
plugin: remove debug error log
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-16 11:18:38 +02:00
Jakub Sztandera
b0d4eac41d
plugin: make the info about non-executable file in plugins dir and Error log
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-16 11:04:25 +02:00
Jakub Sztandera
c0ee7d68fd
misc: small code style edit
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-16 10:26:34 +02:00
Jakub Sztandera
fb618a28e7
plugin: fix typos
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-14 10:05:53 +02:00
Jakub Sztandera
6da6e7756e
plugin: fix plugin loading
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-13 23:02:13 +02:00
Jakub Sztandera
b135a1fa86
misc: add go fmt to main packages of plugins
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-13 22:05:31 +02:00
Jakub Sztandera
be5ee0b280
Disable ipldgit preload
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-13 22:03:33 +02:00
Jakub Sztandera
314d2c3113
misc: make codecov really happy
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-13 21:59:01 +02:00
Jakub Sztandera
e293de17eb
plugin: fix error when plugins dir does not exist
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-13 21:57:40 +02:00
Jakub Sztandera
c569b0be8a
plugin: make the plugin preload work again
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-13 21:16:04 +02:00
Jakub Sztandera
42b0ba345f
fixup plugin loading
...
they have to be a main package
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-13 08:42:21 +02:00
Jakub Sztandera
cfad460827
git: make gitPlugin struct private
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-12 23:03:15 +02:00
Jakub Sztandera
04b26fe089
make: fix buildmode=plugin and pkgdir problems
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-12 23:01:45 +02:00
Jeromy
7203c43b60
plugin: create plugin API and loader, add ipld-git plugin
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-12 21:53:59 +02:00