在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:IpfsBattery/java-ipfs-cluster-api开源软件地址:https://github.com/IpfsBattery/java-ipfs-cluster-api开源编程语言:Java 100.0%开源软件介绍:java-ipfs-cluster-apiA client library for the IPFS Cluster HTTP API, implemented in Java. UNOFFICIAL AND ALPHA
installadd this code to your project or make it to jar DependenciesThis module requires ipfs-cluster to be running. It is assumed that the IPFS Cluster API is running on "127.0.0.1:9094". UsageTo import the module:IPFSCluster ipfsCluster = new IPFSCluster("127.0.0.1", 9094); APIThe API is currently a work-in-progress. The exposed methods are designed to be similar to ipfs-cluster-ctl provided in ipfs/ipfs-cluster. ipfsCluster.id();
ipfsCluster.version();
ipfsCluster.pins.ls();
ipfsCluster.pins.ls(String CID);
ipfsCluster.pins.add(String CID);
ipfsCluster.pins.rm(String CID);
ipfsCluster.peers.ls();
ipfsCluster.peers.rm(String CID);
ipfsCluster.sync.sync();
ipfsCluster.sync.sync(String CID);
ipfsCluster.recover.recover();
ipfsCluster.recover.recover(String CID);
ipfsCluster.allocation.ls();
ipfsCluster.allocation(String CID);
ipfsCluster.health.graph(); The code is mostly from java-ipfs-api modified to consume the ipfs-cluster API. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论