Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
go-ipfs
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
jihao
go-ipfs
Commits
a11bb713
提交
a11bb713
authored
9月 20, 2017
作者:
Łukasz Magiera
提交者:
Jeromy
10月 05, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs: Add some docs on plugins
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
上级
7afd648b
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
63 行增加
和
0 行删除
+63
-0
CHANGELOG.md
CHANGELOG.md
+1
-0
experimental-features.md
docs/experimental-features.md
+13
-0
plugins.md
docs/plugins.md
+49
-0
没有找到文件。
CHANGELOG.md
浏览文件 @
a11bb713
...
...
@@ -76,6 +76,7 @@ plugin](https://github.com/ipfs/go-ipld-eth) that lets ipfs ingest and operate
on all ethereum blockchain data. Soon to come are plugins for the bitcoin and
zcash data formats. In the future, we will be adding plugins for other things
like datastore backends and specialized libp2p network transports.
You can read more on this topic in
[
Plugin docs
](
docs/plugins.md
)
In order to simplify its integration with fs-repo-migrations, we've switched
the ipfs/go-ipfs docker image from a musl base to a glibc base. For most users
...
...
docs/experimental-features.md
浏览文件 @
a11bb713
...
...
@@ -282,3 +282,16 @@ Peers can see their (unspecific) relay address in the output of
dialing.
-
[
]
Dialing priorities for relay addresses; arguably, relay addresses should
have lower priority than direct dials.
## Plugins
Plugins allow to add functionality without the need to recompile the daemon.
### Basic Usage:
See
[
Plugin docs
](
./plugins.md
)
### Road to being a real feature
-
[
]
Better support for platforms other than Linux
-
[
]
More plugins and plugin types
docs/plugins.md
0 → 100644
浏览文件 @
a11bb713
# Plugins
Since 0.4.11 go-ipfs has an experimental plugin system for various added
functionality.
When IPFS node is created, it will load plugins from
`$IPFS_PATH/plugins`
directory (by default
`~/.ipfs/plugins`
).
### Plugin types
#### IPLD
IPLD plugins add support for additional formats to
`ipfs dag`
and other IPLD
related commands.
### Supported plugins
| Name | Type |
|------|------|
| git | IPLD |
#### Installation
##### Linux
1.
Build included plugins:
```
bash
go-ipfs
$
make build_plugins
go-ipfs
$
ls
plugin/plugins/
*
.so
```
3.
Copy desired plugins to
`$IPFS_PATH/plugins`
```
bash
go-ipfs
$
mkdir
-p
~/.ipfs/plugins/
go-ipfs
$
cp plugin/plugins/git.so ~/.ipfs/plugins/
go-ipfs
$
chmod +x ~/.ipfs/plugins/git.so
# ensure plugin is executable
```
4.
Restart daemon if it is running
##### Other
Go currently only supports plugins on Linux, for other platforms you will need
to compile them into IPFS binary.
1.
Uncomment plugin entries in
`plugin/loader/preload_list`
2.
Build ipfs
```
bash
go-ipfs
$
make build
```
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论