第164章 IPFS コンポーネント

Camel バージョン 2.23 以降で利用可能

ipfs: コンポーネントは、Interplanetary File System (IPFS) へのアクセスを提供します。

Maven ユーザーは、このコンポーネントの pom.xml に以下の依存関係を追加する必要があります。

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-ipfs</artifactId>
    <version>x.x.x</version>
    <!-- use the same version as your Camel core version -->
</dependency>

164.1. URI 形式

ipfs://cmd?options
<TODO><title>サンプル</title>

このサンプルでは、ファイルを IPFS に追加し、IPFS からファイルを取得して、最後に IPFS ファイルのコンテンツにアクセスします。

from("direct:start").to("ipfs:add")
from("direct:start").to("ipfs:get?outdir=target")
from("direct:start").to("ipfs:cat");
</TODO>